@gobob/bob-sdk 4.4.10-rc9 → 4.4.11-rc0

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 (125) hide show
  1. package/README.md +5 -0
  2. package/dist/assets/tokenlist.json +99 -3
  3. package/dist/gateway/abi.d.ts +1 -220
  4. package/dist/gateway/abi.js +2 -146
  5. package/dist/gateway/abi.js.map +1 -1
  6. package/dist/gateway/client.d.ts +12 -30
  7. package/dist/gateway/client.js +65 -738
  8. package/dist/gateway/client.js.map +1 -1
  9. package/dist/gateway/generated-client/apis/DefaultApi.d.ts +46 -0
  10. package/dist/gateway/generated-client/apis/DefaultApi.js +253 -0
  11. package/dist/gateway/generated-client/apis/DefaultApi.js.map +1 -0
  12. package/dist/gateway/generated-client/apis/index.d.ts +1 -0
  13. package/dist/gateway/generated-client/apis/index.js +18 -0
  14. package/dist/gateway/generated-client/apis/index.js.map +1 -0
  15. package/dist/gateway/generated-client/index.d.ts +3 -0
  16. package/dist/gateway/generated-client/index.js +20 -0
  17. package/dist/gateway/generated-client/index.js.map +1 -0
  18. package/dist/gateway/generated-client/models/ChainDetails.d.ts +10 -0
  19. package/dist/gateway/generated-client/models/ChainDetails.js +41 -0
  20. package/dist/gateway/generated-client/models/ChainDetails.js.map +1 -0
  21. package/dist/gateway/generated-client/models/GatewayChain.d.ts +23 -0
  22. package/dist/gateway/generated-client/models/GatewayChain.js +48 -0
  23. package/dist/gateway/generated-client/models/GatewayChain.js.map +1 -0
  24. package/dist/gateway/generated-client/models/GatewayCreateOnramp.d.ts +11 -0
  25. package/dist/gateway/generated-client/models/GatewayCreateOnramp.js +45 -0
  26. package/dist/gateway/generated-client/models/GatewayCreateOnramp.js.map +1 -0
  27. package/dist/gateway/generated-client/models/GatewayLayerZeroQuote.d.ts +12 -0
  28. package/dist/gateway/generated-client/models/GatewayLayerZeroQuote.js +48 -0
  29. package/dist/gateway/generated-client/models/GatewayLayerZeroQuote.js.map +1 -0
  30. package/dist/gateway/generated-client/models/GatewayOfframpFeeBreakdown.d.ts +12 -0
  31. package/dist/gateway/generated-client/models/GatewayOfframpFeeBreakdown.js +51 -0
  32. package/dist/gateway/generated-client/models/GatewayOfframpFeeBreakdown.js.map +1 -0
  33. package/dist/gateway/generated-client/models/GatewayOfframpQuote.d.ts +15 -0
  34. package/dist/gateway/generated-client/models/GatewayOfframpQuote.js +57 -0
  35. package/dist/gateway/generated-client/models/GatewayOfframpQuote.js.map +1 -0
  36. package/dist/gateway/generated-client/models/GatewayOnrampFeeBreakdown.d.ts +12 -0
  37. package/dist/gateway/generated-client/models/GatewayOnrampFeeBreakdown.js +51 -0
  38. package/dist/gateway/generated-client/models/GatewayOnrampFeeBreakdown.js.map +1 -0
  39. package/dist/gateway/generated-client/models/GatewayOnrampQuote.d.ts +20 -0
  40. package/dist/gateway/generated-client/models/GatewayOnrampQuote.js +74 -0
  41. package/dist/gateway/generated-client/models/GatewayOnrampQuote.js.map +1 -0
  42. package/dist/gateway/generated-client/models/GatewayOrderInfo.d.ts +8 -0
  43. package/dist/gateway/generated-client/models/GatewayOrderInfo.js +52 -0
  44. package/dist/gateway/generated-client/models/GatewayOrderInfo.js.map +1 -0
  45. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf.d.ts +9 -0
  46. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf.js +36 -0
  47. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf.js.map +1 -0
  48. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf1.d.ts +9 -0
  49. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf1.js +36 -0
  50. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf1.js.map +1 -0
  51. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf1Offramp.d.ts +24 -0
  52. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf1Offramp.js +80 -0
  53. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf1Offramp.js.map +1 -0
  54. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf2.d.ts +9 -0
  55. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf2.js +36 -0
  56. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf2.js.map +1 -0
  57. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf2LayerZero.d.ts +16 -0
  58. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf2LayerZero.js +61 -0
  59. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOf2LayerZero.js.map +1 -0
  60. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOfOnramp.d.ts +22 -0
  61. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOfOnramp.js +75 -0
  62. package/dist/gateway/generated-client/models/GatewayOrderInfoOneOfOnramp.js.map +1 -0
  63. package/dist/gateway/generated-client/models/GatewayQuote.d.ts +8 -0
  64. package/dist/gateway/generated-client/models/GatewayQuote.js +52 -0
  65. package/dist/gateway/generated-client/models/GatewayQuote.js.map +1 -0
  66. package/dist/gateway/generated-client/models/GatewayQuoteOneOf.d.ts +9 -0
  67. package/dist/gateway/generated-client/models/GatewayQuoteOneOf.js +36 -0
  68. package/dist/gateway/generated-client/models/GatewayQuoteOneOf.js.map +1 -0
  69. package/dist/gateway/generated-client/models/GatewayQuoteOneOf1.d.ts +9 -0
  70. package/dist/gateway/generated-client/models/GatewayQuoteOneOf1.js +36 -0
  71. package/dist/gateway/generated-client/models/GatewayQuoteOneOf1.js.map +1 -0
  72. package/dist/gateway/generated-client/models/GatewayQuoteOneOf2.d.ts +9 -0
  73. package/dist/gateway/generated-client/models/GatewayQuoteOneOf2.js +36 -0
  74. package/dist/gateway/generated-client/models/GatewayQuoteOneOf2.js.map +1 -0
  75. package/dist/gateway/generated-client/models/LayerZeroChainDetailsSchema.d.ts +10 -0
  76. package/dist/gateway/generated-client/models/LayerZeroChainDetailsSchema.js +43 -0
  77. package/dist/gateway/generated-client/models/LayerZeroChainDetailsSchema.js.map +1 -0
  78. package/dist/gateway/generated-client/models/LayerZeroOrderStatus.d.ts +14 -0
  79. package/dist/gateway/generated-client/models/LayerZeroOrderStatus.js +39 -0
  80. package/dist/gateway/generated-client/models/LayerZeroOrderStatus.js.map +1 -0
  81. package/dist/gateway/generated-client/models/OnrampStatus.d.ts +12 -0
  82. package/dist/gateway/generated-client/models/OnrampStatus.js +37 -0
  83. package/dist/gateway/generated-client/models/OnrampStatus.js.map +1 -0
  84. package/dist/gateway/generated-client/models/OrderStatus.d.ts +12 -0
  85. package/dist/gateway/generated-client/models/OrderStatus.js +37 -0
  86. package/dist/gateway/generated-client/models/OrderStatus.js.map +1 -0
  87. package/dist/gateway/generated-client/models/ReferralInfo.d.ts +11 -0
  88. package/dist/gateway/generated-client/models/ReferralInfo.js +47 -0
  89. package/dist/gateway/generated-client/models/ReferralInfo.js.map +1 -0
  90. package/dist/gateway/generated-client/models/RegisterBtcTx.d.ts +9 -0
  91. package/dist/gateway/generated-client/models/RegisterBtcTx.js +39 -0
  92. package/dist/gateway/generated-client/models/RegisterBtcTx.js.map +1 -0
  93. package/dist/gateway/generated-client/models/RouteInfo.d.ts +11 -0
  94. package/dist/gateway/generated-client/models/RouteInfo.js +47 -0
  95. package/dist/gateway/generated-client/models/RouteInfo.js.map +1 -0
  96. package/dist/gateway/generated-client/models/TxInfo.d.ts +10 -0
  97. package/dist/gateway/generated-client/models/TxInfo.js +43 -0
  98. package/dist/gateway/generated-client/models/TxInfo.js.map +1 -0
  99. package/dist/gateway/generated-client/models/index.d.ts +26 -0
  100. package/dist/gateway/generated-client/models/index.js +43 -0
  101. package/dist/gateway/generated-client/models/index.js.map +1 -0
  102. package/dist/gateway/generated-client/runtime.d.ts +156 -0
  103. package/dist/gateway/generated-client/runtime.js +317 -0
  104. package/dist/gateway/generated-client/runtime.js.map +1 -0
  105. package/dist/gateway/index.d.ts +2 -3
  106. package/dist/gateway/index.js +16 -7
  107. package/dist/gateway/index.js.map +1 -1
  108. package/dist/gateway/types/offramp.d.ts +0 -19
  109. package/dist/gateway/types/quote.d.ts +4 -7
  110. package/dist/gateway/types/strategy.d.ts +0 -51
  111. package/dist/gateway/types/swaps.d.ts +9 -0
  112. package/dist/gateway/utils/common.d.ts +12 -12
  113. package/dist/type-utils.d.ts +7 -0
  114. package/dist/type-utils.js +11 -0
  115. package/dist/type-utils.js.map +1 -0
  116. package/package.json +1 -1
  117. package/dist/gateway/cross-chain-swap.d.ts +0 -24
  118. package/dist/gateway/cross-chain-swap.js +0 -424
  119. package/dist/gateway/cross-chain-swap.js.map +0 -1
  120. package/dist/gateway/layerzero.d.ts +0 -44
  121. package/dist/gateway/layerzero.js +0 -762
  122. package/dist/gateway/layerzero.js.map +0 -1
  123. package/dist/gateway/swaps.d.ts +0 -12
  124. package/dist/gateway/swaps.js +0 -72
  125. package/dist/gateway/swaps.js.map +0 -1
