viem 2.43.5 → 2.44.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 (227) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js +11 -1
  3. package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -1
  4. package/_cjs/actions/wallet/sendTransactionSync.js +1 -0
  5. package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
  6. package/_cjs/chains/definitions/codex.js +47 -0
  7. package/_cjs/chains/definitions/codex.js.map +1 -0
  8. package/_cjs/chains/definitions/codexTestnet.js +47 -0
  9. package/_cjs/chains/definitions/codexTestnet.js.map +1 -0
  10. package/_cjs/chains/definitions/paseoPassetHub.js +26 -0
  11. package/_cjs/chains/definitions/paseoPassetHub.js.map +1 -0
  12. package/_cjs/chains/definitions/{tempoTestnet.js → tempoAndantino.js} +5 -5
  13. package/_cjs/chains/definitions/tempoAndantino.js.map +1 -0
  14. package/_cjs/chains/definitions/tempoDevnet.js +6 -0
  15. package/_cjs/chains/definitions/tempoDevnet.js.map +1 -1
  16. package/_cjs/chains/definitions/tempoModerato.js +28 -0
  17. package/_cjs/chains/definitions/tempoModerato.js.map +1 -0
  18. package/_cjs/chains/index.js +23 -14
  19. package/_cjs/chains/index.js.map +1 -1
  20. package/_cjs/errors/version.js +1 -1
  21. package/_cjs/index.js.map +1 -1
  22. package/_cjs/tempo/Abis.js +610 -752
  23. package/_cjs/tempo/Abis.js.map +1 -1
  24. package/_cjs/tempo/Addresses.js +2 -2
  25. package/_cjs/tempo/Addresses.js.map +1 -1
  26. package/_cjs/tempo/Decorator.js +5 -5
  27. package/_cjs/tempo/Decorator.js.map +1 -1
  28. package/_cjs/tempo/actions/amm.js +4 -38
  29. package/_cjs/tempo/actions/amm.js.map +1 -1
  30. package/_cjs/tempo/actions/dex.js +98 -46
  31. package/_cjs/tempo/actions/dex.js.map +1 -1
  32. package/_cjs/tempo/actions/nonce.js +0 -35
  33. package/_cjs/tempo/actions/nonce.js.map +1 -1
  34. package/_cjs/tempo/actions/reward.js +81 -62
  35. package/_cjs/tempo/actions/reward.js.map +1 -1
  36. package/_cjs/tempo/actions/token.js +11 -2
  37. package/_cjs/tempo/actions/token.js.map +1 -1
  38. package/_cjs/tempo/chainConfig.js +5 -10
  39. package/_cjs/tempo/chainConfig.js.map +1 -1
  40. package/_cjs/tempo/index.js +2 -1
  41. package/_cjs/tempo/index.js.map +1 -1
  42. package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js +16 -2
  43. package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -1
  44. package/_esm/actions/wallet/sendTransactionSync.js +1 -0
  45. package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
  46. package/_esm/chains/definitions/codex.js +44 -0
  47. package/_esm/chains/definitions/codex.js.map +1 -0
  48. package/_esm/chains/definitions/codexTestnet.js +44 -0
  49. package/_esm/chains/definitions/codexTestnet.js.map +1 -0
  50. package/_esm/chains/definitions/paseoPassetHub.js +23 -0
  51. package/_esm/chains/definitions/paseoPassetHub.js.map +1 -0
  52. package/_esm/chains/definitions/{tempoTestnet.js → tempoAndantino.js} +4 -4
  53. package/_esm/chains/definitions/tempoAndantino.js.map +1 -0
  54. package/_esm/chains/definitions/tempoDevnet.js +6 -0
  55. package/_esm/chains/definitions/tempoDevnet.js.map +1 -1
  56. package/_esm/chains/definitions/tempoModerato.js +25 -0
  57. package/_esm/chains/definitions/tempoModerato.js.map +1 -0
  58. package/_esm/chains/index.js +9 -1
  59. package/_esm/chains/index.js.map +1 -1
  60. package/_esm/errors/version.js +1 -1
  61. package/_esm/index.js.map +1 -1
  62. package/_esm/tempo/Abis.js +609 -751
  63. package/_esm/tempo/Abis.js.map +1 -1
  64. package/_esm/tempo/Addresses.js +1 -1
  65. package/_esm/tempo/Addresses.js.map +1 -1
  66. package/_esm/tempo/Decorator.js +5 -5
  67. package/_esm/tempo/Decorator.js.map +1 -1
  68. package/_esm/tempo/actions/amm.js +4 -62
  69. package/_esm/tempo/actions/amm.js.map +1 -1
  70. package/_esm/tempo/actions/dex.js +192 -48
  71. package/_esm/tempo/actions/dex.js.map +1 -1
  72. package/_esm/tempo/actions/nonce.js +0 -94
  73. package/_esm/tempo/actions/nonce.js.map +1 -1
  74. package/_esm/tempo/actions/reward.js +227 -189
  75. package/_esm/tempo/actions/reward.js.map +1 -1
  76. package/_esm/tempo/actions/token.js +11 -2
  77. package/_esm/tempo/actions/token.js.map +1 -1
  78. package/_esm/tempo/chainConfig.js +2 -7
  79. package/_esm/tempo/chainConfig.js.map +1 -1
  80. package/_esm/tempo/index.js +1 -1
  81. package/_esm/tempo/index.js.map +1 -1
  82. package/_types/account-abstraction/utils/userOperation/toPackedUserOperation.d.ts.map +1 -1
  83. package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
  84. package/_types/celo/chainConfig.d.ts +22 -22
  85. package/_types/celo/formatters.d.ts +11 -11
  86. package/_types/chains/definitions/abstract.d.ts +14 -14
  87. package/_types/chains/definitions/abstractTestnet.d.ts +14 -14
  88. package/_types/chains/definitions/ancient8.d.ts +3 -3
  89. package/_types/chains/definitions/ancient8Sepolia.d.ts +3 -3
  90. package/_types/chains/definitions/base.d.ts +6 -6
  91. package/_types/chains/definitions/baseGoerli.d.ts +3 -3
  92. package/_types/chains/definitions/baseSepolia.d.ts +6 -6
  93. package/_types/chains/definitions/blast.d.ts +3 -3
  94. package/_types/chains/definitions/bob.d.ts +3 -3
  95. package/_types/chains/definitions/bobSepolia.d.ts +3 -3
  96. package/_types/chains/definitions/celo.d.ts +22 -22
  97. package/_types/chains/definitions/celoAlfajores.d.ts +22 -22
  98. package/_types/chains/definitions/celoSepolia.d.ts +22 -22
  99. package/_types/chains/definitions/codex.d.ts +310 -0
  100. package/_types/chains/definitions/codex.d.ts.map +1 -0
  101. package/_types/chains/definitions/codexTestnet.d.ts +310 -0
  102. package/_types/chains/definitions/codexTestnet.d.ts.map +1 -0
  103. package/_types/chains/definitions/dchain.d.ts +3 -3
  104. package/_types/chains/definitions/dchainTestnet.d.ts +3 -3
  105. package/_types/chains/definitions/elysiumTestnet.d.ts +3 -3
  106. package/_types/chains/definitions/fraxtal.d.ts +3 -3
  107. package/_types/chains/definitions/fraxtalTestnet.d.ts +3 -3
  108. package/_types/chains/definitions/funkiMainnet.d.ts +3 -3
  109. package/_types/chains/definitions/funkiSepolia.d.ts +3 -3
  110. package/_types/chains/definitions/garnet.d.ts +3 -3
  111. package/_types/chains/definitions/giwaSepolia.d.ts +6 -6
  112. package/_types/chains/definitions/ink.d.ts +3 -3
  113. package/_types/chains/definitions/inkSepolia.d.ts +3 -3
  114. package/_types/chains/definitions/lisk.d.ts +3 -3
  115. package/_types/chains/definitions/liskSepolia.d.ts +3 -3
  116. package/_types/chains/definitions/metalL2.d.ts +3 -3
  117. package/_types/chains/definitions/mode.d.ts +3 -3
  118. package/_types/chains/definitions/modeTestnet.d.ts +3 -3
  119. package/_types/chains/definitions/optimism.d.ts +3 -3
  120. package/_types/chains/definitions/optimismGoerli.d.ts +3 -3
  121. package/_types/chains/definitions/optimismSepolia.d.ts +3 -3
  122. package/_types/chains/definitions/paseoPassetHub.d.ts +48 -0
  123. package/_types/chains/definitions/paseoPassetHub.d.ts.map +1 -0
  124. package/_types/chains/definitions/pgn.d.ts +3 -3
  125. package/_types/chains/definitions/pgnTestnet.d.ts +3 -3
  126. package/_types/chains/definitions/playfiAlbireo.d.ts +14 -14
  127. package/_types/chains/definitions/pyrope.d.ts +3 -3
  128. package/_types/chains/definitions/redstone.d.ts +3 -3
  129. package/_types/chains/definitions/rss3.d.ts +3 -3
  130. package/_types/chains/definitions/rss3Sepolia.d.ts +3 -3
  131. package/_types/chains/definitions/shape.d.ts +3 -3
  132. package/_types/chains/definitions/shapeSepolia.d.ts +3 -3
  133. package/_types/chains/definitions/snax.d.ts +3 -3
  134. package/_types/chains/definitions/snaxTestnet.d.ts +3 -3
  135. package/_types/chains/definitions/soneium.d.ts +3 -3
  136. package/_types/chains/definitions/soneiumMinato.d.ts +3 -3
  137. package/_types/chains/definitions/sophon.d.ts +14 -14
  138. package/_types/chains/definitions/sophonTestnet.d.ts +14 -14
  139. package/_types/chains/definitions/superseed.d.ts +3 -3
  140. package/_types/chains/definitions/superseedSepolia.d.ts +3 -3
  141. package/_types/chains/definitions/swellchain.d.ts +3 -3
  142. package/_types/chains/definitions/swellchainTestnet.d.ts +3 -3
  143. package/_types/chains/definitions/{tempoTestnet.d.ts → tempoAndantino.d.ts} +36 -40
  144. package/_types/chains/definitions/{tempoTestnet.d.ts.map → tempoAndantino.d.ts.map} +1 -1
  145. package/_types/chains/definitions/tempoDevnet.d.ts +41 -45
  146. package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -1
  147. package/_types/chains/definitions/tempoLocalnet.d.ts +30 -34
  148. package/_types/chains/definitions/tempoLocalnet.d.ts.map +1 -1
  149. package/_types/chains/definitions/tempoModerato.d.ts +912 -0
  150. package/_types/chains/definitions/tempoModerato.d.ts.map +1 -0
  151. package/_types/chains/definitions/treasure.d.ts +14 -14
  152. package/_types/chains/definitions/treasureTopaz.d.ts +14 -14
  153. package/_types/chains/definitions/unichain.d.ts +3 -3
  154. package/_types/chains/definitions/unichainSepolia.d.ts +3 -3
  155. package/_types/chains/definitions/worldchain.d.ts +3 -3
  156. package/_types/chains/definitions/worldchainSepolia.d.ts +3 -3
  157. package/_types/chains/definitions/zircuit.d.ts +3 -3
  158. package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts +3 -3
  159. package/_types/chains/definitions/zircuitTestnet.d.ts +3 -3
  160. package/_types/chains/definitions/zksync.d.ts +14 -14
  161. package/_types/chains/definitions/zksyncInMemoryNode.d.ts +14 -14
  162. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +14 -14
  163. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +14 -14
  164. package/_types/chains/definitions/zksyncLocalNode.d.ts +14 -14
  165. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +14 -14
  166. package/_types/chains/definitions/zora.d.ts +3 -3
  167. package/_types/chains/definitions/zoraSepolia.d.ts +3 -3
  168. package/_types/chains/definitions/zoraTestnet.d.ts +3 -3
  169. package/_types/chains/index.d.ts +9 -1
  170. package/_types/chains/index.d.ts.map +1 -1
  171. package/_types/errors/version.d.ts +1 -1
  172. package/_types/index.d.ts +2 -0
  173. package/_types/index.d.ts.map +1 -1
  174. package/_types/op-stack/chainConfig.d.ts +3 -3
  175. package/_types/op-stack/formatters.d.ts +3 -3
  176. package/_types/tempo/Abis.d.ts +937 -1194
  177. package/_types/tempo/Abis.d.ts.map +1 -1
  178. package/_types/tempo/Addresses.d.ts +1 -1
  179. package/_types/tempo/Addresses.d.ts.map +1 -1
  180. package/_types/tempo/Decorator.d.ts +91 -85
  181. package/_types/tempo/Decorator.d.ts.map +1 -1
  182. package/_types/tempo/actions/amm.d.ts +19 -360
  183. package/_types/tempo/actions/amm.d.ts.map +1 -1
  184. package/_types/tempo/actions/dex.d.ts +765 -237
  185. package/_types/tempo/actions/dex.d.ts.map +1 -1
  186. package/_types/tempo/actions/fee.d.ts +30 -11
  187. package/_types/tempo/actions/fee.d.ts.map +1 -1
  188. package/_types/tempo/actions/nonce.d.ts +0 -105
  189. package/_types/tempo/actions/nonce.d.ts.map +1 -1
  190. package/_types/tempo/actions/policy.d.ts +60 -0
  191. package/_types/tempo/actions/policy.d.ts.map +1 -1
  192. package/_types/tempo/actions/reward.d.ts +350 -526
  193. package/_types/tempo/actions/reward.d.ts.map +1 -1
  194. package/_types/tempo/actions/token.d.ts +368 -1984
  195. package/_types/tempo/actions/token.d.ts.map +1 -1
  196. package/_types/tempo/chainConfig.d.ts +16 -19
  197. package/_types/tempo/chainConfig.d.ts.map +1 -1
  198. package/_types/tempo/index.d.ts +1 -1
  199. package/_types/tempo/index.d.ts.map +1 -1
  200. package/_types/utils/formatters/transaction.d.ts +1 -1
  201. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  202. package/_types/zksync/chainConfig.d.ts +14 -14
  203. package/_types/zksync/formatters.d.ts +14 -14
  204. package/account-abstraction/utils/userOperation/toPackedUserOperation.ts +17 -2
  205. package/actions/wallet/sendTransactionSync.ts +1 -0
  206. package/chains/definitions/codex.ts +45 -0
  207. package/chains/definitions/codexTestnet.ts +45 -0
  208. package/chains/definitions/paseoPassetHub.ts +23 -0
  209. package/chains/definitions/{tempoTestnet.ts → tempoAndantino.ts} +3 -3
  210. package/chains/definitions/tempoDevnet.ts +6 -0
  211. package/chains/definitions/tempoModerato.ts +25 -0
  212. package/chains/index.ts +10 -1
  213. package/errors/version.ts +1 -1
  214. package/index.ts +9 -0
  215. package/package.json +2 -2
  216. package/tempo/Abis.ts +607 -752
  217. package/tempo/Addresses.ts +1 -1
  218. package/tempo/Decorator.ts +115 -106
  219. package/tempo/actions/amm.ts +13 -115
  220. package/tempo/actions/dex.ts +274 -72
  221. package/tempo/actions/nonce.ts +0 -148
  222. package/tempo/actions/reward.ts +310 -257
  223. package/tempo/actions/token.ts +16 -2
  224. package/tempo/chainConfig.ts +2 -9
  225. package/tempo/index.ts +1 -1
  226. package/_cjs/chains/definitions/tempoTestnet.js.map +0 -1
  227. package/_esm/chains/definitions/tempoTestnet.js.map +0 -1
