@allbridge/bridge-core-sdk 3.27.0-alpha.2 → 3.27.0-alpha.3

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 (50) hide show
  1. package/dist/browser/index.js +2 -2
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/cjs/index.js +2 -2
  4. package/dist/cjs/index.js.map +4 -4
  5. package/dist/esm/index.js +2 -2
  6. package/dist/esm/index.js.map +4 -4
  7. package/dist/src/chains/chain.enums.d.ts +7 -2
  8. package/dist/src/chains/chain.enums.js +5 -0
  9. package/dist/src/chains/chain.enums.js.map +1 -1
  10. package/dist/src/chains/index.js +6 -0
  11. package/dist/src/chains/index.js.map +1 -1
  12. package/dist/src/configs/mainnet.js +1 -0
  13. package/dist/src/configs/mainnet.js.map +1 -1
  14. package/dist/src/services/bridge/index.js +5 -0
  15. package/dist/src/services/bridge/index.js.map +1 -1
  16. package/dist/src/services/bridge/models/bridge.model.d.ts +1 -0
  17. package/dist/src/services/bridge/models/bridge.model.js.map +1 -1
  18. package/dist/src/services/bridge/stx/index.d.ts +15 -0
  19. package/dist/src/services/bridge/stx/index.js +117 -0
  20. package/dist/src/services/bridge/stx/index.js.map +1 -0
  21. package/dist/src/services/bridge/utils.d.ts +3 -1
  22. package/dist/src/services/bridge/utils.js +23 -0
  23. package/dist/src/services/bridge/utils.js.map +1 -1
  24. package/dist/src/services/liquidity-pool/index.js +5 -0
  25. package/dist/src/services/liquidity-pool/index.js.map +1 -1
  26. package/dist/src/services/liquidity-pool/stx/index.d.ts +19 -0
  27. package/dist/src/services/liquidity-pool/stx/index.js +134 -0
  28. package/dist/src/services/liquidity-pool/stx/index.js.map +1 -0
  29. package/dist/src/services/models/index.d.ts +2 -1
  30. package/dist/src/services/models/index.js.map +1 -1
  31. package/dist/src/services/models/stx/clarigen-types.d.ts +657 -0
  32. package/dist/src/services/models/stx/clarigen-types.js +2296 -0
  33. package/dist/src/services/models/stx/clarigen-types.js.map +1 -0
  34. package/dist/src/services/token/index.js +5 -0
  35. package/dist/src/services/token/index.js.map +1 -1
  36. package/dist/src/services/token/stx/index.d.ts +17 -0
  37. package/dist/src/services/token/stx/index.js +50 -0
  38. package/dist/src/services/token/stx/index.js.map +1 -0
  39. package/dist/src/services/utils/stx/get-network.d.ts +2 -0
  40. package/dist/src/services/utils/stx/get-network.js +11 -0
  41. package/dist/src/services/utils/stx/get-network.js.map +1 -0
  42. package/dist/src/services/utils/stx/post-conditions.d.ts +3 -0
  43. package/dist/src/services/utils/stx/post-conditions.js +27 -0
  44. package/dist/src/services/utils/stx/post-conditions.js.map +1 -0
  45. package/dist/src/services/yield/index.js +3 -0
  46. package/dist/src/services/yield/index.js.map +1 -1
  47. package/dist/src/version.d.ts +1 -1
  48. package/dist/src/version.js +1 -1
  49. package/dist/src/version.js.map +1 -1
  50. package/package.json +5 -2
