@lombard.finance/sdk 2.5.2 → 3.2.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 (229) hide show
  1. package/README.md +483 -396
  2. package/dist/ccip.cjs +2 -0
  3. package/dist/ccip.cjs.map +1 -0
  4. package/dist/ccip.js +147 -0
  5. package/dist/ccip.js.map +1 -0
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.js +79 -8269
  9. package/dist/index.js.map +1 -1
  10. package/dist/index2.cjs +63 -0
  11. package/dist/index2.cjs.map +1 -0
  12. package/dist/index2.js +17989 -0
  13. package/dist/index2.js.map +1 -0
  14. package/package.json +10 -10
  15. package/src/{sdk → api-functions}/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx +15 -14
  16. package/src/{sdk → api-functions}/generateDepositBtcAddress/generateDepositBtcAddress.ts +18 -8
  17. package/src/{sdk → api-functions}/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +23 -14
  18. package/src/{sdk → api-functions}/getDepositBtcAddress/getDepositBtcAddress.ts +16 -7
  19. package/src/{sdk → api-functions}/getDepositBtcAddress/getDepositBtcAddresses.stories.tsx +15 -14
  20. package/src/{sdk → api-functions}/getDepositsByAddress/getDepositsByAddress.stories.tsx +13 -12
  21. package/src/{sdk → api-functions}/getDepositsByAddress/getDepositsByAddress.ts +9 -9
  22. package/src/{sdk → api-functions}/getLBTCExchangeRate/getLBTCExchangeRate.stories.tsx +16 -10
  23. package/src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.ts +71 -0
  24. package/src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.tsx +56 -0
  25. package/src/{sdk → api-functions}/getNetworkFeeSignature/getNetworkFeeSignature.ts +11 -5
  26. package/src/{sdk → api-functions}/getPointsByAddress/getPointsByAddress.stories.tsx +14 -13
  27. package/src/{sdk → api-functions}/getPointsByAddress/getPointsByAddress.ts +7 -4
  28. package/src/{sdk → api-functions}/getUnstakesByAddress/getUnstakesByAddress.stories.tsx +14 -13
  29. package/src/{sdk → api-functions}/getUnstakesByAddress/getUnstakesByAddress.ts +15 -10
  30. package/src/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.tsx +69 -0
  31. package/src/{sdk → api-functions}/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.ts +10 -6
  32. package/src/{sdk → api-functions}/index.ts +0 -3
  33. package/src/{sdk → api-functions}/setReferral/setReferral.ts +3 -3
  34. package/src/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.tsx +56 -0
  35. package/src/{sdk → api-functions}/storeNetworkFeeSignature/storeNetworkFeeSignature.ts +9 -7
  36. package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.tsx +56 -0
  37. package/src/{sdk → api-functions}/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +8 -6
  38. package/src/bridge/abi/CCIP_BRIDGE_ADAPTER_ABI.json +704 -0
  39. package/src/bridge/abi/OFT_BRIDGE_ADAPTER_ABI.json +912 -0
  40. package/src/bridge/index.ts +11 -0
  41. package/src/bridge/lib/bridge.stories.tsx +89 -0
  42. package/src/bridge/lib/bridge.ts +101 -0
  43. package/src/bridge/lib/ccip-bridge.stories.tsx +90 -0
  44. package/src/bridge/lib/ccip-bridge.ts +163 -0
  45. package/src/bridge/lib/config.ts +338 -0
  46. package/src/bridge/lib/oft-bridge.stories.tsx +89 -0
  47. package/src/bridge/lib/oft-bridge.ts +212 -0
  48. package/src/clients/public-client.ts +32 -0
  49. package/src/clients/rpc-url-config.ts +20 -0
  50. package/src/clients/wallet-client.ts +33 -0
  51. package/src/{sdk/apiConfig.ts → common/api-config.ts} +9 -3
  52. package/src/common/blockchain-identifier.ts +134 -0
  53. package/src/common/chains.ts +84 -0
  54. package/src/common/contract-info.ts +8 -0
  55. package/src/common/parameters.ts +51 -0
  56. package/src/contract-functions/approveLBTC/approveLBTC.stories.tsx +76 -0
  57. package/src/contract-functions/approveLBTC/approveLBTC.ts +65 -0
  58. package/src/{web3Sdk → contract-functions}/claimLBTC/claimLBTC.stories.tsx +22 -30
  59. package/src/contract-functions/claimLBTC/claimLBTC.ts +90 -0
  60. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +50 -0
  61. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +127 -0
  62. package/src/{web3Sdk → contract-functions}/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +15 -11
  63. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.tsx +37 -0
  64. package/src/{vaults/lib/get-vault-points.stories.tsx → contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.stories.tsx} +13 -16
  65. package/src/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.ts +34 -0
  66. package/src/{web3Sdk → contract-functions}/getPermitNonce/getPermitNonce.stories.tsx +12 -22
  67. package/src/contract-functions/getPermitNonce/getPermitNonce.ts +45 -0
  68. package/src/{web3Sdk → contract-functions}/getShareValue/getShareValue.stories.tsx +12 -7
  69. package/src/contract-functions/getShareValue/getShareValue.ts +58 -0
  70. package/src/{web3Sdk → contract-functions}/getSharesByAddress/getSharesByAddress.stories.tsx +14 -9
  71. package/src/{web3Sdk → contract-functions}/getSharesByAddress/getSharesByAddress.ts +29 -28
  72. package/src/{web3Sdk → contract-functions}/getStakeAndBakeFee/getStakeAndBakeFee.stories.tsx +29 -16
  73. package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.tsx +65 -0
  74. package/src/{web3Sdk → contract-functions}/index.ts +8 -7
  75. package/src/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.ts +32 -0
  76. package/src/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.tsx +63 -0
  77. package/src/contract-functions/signNetworkFee/signNetworkFee.stories.tsx +91 -0
  78. package/src/contract-functions/signNetworkFee/signNetworkFee.ts +99 -0
  79. package/src/contract-functions/signStakeAndBake/index.ts +1 -0
  80. package/src/{web3Sdk → contract-functions}/signStakeAndBake/signStakeAndBake.stories.tsx +29 -41
  81. package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +145 -0
  82. package/src/contract-functions/unstakeLBTC/unstakeLBTC.stories.tsx +80 -0
  83. package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +66 -0
  84. package/src/index.ts +40 -17
  85. package/src/metrics/get-lbtc-stats.stories.tsx +51 -0
  86. package/src/metrics/get-lbtc-stats.ts +38 -0
  87. package/src/rewards/index.ts +26 -0
  88. package/src/rewards/lib/claim-reward.stories.tsx +82 -0
  89. package/src/rewards/lib/claim-reward.ts +84 -0
  90. package/src/rewards/lib/get-reward-balances.stories.tsx +64 -0
  91. package/src/rewards/lib/get-reward-balances.ts +81 -0
  92. package/src/rewards/lib/get-reward-signing-data.stories.tsx +76 -0
  93. package/src/rewards/lib/get-reward-signing-data.ts +52 -0
  94. package/src/rewards/lib/get-reward-withdrawal-fee.stories.tsx +61 -0
  95. package/src/rewards/lib/get-reward-withdrawal-fee.ts +37 -0
  96. package/src/rewards/lib/get-reward-withdrawals.stories.tsx +60 -0
  97. package/src/rewards/lib/get-reward-withdrawals.ts +92 -0
  98. package/src/rewards/lib/reward-tokens.ts +7 -0
  99. package/src/stories/components/Button/Button.css +10 -0
  100. package/src/stories/components/Button/Button.tsx +15 -4
  101. package/src/stories/components/CodeBlock/CodeBlock.tsx +1 -0
  102. package/src/stories/components/ConnectButton/connect-button.tsx +100 -0
  103. package/src/stories/components/ConnectButton/index.ts +1 -0
  104. package/src/stories/components/decorators/function-type.tsx +63 -0
  105. package/src/stories/components/decorators/index.ts +2 -0
  106. package/src/stories/components/decorators/wagmi-decorator.tsx +79 -0
  107. package/src/stories/components/error-block.tsx +21 -0
  108. package/src/stories/constants.ts +3 -0
  109. package/src/stories/hooks/useConnection.ts +72 -0
  110. package/src/stories/hooks/useQuery.ts +2 -2
  111. package/src/{web3Sdk/abi/LBTC.json → tokens/abi/LBTC_ABI.json} +1 -1
  112. package/src/tokens/abi/LBTC_ABI.ts +1761 -0
  113. package/src/tokens/abi/LBTC_BASCULE_ABI.json +850 -0
  114. package/src/tokens/lbtc-addresses.ts +55 -0
  115. package/src/tokens/token-addresses.ts +32 -0
  116. package/src/tokens/tokens.ts +120 -0
  117. package/src/utils/env.ts +12 -0
  118. package/src/utils/hex.ts +2 -2
  119. package/src/utils/numbers.ts +8 -0
  120. package/src/{common/utils/convertSatoshi.ts → utils/satoshi.ts} +3 -3
  121. package/src/utils/time.ts +12 -0
  122. package/src/vaults/abi/VEDA_VAULT_BASE_ASSET_ABI.json +296 -0
  123. package/src/vaults/abi/VEDA_VAULT_BORING_WITHDRAW_QUEUE_ABI.json +502 -0
  124. package/src/vaults/abi/VEDA_VAULT_SPENDER_ABI.json +408 -0
  125. package/src/vaults/abi/VEDA_VAULT_TELLER_ABI.json +700 -0
  126. package/src/vaults/index.ts +36 -69
  127. package/src/vaults/lib/config.ts +196 -0
  128. package/src/vaults/lib/metrics/get-vault-apy.stories.tsx +57 -0
  129. package/src/vaults/lib/metrics/get-vault-apy.ts +132 -0
  130. package/src/vaults/lib/metrics/get-vault-points.stories.tsx +59 -0
  131. package/src/vaults/lib/{get-vault-points.ts → metrics/get-vault-points.ts} +14 -10
  132. package/src/vaults/lib/metrics/get-vault-tvl.stories.tsx +57 -0
  133. package/src/vaults/lib/metrics/get-vault-tvl.ts +119 -0
  134. package/src/vaults/lib/ops/cancel-withdraw.stories.tsx +79 -0
  135. package/src/vaults/lib/ops/deposit.stories.tsx +81 -0
  136. package/src/vaults/lib/ops/deposit.ts +151 -0
  137. package/src/vaults/lib/{get-vault-deposits.stories.tsx → ops/get-vault-deposits.stories.tsx} +20 -14
  138. package/src/vaults/lib/{get-vault-deposits.ts → ops/get-vault-deposits.ts} +45 -22
  139. package/src/vaults/lib/{get-vault-withdrawals.stories.tsx → ops/get-vault-withdrawals.stories.tsx} +20 -13
  140. package/src/vaults/lib/{get-vault-withdrawals.ts → ops/get-vault-withdrawals.ts} +72 -38
  141. package/src/vaults/lib/ops/withdraw.stories.tsx +81 -0
  142. package/src/vaults/lib/ops/withdraw.ts +224 -0
  143. package/src/common/const.ts +0 -5
  144. package/src/common/types/internalTypes.ts +0 -10
  145. package/src/common/types/types.ts +0 -57
  146. package/src/common/utils/isValidChain.ts +0 -5
  147. package/src/provider/Provider.ts +0 -171
  148. package/src/provider/ReadProvider.ts +0 -126
  149. package/src/provider/index.ts +0 -2
  150. package/src/provider/rpcUrlConfig.ts +0 -19
  151. package/src/provider/types.ts +0 -58
  152. package/src/provider/utils/getMaxPriorityFeePerGas.ts +0 -25
  153. package/src/sdk/getLBTCExchangeRate/getLBTCExchangeRate.ts +0 -65
  154. package/src/sdk/getNetworkFeeSignature/getNetworkFeeSignature.stories.tsx +0 -85
  155. package/src/sdk/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.tsx +0 -86
  156. package/src/sdk/internalTypes.ts +0 -18
  157. package/src/sdk/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.tsx +0 -86
  158. package/src/sdk/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.tsx +0 -116
  159. package/src/sdk/utils/getChainIdByName.ts +0 -48
  160. package/src/sdk/utils/getChainNameById.ts +0 -41
  161. package/src/stories/const.ts +0 -1
  162. package/src/stories/hooks/useConnect.ts +0 -47
  163. package/src/stories/utils/connectInjectedWallet.ts +0 -12
  164. package/src/stories/utils/fromCamelCase.ts +0 -16
  165. package/src/stories/utils/getMetaTitle.ts +0 -7
  166. package/src/stories/utils/getWalletInfo.ts +0 -31
  167. package/src/web3Sdk/abi/BASCULE.json +0 -850
  168. package/src/web3Sdk/abi/IERC20.json +0 -222
  169. package/src/web3Sdk/abi/STAKE_AND_BAKE.json +0 -15
  170. package/src/web3Sdk/abi/index.ts +0 -6
  171. package/src/web3Sdk/approveLBTC/approveLBTC.stories.tsx +0 -77
  172. package/src/web3Sdk/approveLBTC/approveLBTC.ts +0 -48
  173. package/src/web3Sdk/claimLBTC/claimLBTC.ts +0 -86
  174. package/src/web3Sdk/const.ts +0 -2
  175. package/src/web3Sdk/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +0 -89
  176. package/src/web3Sdk/getBasculeDepositStatus/getBasculeDepositStatus.ts +0 -75
  177. package/src/web3Sdk/getBasculeDepositStatus/utils/const.ts +0 -8
  178. package/src/web3Sdk/getBasculeDepositStatus/utils/throwBasculeDepositStatusError.ts +0 -21
  179. package/src/web3Sdk/getLBTCMintingFee/getLBTCMintingFee.tsx +0 -41
  180. package/src/web3Sdk/getLBTCTotalSupply/getLBTCTotalSupply.stories.tsx +0 -60
  181. package/src/web3Sdk/getLBTCTotalSupply/getLBTCTotalSupply.ts +0 -26
  182. package/src/web3Sdk/getPermitNonce/getPermitNonce.ts +0 -47
  183. package/src/web3Sdk/getShareValue/getShareValue.ts +0 -58
  184. package/src/web3Sdk/getStakeAndBakeFee/getStakeAndBakeFee.tsx +0 -48
  185. package/src/web3Sdk/lbtcAddressConfig.ts +0 -96
  186. package/src/web3Sdk/signLbtcDestionationAddr/signLbtcDestinationAddr.ts +0 -23
  187. package/src/web3Sdk/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.tsx +0 -97
  188. package/src/web3Sdk/signNetworkFee/signNetworkFee.stories.tsx +0 -91
  189. package/src/web3Sdk/signNetworkFee/signNetworkFee.ts +0 -92
  190. package/src/web3Sdk/signStakeAndBake/contracts.ts +0 -80
  191. package/src/web3Sdk/signStakeAndBake/getTypedData.ts +0 -78
  192. package/src/web3Sdk/signStakeAndBake/index.ts +0 -3
  193. package/src/web3Sdk/signStakeAndBake/signStakeAndBake.ts +0 -105
  194. package/src/web3Sdk/signStakeAndBake/utils.ts +0 -23
  195. package/src/web3Sdk/types.ts +0 -16
  196. package/src/web3Sdk/unstakeLBTC/unstakeLBTC.stories.tsx +0 -77
  197. package/src/web3Sdk/unstakeLBTC/unstakeLBTC.ts +0 -51
  198. package/src/web3Sdk/utils/chainIdToEnv.ts +0 -12
  199. package/src/web3Sdk/utils/getBasculeTokenContract.ts +0 -21
  200. package/src/web3Sdk/utils/getGasMultiplier.ts +0 -20
  201. package/src/web3Sdk/utils/getLbtcTokenContract.ts +0 -36
  202. package/src/web3Sdk/utils/getRpcUrlConfigFromChain.ts +0 -34
  203. package/src/web3Sdk/utils/getTokenABI.ts +0 -12
  204. /package/src/{sdk → api-functions}/generateDepositBtcAddress/index.ts +0 -0
  205. /package/src/{sdk → api-functions}/getDepositBtcAddress/index.ts +0 -0
  206. /package/src/{sdk → api-functions}/getDepositsByAddress/index.ts +0 -0
  207. /package/src/{sdk → api-functions}/getLBTCExchangeRate/index.ts +0 -0
  208. /package/src/{sdk → api-functions}/getNetworkFeeSignature/index.ts +0 -0
  209. /package/src/{sdk → api-functions}/getPointsByAddress/index.ts +0 -0
  210. /package/src/{sdk → api-functions}/getUnstakesByAddress/index.ts +0 -0
  211. /package/src/{sdk → api-functions}/getUserStakeAndBakeSignature/index.ts +0 -0
  212. /package/src/{sdk → api-functions}/setReferral/index.ts +0 -0
  213. /package/src/{sdk → api-functions}/storeNetworkFeeSignature/index.ts +0 -0
  214. /package/src/{sdk → api-functions}/storeStakeAndBakeSignature/index.ts +0 -0
  215. /package/src/{sdk/const.ts → common/constants.ts} +0 -0
  216. /package/src/{web3Sdk → contract-functions}/approveLBTC/index.ts +0 -0
  217. /package/src/{web3Sdk → contract-functions}/claimLBTC/index.ts +0 -0
  218. /package/src/{web3Sdk → contract-functions}/getBasculeDepositStatus/index.ts +0 -0
  219. /package/src/{web3Sdk → contract-functions}/getLBTCMintingFee/index.ts +0 -0
  220. /package/src/{web3Sdk → contract-functions}/getLBTCTotalSupply/index.ts +0 -0
  221. /package/src/{web3Sdk → contract-functions}/getPermitNonce/index.ts +0 -0
  222. /package/src/{web3Sdk → contract-functions}/getShareValue/index.ts +0 -0
  223. /package/src/{web3Sdk → contract-functions}/getSharesByAddress/index.ts +0 -0
  224. /package/src/{web3Sdk → contract-functions}/getStakeAndBakeFee/index.ts +0 -0
  225. /package/src/{web3Sdk → contract-functions}/signLbtcDestionationAddr/index.ts +0 -0
  226. /package/src/{web3Sdk → contract-functions}/signNetworkFee/getTypedData.ts +0 -0
  227. /package/src/{web3Sdk → contract-functions}/signNetworkFee/index.ts +0 -0
  228. /package/src/{web3Sdk → contract-functions}/unstakeLBTC/index.ts +0 -0
  229. /package/src/{common/utils/getErrorMessage.ts → utils/err.ts} +0 -0
