tempo.ts 0.4.3 → 0.5.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.
Files changed (55) hide show
  1. package/README.md +2 -3
  2. package/dist/chains.d.ts +15 -1
  3. package/dist/chains.d.ts.map +1 -1
  4. package/dist/chains.js +2 -1
  5. package/dist/chains.js.map +1 -1
  6. package/dist/prool/Instance.d.ts +12 -4
  7. package/dist/prool/Instance.d.ts.map +1 -1
  8. package/dist/prool/Instance.js +34 -18
  9. package/dist/prool/Instance.js.map +1 -1
  10. package/dist/viem/Actions/faucet.d.ts +34 -1
  11. package/dist/viem/Actions/faucet.d.ts.map +1 -1
  12. package/dist/viem/Actions/faucet.js +35 -0
  13. package/dist/viem/Actions/faucet.js.map +1 -1
  14. package/dist/viem/Actions/token.d.ts +12 -12
  15. package/dist/viem/Actions/token.js +12 -12
  16. package/dist/viem/Chain.d.ts +6 -0
  17. package/dist/viem/Chain.d.ts.map +1 -1
  18. package/dist/viem/Decorator.d.ts +9 -9
  19. package/dist/viem/Transaction.d.ts +4 -1
  20. package/dist/viem/Transaction.d.ts.map +1 -1
  21. package/dist/viem/Transaction.js.map +1 -1
  22. package/dist/wagmi/Actions/token.d.ts +1 -1
  23. package/dist/wagmi/Actions/token.js +1 -1
  24. package/dist/wagmi/Connector.d.ts +4 -3
  25. package/dist/wagmi/Connector.d.ts.map +1 -1
  26. package/dist/wagmi/Connector.js +91 -5
  27. package/dist/wagmi/Connector.js.map +1 -1
  28. package/dist/wagmi/Hooks/token.d.ts +1 -1
  29. package/dist/wagmi/Hooks/token.js +1 -1
  30. package/package.json +1 -1
  31. package/src/chains.ts +2 -1
  32. package/src/ox/TransactionEnvelopeAA.test.ts +2 -663
  33. package/src/ox/e2e.test.ts +659 -0
  34. package/src/prool/Instance.ts +51 -23
  35. package/src/tsconfig.json +2 -2
  36. package/src/viem/Actions/amm.test.ts +68 -58
  37. package/src/viem/Actions/dex.test.ts +339 -283
  38. package/src/viem/Actions/faucet.ts +63 -1
  39. package/src/viem/Actions/fee.test.ts +34 -43
  40. package/src/viem/Actions/policy.test.ts +115 -81
  41. package/src/viem/Actions/reward.test.ts +92 -74
  42. package/src/viem/Actions/token.test.ts +691 -529
  43. package/src/viem/Actions/token.ts +12 -12
  44. package/src/viem/Decorator.ts +9 -9
  45. package/src/viem/Transaction.ts +4 -1
  46. package/src/viem/e2e.test.ts +451 -472
  47. package/src/wagmi/Actions/amm.test.ts +2 -5
  48. package/src/wagmi/Actions/dex.test.ts +2 -1
  49. package/src/wagmi/Actions/token.test.ts +2 -1
  50. package/src/wagmi/Actions/token.ts +1 -1
  51. package/src/wagmi/Connector.ts +125 -10
  52. package/src/wagmi/Hooks/amm.test.ts +2 -5
  53. package/src/wagmi/Hooks/dex.test.ts +2 -1
  54. package/src/wagmi/Hooks/token.test.ts +2 -1
  55. package/src/wagmi/Hooks/token.ts +1 -1
@@ -1471,7 +1471,7 @@ export declare namespace getMetadata {
1471
1471
  * })
1472
1472
  *
1473
1473
  * const adminRole = await Actions.token.getRoleAdmin(client, {
1474
- * role: 'minter',
1474
+ * role: 'issuer',
1475
1475
  * token: '0x...',
1476
1476
  * })
