viem 2.44.2 → 2.45.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/CHANGELOG.md +36 -0
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +4 -2
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/clients/createBundlerClient.js +8 -2
- package/_cjs/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js +3 -1
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js +3 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/wallet/sendCalls.js +17 -1
- package/_cjs/actions/wallet/sendCalls.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +11 -7
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +11 -7
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js +2 -2
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/chains/definitions/megaeth.js +33 -0
- package/_cjs/chains/definitions/megaeth.js.map +1 -0
- package/_cjs/chains/definitions/megaethTestnet.js +6 -1
- package/_cjs/chains/definitions/megaethTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rise.js +28 -0
- package/_cjs/chains/definitions/rise.js.map +1 -0
- package/_cjs/chains/definitions/stable.js +35 -0
- package/_cjs/chains/definitions/stable.js.map +1 -0
- package/_cjs/chains/definitions/stableTestnet.js +10 -3
- package/_cjs/chains/definitions/stableTestnet.js.map +1 -1
- package/_cjs/chains/index.js +13 -7
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js +2 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/createWalletClient.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/op-stack/index.js +9 -1
- package/_cjs/op-stack/index.js.map +1 -1
- package/_cjs/tempo/Abis.js +2 -2
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Addresses.js +2 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +19 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Transport.js +1 -1
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +91 -0
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/actions/index.js +2 -1
- package/_cjs/tempo/actions/index.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +308 -0
- package/_cjs/tempo/actions/validator.js.map +1 -0
- package/_cjs/types/dataSuffix.js +3 -0
- package/_cjs/types/dataSuffix.js.map +1 -0
- package/_cjs/utils/abi/decodeEventLog.js +29 -12
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +4 -2
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
- package/_esm/account-abstraction/clients/createBundlerClient.js +8 -2
- package/_esm/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_esm/actions/public/estimateContractGas.js +3 -1
- package/_esm/actions/public/estimateContractGas.js.map +1 -1
- package/_esm/actions/public/simulateContract.js +3 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/wallet/sendCalls.js +17 -1
- package/_esm/actions/wallet/sendCalls.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +11 -7
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +11 -7
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js +2 -2
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/chains/definitions/megaeth.js +30 -0
- package/_esm/chains/definitions/megaeth.js.map +1 -0
- package/_esm/chains/definitions/megaethTestnet.js +6 -1
- package/_esm/chains/definitions/megaethTestnet.js.map +1 -1
- package/_esm/chains/definitions/rise.js +25 -0
- package/_esm/chains/definitions/rise.js.map +1 -0
- package/_esm/chains/definitions/stable.js +32 -0
- package/_esm/chains/definitions/stable.js.map +1 -0
- package/_esm/chains/definitions/stableTestnet.js +10 -3
- package/_esm/chains/definitions/stableTestnet.js.map +1 -1
- package/_esm/chains/index.js +3 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClient.js +2 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/createWalletClient.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/op-stack/index.js +4 -0
- package/_esm/op-stack/index.js.map +1 -1
- package/_esm/tempo/Abis.js +1 -1
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +6 -6
- package/_esm/tempo/Addresses.js +1 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +19 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Transport.js +1 -1
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/WebAuthnP256.js +2 -2
- package/_esm/tempo/actions/amm.js +28 -28
- package/_esm/tempo/actions/dex.js +68 -68
- package/_esm/tempo/actions/faucet.js +4 -4
- package/_esm/tempo/actions/fee.js +236 -10
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/index.js +1 -0
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +4 -4
- package/_esm/tempo/actions/policy.js +36 -36
- package/_esm/tempo/actions/reward.js +28 -28
- package/_esm/tempo/actions/token.js +122 -122
- package/_esm/tempo/actions/validator.js +1017 -0
- package/_esm/tempo/actions/validator.js.map +1 -0
- package/_esm/types/dataSuffix.js +2 -0
- package/_esm/types/dataSuffix.js.map +1 -0
- package/_esm/utils/abi/decodeEventLog.js +34 -13
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts +2 -0
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts +2 -0
- package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/clients/createBundlerClient.d.ts +4 -0
- package/_types/account-abstraction/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/wallet/sendCalls.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +7 -2
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts +5 -0
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/chains/definitions/megaeth.d.ts +46 -0
- package/_types/chains/definitions/megaeth.d.ts.map +1 -0
- package/_types/chains/definitions/megaethTestnet.d.ts +6 -1
- package/_types/chains/definitions/megaethTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rise.d.ts +46 -0
- package/_types/chains/definitions/rise.d.ts.map +1 -0
- package/_types/chains/definitions/stable.d.ts +47 -0
- package/_types/chains/definitions/stable.d.ts.map +1 -0
- package/_types/chains/definitions/stableTestnet.d.ts +10 -13
- package/_types/chains/definitions/stableTestnet.d.ts.map +1 -1
- package/_types/chains/index.d.ts +3 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +5 -0
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/createWalletClient.d.ts +1 -1
- package/_types/clients/createWalletClient.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/index.d.ts +4 -0
- package/_types/op-stack/index.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +1 -1
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +6 -6
- package/_types/tempo/Addresses.d.ts +1 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +607 -208
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/WebAuthnP256.d.ts +2 -2
- package/_types/tempo/actions/amm.d.ts +28 -28
- package/_types/tempo/actions/dex.d.ts +68 -68
- package/_types/tempo/actions/faucet.d.ts +4 -4
- package/_types/tempo/actions/fee.d.ts +380 -10
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/index.d.ts +1 -0
- package/_types/tempo/actions/index.d.ts.map +1 -1
- package/_types/tempo/actions/nonce.d.ts +4 -4
- package/_types/tempo/actions/policy.d.ts +36 -36
- package/_types/tempo/actions/reward.d.ts +28 -28
- package/_types/tempo/actions/token.d.ts +122 -122
- package/_types/tempo/actions/validator.d.ts +1174 -0
- package/_types/tempo/actions/validator.d.ts.map +1 -0
- package/_types/types/dataSuffix.d.ts +16 -0
- package/_types/types/dataSuffix.d.ts.map +1 -0
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/account-abstraction/actions/bundler/prepareUserOperation.ts +7 -1
- package/account-abstraction/actions/bundler/sendUserOperation.ts +2 -0
- package/account-abstraction/clients/createBundlerClient.ts +12 -1
- package/actions/public/estimateContractGas.ts +11 -2
- package/actions/public/simulateContract.ts +11 -2
- package/actions/wallet/sendCalls.ts +18 -1
- package/actions/wallet/sendTransaction.ts +19 -8
- package/actions/wallet/sendTransactionSync.ts +17 -7
- package/actions/wallet/writeContract.ts +1 -2
- package/chains/definitions/megaeth.ts +30 -0
- package/chains/definitions/megaethTestnet.ts +6 -1
- package/chains/definitions/rise.ts +25 -0
- package/chains/definitions/stable.ts +32 -0
- package/chains/definitions/stableTestnet.ts +10 -3
- package/chains/index.ts +3 -0
- package/clients/createClient.ts +7 -0
- package/clients/createWalletClient.ts +1 -0
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/op-stack/index.ts +24 -0
- package/package.json +1 -1
- package/tempo/Abis.ts +1 -1
- package/tempo/Account.ts +6 -6
- package/tempo/Addresses.ts +1 -0
- package/tempo/Decorator.ts +672 -208
- package/tempo/Transport.ts +4 -1
- package/tempo/WebAuthnP256.ts +2 -2
- package/tempo/actions/amm.ts +28 -28
- package/tempo/actions/dex.ts +68 -68
- package/tempo/actions/faucet.ts +4 -4
- package/tempo/actions/fee.ts +346 -10
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/nonce.ts +4 -4
- package/tempo/actions/policy.ts +36 -36
- package/tempo/actions/reward.ts +28 -28
- package/tempo/actions/token.ts +122 -122
- package/tempo/actions/validator.ts +1417 -0
- package/types/dataSuffix.ts +18 -0
- package/utils/abi/decodeEventLog.ts +38 -14
package/tempo/Transport.ts
CHANGED
package/tempo/WebAuthnP256.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type P256Credential = {
|
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```ts
|
|
21
|
-
* import { WebAuthnP256 } from 'tempo
|
|
21
|
+
* import { WebAuthnP256 } from 'viem/tempo'
|
|
22
22
|
*
|
|
23
23
|
* const credential = await WebAuthnP256.createCredential({ name: 'Example' })
|
|
24
24
|
* // {
|
|
@@ -101,7 +101,7 @@ export declare namespace createCredential {
|
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* ```ts
|
|
104
|
-
* import { WebAuthnP256 } from 'tempo
|
|
104
|
+
* import { WebAuthnP256 } from 'viem/tempo'
|
|
105
105
|
*
|
|
106
106
|
* const credential = await WebAuthnP256.getCredential({
|
|
107
107
|
* async getPublicKey(credential) {
|
package/tempo/actions/amm.ts
CHANGED
|
@@ -30,8 +30,8 @@ import { defineCall } from '../internal/utils.js'
|
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
32
|
* import { createClient, http } from 'viem'
|
|
33
|
-
* import { tempo } from '
|
|
34
|
-
* import { Actions } from 'tempo
|
|
33
|
+
* import { tempo } from 'viem/chains'
|
|
34
|
+
* import { Actions } from 'viem/tempo'
|
|
35
35
|
*
|
|
36
36
|
* const client = createClient({
|
|
37
37
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -120,8 +120,8 @@ export namespace getPool {
|
|
|
120
120
|
* @example
|
|
121
121
|
* ```ts
|
|
122
122
|
* import { createClient, http } from 'viem'
|
|
123
|
-
* import { tempo } from '
|
|
124
|
-
* import { Actions } from 'tempo
|
|
123
|
+
* import { tempo } from 'viem/chains'
|
|
124
|
+
* import { Actions } from 'viem/tempo'
|
|
125
125
|
*
|
|
126
126
|
* const client = createClient({
|
|
127
127
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -218,8 +218,8 @@ export namespace getLiquidityBalance {
|
|
|
218
218
|
* @example
|
|
219
219
|
* ```ts
|
|
220
220
|
* import { createClient, http } from 'viem'
|
|
221
|
-
* import { tempo } from '
|
|
222
|
-
* import { Actions } from 'tempo
|
|
221
|
+
* import { tempo } from 'viem/chains'
|
|
222
|
+
* import { Actions } from 'viem/tempo'
|
|
223
223
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
224
224
|
*
|
|
225
225
|
* const client = createClient({
|
|
@@ -303,8 +303,8 @@ export namespace rebalanceSwap {
|
|
|
303
303
|
* @example
|
|
304
304
|
* ```ts
|
|
305
305
|
* import { createClient, http, walletActions } from 'viem'
|
|
306
|
-
* import { tempo } from '
|
|
307
|
-
* import { Actions } from 'tempo
|
|
306
|
+
* import { tempo } from 'viem/chains'
|
|
307
|
+
* import { Actions } from 'viem/tempo'
|
|
308
308
|
*
|
|
309
309
|
* const client = createClient({
|
|
310
310
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -371,8 +371,8 @@ export namespace rebalanceSwap {
|
|
|
371
371
|
* @example
|
|
372
372
|
* ```ts
|
|
373
373
|
* import { createClient, http } from 'viem'
|
|
374
|
-
* import { tempo } from '
|
|
375
|
-
* import { Actions } from 'tempo
|
|
374
|
+
* import { tempo } from 'viem/chains'
|
|
375
|
+
* import { Actions } from 'viem/tempo'
|
|
376
376
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
377
377
|
*
|
|
378
378
|
* const client = createClient({
|
|
@@ -438,8 +438,8 @@ export namespace rebalanceSwapSync {
|
|
|
438
438
|
* @example
|
|
439
439
|
* ```ts
|
|
440
440
|
* import { createClient, http } from 'viem'
|
|
441
|
-
* import { tempo } from '
|
|
442
|
-
* import { Actions } from 'tempo
|
|
441
|
+
* import { tempo } from 'viem/chains'
|
|
442
|
+
* import { Actions } from 'viem/tempo'
|
|
443
443
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
444
444
|
*
|
|
445
445
|
* const client = createClient({
|
|
@@ -529,8 +529,8 @@ export namespace mint {
|
|
|
529
529
|
* @example
|
|
530
530
|
* ```ts
|
|
531
531
|
* import { createClient, http, walletActions } from 'viem'
|
|
532
|
-
* import { tempo } from '
|
|
533
|
-
* import { Actions } from 'tempo
|
|
532
|
+
* import { tempo } from 'viem/chains'
|
|
533
|
+
* import { Actions } from 'viem/tempo'
|
|
534
534
|
*
|
|
535
535
|
* const client = createClient({
|
|
536
536
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -602,8 +602,8 @@ export namespace mint {
|
|
|
602
602
|
* @example
|
|
603
603
|
* ```ts
|
|
604
604
|
* import { createClient, http } from 'viem'
|
|
605
|
-
* import { tempo } from '
|
|
606
|
-
* import { Actions } from 'tempo
|
|
605
|
+
* import { tempo } from 'viem/chains'
|
|
606
|
+
* import { Actions } from 'viem/tempo'
|
|
607
607
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
608
608
|
*
|
|
609
609
|
* const client = createClient({
|
|
@@ -669,8 +669,8 @@ export namespace mintSync {
|
|
|
669
669
|
* @example
|
|
670
670
|
* ```ts
|
|
671
671
|
* import { createClient, http } from 'viem'
|
|
672
|
-
* import { tempo } from '
|
|
673
|
-
* import { Actions } from 'tempo
|
|
672
|
+
* import { tempo } from 'viem/chains'
|
|
673
|
+
* import { Actions } from 'viem/tempo'
|
|
674
674
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
675
675
|
*
|
|
676
676
|
* const client = createClient({
|
|
@@ -749,8 +749,8 @@ export namespace burn {
|
|
|
749
749
|
* @example
|
|
750
750
|
* ```ts
|
|
751
751
|
* import { createClient, http, walletActions } from 'viem'
|
|
752
|
-
* import { tempo } from '
|
|
753
|
-
* import { Actions } from 'tempo
|
|
752
|
+
* import { tempo } from 'viem/chains'
|
|
753
|
+
* import { Actions } from 'viem/tempo'
|
|
754
754
|
*
|
|
755
755
|
* const client = createClient({
|
|
756
756
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -817,8 +817,8 @@ export namespace burn {
|
|
|
817
817
|
* @example
|
|
818
818
|
* ```ts
|
|
819
819
|
* import { createClient, http } from 'viem'
|
|
820
|
-
* import { tempo } from '
|
|
821
|
-
* import { Actions } from 'tempo
|
|
820
|
+
* import { tempo } from 'viem/chains'
|
|
821
|
+
* import { Actions } from 'viem/tempo'
|
|
822
822
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
823
823
|
*
|
|
824
824
|
* const client = createClient({
|
|
@@ -884,8 +884,8 @@ export namespace burnSync {
|
|
|
884
884
|
* @example
|
|
885
885
|
* ```ts
|
|
886
886
|
* import { createClient, http } from 'viem'
|
|
887
|
-
* import { tempo } from '
|
|
888
|
-
* import { Actions } from 'tempo
|
|
887
|
+
* import { tempo } from 'viem/chains'
|
|
888
|
+
* import { Actions } from 'viem/tempo'
|
|
889
889
|
*
|
|
890
890
|
* const client = createClient({
|
|
891
891
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -964,8 +964,8 @@ export declare namespace watchRebalanceSwap {
|
|
|
964
964
|
* @example
|
|
965
965
|
* ```ts
|
|
966
966
|
* import { createClient, http } from 'viem'
|
|
967
|
-
* import { tempo } from '
|
|
968
|
-
* import { Actions } from 'tempo
|
|
967
|
+
* import { tempo } from 'viem/chains'
|
|
968
|
+
* import { Actions } from 'viem/tempo'
|
|
969
969
|
*
|
|
970
970
|
* const client = createClient({
|
|
971
971
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1047,8 +1047,8 @@ export declare namespace watchMint {
|
|
|
1047
1047
|
* @example
|
|
1048
1048
|
* ```ts
|
|
1049
1049
|
* import { createClient, http } from 'viem'
|
|
1050
|
-
* import { tempo } from '
|
|
1051
|
-
* import { Actions } from 'tempo
|
|
1050
|
+
* import { tempo } from 'viem/chains'
|
|
1051
|
+
* import { Actions } from 'viem/tempo'
|
|
1052
1052
|
*
|
|
1053
1053
|
* const client = createClient({
|
|
1054
1054
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
package/tempo/actions/dex.ts
CHANGED
|
@@ -46,8 +46,8 @@ type OrderType = 'buy' | 'sell'
|
|
|
46
46
|
* ```ts
|
|
47
47
|
* import { createClient, http, parseUnits } from 'viem'
|
|
48
48
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
49
|
-
* import { tempo } from '
|
|
50
|
-
* import { Actions } from 'tempo
|
|
49
|
+
* import { tempo } from 'viem/chains'
|
|
50
|
+
* import { Actions } from 'viem/tempo'
|
|
51
51
|
*
|
|
52
52
|
* const client = createClient({
|
|
53
53
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -128,8 +128,8 @@ export namespace buy {
|
|
|
128
128
|
* @example
|
|
129
129
|
* ```ts
|
|
130
130
|
* import { createClient, http, parseUnits, walletActions } from 'viem'
|
|
131
|
-
* import { tempo } from '
|
|
132
|
-
* import { Actions } from 'tempo
|
|
131
|
+
* import { tempo } from 'viem/chains'
|
|
132
|
+
* import { Actions } from 'viem/tempo'
|
|
133
133
|
*
|
|
134
134
|
* const client = createClient({
|
|
135
135
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -169,8 +169,8 @@ export namespace buy {
|
|
|
169
169
|
* ```ts
|
|
170
170
|
* import { createClient, http, parseUnits } from 'viem'
|
|
171
171
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
172
|
-
* import { tempo } from '
|
|
173
|
-
* import { Actions } from 'tempo
|
|
172
|
+
* import { tempo } from 'viem/chains'
|
|
173
|
+
* import { Actions } from 'viem/tempo'
|
|
174
174
|
*
|
|
175
175
|
* const client = createClient({
|
|
176
176
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -229,8 +229,8 @@ export namespace buySync {
|
|
|
229
229
|
* ```ts
|
|
230
230
|
* import { createClient, http } from 'viem'
|
|
231
231
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
232
|
-
* import { tempo } from '
|
|
233
|
-
* import { Actions } from 'tempo
|
|
232
|
+
* import { tempo } from 'viem/chains'
|
|
233
|
+
* import { Actions } from 'viem/tempo'
|
|
234
234
|
*
|
|
235
235
|
* const client = createClient({
|
|
236
236
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -302,8 +302,8 @@ export namespace cancel {
|
|
|
302
302
|
* @example
|
|
303
303
|
* ```ts
|
|
304
304
|
* import { createClient, http, walletActions } from 'viem'
|
|
305
|
-
* import { tempo } from '
|
|
306
|
-
* import { Actions } from 'tempo
|
|
305
|
+
* import { tempo } from 'viem/chains'
|
|
306
|
+
* import { Actions } from 'viem/tempo'
|
|
307
307
|
*
|
|
308
308
|
* const client = createClient({
|
|
309
309
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -357,8 +357,8 @@ export namespace cancel {
|
|
|
357
357
|
* ```ts
|
|
358
358
|
* import { createClient, http } from 'viem'
|
|
359
359
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
360
|
-
* import { tempo } from '
|
|
361
|
-
* import { Actions } from 'tempo
|
|
360
|
+
* import { tempo } from 'viem/chains'
|
|
361
|
+
* import { Actions } from 'viem/tempo'
|
|
362
362
|
*
|
|
363
363
|
* const client = createClient({
|
|
364
364
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -427,8 +427,8 @@ export namespace cancelSync {
|
|
|
427
427
|
* ```ts
|
|
428
428
|
* import { createClient, http } from 'viem'
|
|
429
429
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
430
|
-
* import { tempo } from '
|
|
431
|
-
* import { Actions } from 'tempo
|
|
430
|
+
* import { tempo } from 'viem/chains'
|
|
431
|
+
* import { Actions } from 'viem/tempo'
|
|
432
432
|
*
|
|
433
433
|
* const client = createClient({
|
|
434
434
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -500,8 +500,8 @@ export namespace cancelStale {
|
|
|
500
500
|
* @example
|
|
501
501
|
* ```ts
|
|
502
502
|
* import { createClient, http, walletActions } from 'viem'
|
|
503
|
-
* import { tempo } from '
|
|
504
|
-
* import { Actions } from 'tempo
|
|
503
|
+
* import { tempo } from 'viem/chains'
|
|
504
|
+
* import { Actions } from 'viem/tempo'
|
|
505
505
|
*
|
|
506
506
|
* const client = createClient({
|
|
507
507
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -558,8 +558,8 @@ export namespace cancelStale {
|
|
|
558
558
|
* ```ts
|
|
559
559
|
* import { createClient, http } from 'viem'
|
|
560
560
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
561
|
-
* import { tempo } from '
|
|
562
|
-
* import { Actions } from 'tempo
|
|
561
|
+
* import { tempo } from 'viem/chains'
|
|
562
|
+
* import { Actions } from 'viem/tempo'
|
|
563
563
|
*
|
|
564
564
|
* const client = createClient({
|
|
565
565
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -625,8 +625,8 @@ export namespace cancelStaleSync {
|
|
|
625
625
|
* ```ts
|
|
626
626
|
* import { createClient, http } from 'viem'
|
|
627
627
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
628
|
-
* import { tempo } from '
|
|
629
|
-
* import { Actions } from 'tempo
|
|
628
|
+
* import { tempo } from 'viem/chains'
|
|
629
|
+
* import { Actions } from 'viem/tempo'
|
|
630
630
|
*
|
|
631
631
|
* const client = createClient({
|
|
632
632
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -698,8 +698,8 @@ export namespace createPair {
|
|
|
698
698
|
* @example
|
|
699
699
|
* ```ts
|
|
700
700
|
* import { createClient, http, walletActions } from 'viem'
|
|
701
|
-
* import { tempo } from '
|
|
702
|
-
* import { Actions } from 'tempo
|
|
701
|
+
* import { tempo } from 'viem/chains'
|
|
702
|
+
* import { Actions } from 'viem/tempo'
|
|
703
703
|
*
|
|
704
704
|
* const client = createClient({
|
|
705
705
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -753,8 +753,8 @@ export namespace createPair {
|
|
|
753
753
|
* ```ts
|
|
754
754
|
* import { createClient, http } from 'viem'
|
|
755
755
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
756
|
-
* import { tempo } from '
|
|
757
|
-
* import { Actions } from 'tempo
|
|
756
|
+
* import { tempo } from 'viem/chains'
|
|
757
|
+
* import { Actions } from 'viem/tempo'
|
|
758
758
|
*
|
|
759
759
|
* const client = createClient({
|
|
760
760
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -819,8 +819,8 @@ export namespace createPairSync {
|
|
|
819
819
|
* @example
|
|
820
820
|
* ```ts
|
|
821
821
|
* import { createClient, http } from 'viem'
|
|
822
|
-
* import { tempo } from '
|
|
823
|
-
* import { Actions } from 'tempo
|
|
822
|
+
* import { tempo } from 'viem/chains'
|
|
823
|
+
* import { Actions } from 'viem/tempo'
|
|
824
824
|
*
|
|
825
825
|
* const client = createClient({
|
|
826
826
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -894,8 +894,8 @@ export namespace getBalance {
|
|
|
894
894
|
* @example
|
|
895
895
|
* ```ts
|
|
896
896
|
* import { createClient, http, parseUnits } from 'viem'
|
|
897
|
-
* import { tempo } from '
|
|
898
|
-
* import { Actions } from 'tempo
|
|
897
|
+
* import { tempo } from 'viem/chains'
|
|
898
|
+
* import { Actions } from 'viem/tempo'
|
|
899
899
|
*
|
|
900
900
|
* const client = createClient({
|
|
901
901
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -965,8 +965,8 @@ export namespace getBuyQuote {
|
|
|
965
965
|
* @example
|
|
966
966
|
* ```ts
|
|
967
967
|
* import { createClient, http } from 'viem'
|
|
968
|
-
* import { tempo } from '
|
|
969
|
-
* import { Actions } from 'tempo
|
|
968
|
+
* import { tempo } from 'viem/chains'
|
|
969
|
+
* import { Actions } from 'viem/tempo'
|
|
970
970
|
*
|
|
971
971
|
* const client = createClient({
|
|
972
972
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1030,8 +1030,8 @@ export namespace getOrder {
|
|
|
1030
1030
|
* @example
|
|
1031
1031
|
* ```ts
|
|
1032
1032
|
* import { createClient, http } from 'viem'
|
|
1033
|
-
* import { tempo } from '
|
|
1034
|
-
* import { Actions } from 'tempo
|
|
1033
|
+
* import { tempo } from 'viem/chains'
|
|
1034
|
+
* import { Actions } from 'viem/tempo'
|
|
1035
1035
|
*
|
|
1036
1036
|
* const client = createClient({
|
|
1037
1037
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1099,8 +1099,8 @@ export namespace getOrderbook {
|
|
|
1099
1099
|
* @example
|
|
1100
1100
|
* ```ts
|
|
1101
1101
|
* import { createClient, http } from 'viem'
|
|
1102
|
-
* import { tempo } from '
|
|
1103
|
-
* import { Actions, Tick } from 'tempo
|
|
1102
|
+
* import { tempo } from 'viem/chains'
|
|
1103
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1104
1104
|
*
|
|
1105
1105
|
* const client = createClient({
|
|
1106
1106
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1174,8 +1174,8 @@ export namespace getTickLevel {
|
|
|
1174
1174
|
* @example
|
|
1175
1175
|
* ```ts
|
|
1176
1176
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1177
|
-
* import { tempo } from '
|
|
1178
|
-
* import { Actions } from 'tempo
|
|
1177
|
+
* import { tempo } from 'viem/chains'
|
|
1178
|
+
* import { Actions } from 'viem/tempo'
|
|
1179
1179
|
*
|
|
1180
1180
|
* const client = createClient({
|
|
1181
1181
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1246,8 +1246,8 @@ export namespace getSellQuote {
|
|
|
1246
1246
|
* ```ts
|
|
1247
1247
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1248
1248
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1249
|
-
* import { tempo } from '
|
|
1250
|
-
* import { Actions, Tick } from 'tempo
|
|
1249
|
+
* import { tempo } from 'viem/chains'
|
|
1250
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1251
1251
|
*
|
|
1252
1252
|
* const client = createClient({
|
|
1253
1253
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1328,8 +1328,8 @@ export namespace place {
|
|
|
1328
1328
|
* @example
|
|
1329
1329
|
* ```ts
|
|
1330
1330
|
* import { createClient, http, parseUnits, walletActions } from 'viem'
|
|
1331
|
-
* import { tempo } from '
|
|
1332
|
-
* import { Actions, Tick } from 'tempo
|
|
1331
|
+
* import { tempo } from 'viem/chains'
|
|
1332
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1333
1333
|
*
|
|
1334
1334
|
* const client = createClient({
|
|
1335
1335
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1387,8 +1387,8 @@ export namespace place {
|
|
|
1387
1387
|
* ```ts
|
|
1388
1388
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1389
1389
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1390
|
-
* import { tempo } from '
|
|
1391
|
-
* import { Actions, Tick } from 'tempo
|
|
1390
|
+
* import { tempo } from 'viem/chains'
|
|
1391
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1392
1392
|
*
|
|
1393
1393
|
* const client = createClient({
|
|
1394
1394
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1472,8 +1472,8 @@ export namespace placeFlip {
|
|
|
1472
1472
|
* @example
|
|
1473
1473
|
* ```ts
|
|
1474
1474
|
* import { createClient, http, parseUnits, walletActions } from 'viem'
|
|
1475
|
-
* import { tempo } from '
|
|
1476
|
-
* import { Actions, Tick } from 'tempo
|
|
1475
|
+
* import { tempo } from 'viem/chains'
|
|
1476
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1477
1477
|
*
|
|
1478
1478
|
* const client = createClient({
|
|
1479
1479
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1533,8 +1533,8 @@ export namespace placeFlip {
|
|
|
1533
1533
|
* ```ts
|
|
1534
1534
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1535
1535
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1536
|
-
* import { tempo } from '
|
|
1537
|
-
* import { Actions, Tick } from 'tempo
|
|
1536
|
+
* import { tempo } from 'viem/chains'
|
|
1537
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1538
1538
|
*
|
|
1539
1539
|
* const client = createClient({
|
|
1540
1540
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1604,8 +1604,8 @@ export namespace placeFlipSync {
|
|
|
1604
1604
|
* ```ts
|
|
1605
1605
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1606
1606
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1607
|
-
* import { tempo } from '
|
|
1608
|
-
* import { Actions, Tick } from 'tempo
|
|
1607
|
+
* import { tempo } from 'viem/chains'
|
|
1608
|
+
* import { Actions, Tick } from 'viem/tempo'
|
|
1609
1609
|
*
|
|
1610
1610
|
* const client = createClient({
|
|
1611
1611
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1674,8 +1674,8 @@ export namespace placeSync {
|
|
|
1674
1674
|
* ```ts
|
|
1675
1675
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1676
1676
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1677
|
-
* import { tempo } from '
|
|
1678
|
-
* import { Actions } from 'tempo
|
|
1677
|
+
* import { tempo } from 'viem/chains'
|
|
1678
|
+
* import { Actions } from 'viem/tempo'
|
|
1679
1679
|
*
|
|
1680
1680
|
* const client = createClient({
|
|
1681
1681
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1756,8 +1756,8 @@ export namespace sell {
|
|
|
1756
1756
|
* @example
|
|
1757
1757
|
* ```ts
|
|
1758
1758
|
* import { createClient, http, parseUnits, walletActions } from 'viem'
|
|
1759
|
-
* import { tempo } from '
|
|
1760
|
-
* import { Actions } from 'tempo
|
|
1759
|
+
* import { tempo } from 'viem/chains'
|
|
1760
|
+
* import { Actions } from 'viem/tempo'
|
|
1761
1761
|
*
|
|
1762
1762
|
* const client = createClient({
|
|
1763
1763
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1797,8 +1797,8 @@ export namespace sell {
|
|
|
1797
1797
|
* ```ts
|
|
1798
1798
|
* import { createClient, http, parseUnits } from 'viem'
|
|
1799
1799
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1800
|
-
* import { tempo } from '
|
|
1801
|
-
* import { Actions } from 'tempo
|
|
1800
|
+
* import { tempo } from 'viem/chains'
|
|
1801
|
+
* import { Actions } from 'viem/tempo'
|
|
1802
1802
|
*
|
|
1803
1803
|
* const client = createClient({
|
|
1804
1804
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1856,8 +1856,8 @@ export namespace sellSync {
|
|
|
1856
1856
|
* @example
|
|
1857
1857
|
* ```ts
|
|
1858
1858
|
* import { createClient, http } from 'viem'
|
|
1859
|
-
* import { tempo } from '
|
|
1860
|
-
* import { Actions } from 'tempo
|
|
1859
|
+
* import { tempo } from 'viem/chains'
|
|
1860
|
+
* import { Actions } from 'viem/tempo'
|
|
1861
1861
|
*
|
|
1862
1862
|
* const client = createClient({
|
|
1863
1863
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1939,8 +1939,8 @@ export declare namespace watchFlipOrderPlaced {
|
|
|
1939
1939
|
* @example
|
|
1940
1940
|
* ```ts
|
|
1941
1941
|
* import { createClient, http } from 'viem'
|
|
1942
|
-
* import { tempo } from '
|
|
1943
|
-
* import { Actions } from 'tempo
|
|
1942
|
+
* import { tempo } from 'viem/chains'
|
|
1943
|
+
* import { Actions } from 'viem/tempo'
|
|
1944
1944
|
*
|
|
1945
1945
|
* const client = createClient({
|
|
1946
1946
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2015,8 +2015,8 @@ export declare namespace watchOrderCancelled {
|
|
|
2015
2015
|
* @example
|
|
2016
2016
|
* ```ts
|
|
2017
2017
|
* import { createClient, http } from 'viem'
|
|
2018
|
-
* import { tempo } from '
|
|
2019
|
-
* import { Actions } from 'tempo
|
|
2018
|
+
* import { tempo } from 'viem/chains'
|
|
2019
|
+
* import { Actions } from 'viem/tempo'
|
|
2020
2020
|
*
|
|
2021
2021
|
* const client = createClient({
|
|
2022
2022
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2099,8 +2099,8 @@ export declare namespace watchOrderFilled {
|
|
|
2099
2099
|
* @example
|
|
2100
2100
|
* ```ts
|
|
2101
2101
|
* import { createClient, http } from 'viem'
|
|
2102
|
-
* import { tempo } from '
|
|
2103
|
-
* import { Actions } from 'tempo
|
|
2102
|
+
* import { tempo } from 'viem/chains'
|
|
2103
|
+
* import { Actions } from 'viem/tempo'
|
|
2104
2104
|
*
|
|
2105
2105
|
* const client = createClient({
|
|
2106
2106
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2181,8 +2181,8 @@ export declare namespace watchOrderPlaced {
|
|
|
2181
2181
|
* ```ts
|
|
2182
2182
|
* import { createClient, http } from 'viem'
|
|
2183
2183
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2184
|
-
* import { tempo } from '
|
|
2185
|
-
* import { Actions } from 'tempo
|
|
2184
|
+
* import { tempo } from 'viem/chains'
|
|
2185
|
+
* import { Actions } from 'viem/tempo'
|
|
2186
2186
|
*
|
|
2187
2187
|
* const client = createClient({
|
|
2188
2188
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2257,8 +2257,8 @@ export namespace withdraw {
|
|
|
2257
2257
|
* @example
|
|
2258
2258
|
* ```ts
|
|
2259
2259
|
* import { createClient, http, parseUnits, walletActions } from 'viem'
|
|
2260
|
-
* import { tempo } from '
|
|
2261
|
-
* import { Actions } from 'tempo
|
|
2260
|
+
* import { tempo } from 'viem/chains'
|
|
2261
|
+
* import { Actions } from 'viem/tempo'
|
|
2262
2262
|
*
|
|
2263
2263
|
* const client = createClient({
|
|
2264
2264
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2296,8 +2296,8 @@ export namespace withdraw {
|
|
|
2296
2296
|
* ```ts
|
|
2297
2297
|
* import { createClient, http } from 'viem'
|
|
2298
2298
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2299
|
-
* import { tempo } from '
|
|
2300
|
-
* import { Actions } from 'tempo
|
|
2299
|
+
* import { tempo } from 'viem/chains'
|
|
2300
|
+
* import { Actions } from 'viem/tempo'
|
|
2301
2301
|
*
|
|
2302
2302
|
* const client = createClient({
|
|
2303
2303
|
* account: privateKeyToAccount('0x...'),
|
package/tempo/actions/faucet.ts
CHANGED
|
@@ -15,8 +15,8 @@ import type { TransactionReceipt } from '../Transaction.js'
|
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
17
17
|
* import { createClient, http } from 'viem'
|
|
18
|
-
* import { tempo } from '
|
|
19
|
-
* import { Actions } from 'tempo
|
|
18
|
+
* import { tempo } from 'viem/chains'
|
|
19
|
+
* import { Actions } from 'viem/tempo'
|
|
20
20
|
*
|
|
21
21
|
* const client = createClient({
|
|
22
22
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
@@ -64,8 +64,8 @@ export declare namespace fund {
|
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
66
66
|
* import { createClient, http } from 'viem'
|
|
67
|
-
* import { tempo } from '
|
|
68
|
-
* import { Actions } from 'tempo
|
|
67
|
+
* import { tempo } from 'viem/chains'
|
|
68
|
+
* import { Actions } from 'viem/tempo'
|
|
69
69
|
*
|
|
70
70
|
* const client = createClient({
|
|
71
71
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|