Initial commit

This commit is contained in:
defiQUG
2026-01-01 08:04:06 -08:00
commit d0bc005be1
75 changed files with 15082 additions and 0 deletions

19
packages/chain/README.md Normal file
View File

@@ -0,0 +1,19 @@
# @dbis-thirdweb/chain
Canonical Chain 138 definition for thirdweb integrations.
## Usage
```typescript
import { chain138 } from '@dbis-thirdweb/chain';
// Use with thirdweb SDK
const sdk = new ThirdwebSDK(chain138);
```
## Chain Details
- **ChainID**: 138
- **CAIP-2**: `eip155:138`
- **RPC**: `https://138.rpc.thirdweb.com`
- **Native Currency**: ETH (18 decimals)

View File

@@ -0,0 +1,36 @@
{
"name": "@dbis-thirdweb/chain",
"version": "0.1.0",
"description": "Chain 138 canonical definition for thirdweb",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"lint": "eslint src",
"test": "echo \"No tests yet\""
},
"keywords": [
"thirdweb",
"chain-138",
"blockchain",
"eip155:138"
],
"author": "",
"license": "MIT",
"dependencies": {
"@thirdweb-dev/chains": "^0.1.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0"
}
}

View File

@@ -0,0 +1,27 @@
import type { Chain } from '@thirdweb-dev/chains';
/**
* Chain 138 canonical definition
* CAIP-2: eip155:138
*/
export const chain138: Chain = {
chain: 'Chain 138',
chainId: 138,
rpc: ['https://138.rpc.thirdweb.com'],
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
},
shortName: 'chain138',
slug: 'chain-138',
testnet: false,
name: 'Chain 138',
// Explorer will be inferred from thirdweb or added if available
explorers: [],
};
/**
* Export as default for convenience
*/
export default chain138;

View File

@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"composite": false
},
"include": ["src/**/*"],
"references": []
}