package/tempo/Abis.ts CHANGED
@@ -1,743 +1,360 @@
1
1
  // Generated with `pnpm gen:abis`. Do not modify manually.
2
2
 
3
- export const stablecoinExchange = [
3
+ export const tip20 = [
4
4
  {
5
- name: 'createPair',
5
+ name: 'name',
6
6
  type: 'function',
7
- stateMutability: 'nonpayable',
8
- inputs: [{ type: 'address', name: 'base' }],
9
- outputs: [{ type: 'bytes32', name: 'key' }],
7
+ stateMutability: 'view',
8
+ inputs: [],
9
+ outputs: [{ type: 'string' }],
10
10
  },
11
11
  {
12
- name: 'place',
12
+ name: 'symbol',
13
13
  type: 'function',
14
- stateMutability: 'nonpayable',
15
- inputs: [
16
- { type: 'address', name: 'token' },
17
- { type: 'uint128', name: 'amount' },
18
- { type: 'bool', name: 'isBid' },
19
- { type: 'int16', name: 'tick' },
20
- ],
21
- outputs: [{ type: 'uint128', name: 'orderId' }],
14
+ stateMutability: 'view',
15
+ inputs: [],
16
+ outputs: [{ type: 'string' }],
22
17
  },
23
18
  {
24
- name: 'placeFlip',
19
+ name: 'decimals',
25
20
  type: 'function',
26
- stateMutability: 'nonpayable',
27
- inputs: [
28
- { type: 'address', name: 'token' },
29
- { type: 'uint128', name: 'amount' },
30
- { type: 'bool', name: 'isBid' },
31
- { type: 'int16', name: 'tick' },
32
- { type: 'int16', name: 'flipTick' },
33
- ],
34
- outputs: [{ type: 'uint128', name: 'orderId' }],
21
+ stateMutability: 'view',
22
+ inputs: [],
23
+ outputs: [{ type: 'uint8' }],
35
24
  },
36
25
  {
37
- name: 'cancel',
26
+ name: 'totalSupply',
38
27
  type: 'function',
39
- stateMutability: 'nonpayable',
40
- inputs: [{ type: 'uint128', name: 'orderId' }],
41
- outputs: [],
28
+ stateMutability: 'view',
29
+ inputs: [],
30
+ outputs: [{ type: 'uint256' }],
42
31
  },
43
32
  {
44
- name: 'executeBlock',
33
+ name: 'quoteToken',
45
34
  type: 'function',
46
- stateMutability: 'nonpayable',
35
+ stateMutability: 'view',
47
36
  inputs: [],
48
- outputs: [],
37
+ outputs: [{ type: 'address' }],
49
38
  },
50
39
  {
51
- name: 'swapExactAmountIn',
40
+ name: 'nextQuoteToken',
52
41
  type: 'function',
53
- stateMutability: 'nonpayable',
54
- inputs: [
55
- { type: 'address', name: 'tokenIn' },
56
- { type: 'address', name: 'tokenOut' },
57
- { type: 'uint128', name: 'amountIn' },
58
- { type: 'uint128', name: 'minAmountOut' },
59
- ],
60
- outputs: [{ type: 'uint128', name: 'amountOut' }],
42
+ stateMutability: 'view',
43
+ inputs: [],
44
+ outputs: [{ type: 'address' }],
61
45
  },
62
46
  {
63
- name: 'swapExactAmountOut',
47
+ name: 'balanceOf',
48
+ type: 'function',
49
+ stateMutability: 'view',
50
+ inputs: [{ type: 'address', name: 'account' }],
51
+ outputs: [{ type: 'uint256' }],
52
+ },
53
+ {
54
+ name: 'transfer',
64
55
  type: 'function',
65
56
  stateMutability: 'nonpayable',
66
57
  inputs: [
67
- { type: 'address', name: 'tokenIn' },
68
- { type: 'address', name: 'tokenOut' },
69
- { type: 'uint128', name: 'amountOut' },
70
- { type: 'uint128', name: 'maxAmountIn' },
58
+ { type: 'address', name: 'to' },
59
+ { type: 'uint256', name: 'amount' },
71
60
  ],
72
- outputs: [{ type: 'uint128', name: 'amountIn' }],
61
+ outputs: [{ type: 'bool' }],
73
62
  },
74
63
  {
75
- name: 'quoteSwapExactAmountIn',
64
+ name: 'approve',
76
65
  type: 'function',
77
- stateMutability: 'view',
66
+ stateMutability: 'nonpayable',
78
67
  inputs: [
79
- { type: 'address', name: 'tokenIn' },
80
- { type: 'address', name: 'tokenOut' },
81
- { type: 'uint128', name: 'amountIn' },
68
+ { type: 'address', name: 'spender' },
69
+ { type: 'uint256', name: 'amount' },
82
70
  ],
83
- outputs: [{ type: 'uint128', name: 'amountOut' }],
71
+ outputs: [{ type: 'bool' }],
84
72
  },
85
73
  {
86
- name: 'quoteSwapExactAmountOut',
74
+ name: 'allowance',
87
75
  type: 'function',
88
76
  stateMutability: 'view',
89
77
  inputs: [
90
- { type: 'address', name: 'tokenIn' },
91
- { type: 'address', name: 'tokenOut' },
92
- { type: 'uint128', name: 'amountOut' },
78
+ { type: 'address', name: 'owner' },
79
+ { type: 'address', name: 'spender' },
93
80
  ],
94
- outputs: [{ type: 'uint128', name: 'amountIn' }],
81
+ outputs: [{ type: 'uint256' }],
95
82
  },
96
83
  {
97
- name: 'balanceOf',
84
+ name: 'transferFrom',
98
85
  type: 'function',
99
- stateMutability: 'view',
86
+ stateMutability: 'nonpayable',
100
87
  inputs: [
101
- { type: 'address', name: 'user' },
102
- { type: 'address', name: 'token' },
88
+ { type: 'address', name: 'from' },
89
+ { type: 'address', name: 'to' },
90
+ { type: 'uint256', name: 'amount' },
103
91
  ],
104
- outputs: [{ type: 'uint128' }],
92
+ outputs: [{ type: 'bool' }],
105
93
  },
106
94
  {
107
- name: 'withdraw',
95
+ name: 'mint',
108
96
  type: 'function',
109
97
  stateMutability: 'nonpayable',
110
98
  inputs: [
111
- { type: 'address', name: 'token' },
112
- { type: 'uint128', name: 'amount' },
99
+ { type: 'address', name: 'to' },
100
+ { type: 'uint256', name: 'amount' },
113
101
  ],
114
102
  outputs: [],
115
103
  },
116
104
  {
117
- name: 'getOrder',
105
+ name: 'burn',
118
106
  type: 'function',
119
- stateMutability: 'view',
120
- inputs: [{ type: 'uint128', name: 'orderId' }],
121
- outputs: [
122
- {
123
- type: 'tuple',
124
- components: [
125
- { type: 'uint128', name: 'orderId' },
126
- { type: 'address', name: 'maker' },
127
- { type: 'bytes32', name: 'bookKey' },
128
- { type: 'bool', name: 'isBid' },
129
- { type: 'int16', name: 'tick' },
130
- { type: 'uint128', name: 'amount' },
131
- { type: 'uint128', name: 'remaining' },
132
- { type: 'uint128', name: 'prev' },
133
- { type: 'uint128', name: 'next' },
134
- { type: 'bool', name: 'isFlip' },
135
- { type: 'int16', name: 'flipTick' },
136
- ],
137
- },
138
- ],
107
+ stateMutability: 'nonpayable',
108
+ inputs: [{ type: 'uint256', name: 'amount' }],
109
+ outputs: [],
139
110
  },
140
111
  {
141
- name: 'getTickLevel',
112
+ name: 'currency',
142
113
  type: 'function',
143
114
  stateMutability: 'view',
144
- inputs: [
145
- { type: 'address', name: 'base' },
146
- { type: 'int16', name: 'tick' },
147
- { type: 'bool', name: 'isBid' },
148
- ],
149
- outputs: [
150
- { type: 'uint128', name: 'head' },
151
- { type: 'uint128', name: 'tail' },
152
- { type: 'uint128', name: 'totalLiquidity' },
153
- ],
115
+ inputs: [],
116
+ outputs: [{ type: 'string' }],
154
117
  },
155
118
  {
156
- name: 'pairKey',
119
+ name: 'supplyCap',
157
120
  type: 'function',
158
- stateMutability: 'pure',
159
- inputs: [
160
- { type: 'address', name: 'tokenA' },
161
- { type: 'address', name: 'tokenB' },
162
- ],
163
- outputs: [{ type: 'bytes32' }],
121
+ stateMutability: 'view',
122
+ inputs: [],
123
+ outputs: [{ type: 'uint256' }],
164
124
  },
165
125
  {
166
- name: 'activeOrderId',
126
+ name: 'paused',
167
127
  type: 'function',
168
128
  stateMutability: 'view',
169
129
  inputs: [],
170
- outputs: [{ type: 'uint128' }],
130
+ outputs: [{ type: 'bool' }],
171
131
  },
172
132
  {
173
- name: 'pendingOrderId',
133
+ name: 'transferPolicyId',
174
134
  type: 'function',
175
135
  stateMutability: 'view',
176
136
  inputs: [],
177
- outputs: [{ type: 'uint128' }],
137
+ outputs: [{ type: 'uint64' }],
178
138
  },
179
139
  {
180
- name: 'books',
140
+ name: 'burnBlocked',
181
141
  type: 'function',
182
- stateMutability: 'view',
183
- inputs: [{ type: 'bytes32', name: 'pairKey' }],
184
- outputs: [
185
- {
186
- type: 'tuple',
187
- components: [
188
- { type: 'address', name: 'base' },
189
- { type: 'address', name: 'quote' },
190
- { type: 'int16', name: 'bestBidTick' },
191
- { type: 'int16', name: 'bestAskTick' },
192
- ],
193
- },
142
+ stateMutability: 'nonpayable',
143
+ inputs: [
144
+ { type: 'address', name: 'from' },
145
+ { type: 'uint256', name: 'amount' },
194
146
  ],
147
+ outputs: [],
195
148
  },
196
149
  {
197
- name: 'MIN_TICK',
150
+ name: 'mintWithMemo',
198
151
  type: 'function',
199
- stateMutability: 'pure',
200
- inputs: [],
201
- outputs: [{ type: 'int16' }],
152
+ stateMutability: 'nonpayable',
153
+ inputs: [
154
+ { type: 'address', name: 'to' },
155
+ { type: 'uint256', name: 'amount' },
156
+ { type: 'bytes32', name: 'memo' },
157
+ ],
158
+ outputs: [],
202
159
  },
203
160
  {
204
- name: 'MAX_TICK',
161
+ name: 'burnWithMemo',
205
162
  type: 'function',
206
- stateMutability: 'pure',
207
- inputs: [],
208
- outputs: [{ type: 'int16' }],
163
+ stateMutability: 'nonpayable',
164
+ inputs: [
165
+ { type: 'uint256', name: 'amount' },
166
+ { type: 'bytes32', name: 'memo' },
167
+ ],
168
+ outputs: [],
209
169
  },
210
170
  {
211
- name: 'TICK_SPACING',
171
+ name: 'transferWithMemo',
212
172
  type: 'function',
213
- stateMutability: 'pure',
214
- inputs: [],
215
- outputs: [{ type: 'int16' }],
173
+ stateMutability: 'nonpayable',
174
+ inputs: [
175
+ { type: 'address', name: 'to' },
176
+ { type: 'uint256', name: 'amount' },
177
+ { type: 'bytes32', name: 'memo' },
178
+ ],
179
+ outputs: [],
216
180
  },
217
181
  {
218
- name: 'PRICE_SCALE',
182
+ name: 'transferFromWithMemo',
219
183
  type: 'function',
220
- stateMutability: 'pure',
221
- inputs: [],
222
- outputs: [{ type: 'uint32' }],
184
+ stateMutability: 'nonpayable',
185
+ inputs: [
186
+ { type: 'address', name: 'from' },
187
+ { type: 'address', name: 'to' },
188
+ { type: 'uint256', name: 'amount' },
189
+ { type: 'bytes32', name: 'memo' },
190
+ ],
191
+ outputs: [{ type: 'bool' }],
223
192
  },
224
193
  {
225
- name: 'MIN_PRICE',
194
+ name: 'changeTransferPolicyId',
226
195
  type: 'function',
227
- stateMutability: 'pure',
228
- inputs: [],
229
- outputs: [{ type: 'uint32' }],
196
+ stateMutability: 'nonpayable',
197
+ inputs: [{ type: 'uint64', name: 'newPolicyId' }],
198
+ outputs: [],
230
199
  },
231
200
  {
232
- name: 'MAX_PRICE',
201
+ name: 'setSupplyCap',
233
202
  type: 'function',
234
- stateMutability: 'pure',
235
- inputs: [],
236
- outputs: [{ type: 'uint32' }],
203
+ stateMutability: 'nonpayable',
204
+ inputs: [{ type: 'uint256', name: 'newSupplyCap' }],
205
+ outputs: [],
237
206
  },
238
207
  {
239
- name: 'tickToPrice',
240
- type: 'function',
241
- stateMutability: 'pure',
242
- inputs: [{ type: 'int16', name: 'tick' }],
243
- outputs: [{ type: 'uint32', name: 'price' }],
244
- },
245
- {
246
- name: 'priceToTick',
247
- type: 'function',
248
- stateMutability: 'pure',
249
- inputs: [{ type: 'uint32', name: 'price' }],
250
- outputs: [{ type: 'int16', name: 'tick' }],
251
- },
252
- {
253
- name: 'PairCreated',
254
- type: 'event',
255
- inputs: [
256
- { type: 'bytes32', name: 'key', indexed: true },
257
- { type: 'address', name: 'base', indexed: true },
258
- { type: 'address', name: 'quote', indexed: true },
259
- ],
260
- },
261
- {
262
- name: 'OrderPlaced',
263
- type: 'event',
264
- inputs: [
265
- { type: 'uint128', name: 'orderId', indexed: true },
266
- { type: 'address', name: 'maker', indexed: true },
267
- { type: 'address', name: 'token', indexed: true },
268
- { type: 'uint128', name: 'amount' },
269
- { type: 'bool', name: 'isBid' },
270
- { type: 'int16', name: 'tick' },
271
- ],
272
- },
273
- {
274
- name: 'FlipOrderPlaced',
275
- type: 'event',
276
- inputs: [
277
- { type: 'uint128', name: 'orderId', indexed: true },
278
- { type: 'address', name: 'maker', indexed: true },
279
- { type: 'address', name: 'token', indexed: true },
280
- { type: 'uint128', name: 'amount' },
281
- { type: 'bool', name: 'isBid' },
282
- { type: 'int16', name: 'tick' },
283
- { type: 'int16', name: 'flipTick' },
284
- ],
285
- },
286
- {
287
- name: 'OrderFilled',
288
- type: 'event',
289
- inputs: [
290
- { type: 'uint128', name: 'orderId', indexed: true },
291
- { type: 'address', name: 'maker', indexed: true },
292
- { type: 'uint128', name: 'amountFilled' },
293
- { type: 'bool', name: 'partialFill' },
294
- ],
295
- },
296
- {
297
- name: 'OrderFilled',
298
- type: 'event',
299
- inputs: [
300
- { type: 'uint128', name: 'orderId', indexed: true },
301
- { type: 'address', name: 'maker', indexed: true },
302
- { type: 'address', name: 'taker', indexed: true },
303
- { type: 'uint128', name: 'amountFilled' },
304
- { type: 'bool', name: 'partialFill' },
305
- ],
306
- },
307
- {
308
- name: 'OrderCancelled',
309
- type: 'event',
310
- inputs: [{ type: 'uint128', name: 'orderId', indexed: true }],
311
- },
312
- { name: 'Unauthorized', type: 'error', inputs: [] },
313
- { name: 'PairDoesNotExist', type: 'error', inputs: [] },
314
- { name: 'PairAlreadyExists', type: 'error', inputs: [] },
315
- { name: 'OrderDoesNotExist', type: 'error', inputs: [] },
316
- { name: 'IdenticalTokens', type: 'error', inputs: [] },
317
- { name: 'InvalidToken', type: 'error', inputs: [] },
318
- {
319
- name: 'TickOutOfBounds',
320
- type: 'error',
321
- inputs: [{ type: 'int16', name: 'tick' }],
322
- },
323
- { name: 'InvalidTick', type: 'error', inputs: [] },
324
- { name: 'InvalidFlipTick', type: 'error', inputs: [] },
325
- { name: 'InsufficientBalance', type: 'error', inputs: [] },
326
- { name: 'InsufficientLiquidity', type: 'error', inputs: [] },
327
- { name: 'InsufficientOutput', type: 'error', inputs: [] },
328
- { name: 'MaxInputExceeded', type: 'error', inputs: [] },
329
- {
330
- name: 'BelowMinimumOrderSize',
331
- type: 'error',
332
- inputs: [{ type: 'uint128', name: 'amount' }],
333
- },
334
- { name: 'InvalidBaseToken', type: 'error', inputs: [] },
335
- ] as const
336
-
337
- export const tip20 = [
338
- {
339
- name: 'name',
208
+ name: 'pause',
340
209
  type: 'function',
341
- stateMutability: 'view',
210
+ stateMutability: 'nonpayable',
342
211
  inputs: [],
343
- outputs: [{ type: 'string' }],
212
+ outputs: [],
344
213
  },
345
214
  {
346
- name: 'symbol',
215
+ name: 'unpause',
347
216
  type: 'function',
348
- stateMutability: 'view',
217
+ stateMutability: 'nonpayable',
349
218
  inputs: [],
350
- outputs: [{ type: 'string' }],
219
+ outputs: [],
351
220
  },
352
221
  {
353
- name: 'decimals',
222
+ name: 'setNextQuoteToken',
354
223
  type: 'function',
355
- stateMutability: 'view',
356
- inputs: [],
357
- outputs: [{ type: 'uint8' }],
224
+ stateMutability: 'nonpayable',
225
+ inputs: [{ type: 'address', name: 'newQuoteToken' }],
226
+ outputs: [],
358
227
  },
359
228
  {
360
- name: 'totalSupply',
229
+ name: 'completeQuoteTokenUpdate',
361
230
  type: 'function',
362
- stateMutability: 'view',
231
+ stateMutability: 'nonpayable',
363
232
  inputs: [],
364
- outputs: [{ type: 'uint256' }],
233
+ outputs: [],
365
234
  },
366
235
  {
367
- name: 'quoteToken',
236
+ name: 'PAUSE_ROLE',
368
237
  type: 'function',
369
238
  stateMutability: 'view',
370
239
  inputs: [],
371
- outputs: [{ type: 'address' }],
240
+ outputs: [{ type: 'bytes32' }],
372
241
  },
373
242
  {
374
- name: 'nextQuoteToken',
243
+ name: 'UNPAUSE_ROLE',
375
244
  type: 'function',
376
245
  stateMutability: 'view',
377
246
  inputs: [],
378
- outputs: [{ type: 'address' }],
247
+ outputs: [{ type: 'bytes32' }],
379
248
  },
380
249
  {
381
- name: 'balanceOf',
250
+ name: 'ISSUER_ROLE',
382
251
  type: 'function',
383
252
  stateMutability: 'view',
384
- inputs: [{ type: 'address', name: 'account' }],
385
- outputs: [{ type: 'uint256' }],
386
- },
387
- {
388
- name: 'transfer',
389
- type: 'function',
390
- stateMutability: 'nonpayable',
391
- inputs: [
392
- { type: 'address', name: 'to' },
393
- { type: 'uint256', name: 'amount' },
394
- ],
395
- outputs: [{ type: 'bool' }],
396
- },
397
- {
398
- name: 'approve',
399
- type: 'function',
400
- stateMutability: 'nonpayable',
401
- inputs: [
402
- { type: 'address', name: 'spender' },
403
- { type: 'uint256', name: 'amount' },
404
- ],
405
- outputs: [{ type: 'bool' }],
253
+ inputs: [],
254
+ outputs: [{ type: 'bytes32' }],
406
255
  },
407
256
  {
408
- name: 'allowance',
257
+ name: 'BURN_BLOCKED_ROLE',
409
258
  type: 'function',
410
259
  stateMutability: 'view',
411
- inputs: [
412
- { type: 'address', name: 'owner' },
413
- { type: 'address', name: 'spender' },
414
- ],
415
- outputs: [{ type: 'uint256' }],
260
+ inputs: [],
261
+ outputs: [{ type: 'bytes32' }],
416
262
  },
417
263
  {
418
- name: 'transferFrom',
264
+ name: 'distributeReward',
419
265
  type: 'function',
420
266
  stateMutability: 'nonpayable',
421
- inputs: [
422
- { type: 'address', name: 'from' },
423
- { type: 'address', name: 'to' },
424
- { type: 'uint256', name: 'amount' },
425
- ],
426
- outputs: [{ type: 'bool' }],
267
+ inputs: [{ type: 'uint256', name: 'amount' }],
268
+ outputs: [],
427
269
  },
428
270
  {
429
- name: 'mint',
271
+ name: 'setRewardRecipient',
430
272
  type: 'function',
431
273
  stateMutability: 'nonpayable',
432
- inputs: [
433
- { type: 'address', name: 'to' },
434
- { type: 'uint256', name: 'amount' },
435
- ],
274
+ inputs: [{ type: 'address', name: 'recipient' }],
436
275
  outputs: [],
437
276
  },
438
277
  {
439
- name: 'burn',
278
+ name: 'claimRewards',
440
279
  type: 'function',
441
280
  stateMutability: 'nonpayable',
442
- inputs: [{ type: 'uint256', name: 'amount' }],
443
- outputs: [],
281
+ inputs: [],
282
+ outputs: [{ type: 'uint256' }],
444
283
  },
445
284
  {
446
- name: 'currency',
285
+ name: 'optedInSupply',
447
286
  type: 'function',
448
287
  stateMutability: 'view',
449
288
  inputs: [],
450
- outputs: [{ type: 'string' }],
289
+ outputs: [{ type: 'uint128' }],
451
290
  },
452
291
  {
453
- name: 'supplyCap',
292
+ name: 'globalRewardPerToken',
454
293
  type: 'function',
455
294
  stateMutability: 'view',
456
295
  inputs: [],
457
296
  outputs: [{ type: 'uint256' }],
458
297
  },
459
298
  {
460
- name: 'paused',
299
+ name: 'userRewardInfo',
461
300
  type: 'function',
462
301
  stateMutability: 'view',
463
- inputs: [],
464
- outputs: [{ type: 'bool' }],
302
+ inputs: [{ type: 'address', name: 'account' }],
303
+ outputs: [
304
+ {
305
+ type: 'tuple',
306
+ components: [
307
+ { type: 'address', name: 'rewardRecipient' },
308
+ { type: 'uint256', name: 'rewardPerToken' },
309
+ { type: 'uint256', name: 'rewardBalance' },
310
+ ],
311
+ },
312
+ ],
465
313
  },
466
314
  {
467
- name: 'transferPolicyId',
315
+ name: 'getPendingRewards',
468
316
  type: 'function',
469
317
  stateMutability: 'view',
470
- inputs: [],
471
- outputs: [{ type: 'uint64' }],
318
+ inputs: [{ type: 'address', name: 'account' }],
319
+ outputs: [{ type: 'uint128' }],
472
320
  },
473
321
  {
474
- name: 'burnBlocked',
475
- type: 'function',
476
- stateMutability: 'nonpayable',
322
+ name: 'Transfer',
323
+ type: 'event',
477
324
  inputs: [
478
- { type: 'address', name: 'from' },
325
+ { type: 'address', name: 'from', indexed: true },
326
+ { type: 'address', name: 'to', indexed: true },
479
327
  { type: 'uint256', name: 'amount' },
480
328
  ],
481
- outputs: [],
482
329
  },
483
330
  {
484
- name: 'mintWithMemo',
485
- type: 'function',
486
- stateMutability: 'nonpayable',
331
+ name: 'Approval',
332
+ type: 'event',
487
333
  inputs: [
488
- { type: 'address', name: 'to' },
334
+ { type: 'address', name: 'owner', indexed: true },
335
+ { type: 'address', name: 'spender', indexed: true },
489
336
  { type: 'uint256', name: 'amount' },
490
- { type: 'bytes32', name: 'memo' },
491
337
  ],
492
- outputs: [],
493
338
  },
494
339
  {
495
- name: 'burnWithMemo',
496
- type: 'function',
497
- stateMutability: 'nonpayable',
340
+ name: 'Mint',
341
+ type: 'event',
498
342
  inputs: [
343
+ { type: 'address', name: 'to', indexed: true },
499
344
  { type: 'uint256', name: 'amount' },
500
- { type: 'bytes32', name: 'memo' },
501
345
  ],
502
- outputs: [],
503
346
  },
504
347
  {
505
- name: 'transferWithMemo',
506
- type: 'function',
507
- stateMutability: 'nonpayable',
348
+ name: 'Burn',
349
+ type: 'event',
508
350
  inputs: [
509
- { type: 'address', name: 'to' },
351
+ { type: 'address', name: 'from', indexed: true },
510
352
  { type: 'uint256', name: 'amount' },
511
- { type: 'bytes32', name: 'memo' },
512
353
  ],
513
- outputs: [],
514
354
  },
515
355
  {
516
- name: 'transferFromWithMemo',
517
- type: 'function',
518
- stateMutability: 'nonpayable',
519
- inputs: [
520
- { type: 'address', name: 'from' },
521
- { type: 'address', name: 'to' },
522
- { type: 'uint256', name: 'amount' },
523
- { type: 'bytes32', name: 'memo' },
524
- ],
525
- outputs: [{ type: 'bool' }],
526
- },
527
- {
528
- name: 'feeRecipient',
529
- type: 'function',
530
- stateMutability: 'view',
531
- inputs: [],
532
- outputs: [{ type: 'address' }],
533
- },
534
- {
535
- name: 'setFeeRecipient',
536
- type: 'function',
537
- stateMutability: 'view',
538
- inputs: [{ type: 'address', name: 'newRecipient' }],
539
- outputs: [{ type: 'address' }],
540
- },
541
- {
542
- name: 'changeTransferPolicyId',
543
- type: 'function',
544
- stateMutability: 'nonpayable',
545
- inputs: [{ type: 'uint64', name: 'newPolicyId' }],
546
- outputs: [],
547
- },
548
- {
549
- name: 'setSupplyCap',
550
- type: 'function',
551
- stateMutability: 'nonpayable',
552
- inputs: [{ type: 'uint256', name: 'newSupplyCap' }],
553
- outputs: [],
554
- },
555
- {
556
- name: 'pause',
557
- type: 'function',
558
- stateMutability: 'nonpayable',
559
- inputs: [],
560
- outputs: [],
561
- },
562
- {
563
- name: 'unpause',
564
- type: 'function',
565
- stateMutability: 'nonpayable',
566
- inputs: [],
567
- outputs: [],
568
- },
569
- {
570
- name: 'setNextQuoteToken',
571
- type: 'function',
572
- stateMutability: 'nonpayable',
573
- inputs: [{ type: 'address', name: 'newQuoteToken' }],
574
- outputs: [],
575
- },
576
- {
577
- name: 'completeQuoteTokenUpdate',
578
- type: 'function',
579
- stateMutability: 'nonpayable',
580
- inputs: [],
581
- outputs: [],
582
- },
583
- {
584
- name: 'PAUSE_ROLE',
585
- type: 'function',
586
- stateMutability: 'view',
587
- inputs: [],
588
- outputs: [{ type: 'bytes32' }],
589
- },
590
- {
591
- name: 'UNPAUSE_ROLE',
592
- type: 'function',
593
- stateMutability: 'view',
594
- inputs: [],
595
- outputs: [{ type: 'bytes32' }],
596
- },
597
- {
598
- name: 'ISSUER_ROLE',
599
- type: 'function',
600
- stateMutability: 'view',
601
- inputs: [],
602
- outputs: [{ type: 'bytes32' }],
603
- },
604
- {
605
- name: 'BURN_BLOCKED_ROLE',
606
- type: 'function',
607
- stateMutability: 'view',
608
- inputs: [],
609
- outputs: [{ type: 'bytes32' }],
610
- },
611
- {
612
- name: 'startReward',
613
- type: 'function',
614
- stateMutability: 'nonpayable',
615
- inputs: [
616
- { type: 'uint256', name: 'amount' },
617
- { type: 'uint32', name: 'secs' },
618
- ],
619
- outputs: [{ type: 'uint64' }],
620
- },
621
- {
622
- name: 'setRewardRecipient',
623
- type: 'function',
624
- stateMutability: 'nonpayable',
625
- inputs: [{ type: 'address', name: 'recipient' }],
626
- outputs: [],
627
- },
628
- {
629
- name: 'cancelReward',
630
- type: 'function',
631
- stateMutability: 'nonpayable',
632
- inputs: [{ type: 'uint64', name: 'id' }],
633
- outputs: [{ type: 'uint256' }],
634
- },
635
- {
636
- name: 'claimRewards',
637
- type: 'function',
638
- stateMutability: 'nonpayable',
639
- inputs: [],
640
- outputs: [{ type: 'uint256' }],
641
- },
642
- {
643
- name: 'finalizeStreams',
644
- type: 'function',
645
- stateMutability: 'nonpayable',
646
- inputs: [{ type: 'uint64', name: 'timestamp' }],
647
- outputs: [],
648
- },
649
- {
650
- name: 'getStream',
651
- type: 'function',
652
- stateMutability: 'view',
653
- inputs: [{ type: 'uint64', name: 'id' }],
654
- outputs: [
655
- {
656
- type: 'tuple',
657
- components: [
658
- { type: 'address', name: 'funder' },
659
- { type: 'uint64', name: 'startTime' },
660
- { type: 'uint64', name: 'endTime' },
661
- { type: 'uint256', name: 'ratePerSecondScaled' },
662
- { type: 'uint256', name: 'amountTotal' },
663
- ],
664
- },
665
- ],
666
- },
667
- {
668
- name: 'totalRewardPerSecond',
669
- type: 'function',
670
- stateMutability: 'view',
671
- inputs: [],
672
- outputs: [{ type: 'uint256' }],
673
- },
674
- {
675
- name: 'optedInSupply',
676
- type: 'function',
677
- stateMutability: 'view',
678
- inputs: [],
679
- outputs: [{ type: 'uint128' }],
680
- },
681
- {
682
- name: 'nextStreamId',
683
- type: 'function',
684
- stateMutability: 'view',
685
- inputs: [],
686
- outputs: [{ type: 'uint64' }],
687
- },
688
- {
689
- name: 'userRewardInfo',
690
- type: 'function',
691
- stateMutability: 'view',
692
- inputs: [{ type: 'address', name: 'account' }],
693
- outputs: [
694
- {
695
- type: 'tuple',
696
- components: [
697
- { type: 'address', name: 'rewardRecipient' },
698
- { type: 'uint256', name: 'rewardPerToken' },
699
- { type: 'uint256', name: 'rewardBalance' },
700
- ],
701
- },
702
- ],
703
- },
704
- {
705
- name: 'Transfer',
706
- type: 'event',
707
- inputs: [
708
- { type: 'address', name: 'from', indexed: true },
709
- { type: 'address', name: 'to', indexed: true },
710
- { type: 'uint256', name: 'amount' },
711
- ],
712
- },
713
- {
714
- name: 'Approval',
715
- type: 'event',
716
- inputs: [
717
- { type: 'address', name: 'owner', indexed: true },
718
- { type: 'address', name: 'spender', indexed: true },
719
- { type: 'uint256', name: 'amount' },
720
- ],
721
- },
722
- {
723
- name: 'Mint',
724
- type: 'event',
725
- inputs: [
726
- { type: 'address', name: 'to', indexed: true },
727
- { type: 'uint256', name: 'amount' },
728
- ],
729
- },
730
- {
731
- name: 'Burn',
732
- type: 'event',
733
- inputs: [
734
- { type: 'address', name: 'from', indexed: true },
735
- { type: 'uint256', name: 'amount' },
736
- ],
737
- },
738
- {
739
- name: 'BurnBlocked',
740
- type: 'event',
356
+ name: 'BurnBlocked',
357
+ type: 'event',
741
358
  inputs: [
742
359
  { type: 'address', name: 'from', indexed: true },
743
360
  { type: 'uint256', name: 'amount' },
@@ -794,22 +411,11 @@ export const tip20 = [
794
411
  ],
795
412
  },
796
413
  {
797
- name: 'RewardScheduled',
414
+ name: 'RewardDistributed',
798
415
  type: 'event',
799
416
  inputs: [
800
417
  { type: 'address', name: 'funder', indexed: true },
801
- { type: 'uint64', name: 'id', indexed: true },
802
418
  { type: 'uint256', name: 'amount' },
803
- { type: 'uint32', name: 'durationSeconds' },
804
- ],
805
- },
806
- {
807
- name: 'RewardCanceled',
808
- type: 'event',
809
- inputs: [
810
- { type: 'address', name: 'funder', indexed: true },
811
- { type: 'uint64', name: 'id', indexed: true },
812
- { type: 'uint256', name: 'refund' },
813
419
  ],
814
420
  },
815
421
  {
@@ -820,14 +426,6 @@ export const tip20 = [
820
426
  { type: 'address', name: 'recipient', indexed: true },
821
427
  ],
822
428
  },
823
- {
824
- name: 'FeeRecipientUpdated',
825
- type: 'event',
826
- inputs: [
827
- { type: 'address', name: 'updater', indexed: true },
828
- { type: 'address', name: 'newRecipient', indexed: true },
829
- ],
830
- },
831
429
  {
832
430
  name: 'InsufficientBalance',
833
431
  type: 'error',
@@ -849,14 +447,12 @@ export const tip20 = [
849
447
  { name: 'InvalidQuoteToken', type: 'error', inputs: [] },
850
448
  { name: 'TransfersDisabled', type: 'error', inputs: [] },
851
449
  { name: 'InvalidAmount', type: 'error', inputs: [] },
852
- { name: 'NotStreamFunder', type: 'error', inputs: [] },
853
- { name: 'StreamInactive', type: 'error', inputs: [] },
854
450
  { name: 'NoOptedInSupply', type: 'error', inputs: [] },
855
451
  { name: 'Unauthorized', type: 'error', inputs: [] },
856
- { name: 'RewardsDisabled', type: 'error', inputs: [] },
857
- { name: 'ScheduledRewardsDisabled', type: 'error', inputs: [] },
858
452
  { name: 'ProtectedAddress', type: 'error', inputs: [] },
859
453
  { name: 'InvalidToken', type: 'error', inputs: [] },
454
+ { name: 'Uninitialized', type: 'error', inputs: [] },
455
+ { name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
860
456
  {
861
457
  name: 'hasRole',
862
458
  type: 'function',
@@ -895,68 +491,356 @@ export const tip20 = [
895
491
  outputs: [],
896
492
  },
897
493
  {
898
- name: 'renounceRole',
494
+ name: 'renounceRole',
495
+ type: 'function',
496
+ stateMutability: 'nonpayable',
497
+ inputs: [{ type: 'bytes32', name: 'role' }],
498
+ outputs: [],
499
+ },
500
+ {
501
+ name: 'setRoleAdmin',
502
+ type: 'function',
503
+ stateMutability: 'nonpayable',
504
+ inputs: [
505
+ { type: 'bytes32', name: 'role' },
506
+ { type: 'bytes32', name: 'adminRole' },
507
+ ],
508
+ outputs: [],
509
+ },
510
+ {
511
+ name: 'RoleMembershipUpdated',
512
+ type: 'event',
513
+ inputs: [
514
+ { type: 'bytes32', name: 'role', indexed: true },
515
+ { type: 'address', name: 'account', indexed: true },
516
+ { type: 'address', name: 'sender', indexed: true },
517
+ { type: 'bool', name: 'hasRole' },
518
+ ],
519
+ },
520
+ {
521
+ name: 'RoleAdminUpdated',
522
+ type: 'event',
523
+ inputs: [
524
+ { type: 'bytes32', name: 'role', indexed: true },
525
+ { type: 'bytes32', name: 'newAdminRole', indexed: true },
526
+ { type: 'address', name: 'sender', indexed: true },
527
+ ],
528
+ },
529
+ { name: 'Unauthorized', type: 'error', inputs: [] },
530
+ ] as const
531
+
532
+ export const stablecoinDex = [
533
+ {
534
+ name: 'createPair',
535
+ type: 'function',
536
+ stateMutability: 'nonpayable',
537
+ inputs: [{ type: 'address', name: 'base' }],
538
+ outputs: [{ type: 'bytes32', name: 'key' }],
539
+ },
540
+ {
541
+ name: 'place',
542
+ type: 'function',
543
+ stateMutability: 'nonpayable',
544
+ inputs: [
545
+ { type: 'address', name: 'token' },
546
+ { type: 'uint128', name: 'amount' },
547
+ { type: 'bool', name: 'isBid' },
548
+ { type: 'int16', name: 'tick' },
549
+ ],
550
+ outputs: [{ type: 'uint128', name: 'orderId' }],
551
+ },
552
+ {
553
+ name: 'placeFlip',
554
+ type: 'function',
555
+ stateMutability: 'nonpayable',
556
+ inputs: [
557
+ { type: 'address', name: 'token' },
558
+ { type: 'uint128', name: 'amount' },
559
+ { type: 'bool', name: 'isBid' },
560
+ { type: 'int16', name: 'tick' },
561
+ { type: 'int16', name: 'flipTick' },
562
+ ],
563
+ outputs: [{ type: 'uint128', name: 'orderId' }],
564
+ },
565
+ {
566
+ name: 'cancel',
567
+ type: 'function',
568
+ stateMutability: 'nonpayable',
569
+ inputs: [{ type: 'uint128', name: 'orderId' }],
570
+ outputs: [],
571
+ },
572
+ {
573
+ name: 'cancelStaleOrder',
574
+ type: 'function',
575
+ stateMutability: 'nonpayable',
576
+ inputs: [{ type: 'uint128', name: 'orderId' }],
577
+ outputs: [],
578
+ },
579
+ {
580
+ name: 'swapExactAmountIn',
581
+ type: 'function',
582
+ stateMutability: 'nonpayable',
583
+ inputs: [
584
+ { type: 'address', name: 'tokenIn' },
585
+ { type: 'address', name: 'tokenOut' },
586
+ { type: 'uint128', name: 'amountIn' },
587
+ { type: 'uint128', name: 'minAmountOut' },
588
+ ],
589
+ outputs: [{ type: 'uint128', name: 'amountOut' }],
590
+ },
591
+ {
592
+ name: 'swapExactAmountOut',
593
+ type: 'function',
594
+ stateMutability: 'nonpayable',
595
+ inputs: [
596
+ { type: 'address', name: 'tokenIn' },
597
+ { type: 'address', name: 'tokenOut' },
598
+ { type: 'uint128', name: 'amountOut' },
599
+ { type: 'uint128', name: 'maxAmountIn' },
600
+ ],
601
+ outputs: [{ type: 'uint128', name: 'amountIn' }],
602
+ },
603
+ {
604
+ name: 'quoteSwapExactAmountIn',
605
+ type: 'function',
606
+ stateMutability: 'view',
607
+ inputs: [
608
+ { type: 'address', name: 'tokenIn' },
609
+ { type: 'address', name: 'tokenOut' },
610
+ { type: 'uint128', name: 'amountIn' },
611
+ ],
612
+ outputs: [{ type: 'uint128', name: 'amountOut' }],
613
+ },
614
+ {
615
+ name: 'quoteSwapExactAmountOut',
616
+ type: 'function',
617
+ stateMutability: 'view',
618
+ inputs: [
619
+ { type: 'address', name: 'tokenIn' },
620
+ { type: 'address', name: 'tokenOut' },
621
+ { type: 'uint128', name: 'amountOut' },
622
+ ],
623
+ outputs: [{ type: 'uint128', name: 'amountIn' }],
624
+ },
625
+ {
626
+ name: 'balanceOf',
627
+ type: 'function',
628
+ stateMutability: 'view',
629
+ inputs: [
630
+ { type: 'address', name: 'user' },
631
+ { type: 'address', name: 'token' },
632
+ ],
633
+ outputs: [{ type: 'uint128' }],
634
+ },
635
+ {
636
+ name: 'withdraw',
637
+ type: 'function',
638
+ stateMutability: 'nonpayable',
639
+ inputs: [
640
+ { type: 'address', name: 'token' },
641
+ { type: 'uint128', name: 'amount' },
642
+ ],
643
+ outputs: [],
644
+ },
645
+ {
646
+ name: 'getOrder',
647
+ type: 'function',
648
+ stateMutability: 'view',
649
+ inputs: [{ type: 'uint128', name: 'orderId' }],
650
+ outputs: [
651
+ {
652
+ type: 'tuple',
653
+ components: [
654
+ { type: 'uint128', name: 'orderId' },
655
+ { type: 'address', name: 'maker' },
656
+ { type: 'bytes32', name: 'bookKey' },
657
+ { type: 'bool', name: 'isBid' },
658
+ { type: 'int16', name: 'tick' },
659
+ { type: 'uint128', name: 'amount' },
660
+ { type: 'uint128', name: 'remaining' },
661
+ { type: 'uint128', name: 'prev' },
662
+ { type: 'uint128', name: 'next' },
663
+ { type: 'bool', name: 'isFlip' },
664
+ { type: 'int16', name: 'flipTick' },
665
+ ],
666
+ },
667
+ ],
668
+ },
669
+ {
670
+ name: 'getTickLevel',
671
+ type: 'function',
672
+ stateMutability: 'view',
673
+ inputs: [
674
+ { type: 'address', name: 'base' },
675
+ { type: 'int16', name: 'tick' },
676
+ { type: 'bool', name: 'isBid' },
677
+ ],
678
+ outputs: [
679
+ { type: 'uint128', name: 'head' },
680
+ { type: 'uint128', name: 'tail' },
681
+ { type: 'uint128', name: 'totalLiquidity' },
682
+ ],
683
+ },
684
+ {
685
+ name: 'pairKey',
686
+ type: 'function',
687
+ stateMutability: 'pure',
688
+ inputs: [
689
+ { type: 'address', name: 'tokenA' },
690
+ { type: 'address', name: 'tokenB' },
691
+ ],
692
+ outputs: [{ type: 'bytes32' }],
693
+ },
694
+ {
695
+ name: 'nextOrderId',
696
+ type: 'function',
697
+ stateMutability: 'view',
698
+ inputs: [],
699
+ outputs: [{ type: 'uint128' }],
700
+ },
701
+ {
702
+ name: 'books',
703
+ type: 'function',
704
+ stateMutability: 'view',
705
+ inputs: [{ type: 'bytes32', name: 'pairKey' }],
706
+ outputs: [
707
+ {
708
+ type: 'tuple',
709
+ components: [
710
+ { type: 'address', name: 'base' },
711
+ { type: 'address', name: 'quote' },
712
+ { type: 'int16', name: 'bestBidTick' },
713
+ { type: 'int16', name: 'bestAskTick' },
714
+ ],
715
+ },
716
+ ],
717
+ },
718
+ {
719
+ name: 'MIN_TICK',
720
+ type: 'function',
721
+ stateMutability: 'pure',
722
+ inputs: [],
723
+ outputs: [{ type: 'int16' }],
724
+ },
725
+ {
726
+ name: 'MAX_TICK',
727
+ type: 'function',
728
+ stateMutability: 'pure',
729
+ inputs: [],
730
+ outputs: [{ type: 'int16' }],
731
+ },
732
+ {
733
+ name: 'TICK_SPACING',
734
+ type: 'function',
735
+ stateMutability: 'pure',
736
+ inputs: [],
737
+ outputs: [{ type: 'int16' }],
738
+ },
739
+ {
740
+ name: 'PRICE_SCALE',
741
+ type: 'function',
742
+ stateMutability: 'pure',
743
+ inputs: [],
744
+ outputs: [{ type: 'uint32' }],
745
+ },
746
+ {
747
+ name: 'MIN_ORDER_AMOUNT',
748
+ type: 'function',
749
+ stateMutability: 'pure',
750
+ inputs: [],
751
+ outputs: [{ type: 'uint128' }],
752
+ },
753
+ {
754
+ name: 'MIN_PRICE',
755
+ type: 'function',
756
+ stateMutability: 'pure',
757
+ inputs: [],
758
+ outputs: [{ type: 'uint32' }],
759
+ },
760
+ {
761
+ name: 'MAX_PRICE',
762
+ type: 'function',
763
+ stateMutability: 'pure',
764
+ inputs: [],
765
+ outputs: [{ type: 'uint32' }],
766
+ },
767
+ {
768
+ name: 'tickToPrice',
899
769
  type: 'function',
900
- stateMutability: 'nonpayable',
901
- inputs: [{ type: 'bytes32', name: 'role' }],
902
- outputs: [],
770
+ stateMutability: 'pure',
771
+ inputs: [{ type: 'int16', name: 'tick' }],
772
+ outputs: [{ type: 'uint32', name: 'price' }],
903
773
  },
904
774
  {
905
- name: 'setRoleAdmin',
775
+ name: 'priceToTick',
906
776
  type: 'function',
907
- stateMutability: 'nonpayable',
777
+ stateMutability: 'pure',
778
+ inputs: [{ type: 'uint32', name: 'price' }],
779
+ outputs: [{ type: 'int16', name: 'tick' }],
780
+ },
781
+ {
782
+ name: 'PairCreated',
783
+ type: 'event',
908
784
  inputs: [
909
- { type: 'bytes32', name: 'role' },
910
- { type: 'bytes32', name: 'adminRole' },
785
+ { type: 'bytes32', name: 'key', indexed: true },
786
+ { type: 'address', name: 'base', indexed: true },
787
+ { type: 'address', name: 'quote', indexed: true },
911
788
  ],
912
- outputs: [],
913
789
  },
914
790
  {
915
- name: 'RoleMembershipUpdated',
791
+ name: 'OrderPlaced',
916
792
  type: 'event',
917
793
  inputs: [
918
- { type: 'bytes32', name: 'role', indexed: true },
919
- { type: 'address', name: 'account', indexed: true },
920
- { type: 'address', name: 'sender', indexed: true },
921
- { type: 'bool', name: 'hasRole' },
794
+ { type: 'uint128', name: 'orderId', indexed: true },
795
+ { type: 'address', name: 'maker', indexed: true },
796
+ { type: 'address', name: 'token', indexed: true },
797
+ { type: 'uint128', name: 'amount' },
798
+ { type: 'bool', name: 'isBid' },
799
+ { type: 'int16', name: 'tick' },
800
+ { type: 'bool', name: 'isFlipOrder' },
801
+ { type: 'int16', name: 'flipTick' },
922
802
  ],
923
803
  },
924
804
  {
925
- name: 'RoleAdminUpdated',
805
+ name: 'OrderFilled',
926
806
  type: 'event',
927
807
  inputs: [
928
- { type: 'bytes32', name: 'role', indexed: true },
929
- { type: 'bytes32', name: 'newAdminRole', indexed: true },
930
- { type: 'address', name: 'sender', indexed: true },
808
+ { type: 'uint128', name: 'orderId', indexed: true },
809
+ { type: 'address', name: 'maker', indexed: true },
810
+ { type: 'address', name: 'taker', indexed: true },
811
+ { type: 'uint128', name: 'amountFilled' },
812
+ { type: 'bool', name: 'partialFill' },
931
813
  ],
932
814
  },
815
+ {
816
+ name: 'OrderCancelled',
817
+ type: 'event',
818
+ inputs: [{ type: 'uint128', name: 'orderId', indexed: true }],
819
+ },
933
820
  { name: 'Unauthorized', type: 'error', inputs: [] },
934
- ] as const
935
-
936
- export const tipAccountRegistrar = [
821
+ { name: 'PairDoesNotExist', type: 'error', inputs: [] },
822
+ { name: 'PairAlreadyExists', type: 'error', inputs: [] },
823
+ { name: 'OrderDoesNotExist', type: 'error', inputs: [] },
824
+ { name: 'IdenticalTokens', type: 'error', inputs: [] },
825
+ { name: 'InvalidToken', type: 'error', inputs: [] },
937
826
  {
938
- name: 'delegateToDefault',
939
- type: 'function',
940
- stateMutability: 'nonpayable',
941
- inputs: [
942
- { type: 'bytes32', name: 'hash' },
943
- { type: 'bytes', name: 'signature' },
944
- ],
945
- outputs: [{ type: 'address', name: 'authority' }],
827
+ name: 'TickOutOfBounds',
828
+ type: 'error',
829
+ inputs: [{ type: 'int16', name: 'tick' }],
946
830
  },
831
+ { name: 'InvalidTick', type: 'error', inputs: [] },
832
+ { name: 'InvalidFlipTick', type: 'error', inputs: [] },
833
+ { name: 'InsufficientBalance', type: 'error', inputs: [] },
834
+ { name: 'InsufficientLiquidity', type: 'error', inputs: [] },
835
+ { name: 'InsufficientOutput', type: 'error', inputs: [] },
836
+ { name: 'MaxInputExceeded', type: 'error', inputs: [] },
947
837
  {
948
- name: 'delegateToDefault',
949
- type: 'function',
950
- stateMutability: 'nonpayable',
951
- inputs: [
952
- { type: 'bytes', name: 'message' },
953
- { type: 'bytes', name: 'signature' },
954
- ],
955
- outputs: [{ type: 'address', name: 'authority' }],
838
+ name: 'BelowMinimumOrderSize',
839
+ type: 'error',
840
+ inputs: [{ type: 'uint128', name: 'amount' }],
956
841
  },
957
- { name: 'InvalidSignature', type: 'error', inputs: [] },
958
- { name: 'CodeNotEmpty', type: 'error', inputs: [] },
959
- { name: 'NonceNotZero', type: 'error', inputs: [] },
842
+ { name: 'InvalidBaseToken', type: 'error', inputs: [] },
843
+ { name: 'OrderNotStale', type: 'error', inputs: [] },
960
844
  ] as const
961
845
 
962
846
  export const feeManager = [
@@ -989,21 +873,24 @@ export const feeManager = [
989
873
  outputs: [],
990
874
  },
991
875
  {
992
- name: 'getFeeTokenBalance',
876
+ name: 'distributeFees',
993
877
  type: 'function',
994
- stateMutability: 'view',
878
+ stateMutability: 'nonpayable',
995
879
  inputs: [
996
- { type: 'address', name: 'sender' },
997
880
  { type: 'address', name: 'validator' },
881
+ { type: 'address', name: 'token' },
998
882
  ],
999
- outputs: [{ type: 'address' }, { type: 'uint256' }],
883
+ outputs: [],
1000
884
  },
1001
885
  {
1002
- name: 'executeBlock',
886
+ name: 'collectedFees',
1003
887
  type: 'function',
1004
- stateMutability: 'nonpayable',
1005
- inputs: [],
1006
- outputs: [],
888
+ stateMutability: 'view',
889
+ inputs: [
890
+ { type: 'address', name: 'validator' },
891
+ { type: 'address', name: 'token' },
892
+ ],
893
+ outputs: [{ type: 'uint256' }],
1007
894
  },
1008
895
  {
1009
896
  name: 'UserTokenSet',
@@ -1021,6 +908,15 @@ export const feeManager = [
1021
908
  { type: 'address', name: 'token', indexed: true },
1022
909
  ],
1023
910
  },
911
+ {
912
+ name: 'FeesDistributed',
913
+ type: 'event',
914
+ inputs: [
915
+ { type: 'address', name: 'validator', indexed: true },
916
+ { type: 'address', name: 'token', indexed: true },
917
+ { type: 'uint256', name: 'amount' },
918
+ ],
919
+ },
1024
920
  { name: 'OnlyValidator', type: 'error', inputs: [] },
1025
921
  { name: 'OnlySystemContract', type: 'error', inputs: [] },
1026
922
  { name: 'InvalidToken', type: 'error', inputs: [] },
@@ -1108,19 +1004,6 @@ export const feeAmm = [
1108
1004
  name: 'mint',
1109
1005
  type: 'function',
1110
1006
  stateMutability: 'nonpayable',
1111
- inputs: [
1112
- { type: 'address', name: 'userToken' },
1113
- { type: 'address', name: 'validatorToken' },
1114
- { type: 'uint256', name: 'amountUserToken' },
1115
- { type: 'uint256', name: 'amountValidatorToken' },
1116
- { type: 'address', name: 'to' },
1117
- ],
1118
- outputs: [{ type: 'uint256', name: 'liquidity' }],
1119
- },
1120
- {
1121
- name: 'mintWithValidatorToken',
1122
- type: 'function',
1123
- stateMutability: 'nonpayable',
1124
1007
  inputs: [
1125
1008
  { type: 'address', name: 'userToken' },
1126
1009
  { type: 'address', name: 'validatorToken' },
@@ -1177,10 +1060,10 @@ export const feeAmm = [
1177
1060
  name: 'Mint',
1178
1061
  type: 'event',
1179
1062
  inputs: [
1180
- { type: 'address', name: 'sender', indexed: true },
1063
+ { type: 'address', name: 'sender' },
1064
+ { type: 'address', name: 'to', indexed: true },
1181
1065
  { type: 'address', name: 'userToken', indexed: true },
1182
1066
  { type: 'address', name: 'validatorToken', indexed: true },
1183
- { type: 'uint256', name: 'amountUserToken' },
1184
1067
  { type: 'uint256', name: 'amountValidatorToken' },
1185
1068
  { type: 'uint256', name: 'liquidity' },
1186
1069
  ],
@@ -1209,37 +1092,13 @@ export const feeAmm = [
1209
1092
  { type: 'uint256', name: 'amountOut' },
1210
1093
  ],
1211
1094
  },
1212
- {
1213
- name: 'FeeSwap',
1214
- type: 'event',
1215
- inputs: [
1216
- { type: 'address', name: 'userToken', indexed: true },
1217
- { type: 'address', name: 'validatorToken', indexed: true },
1218
- { type: 'uint256', name: 'amountIn' },
1219
- { type: 'uint256', name: 'amountOut' },
1220
- ],
1221
- },
1222
1095
  { name: 'IdenticalAddresses', type: 'error', inputs: [] },
1223
- { name: 'ZeroAddress', type: 'error', inputs: [] },
1224
- { name: 'PoolExists', type: 'error', inputs: [] },
1225
- { name: 'PoolDoesNotExist', type: 'error', inputs: [] },
1226
1096
  { name: 'InvalidToken', type: 'error', inputs: [] },
1227
1097
  { name: 'InsufficientLiquidity', type: 'error', inputs: [] },
1228
- { name: 'OnlyProtocol', type: 'error', inputs: [] },
1229
- { name: 'InsufficientPoolBalance', type: 'error', inputs: [] },
1230
1098
  { name: 'InsufficientReserves', type: 'error', inputs: [] },
1231
- { name: 'InsufficientLiquidityBalance', type: 'error', inputs: [] },
1232
- { name: 'MustDepositLowerBalanceToken', type: 'error', inputs: [] },
1233
1099
  { name: 'InvalidAmount', type: 'error', inputs: [] },
1234
- { name: 'InvalidRebalanceState', type: 'error', inputs: [] },
1235
- { name: 'InvalidRebalanceDirection', type: 'error', inputs: [] },
1236
- { name: 'InvalidNewReserves', type: 'error', inputs: [] },
1237
- { name: 'CannotSupportPendingSwaps', type: 'error', inputs: [] },
1238
1100
  { name: 'DivisionByZero', type: 'error', inputs: [] },
1239
1101
  { name: 'InvalidSwapCalculation', type: 'error', inputs: [] },
1240
- { name: 'InsufficientLiquidityForPending', type: 'error', inputs: [] },
1241
- { name: 'TokenTransferFailed', type: 'error', inputs: [] },
1242
- { name: 'InternalError', type: 'error', inputs: [] },
1243
1102
  ] as const
1244
1103
 
1245
1104
  export const accountKeychain = [
@@ -1330,16 +1189,6 @@ export const accountKeychain = [
1330
1189
  { type: 'uint64', name: 'expiry' },
1331
1190
  ],
1332
1191
  },
1333
- {
1334
- name: 'KeyAuthorized',
1335
- type: 'event',
1336
- inputs: [
1337
- { type: 'address', name: 'account', indexed: true },
1338
- { type: 'bytes32', name: 'publicKey', indexed: true },
1339
- { type: 'uint8', name: 'signatureType' },
1340
- { type: 'uint64', name: 'expiry' },
1341
- ],
1342
- },
1343
1192
  {
1344
1193
  name: 'KeyRevoked',
1345
1194
  type: 'event',
@@ -1348,14 +1197,6 @@ export const accountKeychain = [
1348
1197
  { type: 'address', name: 'publicKey', indexed: true },
1349
1198
  ],
1350
1199
  },
1351
- {
1352
- name: 'KeyRevoked',
1353
- type: 'event',
1354
- inputs: [
1355
- { type: 'address', name: 'account', indexed: true },
1356
- { type: 'bytes32', name: 'publicKey', indexed: true },
1357
- ],
1358
- },
1359
1200
  {
1360
1201
  name: 'SpendingLimitUpdated',
1361
1202
  type: 'event',
@@ -1366,16 +1207,6 @@ export const accountKeychain = [
1366
1207
  { type: 'uint256', name: 'newLimit' },
1367
1208
  ],
1368
1209
  },
1369
- {
1370
- name: 'SpendingLimitUpdated',
1371
- type: 'event',
1372
- inputs: [
1373
- { type: 'address', name: 'account', indexed: true },
1374
- { type: 'bytes32', name: 'publicKey', indexed: true },
1375
- { type: 'address', name: 'token', indexed: true },
1376
- { type: 'uint256', name: 'newLimit' },
1377
- ],
1378
- },
1379
1210
  { name: 'UnauthorizedCaller', type: 'error', inputs: [] },
1380
1211
  { name: 'KeyAlreadyExists', type: 'error', inputs: [] },
1381
1212
  { name: 'KeyNotFound', type: 'error', inputs: [] },
@@ -1398,13 +1229,6 @@ export const nonce = [
1398
1229
  ],
1399
1230
  outputs: [{ type: 'uint64', name: 'nonce' }],
1400
1231
  },
1401
- {
1402
- name: 'getActiveNonceKeyCount',
1403
- type: 'function',
1404
- stateMutability: 'view',
1405
- inputs: [{ type: 'address', name: 'account' }],
1406
- outputs: [{ type: 'uint256', name: 'count' }],
1407
- },
1408
1232
  {
1409
1233
  name: 'NonceIncremented',
1410
1234
  type: 'event',
@@ -1414,31 +1238,11 @@ export const nonce = [
1414
1238
  { type: 'uint64', name: 'newNonce' },
1415
1239
  ],
1416
1240
  },
1417
- {
1418
- name: 'ActiveKeyCountChanged',
1419
- type: 'event',
1420
- inputs: [
1421
- { type: 'address', name: 'account', indexed: true },
1422
- { type: 'uint256', name: 'newCount' },
1423
- ],
1424
- },
1425
1241
  { name: 'ProtocolNonceNotSupported', type: 'error', inputs: [] },
1426
1242
  { name: 'InvalidNonceKey', type: 'error', inputs: [] },
1427
1243
  { name: 'NonceOverflow', type: 'error', inputs: [] },
1428
1244
  ] as const
1429
1245
 
1430
- export const tip20RewardsRegistry = [
1431
- {
1432
- name: 'finalizeStreams',
1433
- type: 'function',
1434
- stateMutability: 'nonpayable',
1435
- inputs: [],
1436
- outputs: [],
1437
- },
1438
- { name: 'Unauthorized', type: 'error', inputs: [] },
1439
- { name: 'StreamsAlreadyFinalized', type: 'error', inputs: [] },
1440
- ] as const
1441
-
1442
1246
  export const tip20Factory = [
1443
1247
  {
1444
1248
  name: 'createToken',
@@ -1450,36 +1254,48 @@ export const tip20Factory = [
1450
1254
  { type: 'string', name: 'currency' },
1451
1255
  { type: 'address', name: 'quoteToken' },
1452
1256
  { type: 'address', name: 'admin' },
1257
+ { type: 'bytes32', name: 'salt' },
1453
1258
  ],
1454
1259
  outputs: [{ type: 'address' }],
1455
1260
  },
1456
1261
  {
1457
- name: 'tokenIdCounter',
1262
+ name: 'isTIP20',
1458
1263
  type: 'function',
1459
1264
  stateMutability: 'view',
1460
- inputs: [],
1461
- outputs: [{ type: 'uint256' }],
1265
+ inputs: [{ type: 'address', name: 'token' }],
1266
+ outputs: [{ type: 'bool' }],
1462
1267
  },
1463
1268
  {
1464
- name: 'isTIP20',
1269
+ name: 'getTokenAddress',
1465
1270
  type: 'function',
1466
1271
  stateMutability: 'view',
1467
- inputs: [{ type: 'address', name: 'token' }],
1468
- outputs: [{ type: 'bool' }],
1272
+ inputs: [
1273
+ { type: 'address', name: 'sender' },
1274
+ { type: 'bytes32', name: 'salt' },
1275
+ ],
1276
+ outputs: [{ type: 'address' }],
1469
1277
  },
1470
1278
  {
1471
1279
  name: 'TokenCreated',
1472
1280
  type: 'event',
1473
1281
  inputs: [
1474
1282
  { type: 'address', name: 'token', indexed: true },
1475
- { type: 'uint256', name: 'tokenId', indexed: true },
1476
1283
  { type: 'string', name: 'name' },
1477
1284
  { type: 'string', name: 'symbol' },
1478
1285
  { type: 'string', name: 'currency' },
1479
1286
  { type: 'address', name: 'quoteToken' },
1480
1287
  { type: 'address', name: 'admin' },
1288
+ { type: 'bytes32', name: 'salt' },
1481
1289
  ],
1482
1290
  },
1291
+ { name: 'AddressReserved', type: 'error', inputs: [] },
1292
+ { name: 'AddressNotReserved', type: 'error', inputs: [] },
1293
+ { name: 'InvalidQuoteToken', type: 'error', inputs: [] },
1294
+ {
1295
+ name: 'TokenAlreadyExists',
1296
+ type: 'error',
1297
+ inputs: [{ type: 'address', name: 'token' }],
1298
+ },
1483
1299
  ] as const
1484
1300
 
1485
1301
  export const tip403Registry = [
@@ -1490,6 +1306,13 @@ export const tip403Registry = [
1490
1306
  inputs: [],
1491
1307
  outputs: [{ type: 'uint64' }],
1492
1308
  },
1309
+ {
1310
+ name: 'policyExists',
1311
+ type: 'function',
1312
+ stateMutability: 'view',
1313
+ inputs: [{ type: 'uint64', name: 'policyId' }],
1314
+ outputs: [{ type: 'bool' }],
1315
+ },
1493
1316
  {
1494
1317
  name: 'policyData',
1495
1318
  type: 'function',
@@ -1603,6 +1426,7 @@ export const tip403Registry = [
1603
1426
  },
1604
1427
  { name: 'Unauthorized', type: 'error', inputs: [] },
1605
1428
  { name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
1429
+ { name: 'PolicyNotFound', type: 'error', inputs: [] },
1606
1430
  ] as const
1607
1431
 
1608
1432
  export const validatorConfig = [
@@ -1675,9 +1499,57 @@ export const validatorConfig = [
1675
1499
  inputs: [{ type: 'address', name: 'newOwner' }],
1676
1500
  outputs: [],
1677
1501
  },
1502
+ {
1503
+ name: 'getNextFullDkgCeremony',
1504
+ type: 'function',
1505
+ stateMutability: 'view',
1506
+ inputs: [],
1507
+ outputs: [{ type: 'uint64' }],
1508
+ },
1509
+ {
1510
+ name: 'setNextFullDkgCeremony',
1511
+ type: 'function',
1512
+ stateMutability: 'nonpayable',
1513
+ inputs: [{ type: 'uint64', name: 'epoch' }],
1514
+ outputs: [],
1515
+ },
1516
+ {
1517
+ name: 'validatorsArray',
1518
+ type: 'function',
1519
+ stateMutability: 'view',
1520
+ inputs: [{ type: 'uint256', name: 'index' }],
1521
+ outputs: [{ type: 'address' }],
1522
+ },
1523
+ {
1524
+ name: 'validators',
1525
+ type: 'function',
1526
+ stateMutability: 'view',
1527
+ inputs: [{ type: 'address', name: 'validator' }],
1528
+ outputs: [
1529
+ {
1530
+ type: 'tuple',
1531
+ components: [
1532
+ { type: 'bytes32', name: 'publicKey' },
1533
+ { type: 'bool', name: 'active' },
1534
+ { type: 'uint64', name: 'index' },
1535
+ { type: 'address', name: 'validatorAddress' },
1536
+ { type: 'string', name: 'inboundAddress' },
1537
+ { type: 'string', name: 'outboundAddress' },
1538
+ ],
1539
+ },
1540
+ ],
1541
+ },
1542
+ {
1543
+ name: 'validatorCount',
1544
+ type: 'function',
1545
+ stateMutability: 'view',
1546
+ inputs: [],
1547
+ outputs: [{ type: 'uint64' }],
1548
+ },
1678
1549
  { name: 'Unauthorized', type: 'error', inputs: [] },
1679
1550
  { name: 'ValidatorAlreadyExists', type: 'error', inputs: [] },
1680
1551
  { name: 'ValidatorNotFound', type: 'error', inputs: [] },
1552
+ { name: 'InvalidPublicKey', type: 'error', inputs: [] },
1681
1553
  {
1682
1554
  name: 'NotHostPort',
1683
1555
  type: 'error',
@@ -1697,20 +1569,3 @@ export const validatorConfig = [
1697
1569
  ],
1698
1570
  },
1699
1571
  ] as const
1700
-
1701
- export const pathUsd = [
1702
- {
1703
- name: 'TRANSFER_ROLE',
1704
- type: 'function',
1705
- stateMutability: 'view',
1706
- inputs: [],
1707
- outputs: [{ type: 'bytes32' }],
1708
- },
1709
- {
1710
- name: 'RECEIVE_WITH_MEMO_ROLE',
1711
- type: 'function',
1712
- stateMutability: 'view',
1713
- inputs: [],
1714
- outputs: [{ type: 'bytes32' }],
1715
- },
1716
- ] as const