@@ -0,0 +1,657 @@
1
+ import type { Response, TypedAbiArg, TypedAbiFunction, TypedAbiMap, TypedAbiVariable } from "@clarigen/core";
2
+ export declare const stacksContracts: {
3
+ readonly bridge: {
4
+ readonly functions: {
5
+ readonly assertCanSwap: TypedAbiFunction<[], Response<boolean, bigint>>;
6
+ readonly assertGasOracle: TypedAbiFunction<[gasOracleRef: TypedAbiArg<string, "gasOracleRef">], Response<boolean, bigint>>;
7
+ readonly assertMessenger: TypedAbiFunction<[messengerRef: TypedAbiArg<string, "messengerRef">, messengerId: TypedAbiArg<number | bigint, "messengerId">], Response<boolean, bigint>>;
8
+ readonly convertBridgingFeeInTokensToNative: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">, gasOracleRef: TypedAbiArg<string, "gasOracleRef">, feeTokenAmount: TypedAbiArg<number | bigint, "feeTokenAmount">], Response<bigint, bigint>>;
9
+ readonly onlyOwner: TypedAbiFunction<[], Response<boolean, bigint>>;
10
+ readonly onlyStopAuthority: TypedAbiFunction<[], Response<boolean, bigint>>;
11
+ readonly receiveAndSwapFromVusd: TypedAbiFunction<[poolRef: TypedAbiArg<string, "poolRef">, ftRef: TypedAbiArg<string, "ftRef">, recipient: TypedAbiArg<string, "recipient">, vusdAmount: TypedAbiArg<number | bigint, "vusdAmount">, receiveAmountMin: TypedAbiArg<number | bigint, "receiveAmountMin">], Response<bigint, bigint>>;
12
+ readonly sendAndSwapToVusd: TypedAbiFunction<[poolRef: TypedAbiArg<string, "poolRef">, ftRef: TypedAbiArg<string, "ftRef">, user: TypedAbiArg<string, "user">, amount: TypedAbiArg<number | bigint, "amount">], Response<bigint, bigint>>;
13
+ readonly sendTokens: TypedAbiFunction<[messengerRef: TypedAbiArg<string, "messengerRef">, gasOracleRef: TypedAbiArg<string, "gasOracleRef">, amount: TypedAbiArg<number | bigint, "amount">, recipient: TypedAbiArg<Uint8Array, "recipient">, destinationChainId: TypedAbiArg<number | bigint, "destinationChainId">, receiveToken: TypedAbiArg<Uint8Array, "receiveToken">, nonce: TypedAbiArg<Uint8Array, "nonce">, messengerId: TypedAbiArg<number | bigint, "messengerId">, bridgingFee: TypedAbiArg<number | bigint, "bridgingFee">], Response<{
14
+ bridgeTxCost: bigint;
15
+ messageTxCost: bigint;
16
+ }, bigint>>;
17
+ readonly addBridgeToken: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, tokenAddress: TypedAbiArg<Uint8Array, "tokenAddress">], Response<boolean, bigint>>;
18
+ readonly addPool: TypedAbiFunction<[poolRef: TypedAbiArg<string, "poolRef">, ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
19
+ readonly getTransactionCost: TypedAbiFunction<[gasOracleRef: TypedAbiArg<string, "gasOracleRef">, chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<bigint, bigint>>;
20
+ readonly init: TypedAbiFunction<[thisChainId_: TypedAbiArg<number | bigint, "thisChainId_">, gasOracle: TypedAbiArg<string, "gasOracle">], Response<boolean, bigint>>;
21
+ readonly receiveTokens: TypedAbiFunction<[messengerRef: TypedAbiArg<string, "messengerRef">, amount: TypedAbiArg<number | bigint, "amount">, recipient: TypedAbiArg<string, "recipient">, sourceChainId: TypedAbiArg<number | bigint, "sourceChainId">, poolRef: TypedAbiArg<string, "poolRef">, ftRef: TypedAbiArg<string, "ftRef">, nonce: TypedAbiArg<Uint8Array, "nonce">, messengerId: TypedAbiArg<number | bigint, "messengerId">, receiveAmountMin: TypedAbiArg<number | bigint, "receiveAmountMin">, extraGas: TypedAbiArg<number | bigint, "extraGas">], Response<boolean, bigint>>;
22
+ readonly registerBridge: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, bridgeAddress: TypedAbiArg<Uint8Array, "bridgeAddress">], Response<boolean, bigint>>;
23
+ readonly removeBridge: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<boolean, bigint>>;
24
+ readonly removeBridgeToken: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, tokenAddress: TypedAbiArg<Uint8Array, "tokenAddress">], Response<boolean, bigint>>;
25
+ readonly removeMessenger: TypedAbiFunction<[messengerId: TypedAbiArg<number | bigint, "messengerId">], Response<boolean, bigint>>;
26
+ readonly setGasUsage: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, gas: TypedAbiArg<number | bigint, "gas">], Response<boolean, bigint>>;
27
+ readonly setMessenger: TypedAbiFunction<[messengerId: TypedAbiArg<number | bigint, "messengerId">, newMessenger: TypedAbiArg<string, "newMessenger">], Response<boolean, bigint>>;
28
+ readonly setOwner: TypedAbiFunction<[newOwner: TypedAbiArg<string, "newOwner">], Response<boolean, bigint>>;
29
+ readonly setRebalancer: TypedAbiFunction<[newRebalancer: TypedAbiArg<string, "newRebalancer">], Response<boolean, bigint>>;
30
+ readonly setStopAuthority: TypedAbiFunction<[newAuthority: TypedAbiArg<string, "newAuthority">], Response<boolean, bigint>>;
31
+ readonly startSwap: TypedAbiFunction<[], Response<boolean, bigint>>;
32
+ readonly stopSwap: TypedAbiFunction<[], Response<boolean, bigint>>;
33
+ readonly swap: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">, sendPoolRef: TypedAbiArg<string, "sendPoolRef">, sendFtRef: TypedAbiArg<string, "sendFtRef">, receivePoolRef: TypedAbiArg<string, "receivePoolRef">, receiveFtRef: TypedAbiArg<string, "receiveFtRef">, recipient: TypedAbiArg<string, "recipient">, receiveAmountMin: TypedAbiArg<number | bigint, "receiveAmountMin">], Response<boolean, bigint>>;
34
+ readonly swapAndBridge: TypedAbiFunction<[poolRef: TypedAbiArg<string, "poolRef">, ftRef: TypedAbiArg<string, "ftRef">, messengerRef: TypedAbiArg<string, "messengerRef">, gasOracleRef: TypedAbiArg<string, "gasOracleRef">, amount: TypedAbiArg<number | bigint, "amount">, recipient: TypedAbiArg<Uint8Array, "recipient">, destinationChainId: TypedAbiArg<number | bigint, "destinationChainId">, receiveToken: TypedAbiArg<Uint8Array, "receiveToken">, nonce: TypedAbiArg<Uint8Array, "nonce">, messengerId: TypedAbiArg<number | bigint, "messengerId">, feeNativeAmount: TypedAbiArg<number | bigint, "feeNativeAmount">, feeTokenAmount: TypedAbiArg<number | bigint, "feeTokenAmount">], Response<boolean, bigint>>;
35
+ readonly withdrawBridgingFeeInTokens: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">, amount: TypedAbiArg<number | bigint, "amount">], Response<boolean, bigint>>;
36
+ readonly withdrawGasTokens: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">], Response<boolean, bigint>>;
37
+ readonly getGasOracleAddress: TypedAbiFunction<[], string>;
38
+ readonly getGasUsage: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<bigint, bigint>>;
39
+ readonly getMessenger: TypedAbiFunction<[messengerId: TypedAbiArg<number | bigint, "messengerId">], Response<string, bigint>>;
40
+ readonly getOtherBridge: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<Uint8Array, bigint>>;
41
+ readonly getOwner: TypedAbiFunction<[], string>;
42
+ readonly getProcessedMessageStatus: TypedAbiFunction<[messageHash: TypedAbiArg<Uint8Array, "messageHash">], Response<boolean, null>>;
43
+ readonly getRebalancer: TypedAbiFunction<[], string>;
44
+ readonly getSentMessageStatus: TypedAbiFunction<[messageHash: TypedAbiArg<Uint8Array, "messageHash">], Response<boolean, null>>;
45
+ readonly getStopAuthority: TypedAbiFunction<[], string>;
46
+ readonly getThisChainId: TypedAbiFunction<[], bigint>;
47
+ readonly getTokenInfo: TypedAbiFunction<[tokenPrincipalHash: TypedAbiArg<Uint8Array, "tokenPrincipalHash">], Response<{
48
+ bridgingFeeConversionScalingFactor: bigint;
49
+ fromGasOracleScalingFactor: bigint;
50
+ pool: string;
51
+ token: string;
52
+ }, bigint>>;
53
+ readonly isBridgeTokenSupported: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, tokenAddress: TypedAbiArg<Uint8Array, "tokenAddress">], Response<boolean, null>>;
54
+ readonly isSwapEnabled: TypedAbiFunction<[], boolean>;
55
+ };
56
+ readonly maps: {
57
+ readonly gasUsageMap: TypedAbiMap<number | bigint, bigint>;
58
+ readonly messengers: TypedAbiMap<number | bigint, string>;
59
+ readonly otherBridgeTokens: TypedAbiMap<{
60
+ chainId: number | bigint;
61
+ tokenAddress: Uint8Array;
62
+ }, boolean>;
63
+ readonly otherBridges: TypedAbiMap<number | bigint, Uint8Array>;
64
+ readonly processedMessages: TypedAbiMap<Uint8Array, boolean>;
65
+ readonly sentMessages: TypedAbiMap<Uint8Array, boolean>;
66
+ readonly tokenInfos: TypedAbiMap<Uint8Array, {
67
+ bridgingFeeConversionScalingFactor: bigint;
68
+ fromGasOracleScalingFactor: bigint;
69
+ pool: string;
70
+ token: string;
71
+ }>;
72
+ };
73
+ readonly variables: {
74
+ readonly chainPrecision: TypedAbiVariable<bigint>;
75
+ readonly errAlreadyInitialized: TypedAbiVariable<Response<null, bigint>>;
76
+ readonly errAlreadyProcessed: TypedAbiVariable<Response<null, bigint>>;
77
+ readonly errAlreadySent: TypedAbiVariable<Response<null, bigint>>;
78
+ readonly errBridgeSourceNotRegistered: TypedAbiVariable<Response<null, bigint>>;
79
+ readonly errDepositAmountTooSmall: TypedAbiVariable<Response<null, bigint>>;
80
+ readonly errGasUsageNotSet: TypedAbiVariable<Response<null, bigint>>;
81
+ readonly errMessengerNotRegistered: TypedAbiVariable<Response<null, bigint>>;
82
+ readonly errNoMessage: TypedAbiVariable<Response<null, bigint>>;
83
+ readonly errNotEnoughFee: TypedAbiVariable<Response<null, bigint>>;
84
+ readonly errNotInitialized: TypedAbiVariable<Response<null, bigint>>;
85
+ readonly errSwapProhibited: TypedAbiVariable<Response<null, bigint>>;
86
+ readonly errTokenNotSupported: TypedAbiVariable<Response<null, bigint>>;
87
+ readonly errUnauthorized: TypedAbiVariable<Response<null, bigint>>;
88
+ readonly errWrongGasOracle: TypedAbiVariable<Response<null, bigint>>;
89
+ readonly errWrongMessenger: TypedAbiVariable<Response<null, bigint>>;
90
+ readonly errWrongTokenForPool: TypedAbiVariable<Response<null, bigint>>;
91
+ readonly oraclePrecision: TypedAbiVariable<bigint>;
92
+ readonly canSwap: TypedAbiVariable<boolean>;
93
+ readonly gasOraclePrincipal: TypedAbiVariable<string | null>;
94
+ readonly owner: TypedAbiVariable<string>;
95
+ readonly rebalancer: TypedAbiVariable<string>;
96
+ readonly stopAuthority: TypedAbiVariable<string>;
97
+ readonly thisChainId: TypedAbiVariable<bigint | null>;
98
+ };
99
+ readonly constants: {
100
+ readonly canSwap: false;
101
+ readonly chainPrecision: 6n;
102
+ readonly errAlreadyInitialized: {
103
+ readonly isOk: false;
104
+ readonly value: 1004n;
105
+ };
106
+ readonly errAlreadyProcessed: {
107
+ readonly isOk: false;
108
+ readonly value: 1010n;
109
+ };
110
+ readonly errAlreadySent: {
111
+ readonly isOk: false;
112
+ readonly value: 1005n;
113
+ };
114
+ readonly errBridgeSourceNotRegistered: {
115
+ readonly isOk: false;
116
+ readonly value: 1009n;
117
+ };
118
+ readonly errDepositAmountTooSmall: {
119
+ readonly isOk: false;
120
+ readonly value: 1001n;
121
+ };
122
+ readonly errGasUsageNotSet: {
123
+ readonly isOk: false;
124
+ readonly value: 1008n;
125
+ };
126
+ readonly errMessengerNotRegistered: {
127
+ readonly isOk: false;
128
+ readonly value: 1014n;
129
+ };
130
+ readonly errNoMessage: {
131
+ readonly isOk: false;
132
+ readonly value: 1011n;
133
+ };
134
+ readonly errNotEnoughFee: {
135
+ readonly isOk: false;
136
+ readonly value: 1007n;
137
+ };
138
+ readonly errNotInitialized: {
139
+ readonly isOk: false;
140
+ readonly value: 1006n;
141
+ };
142
+ readonly errSwapProhibited: {
143
+ readonly isOk: false;
144
+ readonly value: 1012n;
145
+ };
146
+ readonly errTokenNotSupported: {
147
+ readonly isOk: false;
148
+ readonly value: 1002n;
149
+ };
150
+ readonly errUnauthorized: {
151
+ readonly isOk: false;
152
+ readonly value: 1000n;
153
+ };
154
+ readonly errWrongGasOracle: {
155
+ readonly isOk: false;
156
+ readonly value: 1013n;
157
+ };
158
+ readonly errWrongMessenger: {
159
+ readonly isOk: false;
160
+ readonly value: 1015n;
161
+ };
162
+ readonly errWrongTokenForPool: {
163
+ readonly isOk: false;
164
+ readonly value: 1003n;
165
+ };
166
+ readonly gasOraclePrincipal: null;
167
+ readonly oraclePrecision: 18n;
168
+ readonly owner: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
169
+ readonly rebalancer: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
170
+ readonly stopAuthority: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
171
+ readonly thisChainId: null;
172
+ };
173
+ readonly non_fungible_tokens: readonly [];
174
+ readonly fungible_tokens: readonly [];
175
+ readonly epoch: "Epoch31";
176
+ readonly clarity_version: "Clarity3";
177
+ readonly contractName: "bridge";
178
+ };
179
+ readonly ftToken: {
180
+ readonly functions: {
181
+ readonly getTokenUri: TypedAbiFunction<[], Response<string | null, null>>;
182
+ readonly mint: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">, recipient: TypedAbiArg<string, "recipient">], Response<boolean, bigint>>;
183
+ readonly transfer: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">, sender: TypedAbiArg<string, "sender">, recipient: TypedAbiArg<string, "recipient">, memo: TypedAbiArg<Uint8Array | null, "memo">], Response<boolean, bigint>>;
184
+ readonly getBalance: TypedAbiFunction<[owner: TypedAbiArg<string, "owner">], Response<bigint, null>>;
185
+ readonly getDecimals: TypedAbiFunction<[], Response<bigint, null>>;
186
+ readonly getName: TypedAbiFunction<[], Response<string, null>>;
187
+ readonly getSymbol: TypedAbiFunction<[], Response<string, null>>;
188
+ readonly getTotalSupply: TypedAbiFunction<[], Response<bigint, null>>;
189
+ };
190
+ readonly maps: {};
191
+ readonly variables: {};
192
+ readonly constants: {};
193
+ readonly non_fungible_tokens: readonly [];
194
+ readonly fungible_tokens: readonly [{
195
+ readonly name: "example-token";
196
+ }];
197
+ readonly epoch: "Epoch31";
198
+ readonly clarity_version: "Clarity3";
199
+ readonly contractName: "ft-token";
200
+ };
201
+ readonly gasOracle: {
202
+ readonly functions: {
203
+ readonly setChainData: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, newPrice: TypedAbiArg<number | bigint, "newPrice">, newGasPrice: TypedAbiArg<number | bigint, "newGasPrice">], Response<boolean, bigint>>;
204
+ readonly setGasPrice: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, newGasPrice: TypedAbiArg<number | bigint, "newGasPrice">], Response<boolean, bigint>>;
205
+ readonly setPrice: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, newPrice: TypedAbiArg<number | bigint, "newPrice">], Response<boolean, bigint>>;
206
+ readonly crossRate: TypedAbiFunction<[otherChainId: TypedAbiArg<number | bigint, "otherChainId">], Response<bigint, bigint>>;
207
+ readonly getChainData: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<{
208
+ gasPrice: bigint;
209
+ price: bigint;
210
+ }, bigint>>;
211
+ readonly getGasPrice: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<bigint, bigint>>;
212
+ readonly getPrice: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<bigint, bigint>>;
213
+ readonly getTransactionGasCostInNativeToken: TypedAbiFunction<[otherChainId: TypedAbiArg<number | bigint, "otherChainId">, gasAmount: TypedAbiArg<number | bigint, "gasAmount">], Response<bigint, bigint>>;
214
+ readonly getTransactionGasCostInUsd: TypedAbiFunction<[otherChainId: TypedAbiArg<number | bigint, "otherChainId">, gasAmount: TypedAbiArg<number | bigint, "gasAmount">], Response<bigint, bigint>>;
215
+ };
216
+ readonly maps: {
217
+ readonly chainData: TypedAbiMap<number | bigint, {
218
+ gasPrice: bigint;
219
+ price: bigint;
220
+ }>;
221
+ };
222
+ readonly variables: {
223
+ readonly errNotFound: TypedAbiVariable<Response<null, bigint>>;
224
+ readonly errUnauthorized: TypedAbiVariable<Response<null, bigint>>;
225
+ readonly oracleScalingFactor: TypedAbiVariable<bigint>;
226
+ readonly contractOwner: TypedAbiVariable<string>;
227
+ readonly fromOracleToChainScalingFactor: TypedAbiVariable<bigint>;
228
+ readonly thisChainId: TypedAbiVariable<bigint>;
229
+ };
230
+ readonly constants: {
231
+ readonly contractOwner: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
232
+ readonly errNotFound: {
233
+ readonly isOk: false;
234
+ readonly value: 4001n;
235
+ };
236
+ readonly errUnauthorized: {
237
+ readonly isOk: false;
238
+ readonly value: 4000n;
239
+ };
240
+ readonly fromOracleToChainScalingFactor: 1000000000000n;
241
+ readonly oracleScalingFactor: 1000000000000000000n;
242
+ readonly thisChainId: 16n;
243
+ };
244
+ readonly non_fungible_tokens: readonly [];
245
+ readonly fungible_tokens: readonly [];
246
+ readonly epoch: "Epoch31";
247
+ readonly clarity_version: "Clarity3";
248
+ readonly contractName: "gas-oracle";
249
+ };
250
+ readonly gasOracleTrait: {
251
+ readonly functions: {};
252
+ readonly maps: {};
253
+ readonly variables: {};
254
+ readonly constants: {};
255
+ readonly non_fungible_tokens: readonly [];
256
+ readonly fungible_tokens: readonly [];
257
+ readonly epoch: "Epoch31";
258
+ readonly clarity_version: "Clarity3";
259
+ readonly contractName: "gas-oracle-trait";
260
+ };
261
+ readonly messenger: {
262
+ readonly functions: {
263
+ readonly assertGasOracle: TypedAbiFunction<[gasOracleRef: TypedAbiArg<string, "gasOracleRef">], Response<boolean, bigint>>;
264
+ readonly onlyOwner: TypedAbiFunction<[], Response<boolean, bigint>>;
265
+ readonly addSecondaryValidator: TypedAbiFunction<[val: TypedAbiArg<Uint8Array, "val">], Response<boolean, bigint>>;
266
+ readonly getTransactionCost: TypedAbiFunction<[gasOracleRef: TypedAbiArg<string, "gasOracleRef">, chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<bigint, bigint>>;
267
+ readonly init: TypedAbiFunction<[thisChainId_: TypedAbiArg<number | bigint, "thisChainId_">, gasOracle: TypedAbiArg<string, "gasOracle">], Response<boolean, bigint>>;
268
+ readonly receiveMessage: TypedAbiFunction<[message: TypedAbiArg<Uint8Array, "message">, signature1: TypedAbiArg<Uint8Array, "signature1">, signature2: TypedAbiArg<Uint8Array, "signature2">], Response<boolean, bigint>>;
269
+ readonly removeSecondaryValidator: TypedAbiFunction<[val: TypedAbiArg<Uint8Array, "val">], Response<boolean, bigint>>;
270
+ readonly sendMessage: TypedAbiFunction<[gasOracleRef: TypedAbiArg<string, "gasOracleRef">, message: TypedAbiArg<Uint8Array, "message">], Response<bigint, bigint>>;
271
+ readonly setGasUsage: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">, gas: TypedAbiArg<number | bigint, "gas">], Response<boolean, bigint>>;
272
+ readonly setOtherChainIds: TypedAbiFunction<[value: TypedAbiArg<Uint8Array, "value">], Response<boolean, bigint>>;
273
+ readonly setPrimaryValidator: TypedAbiFunction<[val: TypedAbiArg<Uint8Array, "val">], Response<boolean, bigint>>;
274
+ readonly withdrawGasTokens: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">], Response<boolean, bigint>>;
275
+ readonly getGasOracle: TypedAbiFunction<[], Response<string, bigint>>;
276
+ readonly getGasUsage: TypedAbiFunction<[chainId_: TypedAbiArg<number | bigint, "chainId_">], Response<bigint, bigint>>;
277
+ readonly getOtherChainIds: TypedAbiFunction<[], Response<Uint8Array, null>>;
278
+ readonly getSentMessageBlock: TypedAbiFunction<[message: TypedAbiArg<Uint8Array, "message">], Response<bigint, bigint>>;
279
+ readonly getThisChainId: TypedAbiFunction<[], Response<bigint, bigint>>;
280
+ readonly isMessageReceived: TypedAbiFunction<[message: TypedAbiArg<Uint8Array, "message">], Response<boolean, null>>;
281
+ };
282
+ readonly maps: {
283
+ readonly gasUsageMap: TypedAbiMap<number | bigint, bigint>;
284
+ readonly receivedMessages: TypedAbiMap<Uint8Array, boolean>;
285
+ readonly secondaryValidators: TypedAbiMap<Uint8Array, boolean>;
286
+ readonly sentMessagesBlock: TypedAbiMap<Uint8Array, bigint>;
287
+ };
288
+ readonly variables: {
289
+ readonly errAlreadyInitialized: TypedAbiVariable<Response<null, bigint>>;
290
+ readonly errAlreadySent: TypedAbiVariable<Response<null, bigint>>;
291
+ readonly errGasUsageNotSet: TypedAbiVariable<Response<null, bigint>>;
292
+ readonly errInvalidChainId: TypedAbiVariable<Response<null, bigint>>;
293
+ readonly errInvalidDestination: TypedAbiVariable<Response<null, bigint>>;
294
+ readonly errInvalidPrimary: TypedAbiVariable<Response<null, bigint>>;
295
+ readonly errInvalidSecondary: TypedAbiVariable<Response<null, bigint>>;
296
+ readonly errMessageNotFound: TypedAbiVariable<Response<null, bigint>>;
297
+ readonly errNotInitialized: TypedAbiVariable<Response<null, bigint>>;
298
+ readonly errUnauthorized: TypedAbiVariable<Response<null, bigint>>;
299
+ readonly errWrongBufferLength: TypedAbiVariable<Response<null, bigint>>;
300
+ readonly errWrongGasOracle: TypedAbiVariable<Response<null, bigint>>;
301
+ readonly gasOraclePrincipal: TypedAbiVariable<string | null>;
302
+ readonly otherChainIds: TypedAbiVariable<Uint8Array>;
303
+ readonly owner: TypedAbiVariable<string>;
304
+ readonly primaryValidator: TypedAbiVariable<Uint8Array>;
305
+ readonly thisChainId: TypedAbiVariable<bigint | null>;
306
+ };
307
+ readonly constants: {
308
+ readonly errAlreadyInitialized: {
309
+ readonly isOk: false;
310
+ readonly value: 3008n;
311
+ };
312
+ readonly errAlreadySent: {
313
+ readonly isOk: false;
314
+ readonly value: 3003n;
315
+ };
316
+ readonly errGasUsageNotSet: {
317
+ readonly isOk: false;
318
+ readonly value: 3010n;
319
+ };
320
+ readonly errInvalidChainId: {
321
+ readonly isOk: false;
322
+ readonly value: 3002n;
323
+ };
324
+ readonly errInvalidDestination: {
325
+ readonly isOk: false;
326
+ readonly value: 3004n;
327
+ };
328
+ readonly errInvalidPrimary: {
329
+ readonly isOk: false;
330
+ readonly value: 3005n;
331
+ };
332
+ readonly errInvalidSecondary: {
333
+ readonly isOk: false;
334
+ readonly value: 3006n;
335
+ };
336
+ readonly errMessageNotFound: {
337
+ readonly isOk: false;
338
+ readonly value: 3001n;
339
+ };
340
+ readonly errNotInitialized: {
341
+ readonly isOk: false;
342
+ readonly value: 3011n;
343
+ };
344
+ readonly errUnauthorized: {
345
+ readonly isOk: false;
346
+ readonly value: 3000n;
347
+ };
348
+ readonly errWrongBufferLength: {
349
+ readonly isOk: false;
350
+ readonly value: 3009n;
351
+ };
352
+ readonly errWrongGasOracle: {
353
+ readonly isOk: false;
354
+ readonly value: 3007n;
355
+ };
356
+ readonly gasOraclePrincipal: null;
357
+ readonly otherChainIds: Uint8Array;
358
+ readonly owner: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
359
+ readonly primaryValidator: Uint8Array;
360
+ readonly thisChainId: null;
361
+ };
362
+ readonly non_fungible_tokens: readonly [];
363
+ readonly fungible_tokens: readonly [];
364
+ readonly epoch: "Epoch31";
365
+ readonly clarity_version: "Clarity3";
366
+ readonly contractName: "messenger";
367
+ };
368
+ readonly messengerTrait: {
369
+ readonly functions: {};
370
+ readonly maps: {};
371
+ readonly variables: {};
372
+ readonly constants: {};
373
+ readonly non_fungible_tokens: readonly [];
374
+ readonly fungible_tokens: readonly [];
375
+ readonly epoch: "Epoch31";
376
+ readonly clarity_version: "Clarity3";
377
+ readonly contractName: "messenger-trait";
378
+ };
379
+ readonly pool: {
380
+ readonly functions: {
381
+ readonly addRewards: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">], Response<boolean, null>>;
382
+ readonly assertBalanceReatio: TypedAbiFunction<[], Response<boolean, bigint>>;
383
+ readonly assertCanDeposit: TypedAbiFunction<[], Response<boolean, bigint>>;
384
+ readonly assertCanSwap: TypedAbiFunction<[], Response<boolean, bigint>>;
385
+ readonly assertCanWithdraw: TypedAbiFunction<[], Response<boolean, bigint>>;
386
+ readonly assertToken: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
387
+ readonly depositLp: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">, to: TypedAbiArg<string, "to">, lpAmount: TypedAbiArg<number | bigint, "lpAmount">], Response<boolean, bigint>>;
388
+ readonly leCube_q: TypedAbiFunction<[x: TypedAbiArg<number | bigint, "x">, n: TypedAbiArg<number | bigint, "n">], boolean>;
389
+ readonly newtonStep: TypedAbiFunction<[n: TypedAbiArg<number | bigint, "n">, x: TypedAbiArg<number | bigint, "x">], bigint>;
390
+ readonly onlyBridge: TypedAbiFunction<[], Response<boolean, bigint>>;
391
+ readonly onlyOwner: TypedAbiFunction<[], Response<boolean, bigint>>;
392
+ readonly onlyStopAuthority: TypedAbiFunction<[], Response<boolean, bigint>>;
393
+ readonly refine: TypedAbiFunction<[n: TypedAbiArg<number | bigint, "n">, x: TypedAbiArg<number | bigint, "x">], bigint>;
394
+ readonly withdrawLp: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">, from: TypedAbiArg<string, "from">, lpAmount: TypedAbiArg<number | bigint, "lpAmount">], Response<boolean, bigint>>;
395
+ readonly adjustTotalLpAmount: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
396
+ readonly claimAdminFee: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
397
+ readonly claimRewards: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
398
+ readonly deposit: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">, ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
399
+ readonly init: TypedAbiFunction<[token: TypedAbiArg<string, "token">, bridgeAddress: TypedAbiArg<string, "bridgeAddress">, feeShareBpArg: TypedAbiArg<number | bigint, "feeShareBpArg">, balanceRatioMinBpArg: TypedAbiArg<number | bigint, "balanceRatioMinBpArg">], Response<boolean, bigint>>;
400
+ readonly serBalanceRetioMinBp: TypedAbiFunction<[newBalanceRatioMinBp: TypedAbiArg<number | bigint, "newBalanceRatioMinBp">], Response<boolean, bigint>>;
401
+ readonly setAdminFeeSahreBp: TypedAbiFunction<[newAdminFeeShareBp: TypedAbiArg<number | bigint, "newAdminFeeShareBp">], Response<boolean, bigint>>;
402
+ readonly setBridge: TypedAbiFunction<[newBridge: TypedAbiArg<string, "newBridge">], Response<boolean, bigint>>;
403
+ readonly setFeeShare: TypedAbiFunction<[feeShareBp_: TypedAbiArg<number | bigint, "feeShareBp_">], Response<boolean, bigint>>;
404
+ readonly setOwner: TypedAbiFunction<[newOwner: TypedAbiArg<string, "newOwner">], Response<boolean, bigint>>;
405
+ readonly setStopAuthority: TypedAbiFunction<[newStopAuthority: TypedAbiArg<string, "newStopAuthority">], Response<boolean, bigint>>;
406
+ readonly startDeposit: TypedAbiFunction<[], Response<boolean, bigint>>;
407
+ readonly startSwap: TypedAbiFunction<[], Response<boolean, bigint>>;
408
+ readonly startWithdraw: TypedAbiFunction<[], Response<boolean, bigint>>;
409
+ readonly stopDeposit: TypedAbiFunction<[], Response<boolean, bigint>>;
410
+ readonly stopSwap: TypedAbiFunction<[], Response<boolean, bigint>>;
411
+ readonly stopWithdraw: TypedAbiFunction<[], Response<boolean, bigint>>;
412
+ readonly swapFromVusd: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">, user: TypedAbiArg<string, "user">, amount: TypedAbiArg<number | bigint, "amount">, receiveAmountMin: TypedAbiArg<number | bigint, "receiveAmountMin">, zeroFee: TypedAbiArg<boolean, "zeroFee">], Response<bigint, bigint>>;
413
+ readonly swapToVusd: TypedAbiFunction<[ftRef: TypedAbiArg<string, "ftRef">, user: TypedAbiArg<string, "user">, amount: TypedAbiArg<number | bigint, "amount">, zeroFee: TypedAbiArg<boolean, "zeroFee">], Response<bigint, bigint>>;
414
+ readonly withdraw: TypedAbiFunction<[amountLp: TypedAbiArg<number | bigint, "amountLp">, ftRef: TypedAbiArg<string, "ftRef">], Response<boolean, bigint>>;
415
+ readonly calcD: TypedAbiFunction<[x: TypedAbiArg<number | bigint, "x">, y: TypedAbiArg<number | bigint, "y">], bigint>;
416
+ readonly calcY: TypedAbiFunction<[x: TypedAbiArg<number | bigint, "x">, d_: TypedAbiArg<number | bigint, "d_">], bigint>;
417
+ readonly cbrt: TypedAbiFunction<[n: TypedAbiArg<number | bigint, "n">], bigint>;
418
+ readonly fromSystemPrecision: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">], bigint>;
419
+ readonly getAccRewardPerShareP: TypedAbiFunction<[], bigint>;
420
+ readonly getAdminFeeAmount: TypedAbiFunction<[], bigint>;
421
+ readonly getAdminFeeShareBp: TypedAbiFunction<[], bigint>;
422
+ readonly getBalanceRatioMinBp: TypedAbiFunction<[], bigint>;
423
+ readonly getBridge: TypedAbiFunction<[], string | null>;
424
+ readonly getCanDeposit: TypedAbiFunction<[], boolean>;
425
+ readonly getCanSwap: TypedAbiFunction<[], boolean>;
426
+ readonly getCanWithdraw: TypedAbiFunction<[], boolean>;
427
+ readonly getD: TypedAbiFunction<[], bigint>;
428
+ readonly getFeeShareBp: TypedAbiFunction<[], bigint>;
429
+ readonly getLpBalance: TypedAbiFunction<[user: TypedAbiArg<string, "user">], bigint>;
430
+ readonly getLpTotalSupply: TypedAbiFunction<[], bigint>;
431
+ readonly getOwner: TypedAbiFunction<[], string>;
432
+ readonly getReserves: TypedAbiFunction<[], bigint>;
433
+ readonly getStopAuthority: TypedAbiFunction<[], string>;
434
+ readonly getTokenAddress: TypedAbiFunction<[], Response<string, bigint>>;
435
+ readonly getTokenBalance: TypedAbiFunction<[], bigint>;
436
+ readonly getUserRewardDebt: TypedAbiFunction<[user: TypedAbiArg<string, "user">], bigint>;
437
+ readonly getVusdBalance: TypedAbiFunction<[], bigint>;
438
+ readonly pendingRewards: TypedAbiFunction<[user: TypedAbiArg<string, "user">], Response<bigint, null>>;
439
+ readonly toSystemPrecision: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">], bigint>;
440
+ };
441
+ readonly maps: {
442
+ readonly lpBalances: TypedAbiMap<string, bigint>;
443
+ readonly userRewardDebt: TypedAbiMap<string, bigint>;
444
+ };
445
+ readonly variables: {
446
+ readonly BP: TypedAbiVariable<bigint>;
447
+ readonly P: TypedAbiVariable<bigint>;
448
+ readonly a: TypedAbiVariable<bigint>;
449
+ readonly errAlreadyInitialized: TypedAbiVariable<Response<null, bigint>>;
450
+ readonly errDepositAmountTooSmall: TypedAbiVariable<Response<null, bigint>>;
451
+ readonly errDepositProhibited: TypedAbiVariable<Response<null, bigint>>;
452
+ readonly errLowTokenBalance: TypedAbiVariable<Response<null, bigint>>;
453
+ readonly errLowVusdBalance: TypedAbiVariable<Response<null, bigint>>;
454
+ readonly errNotEnoughLp: TypedAbiVariable<Response<null, bigint>>;
455
+ readonly errNotEnoughReserves: TypedAbiVariable<Response<null, bigint>>;
456
+ readonly errNotInitialized: TypedAbiVariable<Response<null, bigint>>;
457
+ readonly errPoolBalanceTooBig: TypedAbiVariable<Response<null, bigint>>;
458
+ readonly errSlippage: TypedAbiVariable<Response<null, bigint>>;
459
+ readonly errSwapProhibited: TypedAbiVariable<Response<null, bigint>>;
460
+ readonly errTooLarge: TypedAbiVariable<Response<null, bigint>>;
461
+ readonly errUnauthorized: TypedAbiVariable<Response<null, bigint>>;
462
+ readonly errWithdrawProhibited: TypedAbiVariable<Response<null, bigint>>;
463
+ readonly errWrongToken: TypedAbiVariable<Response<null, bigint>>;
464
+ readonly errZeroChanges: TypedAbiVariable<Response<null, bigint>>;
465
+ readonly errZeroDChanges: TypedAbiVariable<Response<null, bigint>>;
466
+ readonly maxTokenBalance: TypedAbiVariable<bigint>;
467
+ readonly systemPrecision: TypedAbiVariable<bigint>;
468
+ readonly accRewardPerShareP: TypedAbiVariable<bigint>;
469
+ readonly adminFeeAmount: TypedAbiVariable<bigint>;
470
+ readonly adminFeeShareBp: TypedAbiVariable<bigint>;
471
+ readonly balanceRatioMinBp: TypedAbiVariable<bigint>;
472
+ readonly bridge: TypedAbiVariable<string | null>;
473
+ readonly canDeposit: TypedAbiVariable<boolean>;
474
+ readonly canSwap: TypedAbiVariable<boolean>;
475
+ readonly canWithdraw: TypedAbiVariable<boolean>;
476
+ readonly d: TypedAbiVariable<bigint>;
477
+ readonly feeShareBp: TypedAbiVariable<bigint>;
478
+ readonly lpTotalSupply: TypedAbiVariable<bigint>;
479
+ readonly owner: TypedAbiVariable<string>;
480
+ readonly reserves: TypedAbiVariable<bigint>;
481
+ readonly stopAuthority: TypedAbiVariable<string>;
482
+ readonly tokenAmountIncrease: TypedAbiVariable<bigint>;
483
+ readonly tokenAmountReduce: TypedAbiVariable<bigint>;
484
+ readonly tokenBalance: TypedAbiVariable<bigint>;
485
+ readonly tokenPrincipal: TypedAbiVariable<string | null>;
486
+ readonly vusdBalance: TypedAbiVariable<bigint>;
487
+ };
488
+ readonly constants: {
489
+ readonly BP: 10000n;
490
+ readonly P: 48n;
491
+ readonly a: 20n;
492
+ readonly accRewardPerShareP: 0n;
493
+ readonly adminFeeAmount: 0n;
494
+ readonly adminFeeShareBp: 0n;
495
+ readonly balanceRatioMinBp: 0n;
496
+ readonly bridge: null;
497
+ readonly canDeposit: true;
498
+ readonly canSwap: true;
499
+ readonly canWithdraw: true;
500
+ readonly d: 0n;
501
+ readonly errAlreadyInitialized: {
502
+ readonly isOk: false;
503
+ readonly value: 2007n;
504
+ };
505
+ readonly errDepositAmountTooSmall: {
506
+ readonly isOk: false;
507
+ readonly value: 2001n;
508
+ };
509
+ readonly errDepositProhibited: {
510
+ readonly isOk: false;
511
+ readonly value: 2013n;
512
+ };
513
+ readonly errLowTokenBalance: {
514
+ readonly isOk: false;
515
+ readonly value: 2012n;
516
+ };
517
+ readonly errLowVusdBalance: {
518
+ readonly isOk: false;
519
+ readonly value: 2011n;
520
+ };
521
+ readonly errNotEnoughLp: {
522
+ readonly isOk: false;
523
+ readonly value: 2010n;
524
+ };
525
+ readonly errNotEnoughReserves: {
526
+ readonly isOk: false;
527
+ readonly value: 2005n;
528
+ };
529
+ readonly errNotInitialized: {
530
+ readonly isOk: false;
531
+ readonly value: 2006n;
532
+ };
533
+ readonly errPoolBalanceTooBig: {
534
+ readonly isOk: false;
535
+ readonly value: 2002n;
536
+ };
537
+ readonly errSlippage: {
538
+ readonly isOk: false;
539
+ readonly value: 2009n;
540
+ };
541
+ readonly errSwapProhibited: {
542
+ readonly isOk: false;
543
+ readonly value: 2015n;
544
+ };
545
+ readonly errTooLarge: {
546
+ readonly isOk: false;
547
+ readonly value: 2016n;
548
+ };
549
+ readonly errUnauthorized: {
550
+ readonly isOk: false;
551
+ readonly value: 2000n;
552
+ };
553
+ readonly errWithdrawProhibited: {
554
+ readonly isOk: false;
555
+ readonly value: 2014n;
556
+ };
557
+ readonly errWrongToken: {
558
+ readonly isOk: false;
559
+ readonly value: 2008n;
560
+ };
561
+ readonly errZeroChanges: {
562
+ readonly isOk: false;
563
+ readonly value: 2003n;
564
+ };
565
+ readonly errZeroDChanges: {
566
+ readonly isOk: false;
567
+ readonly value: 2004n;
568
+ };
569
+ readonly feeShareBp: 0n;
570
+ readonly lpTotalSupply: 0n;
571
+ readonly maxTokenBalance: 1000000000000n;
572
+ readonly owner: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
573
+ readonly reserves: 0n;
574
+ readonly stopAuthority: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
575
+ readonly systemPrecision: 3n;
576
+ readonly tokenAmountIncrease: 0n;
577
+ readonly tokenAmountReduce: 0n;
578
+ readonly tokenBalance: 0n;
579
+ readonly tokenPrincipal: null;
580
+ readonly vusdBalance: 0n;
581
+ };
582
+ readonly non_fungible_tokens: readonly [];
583
+ readonly fungible_tokens: readonly [];
584
+ readonly epoch: "Epoch31";
585
+ readonly clarity_version: "Clarity3";
586
+ readonly contractName: "pool";
587
+ };
588
+ readonly poolTrait: {
589
+ readonly functions: {};
590
+ readonly maps: {};
591
+ readonly variables: {};
592
+ readonly constants: {};
593
+ readonly non_fungible_tokens: readonly [];
594
+ readonly fungible_tokens: readonly [];
595
+ readonly epoch: "Epoch31";
596
+ readonly clarity_version: "Clarity3";
597
+ readonly contractName: "pool-trait";
598
+ };
599
+ readonly sip010TraitFtStandard: {
600
+ readonly functions: {};
601
+ readonly maps: {};
602
+ readonly variables: {};
603
+ readonly constants: {};
604
+ readonly non_fungible_tokens: readonly [];
605
+ readonly fungible_tokens: readonly [];
606
+ readonly epoch: "Epoch21";
607
+ readonly clarity_version: "Clarity1";
608
+ readonly contractName: "sip-010-trait-ft-standard";
609
+ };
610
+ readonly utils: {
611
+ readonly functions: {
612
+ readonly assertNotEmptyBuff32: TypedAbiFunction<[b: TypedAbiArg<Uint8Array, "b">], Response<boolean, bigint>>;
613
+ readonly bufferByte: TypedAbiFunction<[b: TypedAbiArg<Uint8Array, "b">, i: TypedAbiArg<number | bigint, "i">], Response<Uint8Array, bigint>>;
614
+ readonly bufferByteUint: TypedAbiFunction<[b: TypedAbiArg<Uint8Array, "b">, i: TypedAbiArg<number | bigint, "i">], Response<bigint, bigint>>;
615
+ readonly hashMessage: TypedAbiFunction<[amount: TypedAbiArg<number | bigint, "amount">, recipient: TypedAbiArg<Uint8Array, "recipient">, sourceChainId: TypedAbiArg<number | bigint, "sourceChainId">, destinationChainId: TypedAbiArg<number | bigint, "destinationChainId">, receiveToken: TypedAbiArg<Uint8Array, "receiveToken">, nonce: TypedAbiArg<Uint8Array, "nonce">, messengerId: TypedAbiArg<number | bigint, "messengerId">], Response<Uint8Array, bigint>>;
616
+ readonly hashWithSenderAddress: TypedAbiFunction<[message: TypedAbiArg<Uint8Array, "message">, sender: TypedAbiArg<Uint8Array, "sender">], Response<Uint8Array, bigint>>;
617
+ readonly principalHash: TypedAbiFunction<[value: TypedAbiArg<string, "value">], Uint8Array>;
618
+ readonly principalToBuff32: TypedAbiFunction<[value: TypedAbiArg<string, "value">], Uint8Array>;
619
+ readonly stringToBuff: TypedAbiFunction<[str: TypedAbiArg<string, "str">], Uint8Array>;
620
+ readonly uintToBuff1: TypedAbiFunction<[value: TypedAbiArg<number | bigint, "value">], Uint8Array>;
621
+ readonly uintToBuff32: TypedAbiFunction<[value: TypedAbiArg<number | bigint, "value">], Uint8Array>;
622
+ };
623
+ readonly maps: {};
624
+ readonly variables: {
625
+ readonly errEmptyBuffer: TypedAbiVariable<Response<null, bigint>>;
626
+ readonly errWrongBufferLength: TypedAbiVariable<Response<null, bigint>>;
627
+ readonly errWrongMsgLength: TypedAbiVariable<Response<null, bigint>>;
628
+ readonly thisChainId: TypedAbiVariable<bigint>;
629
+ readonly zeroBytes12: TypedAbiVariable<Uint8Array>;
630
+ readonly zeroBytes16: TypedAbiVariable<Uint8Array>;
631
+ readonly zeroBytes32: TypedAbiVariable<Uint8Array>;
632
+ };
633
+ readonly constants: {
634
+ readonly errEmptyBuffer: {
635
+ readonly isOk: false;
636
+ readonly value: 5002n;
637
+ };
638
+ readonly errWrongBufferLength: {
639
+ readonly isOk: false;
640
+ readonly value: 5000n;
641
+ };
642
+ readonly errWrongMsgLength: {
643
+ readonly isOk: false;
644
+ readonly value: 5001n;
645
+ };
646
+ readonly thisChainId: 16n;
647
+ readonly zeroBytes12: Uint8Array;
648
+ readonly zeroBytes16: Uint8Array;
649
+ readonly zeroBytes32: Uint8Array;
650
+ };
651
+ readonly non_fungible_tokens: readonly [];
652
+ readonly fungible_tokens: readonly [];
653
+ readonly epoch: "Epoch31";
654
+ readonly clarity_version: "Clarity3";
655
+ readonly contractName: "utils";
656
+ };
657
+ };