package/README.md CHANGED
@@ -41,6 +41,11 @@ We use `pnpm` in the examples below. But the steps below should also work when u
41
41
 
42
42
  ```shell
43
43
  pnpm i
44
+
45
+ openapi-generator-cli generate --skip-validate-spec \
46
+ -i https://gateway-api-staging.gobob.xyz/api-doc.json \
47
+ -g typescript-fetch \
48
+ -o ./src/gateway/generated-client
44
49
  ```
45
50
 
46
51
  ### Build
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/Uniswap/token-lists/refs/heads/main/src/tokenlist.schema.json",
3
3
  "name": "BOB Tokens",
4
- "timestamp": "2025-12-09T15:00:53.640Z",
4
+ "timestamp": "2025-12-16T15:58:58.179Z",
5
5
  "version": {
6
6
  "major": 1,
7
7
  "minor": 0,
@@ -1432,7 +1432,7 @@
1432
1432
  "address": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
1433
1433
  "name": "USD Coin",
1434
1434
  "symbol": "USDC",
1435
- "decimals": 6,
1435
+ "decimals": 18,
1436
1436
  "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/USDC/logo.webp",
1437
1437
  "extensions": {
1438
1438
  "tokenId": "USDC",
@@ -1496,7 +1496,7 @@
1496
1496
  "address": "0x55d398326f99059fF775485246999027B3197955",
1497
1497
  "name": "Tether USD",
1498
1498
  "symbol": "USDT",
1499
- "decimals": 6,
1499
+ "decimals": 18,
1500
1500
  "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/USDT/logo.webp",
1501
1501
  "extensions": {
1502
1502
  "tokenId": "USDT",
@@ -1515,6 +1515,18 @@
1515
1515
  "bridge": {}
1516
1516
  }
1517
1517
  },
1518
+ {
1519
+ "chainId": 130,
1520
+ "address": "0x9151434b16b9763660705744891fA906F660EcC5",
1521
+ "name": "USD₮0",
1522
+ "symbol": "USD₮0",
1523
+ "decimals": 6,
1524
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/USDT0/logo.svg",
1525
+ "extensions": {
1526
+ "tokenId": "USDT0",
1527
+ "bridge": {}
1528
+ }
1529
+ },
1518
1530
  {
1519
1531
  "chainId": 1,
1520
1532
  "address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
@@ -1639,6 +1651,90 @@
1639
1651
  "bridge": {}
1640
1652
  }
1641
1653
  },