@@ -0,0 +1,1761 @@
1
+ export const LBTC_ABI = [
2
+ {
3
+ inputs: [],
4
+ stateMutability: 'nonpayable',
5
+ type: 'constructor',
6
+ },
7
+ {
8
+ inputs: [
9
+ {
10
+ internalType: 'uint256',
11
+ name: 'dustLimit',
12
+ type: 'uint256',
13
+ },
14
+ ],
15
+ name: 'AmountBelowDustLimit',
16
+ type: 'error',
17
+ },
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: 'uint256',
22
+ name: 'fee',
23
+ type: 'uint256',
24
+ },
25
+ ],
26
+ name: 'AmountLessThanCommission',
27
+ type: 'error',
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: 'ECDSAInvalidSignature',
32
+ type: 'error',
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: 'uint256',
38
+ name: 'length',
39
+ type: 'uint256',
40
+ },
41
+ ],
42
+ name: 'ECDSAInvalidSignatureLength',
43
+ type: 'error',
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ internalType: 'bytes32',
49
+ name: 's',
50
+ type: 'bytes32',
51
+ },
52
+ ],
53
+ name: 'ECDSAInvalidSignatureS',
54
+ type: 'error',
55
+ },
56
+ {
57
+ inputs: [
58
+ {
59
+ internalType: 'address',
60
+ name: 'spender',
61
+ type: 'address',
62
+ },
63
+ {
64
+ internalType: 'uint256',
65
+ name: 'allowance',
66
+ type: 'uint256',
67
+ },
68
+ {
69
+ internalType: 'uint256',
70
+ name: 'needed',
71
+ type: 'uint256',
72
+ },
73
+ ],
74
+ name: 'ERC20InsufficientAllowance',
75
+ type: 'error',
76
+ },
77
+ {
78
+ inputs: [
79
+ {
80
+ internalType: 'address',
81
+ name: 'sender',
82
+ type: 'address',
83
+ },
84
+ {
85
+ internalType: 'uint256',
86
+ name: 'balance',
87
+ type: 'uint256',
88
+ },
89
+ {
90
+ internalType: 'uint256',
91
+ name: 'needed',
92
+ type: 'uint256',
93
+ },
94
+ ],
95
+ name: 'ERC20InsufficientBalance',
96
+ type: 'error',
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: 'address',
102
+ name: 'approver',
103
+ type: 'address',
104
+ },
105
+ ],
106
+ name: 'ERC20InvalidApprover',
107
+ type: 'error',
108
+ },
109
+ {
110
+ inputs: [
111
+ {
112
+ internalType: 'address',
113
+ name: 'receiver',
114
+ type: 'address',
115
+ },
116
+ ],
117
+ name: 'ERC20InvalidReceiver',
118
+ type: 'error',
119
+ },
120
+ {
121
+ inputs: [
122
+ {
123
+ internalType: 'address',
124
+ name: 'sender',
125
+ type: 'address',
126
+ },
127
+ ],
128
+ name: 'ERC20InvalidSender',
129
+ type: 'error',
130
+ },
131
+ {
132
+ inputs: [
133
+ {
134
+ internalType: 'address',
135
+ name: 'spender',
136
+ type: 'address',
137
+ },
138
+ ],
139
+ name: 'ERC20InvalidSpender',
140
+ type: 'error',
141
+ },
142
+ {
143
+ inputs: [
144
+ {
145
+ internalType: 'uint256',
146
+ name: 'deadline',
147
+ type: 'uint256',
148
+ },
149
+ ],
150
+ name: 'ERC2612ExpiredSignature',
151
+ type: 'error',
152
+ },
153
+ {
154
+ inputs: [
155
+ {
156
+ internalType: 'address',
157
+ name: 'signer',
158
+ type: 'address',
159
+ },
160
+ {
161
+ internalType: 'address',
162
+ name: 'owner',
163
+ type: 'address',
164
+ },
165
+ ],
166
+ name: 'ERC2612InvalidSigner',
167
+ type: 'error',
168
+ },
169
+ {
170
+ inputs: [],
171
+ name: 'EnforcedPause',
172
+ type: 'error',
173
+ },
174
+ {
175
+ inputs: [],
176
+ name: 'ExpectedPause',
177
+ type: 'error',
178
+ },
179
+ {
180
+ inputs: [],
181
+ name: 'FeeGreaterThanAmount',
182
+ type: 'error',
183
+ },
184
+ {
185
+ inputs: [
186
+ {
187
+ internalType: 'address',
188
+ name: 'account',
189
+ type: 'address',
190
+ },
191
+ {
192
+ internalType: 'uint256',
193
+ name: 'currentNonce',
194
+ type: 'uint256',
195
+ },
196
+ ],
197
+ name: 'InvalidAccountNonce',
198
+ type: 'error',
199
+ },
200
+ {
201
+ inputs: [],
202
+ name: 'InvalidDustFeeRate',
203
+ type: 'error',
204
+ },
205
+ {
206
+ inputs: [],
207
+ name: 'InvalidInitialization',
208
+ type: 'error',
209
+ },
210
+ {
211
+ inputs: [],
212
+ name: 'InvalidInputLength',
213
+ type: 'error',
214
+ },
215
+ {
216
+ inputs: [],
217
+ name: 'InvalidUserSignature',
218
+ type: 'error',
219
+ },
220
+ {
221
+ inputs: [],
222
+ name: 'KnownDestination',
223
+ type: 'error',
224
+ },
225
+ {
226
+ inputs: [],
227
+ name: 'NotInitializing',
228
+ type: 'error',
229
+ },
230
+ {
231
+ inputs: [
232
+ {
233
+ internalType: 'address',
234
+ name: 'owner',
235
+ type: 'address',
236
+ },
237
+ ],
238
+ name: 'OwnableInvalidOwner',
239
+ type: 'error',
240
+ },
241
+ {
242
+ inputs: [
243
+ {
244
+ internalType: 'address',
245
+ name: 'account',
246
+ type: 'address',
247
+ },
248
+ ],
249
+ name: 'OwnableUnauthorizedAccount',
250
+ type: 'error',
251
+ },
252
+ {
253
+ inputs: [],
254
+ name: 'PayloadAlreadyUsed',
255
+ type: 'error',
256
+ },
257
+ {
258
+ inputs: [],
259
+ name: 'ReentrancyGuardReentrantCall',
260
+ type: 'error',
261
+ },
262
+ {
263
+ inputs: [],
264
+ name: 'ScriptPubkeyUnsupported',
265
+ type: 'error',
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: 'address',
271
+ name: 'account',
272
+ type: 'address',
273
+ },
274
+ ],
275
+ name: 'UnauthorizedAccount',
276
+ type: 'error',
277
+ },
278
+ {
279
+ inputs: [
280
+ {
281
+ internalType: 'bytes4',
282
+ name: 'action',
283
+ type: 'bytes4',
284
+ },
285
+ ],
286
+ name: 'UnexpectedAction',
287
+ type: 'error',
288
+ },
289
+ {
290
+ inputs: [],
291
+ name: 'UnknownDestination',
292
+ type: 'error',
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: 'uint256',
298
+ name: 'fromChainId',
299
+ type: 'uint256',
300
+ },
301
+ {
302
+ internalType: 'address',
303
+ name: 'fromContract',
304
+ type: 'address',
305
+ },
306
+ ],
307
+ name: 'UnknownOriginContract',
308
+ type: 'error',
309
+ },
310
+ {
311
+ inputs: [
312
+ {
313
+ internalType: 'uint256',
314
+ name: 'expiry',
315
+ type: 'uint256',
316
+ },
317
+ ],
318
+ name: 'UserSignatureExpired',
319
+ type: 'error',
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: 'WithdrawalsDisabled',
324
+ type: 'error',
325
+ },
326
+ {
327
+ inputs: [],
328
+ name: 'WrongChainId',
329
+ type: 'error',
330
+ },
331
+ {
332
+ inputs: [],
333
+ name: 'ZeroAddress',
334
+ type: 'error',
335
+ },
336
+ {
337
+ inputs: [],
338
+ name: 'ZeroAddress',
339
+ type: 'error',
340
+ },
341
+ {
342
+ inputs: [],
343
+ name: 'ZeroAmount',
344
+ type: 'error',
345
+ },
346
+ {
347
+ inputs: [],
348
+ name: 'ZeroChainId',
349
+ type: 'error',
350
+ },
351
+ {
352
+ inputs: [],
353
+ name: 'ZeroContractHash',
354
+ type: 'error',
355
+ },
356
+ {
357
+ inputs: [],
358
+ name: 'ZeroFee',
359
+ type: 'error',
360
+ },
361
+ {
362
+ anonymous: false,
363
+ inputs: [
364
+ {
365
+ indexed: true,
366
+ internalType: 'address',
367
+ name: 'owner',
368
+ type: 'address',
369
+ },
370
+ {
371
+ indexed: true,
372
+ internalType: 'address',
373
+ name: 'spender',
374
+ type: 'address',
375
+ },
376
+ {
377
+ indexed: false,
378
+ internalType: 'uint256',
379
+ name: 'value',
380
+ type: 'uint256',
381
+ },
382
+ ],
383
+ name: 'Approval',
384
+ type: 'event',
385
+ },
386
+ {
387
+ anonymous: false,
388
+ inputs: [
389
+ {
390
+ indexed: true,
391
+ internalType: 'address',
392
+ name: 'prevVal',
393
+ type: 'address',
394
+ },
395
+ {
396
+ indexed: true,
397
+ internalType: 'address',
398
+ name: 'newVal',
399
+ type: 'address',
400
+ },
401
+ ],
402
+ name: 'BasculeChanged',
403
+ type: 'event',
404
+ },
405
+ {
406
+ anonymous: false,
407
+ inputs: [
408
+ {
409
+ indexed: true,
410
+ internalType: 'address',
411
+ name: 'prevVal',
412
+ type: 'address',
413
+ },
414
+ {
415
+ indexed: true,
416
+ internalType: 'address',
417
+ name: 'newVal',
418
+ type: 'address',
419
+ },
420
+ ],
421
+ name: 'BridgeChanged',
422
+ type: 'event',
423
+ },
424
+ {
425
+ anonymous: false,
426
+ inputs: [
427
+ {
428
+ indexed: true,
429
+ internalType: 'uint64',
430
+ name: 'prevValue',
431
+ type: 'uint64',
432
+ },
433
+ {
434
+ indexed: true,
435
+ internalType: 'uint64',
436
+ name: 'newValue',
437
+ type: 'uint64',
438
+ },
439
+ ],
440
+ name: 'BurnCommissionChanged',
441
+ type: 'event',
442
+ },
443
+ {
444
+ anonymous: false,
445
+ inputs: [
446
+ {
447
+ indexed: true,
448
+ internalType: 'address',
449
+ name: 'claimer',
450
+ type: 'address',
451
+ },
452
+ {
453
+ indexed: false,
454
+ internalType: 'bool',
455
+ name: 'isClaimer',
456
+ type: 'bool',
457
+ },
458
+ ],
459
+ name: 'ClaimerUpdated',
460
+ type: 'event',
461
+ },
462
+ {
463
+ anonymous: false,
464
+ inputs: [
465
+ {
466
+ indexed: true,
467
+ internalType: 'address',
468
+ name: 'prevVal',
469
+ type: 'address',
470
+ },
471
+ {
472
+ indexed: true,
473
+ internalType: 'address',
474
+ name: 'newVal',
475
+ type: 'address',
476
+ },
477
+ ],
478
+ name: 'ConsortiumChanged',
479
+ type: 'event',
480
+ },
481
+ {
482
+ anonymous: false,
483
+ inputs: [
484
+ {
485
+ indexed: true,
486
+ internalType: 'uint256',
487
+ name: 'oldRate',
488
+ type: 'uint256',
489
+ },
490
+ {
491
+ indexed: true,
492
+ internalType: 'uint256',
493
+ name: 'newRate',
494
+ type: 'uint256',
495
+ },
496
+ ],
497
+ name: 'DustFeeRateChanged',
498
+ type: 'event',
499
+ },
500
+ {
501
+ anonymous: false,
502
+ inputs: [],
503
+ name: 'EIP712DomainChanged',
504
+ type: 'event',
505
+ },
506
+ {
507
+ anonymous: false,
508
+ inputs: [
509
+ {
510
+ indexed: true,
511
+ internalType: 'uint256',
512
+ name: 'oldFee',
513
+ type: 'uint256',
514
+ },
515
+ {
516
+ indexed: true,
517
+ internalType: 'uint256',
518
+ name: 'newFee',
519
+ type: 'uint256',
520
+ },
521
+ ],
522
+ name: 'FeeChanged',
523
+ type: 'event',
524
+ },
525
+ {
526
+ anonymous: false,
527
+ inputs: [
528
+ {
529
+ indexed: true,
530
+ internalType: 'uint256',
531
+ name: 'fee',
532
+ type: 'uint256',
533
+ },
534
+ {
535
+ indexed: false,
536
+ internalType: 'bytes',
537
+ name: 'userSignature',
538
+ type: 'bytes',
539
+ },
540
+ ],
541
+ name: 'FeeCharged',
542
+ type: 'event',
543
+ },
544
+ {
545
+ anonymous: false,
546
+ inputs: [
547
+ {
548
+ indexed: false,
549
+ internalType: 'uint64',
550
+ name: 'version',
551
+ type: 'uint64',
552
+ },
553
+ ],
554
+ name: 'Initialized',
555
+ type: 'event',
556
+ },
557
+ {
558
+ anonymous: false,
559
+ inputs: [
560
+ {
561
+ indexed: true,
562
+ internalType: 'address',
563
+ name: 'recipient',
564
+ type: 'address',
565
+ },
566
+ {
567
+ indexed: true,
568
+ internalType: 'bytes32',
569
+ name: 'payloadHash',
570
+ type: 'bytes32',
571
+ },
572
+ {
573
+ indexed: false,
574
+ internalType: 'bytes',
575
+ name: 'payload',
576
+ type: 'bytes',
577
+ },
578
+ ],
579
+ name: 'MintProofConsumed',
580
+ type: 'event',
581
+ },
582
+ {
583
+ anonymous: false,
584
+ inputs: [
585
+ {
586
+ indexed: true,
587
+ internalType: 'address',
588
+ name: 'minter',
589
+ type: 'address',
590
+ },
591
+ {
592
+ indexed: false,
593
+ internalType: 'bool',
594
+ name: 'isMinter',
595
+ type: 'bool',
596
+ },
597
+ ],
598
+ name: 'MinterUpdated',
599
+ type: 'event',
600
+ },
601
+ {
602
+ anonymous: false,
603
+ inputs: [
604
+ {
605
+ indexed: false,
606
+ internalType: 'string',
607
+ name: 'name',
608
+ type: 'string',
609
+ },
610
+ {
611
+ indexed: false,
612
+ internalType: 'string',
613
+ name: 'symbol',
614
+ type: 'string',
615
+ },
616
+ ],
617
+ name: 'NameAndSymbolChanged',
618
+ type: 'event',
619
+ },
620
+ {
621
+ anonymous: false,
622
+ inputs: [
623
+ {
624
+ indexed: true,
625
+ internalType: 'address',
626
+ name: 'previousOwner',
627
+ type: 'address',
628
+ },
629
+ {
630
+ indexed: true,
631
+ internalType: 'address',
632
+ name: 'newOwner',
633
+ type: 'address',
634
+ },
635
+ ],
636
+ name: 'OwnershipTransferStarted',
637
+ type: 'event',
638
+ },
639
+ {
640
+ anonymous: false,
641
+ inputs: [
642
+ {
643
+ indexed: true,
644
+ internalType: 'address',
645
+ name: 'previousOwner',
646
+ type: 'address',
647
+ },
648
+ {
649
+ indexed: true,
650
+ internalType: 'address',
651
+ name: 'newOwner',
652
+ type: 'address',
653
+ },
654
+ ],
655
+ name: 'OwnershipTransferred',
656
+ type: 'event',
657
+ },
658
+ {
659
+ anonymous: false,
660
+ inputs: [
661
+ {
662
+ indexed: false,
663
+ internalType: 'address',
664
+ name: 'account',
665
+ type: 'address',
666
+ },
667
+ ],
668
+ name: 'Paused',
669
+ type: 'event',
670
+ },
671
+ {
672
+ anonymous: false,
673
+ inputs: [
674
+ {
675
+ indexed: true,
676
+ internalType: 'address',
677
+ name: 'previousPauser',
678
+ type: 'address',
679
+ },
680
+ {
681
+ indexed: true,
682
+ internalType: 'address',
683
+ name: 'newPauser',
684
+ type: 'address',
685
+ },
686
+ ],
687
+ name: 'PauserRoleTransferred',
688
+ type: 'event',
689
+ },
690
+ {
691
+ anonymous: false,
692
+ inputs: [
693
+ {
694
+ indexed: true,
695
+ internalType: 'address',
696
+ name: 'from',
697
+ type: 'address',
698
+ },
699
+ {
700
+ indexed: true,
701
+ internalType: 'address',
702
+ name: 'to',
703
+ type: 'address',
704
+ },
705
+ {
706
+ indexed: false,
707
+ internalType: 'uint256',
708
+ name: 'value',
709
+ type: 'uint256',
710
+ },
711
+ ],
712
+ name: 'Transfer',
713
+ type: 'event',
714
+ },
715
+ {
716
+ anonymous: false,
717
+ inputs: [
718
+ {
719
+ indexed: true,
720
+ internalType: 'address',
721
+ name: 'prevValue',
722
+ type: 'address',
723
+ },
724
+ {
725
+ indexed: true,
726
+ internalType: 'address',
727
+ name: 'newValue',
728
+ type: 'address',
729
+ },
730
+ ],
731
+ name: 'TreasuryAddressChanged',
732
+ type: 'event',
733
+ },
734
+ {
735
+ anonymous: false,
736
+ inputs: [
737
+ {
738
+ indexed: false,
739
+ internalType: 'address',
740
+ name: 'account',
741
+ type: 'address',
742
+ },
743
+ ],
744
+ name: 'Unpaused',
745
+ type: 'event',
746
+ },
747
+ {
748
+ anonymous: false,
749
+ inputs: [
750
+ {
751
+ indexed: true,
752
+ internalType: 'address',
753
+ name: 'fromAddress',
754
+ type: 'address',
755
+ },
756
+ {
757
+ indexed: false,
758
+ internalType: 'bytes',
759
+ name: 'scriptPubKey',
760
+ type: 'bytes',
761
+ },
762
+ {
763
+ indexed: false,
764
+ internalType: 'uint256',
765
+ name: 'amount',
766
+ type: 'uint256',
767
+ },
768
+ ],
769
+ name: 'UnstakeRequest',
770
+ type: 'event',
771
+ },
772
+ {
773
+ anonymous: false,
774
+ inputs: [
775
+ {
776
+ indexed: false,
777
+ internalType: 'bool',
778
+ name: '',
779
+ type: 'bool',
780
+ },
781
+ ],
782
+ name: 'WithdrawalsEnabled',
783
+ type: 'event',
784
+ },
785
+ {
786
+ inputs: [],
787
+ name: 'Bascule',
788
+ outputs: [
789
+ {
790
+ internalType: 'contract IBascule',
791
+ name: '',
792
+ type: 'address',
793
+ },
794
+ ],
795
+ stateMutability: 'view',
796
+ type: 'function',
797
+ },
798
+ {
799
+ inputs: [],
800
+ name: 'DOMAIN_SEPARATOR',
801
+ outputs: [
802
+ {
803
+ internalType: 'bytes32',
804
+ name: '',
805
+ type: 'bytes32',
806
+ },
807
+ ],
808
+ stateMutability: 'view',
809
+ type: 'function',
810
+ },
811
+ {
812
+ inputs: [],
813
+ name: 'acceptOwnership',
814
+ outputs: [],
815
+ stateMutability: 'nonpayable',
816
+ type: 'function',
817
+ },
818
+ {
819
+ inputs: [
820
+ {
821
+ internalType: 'address',
822
+ name: 'newClaimer',
823
+ type: 'address',
824
+ },
825
+ ],
826
+ name: 'addClaimer',
827
+ outputs: [],
828
+ stateMutability: 'nonpayable',
829
+ type: 'function',
830
+ },
831
+ {
832
+ inputs: [
833
+ {
834
+ internalType: 'address',
835
+ name: 'newMinter',
836
+ type: 'address',
837
+ },
838
+ ],
839
+ name: 'addMinter',
840
+ outputs: [],
841
+ stateMutability: 'nonpayable',
842
+ type: 'function',
843
+ },
844
+ {
845
+ inputs: [
846
+ {
847
+ internalType: 'address',
848
+ name: 'owner',
849
+ type: 'address',
850
+ },
851
+ {
852
+ internalType: 'address',
853
+ name: 'spender',
854
+ type: 'address',
855
+ },
856
+ ],
857
+ name: 'allowance',
858
+ outputs: [
859
+ {
860
+ internalType: 'uint256',
861
+ name: '',
862
+ type: 'uint256',
863
+ },
864
+ ],
865
+ stateMutability: 'view',
866
+ type: 'function',
867
+ },
868
+ {
869
+ inputs: [
870
+ {
871
+ internalType: 'address',
872
+ name: 'spender',
873
+ type: 'address',
874
+ },
875
+ {
876
+ internalType: 'uint256',
877
+ name: 'value',
878
+ type: 'uint256',
879
+ },
880
+ ],
881
+ name: 'approve',
882
+ outputs: [
883
+ {
884
+ internalType: 'bool',
885
+ name: '',
886
+ type: 'bool',
887
+ },
888
+ ],
889
+ stateMutability: 'nonpayable',
890
+ type: 'function',
891
+ },
892
+ {
893
+ inputs: [
894
+ {
895
+ internalType: 'address',
896
+ name: 'account',
897
+ type: 'address',
898
+ },
899
+ ],
900
+ name: 'balanceOf',
901
+ outputs: [
902
+ {
903
+ internalType: 'uint256',
904
+ name: '',
905
+ type: 'uint256',
906
+ },
907
+ ],
908
+ stateMutability: 'view',
909
+ type: 'function',
910
+ },
911
+ {
912
+ inputs: [
913
+ {
914
+ internalType: 'address[]',
915
+ name: 'to',
916
+ type: 'address[]',
917
+ },
918
+ {
919
+ internalType: 'uint256[]',
920
+ name: 'amount',
921
+ type: 'uint256[]',
922
+ },
923
+ ],
924
+ name: 'batchMint',
925
+ outputs: [],
926
+ stateMutability: 'nonpayable',
927
+ type: 'function',
928
+ },
929
+ {
930
+ inputs: [
931
+ {
932
+ internalType: 'bytes[]',
933
+ name: 'payload',
934
+ type: 'bytes[]',
935
+ },
936
+ {
937
+ internalType: 'bytes[]',
938
+ name: 'proof',
939
+ type: 'bytes[]',
940
+ },
941
+ ],
942
+ name: 'batchMint',
943
+ outputs: [],
944
+ stateMutability: 'nonpayable',
945
+ type: 'function',
946
+ },
947
+ {
948
+ inputs: [
949
+ {
950
+ internalType: 'bytes[]',
951
+ name: 'mintPayload',
952
+ type: 'bytes[]',
953
+ },
954
+ {
955
+ internalType: 'bytes[]',
956
+ name: 'proof',
957
+ type: 'bytes[]',
958
+ },
959
+ {
960
+ internalType: 'bytes[]',
961
+ name: 'feePayload',
962
+ type: 'bytes[]',
963
+ },
964
+ {
965
+ internalType: 'bytes[]',
966
+ name: 'userSignature',
967
+ type: 'bytes[]',
968
+ },
969
+ ],
970
+ name: 'batchMintWithFee',
971
+ outputs: [],
972
+ stateMutability: 'nonpayable',
973
+ type: 'function',
974
+ },
975
+ {
976
+ inputs: [
977
+ {
978
+ internalType: 'uint256',
979
+ name: 'amount',
980
+ type: 'uint256',
981
+ },
982
+ ],
983
+ name: 'burn',
984
+ outputs: [],
985
+ stateMutability: 'nonpayable',
986
+ type: 'function',
987
+ },
988
+ {
989
+ inputs: [
990
+ {
991
+ internalType: 'address',
992
+ name: 'from',
993
+ type: 'address',
994
+ },
995
+ {
996
+ internalType: 'uint256',
997
+ name: 'amount',
998
+ type: 'uint256',
999
+ },
1000
+ ],
1001
+ name: 'burn',
1002
+ outputs: [],
1003
+ stateMutability: 'nonpayable',
1004
+ type: 'function',
1005
+ },
1006
+ {
1007
+ inputs: [
1008
+ {
1009
+ internalType: 'bytes',
1010
+ name: 'scriptPubkey',
1011
+ type: 'bytes',
1012
+ },
1013
+ {
1014
+ internalType: 'uint256',
1015
+ name: 'amount',
1016
+ type: 'uint256',
1017
+ },
1018
+ ],
1019
+ name: 'calcUnstakeRequestAmount',
1020
+ outputs: [
1021
+ {
1022
+ internalType: 'uint256',
1023
+ name: 'amountAfterFee',
1024
+ type: 'uint256',
1025
+ },
1026
+ {
1027
+ internalType: 'bool',
1028
+ name: 'isAboveDust',
1029
+ type: 'bool',
1030
+ },
1031
+ ],
1032
+ stateMutability: 'view',
1033
+ type: 'function',
1034
+ },
1035
+ {
1036
+ inputs: [
1037
+ {
1038
+ internalType: 'address',
1039
+ name: 'newVal',
1040
+ type: 'address',
1041
+ },
1042
+ ],
1043
+ name: 'changeBascule',
1044
+ outputs: [],
1045
+ stateMutability: 'nonpayable',
1046
+ type: 'function',
1047
+ },
1048
+ {
1049
+ inputs: [
1050
+ {
1051
+ internalType: 'address',
1052
+ name: 'newBridge',
1053
+ type: 'address',
1054
+ },
1055
+ ],
1056
+ name: 'changeBridge',
1057
+ outputs: [],
1058
+ stateMutability: 'nonpayable',
1059
+ type: 'function',
1060
+ },
1061
+ {
1062
+ inputs: [
1063
+ {
1064
+ internalType: 'uint64',
1065
+ name: 'newValue',
1066
+ type: 'uint64',
1067
+ },
1068
+ ],
1069
+ name: 'changeBurnCommission',
1070
+ outputs: [],
1071
+ stateMutability: 'nonpayable',
1072
+ type: 'function',
1073
+ },
1074
+ {
1075
+ inputs: [
1076
+ {
1077
+ internalType: 'address',
1078
+ name: 'newVal',
1079
+ type: 'address',
1080
+ },
1081
+ ],
1082
+ name: 'changeConsortium',
1083
+ outputs: [],
1084
+ stateMutability: 'nonpayable',
1085
+ type: 'function',
1086
+ },
1087
+ {
1088
+ inputs: [
1089
+ {
1090
+ internalType: 'uint256',
1091
+ name: 'newRate',
1092
+ type: 'uint256',
1093
+ },
1094
+ ],
1095
+ name: 'changeDustFeeRate',
1096
+ outputs: [],
1097
+ stateMutability: 'nonpayable',
1098
+ type: 'function',
1099
+ },
1100
+ {
1101
+ inputs: [
1102
+ {
1103
+ internalType: 'string',
1104
+ name: 'name_',
1105
+ type: 'string',
1106
+ },
1107
+ {
1108
+ internalType: 'string',
1109
+ name: 'symbol_',
1110
+ type: 'string',
1111
+ },
1112
+ ],
1113
+ name: 'changeNameAndSymbol',
1114
+ outputs: [],
1115
+ stateMutability: 'nonpayable',
1116
+ type: 'function',
1117
+ },
1118
+ {
1119
+ inputs: [
1120
+ {
1121
+ internalType: 'address',
1122
+ name: 'newValue',
1123
+ type: 'address',
1124
+ },
1125
+ ],
1126
+ name: 'changeTreasuryAddress',
1127
+ outputs: [],
1128
+ stateMutability: 'nonpayable',
1129
+ type: 'function',
1130
+ },
1131
+ {
1132
+ inputs: [],
1133
+ name: 'consortium',
1134
+ outputs: [
1135
+ {
1136
+ internalType: 'address',
1137
+ name: '',
1138
+ type: 'address',
1139
+ },
1140
+ ],
1141
+ stateMutability: 'view',
1142
+ type: 'function',
1143
+ },
1144
+ {
1145
+ inputs: [],
1146
+ name: 'decimals',
1147
+ outputs: [
1148
+ {
1149
+ internalType: 'uint8',
1150
+ name: '',
1151
+ type: 'uint8',
1152
+ },
1153
+ ],
1154
+ stateMutability: 'view',
1155
+ type: 'function',
1156
+ },
1157
+ {
1158
+ inputs: [],
1159
+ name: 'eip712Domain',
1160
+ outputs: [
1161
+ {
1162
+ internalType: 'bytes1',
1163
+ name: 'fields',
1164
+ type: 'bytes1',
1165
+ },
1166
+ {
1167
+ internalType: 'string',
1168
+ name: 'name',
1169
+ type: 'string',
1170
+ },
1171
+ {
1172
+ internalType: 'string',
1173
+ name: 'version',
1174
+ type: 'string',
1175
+ },
1176
+ {
1177
+ internalType: 'uint256',
1178
+ name: 'chainId',
1179
+ type: 'uint256',
1180
+ },
1181
+ {
1182
+ internalType: 'address',
1183
+ name: 'verifyingContract',
1184
+ type: 'address',
1185
+ },
1186
+ {
1187
+ internalType: 'bytes32',
1188
+ name: 'salt',
1189
+ type: 'bytes32',
1190
+ },
1191
+ {
1192
+ internalType: 'uint256[]',
1193
+ name: 'extensions',
1194
+ type: 'uint256[]',
1195
+ },
1196
+ ],
1197
+ stateMutability: 'view',
1198
+ type: 'function',
1199
+ },
1200
+ {
1201
+ inputs: [],
1202
+ name: 'getBurnCommission',
1203
+ outputs: [
1204
+ {
1205
+ internalType: 'uint64',
1206
+ name: '',
1207
+ type: 'uint64',
1208
+ },
1209
+ ],
1210
+ stateMutability: 'view',
1211
+ type: 'function',
1212
+ },
1213
+ {
1214
+ inputs: [],
1215
+ name: 'getDustFeeRate',
1216
+ outputs: [
1217
+ {
1218
+ internalType: 'uint256',
1219
+ name: '',
1220
+ type: 'uint256',
1221
+ },
1222
+ ],
1223
+ stateMutability: 'view',
1224
+ type: 'function',
1225
+ },
1226
+ {
1227
+ inputs: [],
1228
+ name: 'getMintFee',
1229
+ outputs: [
1230
+ {
1231
+ internalType: 'uint256',
1232
+ name: '',
1233
+ type: 'uint256',
1234
+ },
1235
+ ],
1236
+ stateMutability: 'view',
1237
+ type: 'function',
1238
+ },
1239
+ {
1240
+ inputs: [],
1241
+ name: 'getTreasury',
1242
+ outputs: [
1243
+ {
1244
+ internalType: 'address',
1245
+ name: '',
1246
+ type: 'address',
1247
+ },
1248
+ ],
1249
+ stateMutability: 'view',
1250
+ type: 'function',
1251
+ },
1252
+ {
1253
+ inputs: [
1254
+ {
1255
+ internalType: 'address',
1256
+ name: 'consortium_',
1257
+ type: 'address',
1258
+ },
1259
+ {
1260
+ internalType: 'uint64',
1261
+ name: 'burnCommission_',
1262
+ type: 'uint64',
1263
+ },
1264
+ {
1265
+ internalType: 'address',
1266
+ name: 'owner_',
1267
+ type: 'address',
1268
+ },
1269
+ ],
1270
+ name: 'initialize',
1271
+ outputs: [],
1272
+ stateMutability: 'nonpayable',
1273
+ type: 'function',
1274
+ },
1275
+ {
1276
+ inputs: [
1277
+ {
1278
+ internalType: 'address',
1279
+ name: 'claimer',
1280
+ type: 'address',
1281
+ },
1282
+ ],
1283
+ name: 'isClaimer',
1284
+ outputs: [
1285
+ {
1286
+ internalType: 'bool',
1287
+ name: '',
1288
+ type: 'bool',
1289
+ },
1290
+ ],
1291
+ stateMutability: 'view',
1292
+ type: 'function',
1293
+ },
1294
+ {
1295
+ inputs: [
1296
+ {
1297
+ internalType: 'address',
1298
+ name: 'minter',
1299
+ type: 'address',
1300
+ },
1301
+ ],
1302
+ name: 'isMinter',
1303
+ outputs: [
1304
+ {
1305
+ internalType: 'bool',
1306
+ name: '',
1307
+ type: 'bool',
1308
+ },
1309
+ ],
1310
+ stateMutability: 'view',
1311
+ type: 'function',
1312
+ },
1313
+ {
1314
+ inputs: [
1315
+ {
1316
+ internalType: 'address',
1317
+ name: 'to',
1318
+ type: 'address',
1319
+ },
1320
+ {
1321
+ internalType: 'uint256',
1322
+ name: 'amount',
1323
+ type: 'uint256',
1324
+ },
1325
+ ],
1326
+ name: 'mint',
1327
+ outputs: [],
1328
+ stateMutability: 'nonpayable',
1329
+ type: 'function',
1330
+ },
1331
+ {
1332
+ inputs: [
1333
+ {
1334
+ internalType: 'bytes',
1335
+ name: 'payload',
1336
+ type: 'bytes',
1337
+ },
1338
+ {
1339
+ internalType: 'bytes',
1340
+ name: 'proof',
1341
+ type: 'bytes',
1342
+ },
1343
+ ],
1344
+ name: 'mint',
1345
+ outputs: [],
1346
+ stateMutability: 'nonpayable',
1347
+ type: 'function',
1348
+ },
1349
+ {
1350
+ inputs: [
1351
+ {
1352
+ internalType: 'bytes',
1353
+ name: 'mintPayload',
1354
+ type: 'bytes',
1355
+ },
1356
+ {
1357
+ internalType: 'bytes',
1358
+ name: 'proof',
1359
+ type: 'bytes',
1360
+ },
1361
+ {
1362
+ internalType: 'bytes',
1363
+ name: 'feePayload',
1364
+ type: 'bytes',
1365
+ },
1366
+ {
1367
+ internalType: 'bytes',
1368
+ name: 'userSignature',
1369
+ type: 'bytes',
1370
+ },
1371
+ ],
1372
+ name: 'mintWithFee',
1373
+ outputs: [],
1374
+ stateMutability: 'nonpayable',
1375
+ type: 'function',
1376
+ },
1377
+ {
1378
+ inputs: [],
1379
+ name: 'name',
1380
+ outputs: [
1381
+ {
1382
+ internalType: 'string',
1383
+ name: '',
1384
+ type: 'string',
1385
+ },
1386
+ ],
1387
+ stateMutability: 'view',
1388
+ type: 'function',
1389
+ },
1390
+ {
1391
+ inputs: [
1392
+ {
1393
+ internalType: 'address',
1394
+ name: 'owner',
1395
+ type: 'address',
1396
+ },
1397
+ ],
1398
+ name: 'nonces',
1399
+ outputs: [
1400
+ {
1401
+ internalType: 'uint256',
1402
+ name: '',
1403
+ type: 'uint256',
1404
+ },
1405
+ ],
1406
+ stateMutability: 'view',
1407
+ type: 'function',
1408
+ },
1409
+ {
1410
+ inputs: [],
1411
+ name: 'owner',
1412
+ outputs: [
1413
+ {
1414
+ internalType: 'address',
1415
+ name: '',
1416
+ type: 'address',
1417
+ },
1418
+ ],
1419
+ stateMutability: 'view',
1420
+ type: 'function',
1421
+ },
1422
+ {
1423
+ inputs: [],
1424
+ name: 'pause',
1425
+ outputs: [],
1426
+ stateMutability: 'nonpayable',
1427
+ type: 'function',
1428
+ },
1429
+ {
1430
+ inputs: [],
1431
+ name: 'paused',
1432
+ outputs: [
1433
+ {
1434
+ internalType: 'bool',
1435
+ name: '',
1436
+ type: 'bool',
1437
+ },
1438
+ ],
1439
+ stateMutability: 'view',
1440
+ type: 'function',
1441
+ },
1442
+ {
1443
+ inputs: [],
1444
+ name: 'pauser',
1445
+ outputs: [
1446
+ {
1447
+ internalType: 'address',
1448
+ name: '',
1449
+ type: 'address',
1450
+ },
1451
+ ],
1452
+ stateMutability: 'view',
1453
+ type: 'function',
1454
+ },
1455
+ {
1456
+ inputs: [],
1457
+ name: 'pendingOwner',
1458
+ outputs: [
1459
+ {
1460
+ internalType: 'address',
1461
+ name: '',
1462
+ type: 'address',
1463
+ },
1464
+ ],
1465
+ stateMutability: 'view',
1466
+ type: 'function',
1467
+ },
1468
+ {
1469
+ inputs: [
1470
+ {
1471
+ internalType: 'address',
1472
+ name: 'owner',
1473
+ type: 'address',
1474
+ },
1475
+ {
1476
+ internalType: 'address',
1477
+ name: 'spender',
1478
+ type: 'address',
1479
+ },
1480
+ {
1481
+ internalType: 'uint256',
1482
+ name: 'value',
1483
+ type: 'uint256',
1484
+ },
1485
+ {
1486
+ internalType: 'uint256',
1487
+ name: 'deadline',
1488
+ type: 'uint256',
1489
+ },
1490
+ {
1491
+ internalType: 'uint8',
1492
+ name: 'v',
1493
+ type: 'uint8',
1494
+ },
1495
+ {
1496
+ internalType: 'bytes32',
1497
+ name: 'r',
1498
+ type: 'bytes32',
1499
+ },
1500
+ {
1501
+ internalType: 'bytes32',
1502
+ name: 's',
1503
+ type: 'bytes32',
1504
+ },
1505
+ ],
1506
+ name: 'permit',
1507
+ outputs: [],
1508
+ stateMutability: 'nonpayable',
1509
+ type: 'function',
1510
+ },
1511
+ {
1512
+ inputs: [
1513
+ {
1514
+ internalType: 'bytes',
1515
+ name: 'scriptPubkey',
1516
+ type: 'bytes',
1517
+ },
1518
+ {
1519
+ internalType: 'uint256',
1520
+ name: 'amount',
1521
+ type: 'uint256',
1522
+ },
1523
+ ],
1524
+ name: 'redeem',
1525
+ outputs: [],
1526
+ stateMutability: 'nonpayable',
1527
+ type: 'function',
1528
+ },
1529
+ {
1530
+ inputs: [],
1531
+ name: 'reinitialize',
1532
+ outputs: [],
1533
+ stateMutability: 'nonpayable',
1534
+ type: 'function',
1535
+ },
1536
+ {
1537
+ inputs: [
1538
+ {
1539
+ internalType: 'address',
1540
+ name: 'oldClaimer',
1541
+ type: 'address',
1542
+ },
1543
+ ],
1544
+ name: 'removeClaimer',
1545
+ outputs: [],
1546
+ stateMutability: 'nonpayable',
1547
+ type: 'function',
1548
+ },
1549
+ {
1550
+ inputs: [
1551
+ {
1552
+ internalType: 'address',
1553
+ name: 'oldMinter',
1554
+ type: 'address',
1555
+ },
1556
+ ],
1557
+ name: 'removeMinter',
1558
+ outputs: [],
1559
+ stateMutability: 'nonpayable',
1560
+ type: 'function',
1561
+ },
1562
+ {
1563
+ inputs: [],
1564
+ name: 'renounceOwnership',
1565
+ outputs: [],
1566
+ stateMutability: 'nonpayable',
1567
+ type: 'function',
1568
+ },
1569
+ {
1570
+ inputs: [
1571
+ {
1572
+ internalType: 'uint256',
1573
+ name: 'fee',
1574
+ type: 'uint256',
1575
+ },
1576
+ ],
1577
+ name: 'setMintFee',
1578
+ outputs: [],
1579
+ stateMutability: 'nonpayable',
1580
+ type: 'function',
1581
+ },
1582
+ {
1583
+ inputs: [],
1584
+ name: 'symbol',
1585
+ outputs: [
1586
+ {
1587
+ internalType: 'string',
1588
+ name: '',
1589
+ type: 'string',
1590
+ },
1591
+ ],
1592
+ stateMutability: 'view',
1593
+ type: 'function',
1594
+ },
1595
+ {
1596
+ inputs: [],
1597
+ name: 'toggleWithdrawals',
1598
+ outputs: [],
1599
+ stateMutability: 'nonpayable',
1600
+ type: 'function',
1601
+ },
1602
+ {
1603
+ inputs: [],
1604
+ name: 'totalSupply',
1605
+ outputs: [
1606
+ {
1607
+ internalType: 'uint256',
1608
+ name: '',
1609
+ type: 'uint256',
1610
+ },
1611
+ ],
1612
+ stateMutability: 'view',
1613
+ type: 'function',
1614
+ },
1615
+ {
1616
+ inputs: [
1617
+ {
1618
+ internalType: 'address',
1619
+ name: 'to',
1620
+ type: 'address',
1621
+ },
1622
+ {
1623
+ internalType: 'uint256',
1624
+ name: 'value',
1625
+ type: 'uint256',
1626
+ },
1627
+ ],
1628
+ name: 'transfer',
1629
+ outputs: [
1630
+ {
1631
+ internalType: 'bool',
1632
+ name: '',
1633
+ type: 'bool',
1634
+ },
1635
+ ],
1636
+ stateMutability: 'nonpayable',
1637
+ type: 'function',
1638
+ },
1639
+ {
1640
+ inputs: [
1641
+ {
1642
+ internalType: 'address',
1643
+ name: 'from',
1644
+ type: 'address',
1645
+ },
1646
+ {
1647
+ internalType: 'address',
1648
+ name: 'to',
1649
+ type: 'address',
1650
+ },
1651
+ {
1652
+ internalType: 'uint256',
1653
+ name: 'value',
1654
+ type: 'uint256',
1655
+ },
1656
+ ],
1657
+ name: 'transferFrom',
1658
+ outputs: [
1659
+ {
1660
+ internalType: 'bool',
1661
+ name: '',
1662
+ type: 'bool',
1663
+ },
1664
+ ],
1665
+ stateMutability: 'nonpayable',
1666
+ type: 'function',
1667
+ },
1668
+ {
1669
+ inputs: [
1670
+ {
1671
+ internalType: 'address',
1672
+ name: 'newOwner',
1673
+ type: 'address',
1674
+ },
1675
+ ],
1676
+ name: 'transferOwnership',
1677
+ outputs: [],
1678
+ stateMutability: 'nonpayable',
1679
+ type: 'function',
1680
+ },
1681
+ {
1682
+ inputs: [
1683
+ {
1684
+ internalType: 'address',
1685
+ name: 'newPauser',
1686
+ type: 'address',
1687
+ },
1688
+ ],
1689
+ name: 'transferPauserRole',
1690
+ outputs: [],
1691
+ stateMutability: 'nonpayable',
1692
+ type: 'function',
1693
+ },
1694
+ {
1695
+ inputs: [],
1696
+ name: 'unpause',
1697
+ outputs: [],
1698
+ stateMutability: 'nonpayable',
1699
+ type: 'function',
1700
+ },
1701
+ {
1702
+ inputs: [
1703
+ {
1704
+ components: [
1705
+ {
1706
+ internalType: 'uint256',
1707
+ name: 'fromChain',
1708
+ type: 'uint256',
1709
+ },
1710
+ {
1711
+ internalType: 'address',
1712
+ name: 'fromContract',
1713
+ type: 'address',
1714
+ },
1715
+ {
1716
+ internalType: 'uint256',
1717
+ name: 'toChain',
1718
+ type: 'uint256',
1719
+ },
1720
+ {
1721
+ internalType: 'address',
1722
+ name: 'toContract',
1723
+ type: 'address',
1724
+ },
1725
+ {
1726
+ internalType: 'address',
1727
+ name: 'recipient',
1728
+ type: 'address',
1729
+ },
1730
+ {
1731
+ internalType: 'uint64',
1732
+ name: 'amount',
1733
+ type: 'uint64',
1734
+ },
1735
+ {
1736
+ internalType: 'bytes32',
1737
+ name: 'uniqueActionData',
1738
+ type: 'bytes32',
1739
+ },
1740
+ ],
1741
+ internalType: 'struct Actions.DepositBridgeAction',
1742
+ name: 'action',
1743
+ type: 'tuple',
1744
+ },
1745
+ {
1746
+ internalType: 'bytes32',
1747
+ name: '',
1748
+ type: 'bytes32',
1749
+ },
1750
+ {
1751
+ internalType: 'bytes',
1752
+ name: '',
1753
+ type: 'bytes',
1754
+ },
1755
+ ],
1756
+ name: 'withdraw',
1757
+ outputs: [],
1758
+ stateMutability: 'nonpayable',
1759
+ type: 'function',
1760
+ },
1761
+ ] as const;