tempo.ts 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chains.d.ts +244 -541
- package/dist/chains.d.ts.map +1 -1
- package/dist/chains.js +10 -23
- package/dist/chains.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ox/SignatureEnvelope.d.ts +245 -0
- package/dist/ox/SignatureEnvelope.d.ts.map +1 -0
- package/dist/ox/SignatureEnvelope.js +437 -0
- package/dist/ox/SignatureEnvelope.js.map +1 -0
- package/dist/ox/Transaction.d.ts +61 -24
- package/dist/ox/Transaction.d.ts.map +1 -1
- package/dist/ox/Transaction.js +63 -18
- package/dist/ox/Transaction.js.map +1 -1
- package/dist/ox/TransactionEnvelopeAA.d.ts +461 -0
- package/dist/ox/TransactionEnvelopeAA.d.ts.map +1 -0
- package/dist/ox/TransactionEnvelopeAA.js +528 -0
- package/dist/ox/TransactionEnvelopeAA.js.map +1 -0
- package/dist/ox/TransactionRequest.d.ts +7 -5
- package/dist/ox/TransactionRequest.d.ts.map +1 -1
- package/dist/ox/TransactionRequest.js +21 -12
- package/dist/ox/TransactionRequest.js.map +1 -1
- package/dist/ox/index.d.ts +5 -4
- package/dist/ox/index.d.ts.map +1 -1
- package/dist/ox/index.js +5 -4
- package/dist/ox/index.js.map +1 -1
- package/dist/prool/Instance.d.ts +0 -4
- package/dist/prool/Instance.d.ts.map +1 -1
- package/dist/prool/Instance.js +7 -7
- package/dist/prool/Instance.js.map +1 -1
- package/dist/prool/index.d.ts +1 -1
- package/dist/prool/index.d.ts.map +1 -1
- package/dist/prool/index.js +1 -1
- package/dist/prool/index.js.map +1 -1
- package/dist/viem/{abis.d.ts → Abis.d.ts} +523 -9
- package/dist/viem/Abis.d.ts.map +1 -0
- package/dist/viem/{abis.js → Abis.js} +321 -9
- package/dist/viem/Abis.js.map +1 -0
- package/dist/viem/{actions → Actions}/amm.d.ts +21 -21
- package/dist/viem/Actions/amm.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/amm.js +55 -43
- package/dist/viem/Actions/amm.js.map +1 -0
- package/dist/viem/Actions/dex.d.ts +3263 -0
- package/dist/viem/Actions/dex.d.ts.map +1 -0
- package/dist/viem/Actions/dex.js +1357 -0
- package/dist/viem/Actions/dex.js.map +1 -0
- package/dist/viem/{actions → Actions}/fee.d.ts +8 -8
- package/dist/viem/Actions/fee.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/fee.js +14 -13
- package/dist/viem/Actions/fee.js.map +1 -0
- package/dist/viem/Actions/index.d.ts +6 -0
- package/dist/viem/Actions/index.d.ts.map +1 -0
- package/dist/viem/Actions/index.js +6 -0
- package/dist/viem/Actions/index.js.map +1 -0
- package/dist/viem/{actions → Actions}/policy.d.ts +19 -19
- package/dist/viem/Actions/policy.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/policy.js +59 -46
- package/dist/viem/Actions/policy.js.map +1 -0
- package/dist/viem/{actions → Actions}/token.d.ts +3251 -707
- package/dist/viem/Actions/token.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/token.js +420 -88
- package/dist/viem/Actions/token.js.map +1 -0
- package/dist/viem/Addresses.d.ts +9 -0
- package/dist/viem/Addresses.d.ts.map +1 -0
- package/dist/viem/Addresses.js +9 -0
- package/dist/viem/Addresses.js.map +1 -0
- package/dist/viem/{chain.d.ts → Chain.d.ts} +81 -57
- package/dist/viem/Chain.d.ts.map +1 -0
- package/dist/viem/{chain.js → Chain.js} +7 -7
- package/dist/viem/Chain.js.map +1 -0
- package/dist/viem/{client.d.ts → Client.d.ts} +4 -4
- package/dist/viem/Client.d.ts.map +1 -0
- package/dist/viem/{client.js → Client.js} +3 -3
- package/dist/viem/Client.js.map +1 -0
- package/dist/viem/{decorator.d.ts → Decorator.d.ts} +507 -5
- package/dist/viem/Decorator.d.ts.map +1 -0
- package/dist/viem/{decorator.js → Decorator.js} +31 -5
- package/dist/viem/Decorator.js.map +1 -0
- package/dist/viem/{formatters.d.ts → Formatters.d.ts} +2 -2
- package/dist/viem/Formatters.d.ts.map +1 -0
- package/dist/viem/{formatters.js → Formatters.js} +24 -17
- package/dist/viem/Formatters.js.map +1 -0
- package/dist/viem/Tick.d.ts +111 -0
- package/dist/viem/Tick.d.ts.map +1 -0
- package/dist/viem/Tick.js +127 -0
- package/dist/viem/Tick.js.map +1 -0
- package/dist/viem/TokenIds.d.ts +3 -0
- package/dist/viem/TokenIds.d.ts.map +1 -0
- package/dist/viem/TokenIds.js +3 -0
- package/dist/viem/TokenIds.js.map +1 -0
- package/dist/viem/Transaction.d.ts +57 -0
- package/dist/viem/Transaction.d.ts.map +1 -0
- package/dist/viem/Transaction.js +137 -0
- package/dist/viem/Transaction.js.map +1 -0
- package/dist/viem/{transport.d.ts → Transport.d.ts} +3 -3
- package/dist/viem/Transport.d.ts.map +1 -0
- package/dist/viem/{transport.js → Transport.js} +3 -3
- package/dist/viem/Transport.js.map +1 -0
- package/dist/viem/index.d.ts +13 -9
- package/dist/viem/index.d.ts.map +1 -1
- package/dist/viem/index.js +13 -9
- package/dist/viem/index.js.map +1 -1
- package/dist/viem/{types.d.ts → internal/types.d.ts} +3 -3
- package/dist/viem/internal/types.d.ts.map +1 -0
- package/dist/viem/{types.js.map → internal/types.js.map} +1 -1
- package/dist/viem/internal/utils.d.ts.map +1 -0
- package/dist/viem/internal/utils.js.map +1 -0
- package/package.json +87 -101
- package/src/chains.ts +10 -24
- package/src/ox/SignatureEnvelope.test.ts +1252 -0
- package/src/ox/SignatureEnvelope.ts +709 -0
- package/src/ox/Transaction.test.ts +144 -89
- package/src/ox/Transaction.ts +104 -29
- package/src/ox/TransactionEnvelopeAA.test.ts +1533 -0
- package/src/ox/TransactionEnvelopeAA.ts +858 -0
- package/src/ox/TransactionRequest.ts +25 -17
- package/src/ox/index.ts +2 -1
- package/src/prool/Instance.ts +6 -14
- package/src/prool/internal/chain.json +101 -27
- package/src/viem/{abis.ts → Abis.ts} +322 -8
- package/src/viem/{actions → Actions}/amm.test.ts +65 -68
- package/src/viem/{actions → Actions}/amm.ts +72 -60
- package/src/viem/Actions/dex.test.ts +1608 -0
- package/src/viem/Actions/dex.ts +2026 -0
- package/src/viem/{actions → Actions}/fee.test.ts +34 -36
- package/src/viem/{actions → Actions}/fee.ts +18 -17
- package/src/viem/{actions → Actions}/index.ts +1 -0
- package/src/viem/{actions → Actions}/policy.test.ts +2 -2
- package/src/viem/{actions → Actions}/policy.ts +77 -64
- package/src/viem/{actions → Actions}/token.test.ts +406 -67
- package/src/viem/{actions → Actions}/token.ts +675 -144
- package/src/viem/Addresses.ts +9 -0
- package/src/viem/{chain.ts → Chain.ts} +6 -6
- package/src/viem/{client.bench-d.ts → Client.bench-d.ts} +2 -2
- package/src/viem/{client.test.ts → Client.test.ts} +31 -6
- package/src/viem/{client.ts → Client.ts} +1 -1
- package/src/viem/{decorator.bench-d.ts → Decorator.bench-d.ts} +2 -2
- package/src/viem/{decorator.test.ts → Decorator.test.ts} +1 -0
- package/src/viem/{decorator.ts → Decorator.ts} +586 -4
- package/src/viem/{formatters.ts → Formatters.ts} +31 -20
- package/src/viem/Tick.test.ts +281 -0
- package/src/viem/Tick.ts +176 -0
- package/src/viem/TokenIds.ts +2 -0
- package/src/viem/Transaction.ts +303 -0
- package/src/viem/{transport.ts → Transport.ts} +5 -5
- package/src/viem/e2e.test.ts +153 -78
- package/src/viem/index.ts +13 -9
- package/src/viem/{types.ts → internal/types.ts} +3 -3
- package/dist/ox/TransactionEnvelopeFeeToken.d.ts +0 -393
- package/dist/ox/TransactionEnvelopeFeeToken.d.ts.map +0 -1
- package/dist/ox/TransactionEnvelopeFeeToken.js +0 -452
- package/dist/ox/TransactionEnvelopeFeeToken.js.map +0 -1
- package/dist/viem/abis.d.ts.map +0 -1
- package/dist/viem/abis.js.map +0 -1
- package/dist/viem/actions/amm.d.ts.map +0 -1
- package/dist/viem/actions/amm.js.map +0 -1
- package/dist/viem/actions/fee.d.ts.map +0 -1
- package/dist/viem/actions/fee.js.map +0 -1
- package/dist/viem/actions/index.d.ts +0 -5
- package/dist/viem/actions/index.d.ts.map +0 -1
- package/dist/viem/actions/index.js +0 -5
- package/dist/viem/actions/index.js.map +0 -1
- package/dist/viem/actions/policy.d.ts.map +0 -1
- package/dist/viem/actions/policy.js.map +0 -1
- package/dist/viem/actions/token.d.ts.map +0 -1
- package/dist/viem/actions/token.js.map +0 -1
- package/dist/viem/addresses.d.ts +0 -8
- package/dist/viem/addresses.d.ts.map +0 -1
- package/dist/viem/addresses.js +0 -8
- package/dist/viem/addresses.js.map +0 -1
- package/dist/viem/chain.d.ts.map +0 -1
- package/dist/viem/chain.js.map +0 -1
- package/dist/viem/client.d.ts.map +0 -1
- package/dist/viem/client.js.map +0 -1
- package/dist/viem/decorator.d.ts.map +0 -1
- package/dist/viem/decorator.js.map +0 -1
- package/dist/viem/formatters.d.ts.map +0 -1
- package/dist/viem/formatters.js.map +0 -1
- package/dist/viem/transaction.d.ts +0 -54
- package/dist/viem/transaction.d.ts.map +0 -1
- package/dist/viem/transaction.js +0 -108
- package/dist/viem/transaction.js.map +0 -1
- package/dist/viem/transport.d.ts.map +0 -1
- package/dist/viem/transport.js.map +0 -1
- package/dist/viem/types.d.ts.map +0 -1
- package/dist/viem/utils.d.ts.map +0 -1
- package/dist/viem/utils.js.map +0 -1
- package/src/ox/TransactionEnvelopeFeeToken.test.ts +0 -1119
- package/src/ox/TransactionEnvelopeFeeToken.ts +0 -717
- package/src/prool/internal/consensus.toml +0 -32
- package/src/viem/addresses.ts +0 -10
- package/src/viem/transaction.ts +0 -253
- /package/dist/viem/{types.js → internal/types.js} +0 -0
- /package/dist/viem/{utils.d.ts → internal/utils.d.ts} +0 -0
- /package/dist/viem/{utils.js → internal/utils.js} +0 -0
- /package/src/viem/{utils.ts → internal/utils.ts} +0 -0
package/dist/viem/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * as
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
1
|
+
export * as Abis from './Abis.js';
|
|
2
|
+
export * as Actions from './Actions/index.js';
|
|
3
|
+
export * as Addresses from './Addresses.js';
|
|
4
|
+
export * as Chain from './Chain.js';
|
|
5
|
+
export * as Client from './Client.js';
|
|
6
|
+
export { createTempoClient } from './Client.js';
|
|
7
|
+
export { decorator as tempoActions } from './Decorator.js';
|
|
8
|
+
export * as Formatters from './Formatters.js';
|
|
9
|
+
export * as Tick from './Tick.js';
|
|
10
|
+
export * as TokenIds from './TokenIds.js';
|
|
11
|
+
export * as Transaction from './Transaction.js';
|
|
12
|
+
export * as Transport from './Transport.js';
|
|
13
|
+
export { withFeePayer } from './Transport.js';
|
|
10
14
|
//# sourceMappingURL=index.js.map
|
package/dist/viem/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/viem/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/viem/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Account, Address, Chain, ReadContractParameters as viem_ReadContractParameters, WriteContractSyncParameters as viem_WriteContractSyncParameters } from 'viem';
|
|
2
|
-
import type { IsUndefined, MaybeRequired, UnionPick } from
|
|
3
|
-
import type {
|
|
2
|
+
import type { IsUndefined, MaybeRequired, UnionPick } from '../../internal/types.js';
|
|
3
|
+
import type { TransactionRequestAA } from '../Transaction.js';
|
|
4
4
|
export type GetAccountParameter<account extends Account | undefined = Account | undefined, accountOverride extends Account | Address | undefined = Account | Address, required extends boolean = true, nullish extends boolean = false> = MaybeRequired<{
|
|
5
5
|
account?: accountOverride | Account | Address | (nullish extends true ? null : never) | undefined;
|
|
6
6
|
}, IsUndefined<account> extends true ? required extends true ? true : false : false>;
|
|
7
7
|
export type ReadParameters = Pick<viem_ReadContractParameters<never, never, never>, 'account' | 'blockNumber' | 'blockOverrides' | 'blockTag' | 'stateOverride'>;
|
|
8
8
|
export type TokenIdOrAddress = bigint | Address;
|
|
9
|
-
export type WriteParameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = UnionPick<viem_WriteContractSyncParameters<never, never, never, chain, account>, 'account' | 'chain' | 'gas' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'throwOnReceiptRevert'> & UnionPick<
|
|
9
|
+
export type WriteParameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = UnionPick<viem_WriteContractSyncParameters<never, never, never, chain, account>, 'account' | 'chain' | 'gas' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'throwOnReceiptRevert'> & UnionPick<TransactionRequestAA, 'feePayer' | 'feeToken'>;
|
|
10
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 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AAS,CACX,gCAAgC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EACnE,SAAS,GACT,OAAO,GACP,KAAK,GACL,cAAc,GACd,sBAAsB,GACtB,OAAO,GACP,sBAAsB,CACzB,GACC,SAAS,CAAC,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/viem/internal/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/viem/internal/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,cAAc,EAEnB,KAAK,GAAG,EACT,MAAM,MAAM,CAAA;AAEb,wBAAgB,UAAU,CACxB,KAAK,CAAC,GAAG,SAAS,GAAG,EACrB,KAAK,CAAC,YAAY,SAAS,oBAAoB,CAAC,GAAG,EAAE,kBAAkB,CAAC,EACxE,IAAI,SAAS,0BAA0B,CACrC,GAAG,EACH,kBAAkB,EAClB,YAAY,CACb,EAED,IAAI,EACA,IAAI,GACJ,0BAA0B,CAAC,GAAG,EAAE,kBAAkB,EAAE,YAAY,CAAC,GACpE,0BAA0B,CAC3B;IAAC,cAAc,CAAC,GAAG,EAAE,YAAY,CAAC;CAAC,EACnC,kBAAkB,EAClB,YAAY,CACb,GAAG;IACF,IAAI,EAAE,GAAG,CAAA;IACT,EAAE,EAAE,OAAO,CAAA;CACZ,CAMA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/viem/internal/utils.ts"],"names":[],"mappings":"AAAA,OAA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|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"src": "./src/viem/index.ts",
|
|
90
|
-
"types": "./dist/viem/index.d.ts",
|
|
91
|
-
"import": "./dist/viem/index.js"
|
|
92
|
-
},
|
|
93
|
-
"./viem/actions": {
|
|
94
|
-
"src": "./src/viem/actions/index.ts",
|
|
95
|
-
"types": "./dist/viem/actions/index.d.ts",
|
|
96
|
-
"import": "./dist/viem/actions/index.js"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"simple-git-hooks": {
|
|
100
|
-
"pre-commit": "bun run check"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
2
|
+
"name": "tempo.ts",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "zile --project ./tsconfig.build.json",
|
|
7
|
+
"changeset:publish": "bun run build && changeset publish",
|
|
8
|
+
"changeset:version": "changeset version && bun run check",
|
|
9
|
+
"check": "biome check . --write --unsafe",
|
|
10
|
+
"check:types": "tsc -b",
|
|
11
|
+
"gen:abis": "bun scripts/gen:abis.ts && bun run check",
|
|
12
|
+
"submodules:pull": "git submodule foreach git pull origin main && pnpm gen:abis",
|
|
13
|
+
"test": "vitest",
|
|
14
|
+
"test:install": "cd test/tempo && cargo install --path bin/tempo && cargo run --bin tempo-bench generate-genesis --accounts 1 --output ../../src/prool/internal/chain.json"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"ox": "~0.9.9"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"prool": "^0",
|
|
21
|
+
"viem": ">=2.38.2"
|
|
22
|
+
},
|
|
23
|
+
"peerDependenciesMeta": {
|
|
24
|
+
"prool": {
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
"viem": {
|
|
28
|
+
"optional": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"packageManager": "bun@1.3.0",
|
|
32
|
+
"author": "jxom <j@wevm.dev>",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@ark/attest": "^0.49.0",
|
|
36
|
+
"@biomejs/biome": "^2.2.4",
|
|
37
|
+
"@changesets/changelog-github": "^0.5.0",
|
|
38
|
+
"@changesets/cli": "^2.27.7",
|
|
39
|
+
"@elysiajs/node": "^1.4.1",
|
|
40
|
+
"@types/bun": "latest",
|
|
41
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
42
|
+
"elysia": "latest",
|
|
43
|
+
"prool": "latest",
|
|
44
|
+
"simple-git-hooks": "^2.13.1",
|
|
45
|
+
"typescript": "^5.9.2",
|
|
46
|
+
"viem": "^2.38.2",
|
|
47
|
+
"vitest": "^3.2.4",
|
|
48
|
+
"zile": "^0.0.2"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"src"
|
|
53
|
+
],
|
|
54
|
+
"sideEffects": false,
|
|
55
|
+
"main": "./dist/index.js",
|
|
56
|
+
"module": "./dist/index.js",
|
|
57
|
+
"types": "./dist/index.d.ts",
|
|
58
|
+
"exports": {
|
|
59
|
+
".": {
|
|
60
|
+
"src": "./src/index.ts",
|
|
61
|
+
"types": "./dist/index.d.ts",
|
|
62
|
+
"default": "./dist/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./chains": {
|
|
65
|
+
"src": "./src/chains.ts",
|
|
66
|
+
"types": "./dist/chains.d.ts",
|
|
67
|
+
"default": "./dist/chains.js"
|
|
68
|
+
},
|
|
69
|
+
"./ox": {
|
|
70
|
+
"src": "./src/ox/index.ts",
|
|
71
|
+
"types": "./dist/ox/index.d.ts",
|
|
72
|
+
"default": "./dist/ox/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./prool": {
|
|
75
|
+
"src": "./src/prool/index.ts",
|
|
76
|
+
"types": "./dist/prool/index.d.ts",
|
|
77
|
+
"default": "./dist/prool/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./viem": {
|
|
80
|
+
"src": "./src/viem/index.ts",
|
|
81
|
+
"types": "./dist/viem/index.d.ts",
|
|
82
|
+
"default": "./dist/viem/index.js"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"simple-git-hooks": {
|
|
86
|
+
"pre-commit": "bun run check"
|
|
87
|
+
}
|
|
88
|
+
}
|
package/src/chains.ts
CHANGED
|
@@ -1,46 +1,32 @@
|
|
|
1
1
|
import { defineChain } from 'viem'
|
|
2
|
-
import
|
|
2
|
+
import * as Chain from './viem/Chain.js'
|
|
3
3
|
|
|
4
|
-
export const
|
|
5
|
-
...
|
|
6
|
-
id:
|
|
7
|
-
name: 'Tempo',
|
|
8
|
-
nativeCurrency: {
|
|
9
|
-
name: 'USD',
|
|
10
|
-
symbol: 'USD',
|
|
11
|
-
decimals: 18,
|
|
12
|
-
},
|
|
13
|
-
rpcUrls: {
|
|
14
|
-
default: { http: ['https://rpc-adagietto.tempoxyz.dev'] },
|
|
15
|
-
},
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
export const tempoLento = /*#__PURE__*/ defineChain({
|
|
19
|
-
...chainConfig,
|
|
20
|
-
id: 4246,
|
|
21
|
-
name: 'Tempo',
|
|
4
|
+
export const tempoAndante = /*#__PURE__*/ defineChain({
|
|
5
|
+
...Chain.config,
|
|
6
|
+
id: 42427,
|
|
7
|
+
name: 'Tempo Andante',
|
|
22
8
|
nativeCurrency: {
|
|
23
9
|
name: 'USD',
|
|
24
10
|
symbol: 'USD',
|
|
25
|
-
decimals:
|
|
11
|
+
decimals: 6,
|
|
26
12
|
},
|
|
27
13
|
rpcUrls: {
|
|
28
|
-
default: { http: ['https://rpc-
|
|
14
|
+
default: { http: ['https://rpc-andante.tempoxyz.dev'] },
|
|
29
15
|
},
|
|
30
16
|
})
|
|
31
17
|
|
|
32
18
|
export const tempoLocal = /*#__PURE__*/ defineChain({
|
|
33
|
-
...
|
|
19
|
+
...Chain.config,
|
|
34
20
|
id: 1337,
|
|
35
21
|
name: 'Tempo',
|
|
36
22
|
nativeCurrency: {
|
|
37
23
|
name: 'USD',
|
|
38
24
|
symbol: 'USD',
|
|
39
|
-
decimals:
|
|
25
|
+
decimals: 6,
|
|
40
26
|
},
|
|
41
27
|
rpcUrls: {
|
|
42
28
|
default: { http: ['http://localhost:8545'] },
|
|
43
29
|
},
|
|
44
30
|
})
|
|
45
31
|
|
|
46
|
-
export const tempo = /*#__PURE__*/ defineChain(
|
|
32
|
+
export const tempo = /*#__PURE__*/ defineChain(tempoAndante)
|