1654
+ {
1655
+ "chainId": 1923,
1656
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1657
+ "name": "Wrapped BTC",
1658
+ "symbol": "WBTC",
1659
+ "decimals": 8,
1660
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1661
+ "extensions": {
1662
+ "tokenId": "WBTCOFT",
1663
+ "bridge": {}
1664
+ }
1665
+ },
1666
+ {
1667
+ "chainId": 1329,
1668
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1669
+ "name": "Wrapped BTC",
1670
+ "symbol": "WBTC",
1671
+ "decimals": 8,
1672
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1673
+ "extensions": {
1674
+ "tokenId": "WBTCOFT",
1675
+ "bridge": {}
1676
+ }
1677
+ },
1678
+ {
1679
+ "chainId": 1868,
1680
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1681
+ "name": "Wrapped BTC",
1682
+ "symbol": "WBTC",
1683
+ "decimals": 8,
1684
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1685
+ "extensions": {
1686
+ "tokenId": "WBTCOFT",
1687
+ "bridge": {}
1688
+ }
1689
+ },
1690
+ {
1691
+ "chainId": 80094,
1692
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1693
+ "name": "Wrapped BTC",
1694
+ "symbol": "WBTC",
1695
+ "decimals": 8,
1696
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1697
+ "extensions": {
1698
+ "tokenId": "WBTCOFT",
1699
+ "bridge": {}
1700
+ }
1701
+ },
1702
+ {
1703
+ "chainId": 130,
1704
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1705
+ "name": "Wrapped BTC",
1706
+ "symbol": "WBTC",
1707
+ "decimals": 8,
1708
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1709
+ "extensions": {
1710
+ "tokenId": "WBTCOFT",
1711
+ "bridge": {}
1712
+ }
1713
+ },
1714
+ {
1715
+ "chainId": 146,
1716
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1717
+ "name": "Wrapped BTC",
1718
+ "symbol": "WBTC",
1719
+ "decimals": 8,
1720
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1721
+ "extensions": {
1722
+ "tokenId": "WBTCOFT",
1723
+ "bridge": {}
1724
+ }
1725
+ },
1726
+ {
1727
+ "chainId": 40,
1728
+ "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
1729
+ "name": "Wrapped BTC",
1730
+ "symbol": "WBTC",
1731
+ "decimals": 8,
1732
+ "logoURI": "https://raw.githubusercontent.com/bob-collective/bob/refs/heads/master/tokenlist/data/WBTCOFT/logo.svg",
1733
+ "extensions": {
1734
+ "tokenId": "WBTCOFT",
1735
+ "bridge": {}
1736
+ }
1737
+ },
1642
1738
  {
1643
1739
  "chainId": 1,
1644
1740
  "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
@@ -26,7 +26,7 @@ export declare const strategyCaller: readonly [{
26
26
  readonly outputs: readonly [];
27
27
  readonly stateMutability: "nonpayable";
28
28
  }];
29
- export declare const offrampCallerV2: readonly [{
29
+ export declare const offrampCallerV2Abi: readonly [{
30
30
  readonly type: "function";
31
31
  readonly name: "createOrderV2";
32
32
  readonly inputs: readonly [{
@@ -124,222 +124,3 @@ export declare const aaveV2AtokenAbi: readonly [{
124
124
  readonly type: "address";
125
125
  }];
126
126
  }];
127
- export declare const claimDelayAbi: readonly [{
128
- readonly name: "CLAIM_DELAY";
129
- readonly type: "function";
130
- readonly stateMutability: "view";
131
- readonly inputs: readonly [];
132
- readonly outputs: readonly [{
133
- readonly type: "uint64";
134
- }];
135
- }];
136
- export declare const layerZeroOftAbi: readonly [{
137
- readonly type: "function";
138
- readonly name: "quoteSend";
139
- readonly inputs: readonly [{
140
- readonly name: "sendParam";
141
- readonly type: "tuple";
142
- readonly internalType: "struct SendParam";
143
- readonly components: readonly [{
144
- readonly name: "dstEid";
145
- readonly type: "uint32";
146
- readonly internalType: "uint32";
147
- }, {
148
- readonly name: "to";
149
- readonly type: "bytes32";
150
- readonly internalType: "bytes32";
151
- }, {
152
- readonly name: "amountLD";
153
- readonly type: "uint256";
154
- readonly internalType: "uint256";
155
- }, {
156
- readonly name: "minAmountLD";
157
- readonly type: "uint256";
158
- readonly internalType: "uint256";
159
- }, {
160
- readonly name: "extraOptions";
161
- readonly type: "bytes";
162
- readonly internalType: "bytes";
163
- }, {
164
- readonly name: "composeMsg";
165
- readonly type: "bytes";
166
- readonly internalType: "bytes";
167
- }, {
168
- readonly name: "oftCmd";
169
- readonly type: "bytes";
170
- readonly internalType: "bytes";
171
- }];
172
- }, {
173
- readonly name: "isNative";
174
- readonly type: "bool";
175
- readonly internalType: "bool";
176
- }];
177
- readonly outputs: readonly [{
178
- readonly name: "";
179
- readonly type: "tuple";
180
- readonly internalType: "struct MessagingFee";
181
- readonly components: readonly [{
182
- readonly name: "nativeFee";
183
- readonly type: "uint256";
184
- readonly internalType: "uint256";
185
- }, {
186
- readonly name: "lzTokenFee";
187
- readonly type: "uint256";
188
- readonly internalType: "uint256";
189
- }];
190
- }];
191
- readonly stateMutability: "view";
192
- }, {
193
- readonly type: "function";
194
- readonly name: "send";
195
- readonly inputs: readonly [{
196
- readonly name: "sendParam";
197
- readonly type: "tuple";
198
- readonly internalType: "struct SendParam";
199
- readonly components: readonly [{
200
- readonly name: "dstEid";
201
- readonly type: "uint32";
202
- readonly internalType: "uint32";
203
- }, {
204
- readonly name: "to";
205
- readonly type: "bytes32";
206
- readonly internalType: "bytes32";
207
- }, {
208
- readonly name: "amountLD";
209
- readonly type: "uint256";
210
- readonly internalType: "uint256";
211
- }, {
212
- readonly name: "minAmountLD";
213
- readonly type: "uint256";
214
- readonly internalType: "uint256";
215
- }, {
216
- readonly name: "extraOptions";
217
- readonly type: "bytes";
218
- readonly internalType: "bytes";
219
- }, {
220
- readonly name: "composeMsg";
221
- readonly type: "bytes";
222
- readonly internalType: "bytes";
223
- }, {
224
- readonly name: "oftCmd";
225
- readonly type: "bytes";
226
- readonly internalType: "bytes";
227
- }];
228
- }, {
229
- readonly name: "fee";
230
- readonly type: "tuple";
231
- readonly internalType: "struct MessagingFee";
232
- readonly components: readonly [{
233
- readonly name: "nativeFee";
234
- readonly type: "uint256";
235
- readonly internalType: "uint256";
236
- }, {
237
- readonly name: "lzTokenFee";
238
- readonly type: "uint256";
239
- readonly internalType: "uint256";
240
- }];
241
- }, {
242
- readonly name: "refundAddress";
243
- readonly type: "address";
244
- readonly internalType: "address";
245
- }];
246
- readonly outputs: readonly [{
247
- readonly name: "receipt";
248
- readonly type: "tuple";
249
- readonly internalType: "struct MessagingReceipt";
250
- readonly components: readonly [{
251
- readonly name: "guid";
252
- readonly type: "bytes32";
253
- readonly internalType: "bytes32";
254
- }, {
255
- readonly name: "nonce";
256
- readonly type: "uint64";
257
- readonly internalType: "uint64";
258
- }, {
259
- readonly name: "fee";
260
- readonly type: "tuple";
261
- readonly internalType: "struct MessagingFee";
262
- readonly components: readonly [{
263
- readonly name: "nativeFee";
264
- readonly type: "uint256";
265
- readonly internalType: "uint256";
266
- }, {
267
- readonly name: "lzTokenFee";
268
- readonly type: "uint256";
269
- readonly internalType: "uint256";
270
- }];
271
- }];
272
- }, {
273
- readonly name: "oftReceipt";
274
- readonly type: "tuple";
275
- readonly internalType: "struct OFTReceipt";
276
- readonly components: readonly [{
277
- readonly name: "amountSentLD";
278
- readonly type: "uint256";
279
- readonly internalType: "uint256";
280
- }, {
281
- readonly name: "amountReceivedLD";
282
- readonly type: "uint256";
283
- readonly internalType: "uint256";
284
- }];
285
- }];
286
- readonly stateMutability: "payable";
287
- }, {
288
- readonly inputs: readonly [];
289
- readonly name: "approvalRequired";
290
- readonly outputs: readonly [{
291
- readonly internalType: "bool";
292
- readonly name: "";
293
- readonly type: "bool";
294
- }];
295
- readonly stateMutability: "pure";
296
- readonly type: "function";
297
- }];
298
- export declare const quoterV2Abi: readonly [{
299
- readonly type: "function";
300
- readonly name: "quoteExactOutputSingle";
301
- readonly inputs: readonly [{
302
- readonly name: "params";
303
- readonly type: "tuple";
304
- readonly internalType: "struct IQuoterV2.QuoteExactOutputSingleParams";
305
- readonly components: readonly [{
306
- readonly name: "tokenIn";
307
- readonly type: "address";
308
- readonly internalType: "address";
309
- }, {
310
- readonly name: "tokenOut";
311
- readonly type: "address";
312
- readonly internalType: "address";
313
- }, {
314
- readonly name: "amountOut";
315
- readonly type: "uint256";
316
- readonly internalType: "uint256";
317
- }, {
318
- readonly name: "fee";
319
- readonly type: "uint24";
320
- readonly internalType: "uint24";
321
- }, {
322
- readonly name: "sqrtPriceLimitX96";
323
- readonly type: "uint160";
324
- readonly internalType: "uint160";
325
- }];
326
- }];
327
- readonly outputs: readonly [{
328
- readonly name: "amountIn";
329
- readonly type: "uint256";
330
- readonly internalType: "uint256";
331
- }, {
332
- readonly name: "sqrtPriceX96After";
333
- readonly type: "uint160";
334
- readonly internalType: "uint160";
335
- }, {
336
- readonly name: "initializedTicksCrossed";
337
- readonly type: "uint32";
338
- readonly internalType: "uint32";
339
- }, {
340
- readonly name: "gasEstimate";
341
- readonly type: "uint256";
342
- readonly internalType: "uint256";
343
- }];
344
- readonly stateMutability: "nonpayable";
345
- }];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.quoterV2Abi = exports.layerZeroOftAbi = exports.claimDelayAbi = exports.aaveV2AtokenAbi = exports.compoundV2CTokenAbi = exports.offrampCallerV2 = exports.strategyCaller = void 0;
3
+ exports.aaveV2AtokenAbi = exports.compoundV2CTokenAbi = exports.offrampCallerV2Abi = exports.strategyCaller = void 0;
4
4
  const viem_1 = require("viem");
5
5
  exports.strategyCaller = [
6
6
  {
@@ -39,7 +39,7 @@ exports.strategyCaller = [
39
39
  stateMutability: 'nonpayable',
40
40
  },
41
41
  ];
42
- exports.offrampCallerV2 = [
42
+ exports.offrampCallerV2Abi = [
43
43
  {
44
44
  type: 'function',
45
45
  name: 'createOrderV2',
@@ -137,148 +137,4 @@ exports.compoundV2CTokenAbi = (0, viem_1.parseAbi)([
137
137
  'function underlying() external view returns (address)',
138
138
  ]);
139
139
  exports.aaveV2AtokenAbi = (0, viem_1.parseAbi)(['function UNDERLYING_ASSET_ADDRESS() external view returns (address)']);
140
- exports.claimDelayAbi = (0, viem_1.parseAbi)(['function CLAIM_DELAY() view returns (uint64)']);
141
- exports.layerZeroOftAbi = [
142
- {
143
- type: 'function',
144
- name: 'quoteSend',
145
- inputs: [
146
- {
147
- name: 'sendParam',
148
- type: 'tuple',
149
- internalType: 'struct SendParam',
150
- components: [
151
- { name: 'dstEid', type: 'uint32', internalType: 'uint32' },
152
- { name: 'to', type: 'bytes32', internalType: 'bytes32' },
153
- { name: 'amountLD', type: 'uint256', internalType: 'uint256' },
154
- { name: 'minAmountLD', type: 'uint256', internalType: 'uint256' },
155
- { name: 'extraOptions', type: 'bytes', internalType: 'bytes' },
156
- { name: 'composeMsg', type: 'bytes', internalType: 'bytes' },
157
- { name: 'oftCmd', type: 'bytes', internalType: 'bytes' },
158
- ],
159
- },
160
- {
161
- name: 'isNative',
162
- type: 'bool',
163
- internalType: 'bool',
164
- },
165
- ],
166
- outputs: [
167
- {
168
- name: '',
169
- type: 'tuple',
170
- internalType: 'struct MessagingFee',
171
- components: [
172
- { name: 'nativeFee', type: 'uint256', internalType: 'uint256' },
173
- { name: 'lzTokenFee', type: 'uint256', internalType: 'uint256' },
174
- ],
175
- },
176
- ],
177
- stateMutability: 'view',
178
- },
179
- {
180
- type: 'function',
181
- name: 'send',
182
- inputs: [
183
- {
184
- name: 'sendParam',
185
- type: 'tuple',
186
- internalType: 'struct SendParam',
187
- components: [
188
- { name: 'dstEid', type: 'uint32', internalType: 'uint32' },
189
- { name: 'to', type: 'bytes32', internalType: 'bytes32' },
190
- { name: 'amountLD', type: 'uint256', internalType: 'uint256' },
191
- { name: 'minAmountLD', type: 'uint256', internalType: 'uint256' },
192
- { name: 'extraOptions', type: 'bytes', internalType: 'bytes' },
193
- { name: 'composeMsg', type: 'bytes', internalType: 'bytes' },
194
- { name: 'oftCmd', type: 'bytes', internalType: 'bytes' },
195
- ],
196
- },
197
- {
198
- name: 'fee',
199
- type: 'tuple',
200
- internalType: 'struct MessagingFee',
201
- components: [
202
- { name: 'nativeFee', type: 'uint256', internalType: 'uint256' },
203
- { name: 'lzTokenFee', type: 'uint256', internalType: 'uint256' },
204
- ],
205
- },
206
- {
207
- name: 'refundAddress',
208
- type: 'address',
209
- internalType: 'address',
210
- },
211
- ],
212
- outputs: [
213
- {
214
- name: 'receipt',
215
- type: 'tuple',
216
- internalType: 'struct MessagingReceipt',
217
- components: [
218
- { name: 'guid', type: 'bytes32', internalType: 'bytes32' },
219
- { name: 'nonce', type: 'uint64', internalType: 'uint64' },
220
- {
221
- name: 'fee',
222
- type: 'tuple',
223
- internalType: 'struct MessagingFee',
224
- components: [
225
- { name: 'nativeFee', type: 'uint256', internalType: 'uint256' },
226
- { name: 'lzTokenFee', type: 'uint256', internalType: 'uint256' },
227
- ],
228
- },
229
- ],
230
- },
231
- {
232
- name: 'oftReceipt',
233
- type: 'tuple',
234
- internalType: 'struct OFTReceipt',
235
- components: [
236
- { name: 'amountSentLD', type: 'uint256', internalType: 'uint256' },
237
- { name: 'amountReceivedLD', type: 'uint256', internalType: 'uint256' },
238
- ],
239
- },
240
- ],
241
- stateMutability: 'payable',
242
- },
243
- {
244
- inputs: [],
245
- name: 'approvalRequired',
246
- outputs: [
247
- {
248
- internalType: 'bool',
249
- name: '',
250
- type: 'bool',
251
- },
252
- ],
253
- stateMutability: 'pure',
254
- type: 'function',
255
- },
256
- ];
257
- exports.quoterV2Abi = [
258
- {
259
- type: 'function',
260
- name: 'quoteExactOutputSingle',
261
- inputs: [
262
- {
263
- name: 'params',
264
- type: 'tuple',
265
- internalType: 'struct IQuoterV2.QuoteExactOutputSingleParams',
266
- components: [
267
- { name: 'tokenIn', type: 'address', internalType: 'address' },
268
- { name: 'tokenOut', type: 'address', internalType: 'address' },
269
- { name: 'amountOut', type: 'uint256', internalType: 'uint256' },
270
- { name: 'fee', type: 'uint24', internalType: 'uint24' },
271
- { name: 'sqrtPriceLimitX96', type: 'uint160', internalType: 'uint160' },
272
- ],
273
- },
274
- ],
275
- outputs: [
276
- { name: 'amountIn', type: 'uint256', internalType: 'uint256' },
277
- { name: 'sqrtPriceX96After', type: 'uint160', internalType: 'uint160' },
278
- { name: 'initializedTicksCrossed', type: 'uint32', internalType: 'uint32' },
279
- { name: 'gasEstimate', type: 'uint256', internalType: 'uint256' },
280
- ],
281
- stateMutability: 'nonpayable',
282
- },
283
- ];
284
140
  //# sourceMappingURL=abi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"abi.js","sourceRoot":"","sources":["../../src/gateway/abi.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEnB,QAAA,cAAc,GAAG;IAC1B;QACI,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,sCAAsC;QAC5C,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,iBAAiB;aAClC;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;aAC1B;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;aAC1B;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;gBACb,YAAY,EAAE,6BAA6B;gBAC3C,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,SAAS;wBACf,YAAY,EAAE,SAAS;qBAC1B;iBACJ;aACJ;SACJ;QACD,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;KAChC;CACK,CAAC;AAEE,QAAA,eAAe,GAAG;IAC3B;QACI,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,OAAO;gBACb,YAAY,EAAE,yBAAyB;gBACvC,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,iBAAiB;wBACvB,IAAI,EAAE,SAAS;wBACf,YAAY,EA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Q,EAAC,CAAC,qEAAqE,CAAC,CAAC,CAAC"}
@@ -1,9 +1,10 @@
1
- import { Account, Address, Hash, PublicClient, Transport, Chain as ViemChain, WalletClient } from 'viem';
1
+ import { Account, Address, PublicClient, Transport, Chain as ViemChain, WalletClient } from 'viem';
2
2
  import { BaseClient } from './base-client';
3
- import { BitcoinSigner, BumpFeeParams, EnrichedToken, ExecuteQuoteParams, GatewayOrder, GatewayStartOrder, GatewayStrategyContract, GatewayTokensInfo, GetQuoteParams, OfframpCreateOrderParams, OfframpLiquidity, OfframpOrder, OfframpOrderStatus, OfframpQuote, OfframpRawOrder, OnrampLiquidity, OnrampOrder, OnrampQuote, StrategyParams, Token, UnlockOrderParams } from './types';
4
- export declare const MAINNET_GATEWAY_BASE_URL = "https://gateway-api-mainnet.gobob.xyz";
3
+ import { BitcoinSigner, EnrichedToken, GetQuoteParams, StrategyParams } from './types';
4
+ import { DefaultApi, GatewayOrderInfo, GatewayQuote } from './generated-client';
5
+ export declare const WBTC_OFT_ADDRESS = "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
6
+ export declare const MAINNET_GATEWAY_BASE_URL = "https://gateway-api-staging.gobob.xyz";
5
7
  export declare const SIGNET_GATEWAY_BASE_URL = "https://gateway-api-signet.gobob.xyz";
6
- export declare const ORDER_DEADLINE_IN_SECONDS: number;
7
8
  interface EvmWalletClientParams {
8
9
  walletClient: WalletClient<Transport, ViemChain, Account>;
9
10
  publicClient: PublicClient<Transport>;
@@ -14,39 +15,20 @@ export interface AllWalletClientParams extends EvmWalletClientParams {
14
15
  export declare class GatewayApiClient extends BaseClient {
15
16
  private chain;
16
17
  private strategy;
17
- private isSignet;
18
+ api: DefaultApi;
18
19
  constructor(chainId: number, options?: {
19
20
  rpcUrl?: string;
20
21
  });
21
- private get baseUrl();
22
22
  private get chainId();
23
- mapRawOrderToOfframpOrder(order: OfframpRawOrder): Promise<OfframpOrder>;
24
- getQuote(params: GetQuoteParams): Promise<ExecuteQuoteParams>;
25
- getOfframpCreateOrderGasCost(params: GetQuoteParams, offrampQuote: OfframpQuote): Promise<bigint>;
26
- getOnrampQuote(params: GetQuoteParams): Promise<OnrampQuote & GatewayTokensInfo>;
27
- getOfframpQuote(params: GetQuoteParams): Promise<OfframpQuote>;
28
- fetchOfframpRegistryAddress(): Promise<Address>;
29
- fetchOfframpLiquidity(token: string, userAddress?: Address): Promise<OfframpLiquidity>;
30
- fetchOnrampLiquidity(token: string, userAddress?: Address, gasRefill?: bigint): Promise<OnrampLiquidity>;
31
- fetchOfframpQuote(token: Address, amountInToken: bigint, userAddress: Address, toUserAddress?: string, affiliateFeeRecipient?: Address, affiliateFeeSats?: bigint): Promise<OfframpQuote>;
32
- createOfframpOrder(quote: OfframpQuote, params: GetQuoteParams): Promise<OfframpCreateOrderParams>;
33
- bumpFeeForOfframpOrder({ orderId, offrampRegistryAddress, walletClient, publicClient, }: BumpFeeParams & EvmWalletClientParams): Promise<Hash>;
34
- unlockOfframpOrder({ orderId, receiver, offrampRegistryAddress, walletClient, publicClient, }: UnlockOrderParams & EvmWalletClientParams): Promise<Hash>;
35
- getOfframpOrders(userAddress: Address): Promise<OfframpOrder[]>;
36
- canOrderBeUnlocked(status: OfframpOrderStatus, orderTimestamp: number, offrampRegistryAddress: Address): Promise<boolean>;
37
- private fetchOfframpOrder;
38
- startOnrampOrder(gatewayQuote: OnrampQuote, params: GetQuoteParams): Promise<GatewayStartOrder>;
23
+ getQuote(params: GetQuoteParams): Promise<GatewayQuote>;
39
24
  executeQuote({ quote, walletClient, publicClient, btcSigner, }: {
40
- quote: ExecuteQuoteParams;
25
+ quote: GatewayQuote;
41
26
  } & AllWalletClientParams): Promise<string>;
42
27
  executeStrategy({ walletClient, publicClient, ...params }: StrategyParams & EvmWalletClientParams): Promise<`0x${string}`>;
43
- finalizeOnrampOrder(uuid: string, bitcoinTxOrId: string): Promise<string>;
44
- getOnrampOrders(userAddress: Address): Promise<OnrampOrder[]>;
45
- getStrategies(): Promise<GatewayStrategyContract[]>;
46
- getTokenAddresses(includeStrategies?: boolean): Promise<Address[]>;
47
- getTokens(includeStrategies?: boolean): Promise<Token[]>;
28
+ getTokens(): Promise<Address[]>;
48
29
  private getPrices;
49
- getEnrichedTokens(includeStrategies?: boolean): Promise<EnrichedToken[]>;
50
- getOrders(userAddress: Address): Promise<Array<GatewayOrder>>;
30
+ getEnrichedTokens(): Promise<EnrichedToken[]>;
31
+ getOrders(userAddress: Address): Promise<Array<GatewayOrderInfo>>;
32
+ getChains(): Promise<Array<string>>;
51
33
  }
52
34
  export {};