tempo.ts 0.1.5 → 0.2.1
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/README.md +33 -2
- package/dist/chains.d.ts +509 -115
- package/dist/chains.d.ts.map +1 -1
- package/dist/chains.js +20 -9
- package/dist/chains.js.map +1 -1
- package/dist/ox/Order.d.ts +92 -0
- package/dist/ox/Order.d.ts.map +1 -0
- package/dist/ox/Order.js +88 -0
- package/dist/ox/Order.js.map +1 -0
- package/dist/ox/OrdersFilters.d.ts +72 -0
- package/dist/ox/OrdersFilters.d.ts.map +1 -0
- package/dist/ox/OrdersFilters.js +100 -0
- package/dist/ox/OrdersFilters.js.map +1 -0
- package/dist/ox/Pagination.d.ts +128 -0
- package/dist/ox/Pagination.d.ts.map +1 -0
- package/dist/ox/Pagination.js +78 -0
- package/dist/ox/Pagination.js.map +1 -0
- package/dist/ox/PoolId.d.ts +18 -0
- package/dist/ox/PoolId.d.ts.map +1 -0
- package/dist/ox/PoolId.js +13 -0
- package/dist/ox/PoolId.js.map +1 -0
- package/dist/ox/RpcSchema.d.ts +32 -0
- package/dist/ox/RpcSchema.d.ts.map +1 -0
- package/dist/ox/RpcSchema.js +2 -0
- package/dist/ox/RpcSchema.js.map +1 -0
- package/dist/ox/SignatureEnvelope.d.ts +1 -1
- package/dist/ox/SignatureEnvelope.d.ts.map +1 -1
- package/dist/ox/SignatureEnvelope.js.map +1 -1
- package/dist/{viem → ox}/Tick.d.ts +4 -0
- package/dist/ox/Tick.d.ts.map +1 -0
- package/dist/ox/Tick.js.map +1 -0
- package/dist/ox/Transaction.d.ts.map +1 -1
- package/dist/ox/Transaction.js +2 -1
- package/dist/ox/Transaction.js.map +1 -1
- package/dist/ox/TransactionEnvelopeAA.d.ts +6 -6
- package/dist/ox/TransactionEnvelopeAA.d.ts.map +1 -1
- package/dist/ox/TransactionEnvelopeAA.js +4 -2
- package/dist/ox/TransactionEnvelopeAA.js.map +1 -1
- package/dist/ox/TransactionRequest.d.ts +4 -0
- package/dist/ox/TransactionRequest.d.ts.map +1 -1
- package/dist/ox/TransactionRequest.js.map +1 -1
- package/dist/ox/index.d.ts +6 -0
- package/dist/ox/index.d.ts.map +1 -1
- package/dist/ox/index.js +6 -0
- package/dist/ox/index.js.map +1 -1
- package/dist/prool/Instance.d.ts.map +1 -1
- package/dist/prool/Instance.js +20 -4
- package/dist/prool/Instance.js.map +1 -1
- package/dist/viem/Abis.d.ts +1469 -1082
- package/dist/viem/Abis.d.ts.map +1 -1
- package/dist/viem/Abis.js +932 -671
- package/dist/viem/Abis.js.map +1 -1
- package/dist/viem/Account.d.ts +150 -0
- package/dist/viem/Account.d.ts.map +1 -0
- package/dist/viem/Account.js +221 -0
- package/dist/viem/Account.js.map +1 -0
- package/dist/viem/Actions/amm.d.ts +144 -161
- package/dist/viem/Actions/amm.d.ts.map +1 -1
- package/dist/viem/Actions/amm.js +109 -163
- package/dist/viem/Actions/amm.js.map +1 -1
- package/dist/viem/Actions/dex.d.ts +920 -664
- package/dist/viem/Actions/dex.d.ts.map +1 -1
- package/dist/viem/Actions/dex.js +129 -30
- package/dist/viem/Actions/dex.js.map +1 -1
- package/dist/viem/Actions/faucet.d.ts +34 -0
- package/dist/viem/Actions/faucet.d.ts.map +1 -0
- package/dist/viem/Actions/faucet.js +33 -0
- package/dist/viem/Actions/faucet.js.map +1 -0
- package/dist/viem/Actions/fee.d.ts +16 -30
- package/dist/viem/Actions/fee.d.ts.map +1 -1
- package/dist/viem/Actions/fee.js +13 -13
- package/dist/viem/Actions/fee.js.map +1 -1
- package/dist/viem/Actions/index.d.ts +2 -0
- package/dist/viem/Actions/index.d.ts.map +1 -1
- package/dist/viem/Actions/index.js +2 -0
- package/dist/viem/Actions/index.js.map +1 -1
- package/dist/viem/Actions/policy.d.ts +46 -46
- package/dist/viem/Actions/policy.js +46 -46
- package/dist/viem/Actions/reward.d.ts +3236 -0
- package/dist/viem/Actions/reward.d.ts.map +1 -0
- package/dist/viem/Actions/reward.js +725 -0
- package/dist/viem/Actions/reward.js.map +1 -0
- package/dist/viem/Actions/token.d.ts +4399 -2750
- package/dist/viem/Actions/token.d.ts.map +1 -1
- package/dist/viem/Actions/token.js +361 -482
- package/dist/viem/Actions/token.js.map +1 -1
- package/dist/viem/Addresses.d.ts +1 -2
- package/dist/viem/Addresses.d.ts.map +1 -1
- package/dist/viem/Addresses.js +1 -2
- package/dist/viem/Addresses.js.map +1 -1
- package/dist/viem/Chain.d.ts +38 -12
- package/dist/viem/Chain.d.ts.map +1 -1
- package/dist/viem/Chain.js +27 -18
- package/dist/viem/Chain.js.map +1 -1
- package/dist/viem/Decorator.d.ts +1009 -428
- package/dist/viem/Decorator.d.ts.map +1 -1
- package/dist/viem/Decorator.js +17 -5
- package/dist/viem/Decorator.js.map +1 -1
- package/dist/viem/Formatters.d.ts +8 -1
- package/dist/viem/Formatters.d.ts.map +1 -1
- package/dist/viem/Formatters.js +17 -0
- package/dist/viem/Formatters.js.map +1 -1
- package/dist/viem/P256.d.ts +2 -0
- package/dist/viem/P256.d.ts.map +1 -0
- package/dist/viem/P256.js +2 -0
- package/dist/viem/P256.js.map +1 -0
- package/dist/viem/Secp256k1.d.ts +2 -0
- package/dist/viem/Secp256k1.d.ts.map +1 -0
- package/dist/viem/Secp256k1.js +2 -0
- package/dist/viem/Secp256k1.js.map +1 -0
- package/dist/viem/TokenIds.d.ts +1 -2
- package/dist/viem/TokenIds.d.ts.map +1 -1
- package/dist/viem/TokenIds.js +1 -2
- package/dist/viem/TokenIds.js.map +1 -1
- package/dist/viem/Transaction.d.ts +1 -1
- package/dist/viem/Transaction.d.ts.map +1 -1
- package/dist/viem/Transaction.js +46 -5
- package/dist/viem/Transaction.js.map +1 -1
- package/dist/viem/WebAuthnP256.d.ts +79 -0
- package/dist/viem/WebAuthnP256.d.ts.map +1 -0
- package/dist/viem/WebAuthnP256.js +95 -0
- package/dist/viem/WebAuthnP256.js.map +1 -0
- package/dist/viem/WebCryptoP256.d.ts +2 -0
- package/dist/viem/WebCryptoP256.d.ts.map +1 -0
- package/dist/viem/WebCryptoP256.js +2 -0
- package/dist/viem/WebCryptoP256.js.map +1 -0
- package/dist/viem/index.d.ts +6 -3
- package/dist/viem/index.d.ts.map +1 -1
- package/dist/viem/index.js +6 -3
- package/dist/viem/index.js.map +1 -1
- package/dist/viem/internal/account.d.ts +24 -0
- package/dist/viem/internal/account.d.ts.map +1 -0
- package/dist/viem/internal/account.js +68 -0
- package/dist/viem/internal/account.js.map +1 -0
- package/dist/viem/internal/types.d.ts +10 -0
- package/dist/viem/internal/types.d.ts.map +1 -1
- package/dist/wagmi/Actions/amm.d.ts +428 -0
- package/dist/wagmi/Actions/amm.d.ts.map +1 -0
- package/dist/wagmi/Actions/amm.js +472 -0
- package/dist/wagmi/Actions/amm.js.map +1 -0
- package/dist/wagmi/Actions/dex.d.ts +908 -0
- package/dist/wagmi/Actions/dex.d.ts.map +1 -0
- package/dist/wagmi/Actions/dex.js +1023 -0
- package/dist/wagmi/Actions/dex.js.map +1 -0
- package/dist/wagmi/Actions/faucet.d.ts +35 -0
- package/dist/wagmi/Actions/faucet.d.ts.map +1 -0
- package/dist/wagmi/Actions/faucet.js +33 -0
- package/dist/wagmi/Actions/faucet.js.map +1 -0
- package/dist/wagmi/Actions/fee.d.ts +111 -0
- package/dist/wagmi/Actions/fee.d.ts.map +1 -0
- package/dist/wagmi/Actions/fee.js +126 -0
- package/dist/wagmi/Actions/fee.js.map +1 -0
- package/dist/wagmi/Actions/index.d.ts +7 -0
- package/dist/wagmi/Actions/index.d.ts.map +1 -0
- package/dist/wagmi/Actions/index.js +7 -0
- package/dist/wagmi/Actions/index.js.map +1 -0
- package/dist/wagmi/Actions/reward.d.ts +348 -0
- package/dist/wagmi/Actions/reward.d.ts.map +1 -0
- package/dist/wagmi/Actions/reward.js +388 -0
- package/dist/wagmi/Actions/reward.js.map +1 -0
- package/dist/wagmi/Actions/token.d.ts +1546 -0
- package/dist/wagmi/Actions/token.d.ts.map +1 -0
- package/dist/wagmi/Actions/token.js +1712 -0
- package/dist/wagmi/Actions/token.js.map +1 -0
- package/dist/wagmi/Connector.d.ts +81 -0
- package/dist/wagmi/Connector.d.ts.map +1 -0
- package/dist/wagmi/Connector.js +261 -0
- package/dist/wagmi/Connector.js.map +1 -0
- package/dist/wagmi/Hooks/amm.d.ts +421 -0
- package/dist/wagmi/Hooks/amm.d.ts.map +1 -0
- package/dist/wagmi/Hooks/amm.js +504 -0
- package/dist/wagmi/Hooks/amm.js.map +1 -0
- package/dist/wagmi/Hooks/dex.d.ts +816 -0
- package/dist/wagmi/Hooks/dex.d.ts.map +1 -0
- package/dist/wagmi/Hooks/dex.js +973 -0
- package/dist/wagmi/Hooks/dex.js.map +1 -0
- package/dist/wagmi/Hooks/faucet.d.ts +39 -0
- package/dist/wagmi/Hooks/faucet.d.ts.map +1 -0
- package/dist/wagmi/Hooks/faucet.js +40 -0
- package/dist/wagmi/Hooks/faucet.js.map +1 -0
- package/dist/wagmi/Hooks/fee.d.ts +97 -0
- package/dist/wagmi/Hooks/fee.d.ts.map +1 -0
- package/dist/wagmi/Hooks/fee.js +109 -0
- package/dist/wagmi/Hooks/fee.js.map +1 -0
- package/dist/wagmi/Hooks/index.d.ts +7 -0
- package/dist/wagmi/Hooks/index.d.ts.map +1 -0
- package/dist/wagmi/Hooks/index.js +7 -0
- package/dist/wagmi/Hooks/index.js.map +1 -0
- package/dist/wagmi/Hooks/reward.d.ts +307 -0
- package/dist/wagmi/Hooks/reward.d.ts.map +1 -0
- package/dist/wagmi/Hooks/reward.js +349 -0
- package/dist/wagmi/Hooks/reward.js.map +1 -0
- package/dist/wagmi/Hooks/token.d.ts +1388 -0
- package/dist/wagmi/Hooks/token.d.ts.map +1 -0
- package/dist/wagmi/Hooks/token.js +1657 -0
- package/dist/wagmi/Hooks/token.js.map +1 -0
- package/dist/wagmi/index.d.ts +4 -0
- package/dist/wagmi/index.d.ts.map +1 -0
- package/dist/wagmi/index.js +4 -0
- package/dist/wagmi/index.js.map +1 -0
- package/package.json +54 -10
- package/src/chains.ts +21 -9
- package/src/ox/Order.test.ts +78 -0
- package/src/ox/Order.ts +125 -0
- package/src/ox/OrdersFilters.test.ts +182 -0
- package/src/ox/OrdersFilters.ts +125 -0
- package/src/ox/Pagination.test.ts +162 -0
- package/src/ox/Pagination.ts +164 -0
- package/src/ox/PoolId.test.ts +33 -0
- package/src/ox/PoolId.ts +27 -0
- package/src/ox/RpcSchema.ts +35 -0
- package/src/ox/SignatureEnvelope.ts +3 -1
- package/src/{viem → ox}/Tick.test.ts +1 -1
- package/src/{viem → ox}/Tick.ts +5 -0
- package/src/ox/Transaction.test.ts +1 -1
- package/src/ox/Transaction.ts +2 -1
- package/src/ox/TransactionEnvelopeAA.test.ts +239 -96
- package/src/ox/TransactionEnvelopeAA.ts +9 -7
- package/src/ox/TransactionRequest.ts +4 -0
- package/src/ox/index.ts +6 -0
- package/src/prool/Instance.ts +51 -37
- package/src/prool/internal/chain.json +104 -52
- package/src/tsconfig.json +9 -0
- package/src/viem/Abis.ts +972 -710
- package/src/viem/Account.ts +279 -0
- package/src/viem/Actions/__snapshots__/dex.test.ts.snap +850 -0
- package/src/viem/Actions/amm.test.ts +173 -169
- package/src/viem/Actions/amm.ts +131 -203
- package/src/viem/Actions/dex.test.ts +563 -484
- package/src/viem/Actions/dex.ts +203 -30
- package/src/viem/Actions/faucet.ts +50 -0
- package/src/viem/Actions/fee.test.ts +23 -34
- package/src/viem/Actions/fee.ts +20 -13
- package/src/viem/Actions/index.ts +2 -0
- package/src/viem/Actions/policy.test.ts +19 -33
- package/src/viem/Actions/policy.ts +46 -46
- package/src/viem/Actions/reward.test.ts +457 -0
- package/src/viem/Actions/reward.ts +999 -0
- package/src/viem/Actions/token.test.ts +453 -287
- package/src/viem/Actions/token.ts +605 -693
- package/src/viem/Addresses.ts +1 -2
- package/src/viem/Chain.bench-d.ts +12 -0
- package/src/viem/Chain.ts +70 -20
- package/src/viem/Decorator.bench-d.ts +1 -1
- package/src/viem/Decorator.test.ts +3 -1
- package/src/viem/Decorator.ts +1049 -442
- package/src/viem/Formatters.ts +31 -5
- package/src/viem/P256.ts +1 -0
- package/src/viem/Secp256k1.ts +1 -0
- package/src/viem/TokenIds.ts +1 -2
- package/src/viem/Transaction.ts +53 -7
- package/src/viem/WebAuthnP256.ts +140 -0
- package/src/viem/WebCryptoP256.ts +1 -0
- package/src/viem/e2e.test.ts +1126 -297
- package/src/viem/index.ts +6 -3
- package/src/viem/internal/account.ts +107 -0
- package/src/viem/internal/types.ts +9 -0
- package/src/wagmi/Actions/__snapshots__/dex.test.ts.snap +310 -0
- package/src/wagmi/Actions/amm.test.ts +198 -0
- package/src/wagmi/Actions/amm.ts +691 -0
- package/src/wagmi/Actions/dex.test.ts +1507 -0
- package/src/wagmi/Actions/dex.ts +1640 -0
- package/src/wagmi/Actions/faucet.ts +46 -0
- package/src/wagmi/Actions/fee.test.ts +63 -0
- package/src/wagmi/Actions/fee.ts +208 -0
- package/src/wagmi/Actions/index.ts +6 -0
- package/src/wagmi/Actions/reward.test.ts +210 -0
- package/src/wagmi/Actions/reward.ts +632 -0
- package/src/wagmi/Actions/token.test.ts +1308 -0
- package/src/wagmi/Actions/token.ts +2613 -0
- package/src/wagmi/Connector.test.ts +53 -0
- package/src/wagmi/Connector.ts +390 -0
- package/src/wagmi/Hooks/__snapshots__/dex.test.ts.snap +457 -0
- package/src/wagmi/Hooks/amm.test.ts +424 -0
- package/src/wagmi/Hooks/amm.ts +806 -0
- package/src/wagmi/Hooks/dex.test.ts +1017 -0
- package/src/wagmi/Hooks/dex.ts +1685 -0
- package/src/wagmi/Hooks/faucet.ts +76 -0
- package/src/wagmi/Hooks/fee.test.ts +166 -0
- package/src/wagmi/Hooks/fee.ts +206 -0
- package/src/wagmi/Hooks/index.ts +6 -0
- package/src/wagmi/Hooks/reward.test.ts +219 -0
- package/src/wagmi/Hooks/reward.ts +672 -0
- package/src/wagmi/Hooks/token.test.ts +1670 -0
- package/src/wagmi/Hooks/token.ts +2906 -0
- package/src/wagmi/index.ts +3 -0
- package/src/wagmi/internal/types.ts +16 -0
- package/dist/viem/Client.d.ts +0 -27
- package/dist/viem/Client.d.ts.map +0 -1
- package/dist/viem/Client.js +0 -28
- package/dist/viem/Client.js.map +0 -1
- package/dist/viem/Tick.d.ts.map +0 -1
- package/dist/viem/Tick.js.map +0 -1
- package/src/viem/Client.bench-d.ts +0 -8
- package/src/viem/Client.test.ts +0 -178
- package/src/viem/Client.ts +0 -91
- /package/dist/{viem → ox}/Tick.js +0 -0
|
@@ -15,16 +15,16 @@ const policyTypeMap = {
|
|
|
15
15
|
* ```ts
|
|
16
16
|
* import { createClient, http } from 'viem'
|
|
17
17
|
* import { tempo } from 'tempo.ts/chains'
|
|
18
|
-
* import
|
|
18
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
19
19
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
20
20
|
*
|
|
21
21
|
* const client = createClient({
|
|
22
22
|
* account: privateKeyToAccount('0x...'),
|
|
23
|
-
* chain: tempo
|
|
23
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
24
24
|
* transport: http(),
|
|
25
25
|
* })
|
|
26
26
|
*
|
|
27
|
-
* const { hash, policyId } = await
|
|
27
|
+
* const { hash, policyId } = await Actions.policy.create(client, {
|
|
28
28
|
* admin: '0x...',
|
|
29
29
|
* type: 'whitelist',
|
|
30
30
|
* })
|
|
@@ -65,10 +65,10 @@ export async function create(client, parameters) {
|
|
|
65
65
|
* ```ts
|
|
66
66
|
* import { createClient, http, walletActions } from 'viem'
|
|
67
67
|
* import { tempo } from 'tempo.ts/chains'
|
|
68
|
-
* import
|
|
68
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
69
69
|
*
|
|
70
70
|
* const client = createClient({
|
|
71
|
-
* chain: tempo
|
|
71
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
72
72
|
* transport: http(),
|
|
73
73
|
* }).extend(walletActions)
|
|
74
74
|
*
|
|
@@ -136,16 +136,16 @@ export async function create(client, parameters) {
|
|
|
136
136
|
* ```ts
|
|
137
137
|
* import { createClient, http } from 'viem'
|
|
138
138
|
* import { tempo } from 'tempo.ts/chains'
|
|
139
|
-
* import
|
|
139
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
140
140
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
141
141
|
*
|
|
142
142
|
* const client = createClient({
|
|
143
143
|
* account: privateKeyToAccount('0x...'),
|
|
144
|
-
* chain: tempo
|
|
144
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
145
145
|
* transport: http(),
|
|
146
146
|
* })
|
|
147
147
|
*
|
|
148
|
-
* const result = await
|
|
148
|
+
* const result = await Actions.policy.createSync(client, {
|
|
149
149
|
* admin: '0x...',
|
|
150
150
|
* type: 'whitelist',
|
|
151
151
|
* })
|
|
@@ -174,16 +174,16 @@ export async function createSync(client, parameters) {
|
|
|
174
174
|
* ```ts
|
|
175
175
|
* import { createClient, http } from 'viem'
|
|
176
176
|
* import { tempo } from 'tempo.ts/chains'
|
|
177
|
-
* import
|
|
177
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
178
178
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
179
179
|
*
|
|
180
180
|
* const client = createClient({
|
|
181
181
|
* account: privateKeyToAccount('0x...'),
|
|
182
|
-
* chain: tempo
|
|
182
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
183
183
|
* transport: http(),
|
|
184
184
|
* })
|
|
185
185
|
*
|
|
186
|
-
* const hash = await
|
|
186
|
+
* const hash = await Actions.policy.setAdmin(client, {
|
|
187
187
|
* policyId: 2n,
|
|
188
188
|
* admin: '0x...',
|
|
189
189
|
* })
|
|
@@ -219,10 +219,10 @@ export async function setAdmin(client, parameters) {
|
|
|
219
219
|
* ```ts
|
|
220
220
|
* import { createClient, http, walletActions } from 'viem'
|
|
221
221
|
* import { tempo } from 'tempo.ts/chains'
|
|
222
|
-
* import
|
|
222
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
223
223
|
*
|
|
224
224
|
* const client = createClient({
|
|
225
|
-
* chain: tempo
|
|
225
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
226
226
|
* transport: http(),
|
|
227
227
|
* }).extend(walletActions)
|
|
228
228
|
*
|
|
@@ -279,16 +279,16 @@ export async function setAdmin(client, parameters) {
|
|
|
279
279
|
* ```ts
|
|
280
280
|
* import { createClient, http } from 'viem'
|
|
281
281
|
* import { tempo } from 'tempo.ts/chains'
|
|
282
|
-
* import
|
|
282
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
283
283
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
284
284
|
*
|
|
285
285
|
* const client = createClient({
|
|
286
286
|
* account: privateKeyToAccount('0x...'),
|
|
287
|
-
* chain: tempo
|
|
287
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
288
288
|
* transport: http(),
|
|
289
289
|
* })
|
|
290
290
|
*
|
|
291
|
-
* const result = await
|
|
291
|
+
* const result = await Actions.policy.setAdminSync(client, {
|
|
292
292
|
* policyId: 2n,
|
|
293
293
|
* admin: '0x...',
|
|
294
294
|
* })
|
|
@@ -317,16 +317,16 @@ export async function setAdminSync(client, parameters) {
|
|
|
317
317
|
* ```ts
|
|
318
318
|
* import { createClient, http } from 'viem'
|
|
319
319
|
* import { tempo } from 'tempo.ts/chains'
|
|
320
|
-
* import
|
|
320
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
321
321
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
322
322
|
*
|
|
323
323
|
* const client = createClient({
|
|
324
324
|
* account: privateKeyToAccount('0x...'),
|
|
325
|
-
* chain: tempo
|
|
325
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
326
326
|
* transport: http(),
|
|
327
327
|
* })
|
|
328
328
|
*
|
|
329
|
-
* const hash = await
|
|
329
|
+
* const hash = await Actions.policy.modifyWhitelist(client, {
|
|
330
330
|
* policyId: 2n,
|
|
331
331
|
* account: '0x...',
|
|
332
332
|
* allowed: true,
|
|
@@ -367,10 +367,10 @@ export async function modifyWhitelist(client, parameters) {
|
|
|
367
367
|
* ```ts
|
|
368
368
|
* import { createClient, http, walletActions } from 'viem'
|
|
369
369
|
* import { tempo } from 'tempo.ts/chains'
|
|
370
|
-
* import
|
|
370
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
371
371
|
*
|
|
372
372
|
* const client = createClient({
|
|
373
|
-
* chain: tempo
|
|
373
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
374
374
|
* transport: http(),
|
|
375
375
|
* }).extend(walletActions)
|
|
376
376
|
*
|
|
@@ -429,16 +429,16 @@ export async function modifyWhitelist(client, parameters) {
|
|
|
429
429
|
* ```ts
|
|
430
430
|
* import { createClient, http } from 'viem'
|
|
431
431
|
* import { tempo } from 'tempo.ts/chains'
|
|
432
|
-
* import
|
|
432
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
433
433
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
434
434
|
*
|
|
435
435
|
* const client = createClient({
|
|
436
436
|
* account: privateKeyToAccount('0x...'),
|
|
437
|
-
* chain: tempo
|
|
437
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
438
438
|
* transport: http(),
|
|
439
439
|
* })
|
|
440
440
|
*
|
|
441
|
-
* const result = await
|
|
441
|
+
* const result = await Actions.policy.modifyWhitelistSync(client, {
|
|
442
442
|
* policyId: 2n,
|
|
443
443
|
* account: '0x...',
|
|
444
444
|
* allowed: true,
|
|
@@ -468,16 +468,16 @@ export async function modifyWhitelistSync(client, parameters) {
|
|
|
468
468
|
* ```ts
|
|
469
469
|
* import { createClient, http } from 'viem'
|
|
470
470
|
* import { tempo } from 'tempo.ts/chains'
|
|
471
|
-
* import
|
|
471
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
472
472
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
473
473
|
*
|
|
474
474
|
* const client = createClient({
|
|
475
475
|
* account: privateKeyToAccount('0x...'),
|
|
476
|
-
* chain: tempo
|
|
476
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
477
477
|
* transport: http(),
|
|
478
478
|
* })
|
|
479
479
|
*
|
|
480
|
-
* const hash = await
|
|
480
|
+
* const hash = await Actions.policy.modifyBlacklist(client, {
|
|
481
481
|
* policyId: 2n,
|
|
482
482
|
* account: '0x...',
|
|
483
483
|
* restricted: true,
|
|
@@ -518,10 +518,10 @@ export async function modifyBlacklist(client, parameters) {
|
|
|
518
518
|
* ```ts
|
|
519
519
|
* import { createClient, http, walletActions } from 'viem'
|
|
520
520
|
* import { tempo } from 'tempo.ts/chains'
|
|
521
|
-
* import
|
|
521
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
522
522
|
*
|
|
523
523
|
* const client = createClient({
|
|
524
|
-
* chain: tempo
|
|
524
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
525
525
|
* transport: http(),
|
|
526
526
|
* }).extend(walletActions)
|
|
527
527
|
*
|
|
@@ -580,16 +580,16 @@ export async function modifyBlacklist(client, parameters) {
|
|
|
580
580
|
* ```ts
|
|
581
581
|
* import { createClient, http } from 'viem'
|
|
582
582
|
* import { tempo } from 'tempo.ts/chains'
|
|
583
|
-
* import
|
|
583
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
584
584
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
585
585
|
*
|
|
586
586
|
* const client = createClient({
|
|
587
587
|
* account: privateKeyToAccount('0x...'),
|
|
588
|
-
* chain: tempo
|
|
588
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
589
589
|
* transport: http(),
|
|
590
590
|
* })
|
|
591
591
|
*
|
|
592
|
-
* const result = await
|
|
592
|
+
* const result = await Actions.policy.modifyBlacklistSync(client, {
|
|
593
593
|
* policyId: 2n,
|
|
594
594
|
* account: '0x...',
|
|
595
595
|
* restricted: true,
|
|
@@ -619,14 +619,14 @@ export async function modifyBlacklistSync(client, parameters) {
|
|
|
619
619
|
* ```ts
|
|
620
620
|
* import { createClient, http } from 'viem'
|
|
621
621
|
* import { tempo } from 'tempo.ts/chains'
|
|
622
|
-
* import
|
|
622
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
623
623
|
*
|
|
624
624
|
* const client = createClient({
|
|
625
|
-
* chain: tempo
|
|
625
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
626
626
|
* transport: http(),
|
|
627
627
|
* })
|
|
628
628
|
*
|
|
629
|
-
* const data = await
|
|
629
|
+
* const data = await Actions.policy.getData(client, {
|
|
630
630
|
* policyId: 2n,
|
|
631
631
|
* })
|
|
632
632
|
* ```
|
|
@@ -671,14 +671,14 @@ export async function getData(client, parameters) {
|
|
|
671
671
|
* ```ts
|
|
672
672
|
* import { createClient, http } from 'viem'
|
|
673
673
|
* import { tempo } from 'tempo.ts/chains'
|
|
674
|
-
* import
|
|
674
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
675
675
|
*
|
|
676
676
|
* const client = createClient({
|
|
677
|
-
* chain: tempo
|
|
677
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
678
678
|
* transport: http(),
|
|
679
679
|
* })
|
|
680
680
|
*
|
|
681
|
-
* const authorized = await
|
|
681
|
+
* const authorized = await Actions.policy.isAuthorized(client, {
|
|
682
682
|
* policyId: 2n,
|
|
683
683
|
* user: '0x...',
|
|
684
684
|
* })
|
|
@@ -720,10 +720,10 @@ export async function isAuthorized(client, parameters) {
|
|
|
720
720
|
* ```ts
|
|
721
721
|
* import { createClient, http } from 'viem'
|
|
722
722
|
* import { tempo } from 'tempo.ts/chains'
|
|
723
|
-
* import
|
|
723
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
724
724
|
*
|
|
725
725
|
* const client = createClient({
|
|
726
|
-
* chain: tempo
|
|
726
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
727
727
|
* transport: http(),
|
|
728
728
|
* })
|
|
729
729
|
*
|
|
@@ -762,10 +762,10 @@ export function watchCreate(client, parameters) {
|
|
|
762
762
|
* ```ts
|
|
763
763
|
* import { createClient, http } from 'viem'
|
|
764
764
|
* import { tempo } from 'tempo.ts/chains'
|
|
765
|
-
* import
|
|
765
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
766
766
|
*
|
|
767
767
|
* const client = createClient({
|
|
768
|
-
* chain: tempo
|
|
768
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
769
769
|
* transport: http(),
|
|
770
770
|
* })
|
|
771
771
|
*
|
|
@@ -801,10 +801,10 @@ export function watchAdminUpdated(client, parameters) {
|
|
|
801
801
|
* ```ts
|
|
802
802
|
* import { createClient, http } from 'viem'
|
|
803
803
|
* import { tempo } from 'tempo.ts/chains'
|
|
804
|
-
* import
|
|
804
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
805
805
|
*
|
|
806
806
|
* const client = createClient({
|
|
807
|
-
* chain: tempo
|
|
807
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
808
808
|
* transport: http(),
|
|
809
809
|
* })
|
|
810
810
|
*
|
|
@@ -840,10 +840,10 @@ export function watchWhitelistUpdated(client, parameters) {
|
|
|
840
840
|
* ```ts
|
|
841
841
|
* import { createClient, http } from 'viem'
|
|
842
842
|
* import { tempo } from 'tempo.ts/chains'
|
|
843
|
-
* import
|
|
843
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
844
844
|
*
|
|
845
845
|
* const client = createClient({
|
|
846
|
-
* chain: tempo
|
|
846
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
847
847
|
* transport: http(),
|
|
848
848
|
* })
|
|
849
849
|
*
|