1477
1477
  * ```
@@ -1708,7 +1708,7 @@ export namespace grantRoles {
1708
1708
  * actions.token.grantRoles.call({
1709
1709
  * token: '0x20c0...babe',
1710
1710
  * to: '0x20c0...beef',
1711
- * role: 'minter',
1711
+ * role: 'issuer',
1712
1712
  * }),
1713
1713
  * ]
1714
1714
  * })
@@ -1765,7 +1765,7 @@ export namespace grantRoles {
1765
1765
  * const result = await Actions.token.grantRolesSync(client, {
1766
1766
  * token: '0x...',
1767
1767
  * to: '0x...',
1768
- * roles: ['minter'],
1768
+ * roles: ['issuer'],
1769
1769
  * })
1770
1770
  * ```
1771
1771
  *
@@ -2238,7 +2238,7 @@ export namespace pauseSync {
2238
2238
  *
2239
2239
  * const result = await Actions.token.renounceRoles(client, {
2240
2240
  * token: '0x...',
2241
- * roles: ['minter'],
2241
+ * roles: ['issuer'],
2242
2242
  * })
2243
2243
  * ```
2244
2244
  *
@@ -2323,7 +2323,7 @@ export namespace renounceRoles {
2323
2323
  * calls: [
2324
2324
  * actions.token.renounceRoles.call({
2325
2325
  * token: '0x20c0...babe',
2326
- * role: 'minter',
2326
+ * role: 'issuer',
2327
2327
  * }),
2328
2328
  * ]
2329
2329
  * })
@@ -2379,7 +2379,7 @@ export namespace renounceRoles {
2379
2379
  *
2380
2380
  * const result = await Actions.token.renounceRolesSync(client, {
2381
2381
  * token: '0x...',
2382
- * roles: ['minter'],
2382
+ * roles: ['issuer'],
2383
2383
  * })
2384
2384
  * ```
2385
2385
  *
@@ -2447,7 +2447,7 @@ export namespace renounceRolesSync {
2447
2447
  * const result = await Actions.token.revokeRoles(client, {
2448
2448
  * token: '0x...',
2449
2449
  * from: '0x...',
2450
- * roles: ['minter'],
2450
+ * roles: ['issuer'],
2451
2451
  * })
2452
2452
  * ```
2453
2453
  *
@@ -2535,7 +2535,7 @@ export namespace revokeRoles {
2535
2535
  * actions.token.revokeRoles.call({
2536
2536
  * token: '0x20c0...babe',
2537
2537
  * from: '0x20c0...beef',
2538
- * role: 'minter',
2538
+ * role: 'issuer',
2539
2539
  * }),
2540
2540
  * ]
2541
2541
  * })
@@ -2592,7 +2592,7 @@ export namespace revokeRoles {
2592
2592
  * const result = await Actions.token.revokeRolesSync(client, {
2593
2593
  * token: '0x...',
2594
2594
  * from: '0x...',
2595
- * roles: ['minter'],
2595
+ * roles: ['issuer'],
2596
2596
  * })
2597
2597
  * ```
2598
2598
  *
@@ -2855,7 +2855,7 @@ export namespace setSupplyCapSync {
2855
2855
  *
2856
2856
  * const result = await Actions.token.setRoleAdmin(client, {
2857
2857
  * token: '0x...',
2858
- * role: 'minter',
2858
+ * role: 'issuer',
2859
2859
  * adminRole: 'admin',
2860
2860
  * })
2861
2861
  * ```
@@ -2935,7 +2935,7 @@ export namespace setRoleAdmin {
2935
2935
  * calls: [
2936
2936
  * actions.token.setRoleAdmin.call({
2937
2937
  * token: '0x20c0...babe',
2938
- * role: 'minter',
2938
+ * role: 'issuer',
2939
2939
  * adminRole: 'admin',
2940
2940
  * }),
2941
2941
  * ]
@@ -2992,7 +2992,7 @@ export namespace setRoleAdmin {
2992
2992
  *
2993
2993
  * const result = await Actions.token.setRoleAdminSync(client, {
2994
2994
  * token: '0x...',
2995
- * role: 'minter',
2995
+ * role: 'issuer',
2996
2996
  * adminRole: 'admin',
2997
2997
  * })
2998
2998
  * ```
@@ -2185,7 +2185,7 @@ export type Decorator<
2185
2185
  * }).extend(tempoActions())
2186
2186
  *
2187
2187
  * const adminRole = await client.token.getRoleAdmin({
2188
- * role: 'minter',
2188
+ * role: 'issuer',
2189
2189
  * token: '0x...',
2190
2190
  * })
2191
2191
  * ```
@@ -2245,7 +2245,7 @@ export type Decorator<
2245
2245
  * const hash = await client.token.grantRoles({
2246
2246
  * token: '0x...',
2247
2247
  * to: '0x...',
2248
- * roles: ['minter'],
2248
+ * roles: ['issuer'],
2249
2249
  * })
2250
2250
  * ```
2251
2251
  *
@@ -2275,7 +2275,7 @@ export type Decorator<
2275
2275
  * const result = await client.token.grantRolesSync({
2276
2276
  * token: '0x...',
2277
2277
  * to: '0x...',
2278
- * roles: ['minter'],
2278
+ * roles: ['issuer'],
2279
2279
  * })
2280
2280
  * ```
2281
2281
  *
@@ -2419,7 +2419,7 @@ export type Decorator<
2419
2419
  *
2420
2420
  * const hash = await client.token.renounceRoles({
2421
2421
  * token: '0x...',
2422
- * roles: ['minter'],
2422
+ * roles: ['issuer'],
2423
2423
  * })
2424
2424
  * ```
2425
2425
  *
@@ -2448,7 +2448,7 @@ export type Decorator<
2448
2448
  *
2449
2449
  * const result = await client.token.renounceRolesSync({
2450
2450
  * token: '0x...',
2451
- * roles: ['minter'],
2451
+ * roles: ['issuer'],
2452
2452
  * })
2453
2453
  * ```
2454
2454
  *
@@ -2477,7 +2477,7 @@ export type Decorator<
2477
2477
  * const hash = await client.token.revokeRoles({
2478
2478
  * token: '0x...',
2479
2479
  * from: '0x...',
2480
- * roles: ['minter'],
2480
+ * roles: ['issuer'],
2481
2481
  * })
2482
2482
  * ```
2483
2483
  *
@@ -2507,7 +2507,7 @@ export type Decorator<
2507
2507
  * const result = await client.token.revokeRolesSync({
2508
2508
  * token: '0x...',
2509
2509
  * from: '0x...',
2510
- * roles: ['minter'],
2510
+ * roles: ['issuer'],
2511
2511
  * })
2512
2512
  * ```
2513
2513
  *
@@ -2593,7 +2593,7 @@ export type Decorator<
2593
2593
  *
2594
2594
  * const hash = await client.token.setRoleAdmin({
2595
2595
  * token: '0x...',
2596
- * role: 'minter',
2596
+ * role: 'issuer',
2597
2597
  * adminRole: 'admin',
2598
2598
  * })
2599
2599
  * ```
@@ -2623,7 +2623,7 @@ export type Decorator<
2623
2623
  *
2624
2624
  * const result = await client.token.setRoleAdminSync({
2625
2625
  * token: '0x...',
2626
- * role: 'minter',
2626
+ * role: 'issuer',
2627
2627
  * adminRole: 'admin',
2628
2628
  * })
2629
2629
  * ```
@@ -41,7 +41,9 @@ export type Transaction<
41
41
  >
42
42
  export type TransactionRpc<pending extends boolean = false> = OneOf<
43
43
  | viem_RpcTransaction<pending>
44
- | TransactionAA<Hex.Hex, Hex.Hex, pending, '0x76'>
44
+ | (Omit<TransactionAA<Hex.Hex, Hex.Hex, pending, '0x76'>, 'signature'> & {
45
+ signature: SignatureEnvelope.SignatureEnvelopeRpc
46
+ })
45
47
  >
46
48
 
47
49
  export type TransactionAA<
@@ -64,6 +66,7 @@ export type TransactionAA<
64
66
  feePayer?: Address | undefined
65
67
  feePayerSignature?: viem_Signature | undefined
66
68
  nonceKey?: quantity | undefined
69
+ signature: SignatureEnvelope.SignatureEnvelope
67
70
  type: type
68
71
  validBefore?: index | undefined
69
72
  validAfter?: index | undefined