@debridge-finance/intents-client 1.2.2 → 1.2.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.
package/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ import { Buffer as Buffer$1 } from 'buffer';
9
9
  * IDL can be found at `target/idl/intents_program.json`.
10
10
  */
11
11
  type IntentsProgram = {
12
- address: "intueneJjzHttKp83gWH3GX1h1Uwuixuusj4T8vGDzk";
12
+ address: "int1BXvjNz92Fu9dsRitghGc9Gu7ktQYSJTCcpbiVN1";
13
13
  metadata: {
14
14
  name: "intentsProgram";
15
15
  version: "0.0.0";
@@ -50,44 +50,22 @@ type IntentsProgram = {
50
50
  ];
51
51
  },
52
52
  {
53
- name: "authorizedTransfer";
54
- discriminator: [136, 178, 202, 213, 255, 92, 81, 119];
53
+ name: "cancelIntent";
54
+ discriminator: [67, 73, 238, 244, 208, 89, 225, 59];
55
55
  accounts: [
56
56
  {
57
- name: "protocolAuthority";
57
+ name: "initiator";
58
58
  signer: true;
59
- relations: ["state"];
60
59
  },
61
60
  {
62
- name: "state";
63
- pda: {
64
- seeds: [
65
- {
66
- kind: "const";
67
- value: [115, 116, 97, 116, 101];
68
- }
69
- ];
70
- };
71
- },
72
- {
73
- name: "from";
74
- },
75
- {
76
- name: "to";
77
- },
78
- {
79
- name: "mint";
61
+ name: "intentStorage";
62
+ writable: true;
80
63
  },
81
64
  {
82
- name: "tokenProgram";
83
- }
84
- ];
85
- args: [
86
- {
87
- name: "amount";
88
- type: "u64";
65
+ name: "state";
89
66
  }
90
67
  ];
68
+ args: [];
91
69
  },
92
70
  {
93
71
  name: "closeAccount";
@@ -96,7 +74,7 @@ type IntentsProgram = {
96
74
  {
97
75
  name: "programAuthority";
98
76
  signer: true;
99
- address: "intueneJjzHttKp83gWH3GX1h1Uwuixuusj4T8vGDzk";
77
+ address: "int1BXvjNz92Fu9dsRitghGc9Gu7ktQYSJTCcpbiVN1";
100
78
  },
101
79
  {
102
80
  name: "target";
@@ -114,9 +92,24 @@ type IntentsProgram = {
114
92
  discriminator: [112, 245, 154, 249, 57, 126, 54, 122];
115
93
  accounts: [
116
94
  {
117
- name: "initiator";
95
+ name: "maker";
96
+ docs: ["CHECK"];
97
+ },
98
+ {
99
+ name: "makerInfo";
118
100
  writable: true;
119
- signer: true;
101
+ pda: {
102
+ seeds: [
103
+ {
104
+ kind: "const";
105
+ value: [109, 97, 107, 101, 114, 95, 105, 110, 102, 111];
106
+ },
107
+ {
108
+ kind: "account";
109
+ path: "maker";
110
+ }
111
+ ];
112
+ };
120
113
  },
121
114
  {
122
115
  name: "rentPayer";
@@ -231,6 +224,149 @@ type IntentsProgram = {
231
224
  }
232
225
  ];
233
226
  },
227
+ {
228
+ name: "drainClosedIntentTokenAccount";
229
+ discriminator: [87, 82, 87, 135, 95, 99, 78, 116];
230
+ accounts: [
231
+ {
232
+ name: "state";
233
+ },
234
+ {
235
+ name: "maker";
236
+ docs: ["CHECK"];
237
+ relations: ["intentStorage"];
238
+ },
239
+ {
240
+ name: "intentStorage";
241
+ writable: true;
242
+ },
243
+ {
244
+ name: "intentTokenAccount";
245
+ writable: true;
246
+ pda: {
247
+ seeds: [
248
+ {
249
+ kind: "account";
250
+ path: "intentStorage";
251
+ },
252
+ {
253
+ kind: "account";
254
+ path: "tokenProgram";
255
+ },
256
+ {
257
+ kind: "account";
258
+ path: "tokenMint";
259
+ }
260
+ ];
261
+ program: {
262
+ kind: "const";
263
+ value: [
264
+ 140,
265
+ 151,
266
+ 37,
267
+ 143,
268
+ 78,
269
+ 36,
270
+ 137,
271
+ 241,
272
+ 187,
273
+ 61,
274
+ 16,
275
+ 41,
276
+ 20,
277
+ 142,
278
+ 13,
279
+ 131,
280
+ 11,
281
+ 90,
282
+ 19,
283
+ 153,
284
+ 218,
285
+ 255,
286
+ 16,
287
+ 132,
288
+ 4,
289
+ 142,
290
+ 123,
291
+ 216,
292
+ 219,
293
+ 233,
294
+ 248,
295
+ 89
296
+ ];
297
+ };
298
+ };
299
+ },
300
+ {
301
+ name: "makerTokenAccount";
302
+ writable: true;
303
+ pda: {
304
+ seeds: [
305
+ {
306
+ kind: "account";
307
+ path: "intentStorage";
308
+ },
309
+ {
310
+ kind: "account";
311
+ path: "tokenProgram";
312
+ },
313
+ {
314
+ kind: "account";
315
+ path: "tokenMint";
316
+ }
317
+ ];
318
+ program: {
319
+ kind: "const";
320
+ value: [
321
+ 140,
322
+ 151,
323
+ 37,
324
+ 143,
325
+ 78,
326
+ 36,
327
+ 137,
328
+ 241,
329
+ 187,
330
+ 61,
331
+ 16,
332
+ 41,
333
+ 20,
334
+ 142,
335
+ 13,
336
+ 131,
337
+ 11,
338
+ 90,
339
+ 19,
340
+ 153,
341
+ 218,
342
+ 255,
343
+ 16,
344
+ 132,
345
+ 4,
346
+ 142,
347
+ 123,
348
+ 216,
349
+ 219,
350
+ 233,
351
+ 248,
352
+ 89
353
+ ];
354
+ };
355
+ };
356
+ },
357
+ {
358
+ name: "tokenMint";
359
+ },
360
+ {
361
+ name: "tokenProgram";
362
+ },
363
+ {
364
+ name: "associatedTokenProgram";
365
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
366
+ }
367
+ ];
368
+ args: [];
369
+ },
234
370
  {
235
371
  name: "executeIntent";
236
372
  discriminator: [53, 130, 47, 154, 227, 220, 122, 212];
@@ -253,6 +389,7 @@ type IntentsProgram = {
253
389
  },
254
390
  {
255
391
  name: "maker";
392
+ relations: ["intentStorage"];
256
393
  },
257
394
  {
258
395
  name: "makerInfo";
@@ -412,6 +549,10 @@ type IntentsProgram = {
412
549
  name: "dlnOrderNonce";
413
550
  type: "u64";
414
551
  },
552
+ {
553
+ name: "dlnMetadata";
554
+ type: "bytes";
555
+ },
415
556
  {
416
557
  name: "tradeId";
417
558
  type: {
@@ -442,6 +583,7 @@ type IntentsProgram = {
442
583
  },
443
584
  {
444
585
  name: "maker";
586
+ relations: ["intentStorage"];
445
587
  },
446
588
  {
447
589
  name: "makerInfo";
@@ -745,6 +887,74 @@ type IntentsProgram = {
745
887
  }
746
888
  ];
747
889
  },
890
+ {
891
+ name: "initIntentByDelegate";
892
+ discriminator: [85, 140, 35, 112, 240, 67, 16, 40];
893
+ accounts: [
894
+ {
895
+ name: "delegate";
896
+ signer: true;
897
+ },
898
+ {
899
+ name: "maker";
900
+ docs: ["CHECK"];
901
+ },
902
+ {
903
+ name: "makerInfo";
904
+ writable: true;
905
+ pda: {
906
+ seeds: [
907
+ {
908
+ kind: "const";
909
+ value: [109, 97, 107, 101, 114, 95, 105, 110, 102, 111];
910
+ },
911
+ {
912
+ kind: "account";
913
+ path: "maker";
914
+ }
915
+ ];
916
+ };
917
+ },
918
+ {
919
+ name: "rentPayer";
920
+ writable: true;
921
+ signer: true;
922
+ },
923
+ {
924
+ name: "state";
925
+ pda: {
926
+ seeds: [
927
+ {
928
+ kind: "const";
929
+ value: [115, 116, 97, 116, 101];
930
+ }
931
+ ];
932
+ };
933
+ },
934
+ {
935
+ name: "intentStorage";
936
+ writable: true;
937
+ },
938
+ {
939
+ name: "systemProgram";
940
+ address: "11111111111111111111111111111111";
941
+ }
942
+ ];
943
+ args: [
944
+ {
945
+ name: "intentId";
946
+ type: {
947
+ defined: {
948
+ name: "intentId";
949
+ };
950
+ };
951
+ },
952
+ {
953
+ name: "space";
954
+ type: "u32";
955
+ }
956
+ ];
957
+ },
748
958
  {
749
959
  name: "initIntentUsingSig";
750
960
  discriminator: [163, 186, 238, 179, 190, 181, 19, 185];
@@ -791,6 +1001,12 @@ type IntentsProgram = {
791
1001
  name: "maker";
792
1002
  type: "pubkey";
793
1003
  },
1004
+ {
1005
+ name: "delegate";
1006
+ type: {
1007
+ option: "pubkey";
1008
+ };
1009
+ },
794
1010
  {
795
1011
  name: "signature";
796
1012
  type: {
@@ -810,7 +1026,7 @@ type IntentsProgram = {
810
1026
  {
811
1027
  name: "programAuthority";
812
1028
  signer: true;
813
- address: "intueneJjzHttKp83gWH3GX1h1Uwuixuusj4T8vGDzk";
1029
+ address: "int1BXvjNz92Fu9dsRitghGc9Gu7ktQYSJTCcpbiVN1";
814
1030
  },
815
1031
  {
816
1032
  name: "rentPayer";
@@ -980,38 +1196,6 @@ type IntentsProgram = {
980
1196
  {
981
1197
  name: "systemProgram";
982
1198
  address: "11111111111111111111111111111111";
983
- },
984
- {
985
- name: "eventAuthority";
986
- pda: {
987
- seeds: [
988
- {
989
- kind: "const";
990
- value: [
991
- 95,
992
- 95,
993
- 101,
994
- 118,
995
- 101,
996
- 110,
997
- 116,
998
- 95,
999
- 97,
1000
- 117,
1001
- 116,
1002
- 104,
1003
- 111,
1004
- 114,
1005
- 105,
1006
- 116,
1007
- 121
1008
- ];
1009
- }
1010
- ];
1011
- };
1012
- },
1013
- {
1014
- name: "program";
1015
1199
  }
1016
1200
  ];
1017
1201
  args: [
@@ -1024,7 +1208,7 @@ type IntentsProgram = {
1024
1208
  type: "u64";
1025
1209
  },
1026
1210
  {
1027
- name: "args";
1211
+ name: "approvedTokenBudgets";
1028
1212
  type: {
1029
1213
  defined: {
1030
1214
  name: "setApprovedTokenBudgets";
@@ -1190,6 +1374,7 @@ type IntentsProgram = {
1190
1374
  },
1191
1375
  {
1192
1376
  name: "maker";
1377
+ relations: ["intentStorage"];
1193
1378
  },
1194
1379
  {
1195
1380
  name: "makerInfo";
@@ -1220,15 +1405,11 @@ type IntentsProgram = {
1220
1405
  {
1221
1406
  name: "makerInputToken";
1222
1407
  writable: true;
1223
- },
1224
- {
1225
- name: "takerInputToken";
1226
- writable: true;
1227
1408
  pda: {
1228
1409
  seeds: [
1229
1410
  {
1230
1411
  kind: "account";
1231
- path: "taker";
1412
+ path: "maker";
1232
1413
  },
1233
1414
  {
1234
1415
  kind: "account";
@@ -1279,7 +1460,7 @@ type IntentsProgram = {
1279
1460
  };
1280
1461
  },
1281
1462
  {
1282
- name: "takerOutputToken";
1463
+ name: "takerInputToken";
1283
1464
  writable: true;
1284
1465
  pda: {
1285
1466
  seeds: [
@@ -1289,11 +1470,11 @@ type IntentsProgram = {
1289
1470
  },
1290
1471
  {
1291
1472
  kind: "account";
1292
- path: "outputTokenProgram";
1473
+ path: "inputTokenProgram";
1293
1474
  },
1294
1475
  {
1295
1476
  kind: "account";
1296
- path: "outputMint";
1477
+ path: "inputMint";
1297
1478
  }
1298
1479
  ];
1299
1480
  program: {
@@ -1336,13 +1517,13 @@ type IntentsProgram = {
1336
1517
  };
1337
1518
  },
1338
1519
  {
1339
- name: "intentOutputToken";
1520
+ name: "takerOutputToken";
1340
1521
  writable: true;
1341
1522
  pda: {
1342
1523
  seeds: [
1343
1524
  {
1344
1525
  kind: "account";
1345
- path: "intentStorage";
1526
+ path: "taker";
1346
1527
  },
1347
1528
  {
1348
1529
  kind: "account";
@@ -1392,6 +1573,10 @@ type IntentsProgram = {
1392
1573
  };
1393
1574
  };
1394
1575
  },
1576
+ {
1577
+ name: "intentOutputToken";
1578
+ writable: true;
1579
+ },
1395
1580
  {
1396
1581
  name: "instructions";
1397
1582
  address: "Sysvar1nstructions1111111111111111111111111";
@@ -1449,7 +1634,7 @@ type IntentsProgram = {
1449
1634
  type: "u64";
1450
1635
  },
1451
1636
  {
1452
- name: "expectedCreditedAccount";
1637
+ name: "target";
1453
1638
  type: {
1454
1639
  defined: {
1455
1640
  name: "targetTokenAccount";
@@ -1488,6 +1673,9 @@ type IntentsProgram = {
1488
1673
  name: "intentStorage";
1489
1674
  writable: true;
1490
1675
  },
1676
+ {
1677
+ name: "inputMint";
1678
+ },
1491
1679
  {
1492
1680
  name: "outputMint";
1493
1681
  },
@@ -1737,48 +1925,42 @@ type IntentsProgram = {
1737
1925
  {
1738
1926
  code: 6000;
1739
1927
  name: "protocolIsOnPause";
1740
- msg: "Protocol is on pause";
1741
1928
  },
1742
1929
  {
1743
1930
  code: 6001;
1744
1931
  name: "timeParadox";
1745
- msg: "Time Paradox";
1746
1932
  },
1747
1933
  {
1748
1934
  code: 6002;
1749
1935
  name: "unknownCaller";
1750
- msg: "Unknown caller";
1751
1936
  },
1752
1937
  {
1753
1938
  code: 6003;
1754
- name: "sigVerifyErr";
1755
- msg: "Ed25519 signature is invalid or does not match provided intent hash and public key";
1939
+ name: "unknownCancelAuthority";
1756
1940
  },
1757
1941
  {
1758
1942
  code: 6004;
1759
- name: "intentStorageIsInitialized";
1760
- msg: "Intent storage is already initialized";
1943
+ name: "sigVerifyErr";
1761
1944
  },
1762
1945
  {
1763
1946
  code: 6005;
1764
- name: "intentStorageIsSealed";
1765
- msg: "Intent encoded data already matches expected hash";
1947
+ name: "intentStorageIsInitialized";
1766
1948
  },
1767
1949
  {
1768
1950
  code: 6006;
1769
- name: "intentHashMismatch";
1951
+ name: "intentStorageIsSealed";
1770
1952
  },
1771
1953
  {
1772
1954
  code: 6007;
1773
- name: "intentOwnerMismatchActualMaker";
1955
+ name: "intentHashMismatch";
1774
1956
  },
1775
1957
  {
1776
1958
  code: 6008;
1777
- name: "intentIsInvalidatedByUser";
1959
+ name: "intentOwnerMismatchActualMaker";
1778
1960
  },
1779
1961
  {
1780
1962
  code: 6009;
1781
- name: "intentIsInvalidatedByProtocolAuthority";
1963
+ name: "intentIsCancelled";
1782
1964
  },
1783
1965
  {
1784
1966
  code: 6010;
@@ -1786,55 +1968,122 @@ type IntentsProgram = {
1786
1968
  },
1787
1969
  {
1788
1970
  code: 6011;
1789
- name: "intentIsNotReadyYet";
1790
- msg: "Intent is not ready for execution yet";
1971
+ name: "intentIsInvalidatedByUser";
1791
1972
  },
1792
1973
  {
1793
1974
  code: 6012;
1794
- name: "unknownInputToken";
1975
+ name: "intentIsInvalidatedByProtocolAuthority";
1795
1976
  },
1796
1977
  {
1797
1978
  code: 6013;
1798
- name: "insufficientInputTokenAmount";
1979
+ name: "intentIsNotReadyYet";
1799
1980
  },
1800
1981
  {
1801
1982
  code: 6014;
1802
- name: "intentArbitraryDataOverflow";
1983
+ name: "unknownInputToken";
1803
1984
  },
1804
1985
  {
1805
1986
  code: 6015;
1806
- name: "takerIsNotAllowed";
1987
+ name: "inputTokenAmountOutOfMinMaxRange";
1807
1988
  },
1808
1989
  {
1809
1990
  code: 6016;
1810
- name: "takerMustBeFixedWhenAnyExtcallIsAllowed";
1991
+ name: "insufficientInputTokenAmount";
1811
1992
  },
1812
1993
  {
1813
1994
  code: 6017;
1814
- name: "ambiguousReceivers";
1995
+ name: "unknownRoute";
1815
1996
  },
1816
1997
  {
1817
1998
  code: 6018;
1818
- name: "interactionAccountNotFound";
1999
+ name: "priceViolation";
1819
2000
  },
1820
2001
  {
1821
2002
  code: 6019;
1822
- name: "interactionProgramNotFound";
2003
+ name: "invalidDlnSrcAllowedCancelBeneficiary";
1823
2004
  },
1824
2005
  {
1825
2006
  code: 6020;
1826
- name: "interactionFixedAccountNotFound";
2007
+ name: "invalidDlnDstReceiver";
1827
2008
  },
1828
2009
  {
1829
2010
  code: 6021;
1830
- name: "delegateNonceIsAdvanced";
2011
+ name: "invalidDlnDstOrderAuthority";
1831
2012
  },
1832
2013
  {
1833
2014
  code: 6022;
1834
- name: "crossProgramInvokeIsRestricted";
2015
+ name: "invalidDlnMetadata";
1835
2016
  },
1836
2017
  {
1837
2018
  code: 6023;
2019
+ name: "invalidDlnExtcallHash";
2020
+ },
2021
+ {
2022
+ code: 6024;
2023
+ name: "tokenAccountHasNoProtocolDelegate";
2024
+ },
2025
+ {
2026
+ code: 6025;
2027
+ name: "cantBeClosed";
2028
+ },
2029
+ {
2030
+ code: 6026;
2031
+ name: "intentArbitraryDataOverflow";
2032
+ },
2033
+ {
2034
+ code: 6027;
2035
+ name: "takerIsNotAllowed";
2036
+ },
2037
+ {
2038
+ code: 6028;
2039
+ name: "takerMustBeFixedWhenAnyExtcallIsAllowed";
2040
+ },
2041
+ {
2042
+ code: 6029;
2043
+ name: "ambiguousReceivers";
2044
+ },
2045
+ {
2046
+ code: 6030;
2047
+ name: "interactionAccountNotFound";
2048
+ },
2049
+ {
2050
+ code: 6031;
2051
+ name: "interactionProgramNotFound";
2052
+ },
2053
+ {
2054
+ code: 6032;
2055
+ name: "interactionFixedAccountNotFound";
2056
+ },
2057
+ {
2058
+ code: 6033;
2059
+ name: "unknownDelegate";
2060
+ },
2061
+ {
2062
+ code: 6034;
2063
+ name: "revokedDelegate";
2064
+ },
2065
+ {
2066
+ code: 6035;
2067
+ name: "delegateExceedsApprovedBudget";
2068
+ },
2069
+ {
2070
+ code: 6036;
2071
+ name: "delegateApproveIsExpired";
2072
+ },
2073
+ {
2074
+ code: 6037;
2075
+ name: "delegateHasNoApprove";
2076
+ },
2077
+ {
2078
+ code: 6038;
2079
+ name: "delegateNonceIsAdvanced";
2080
+ },
2081
+ {
2082
+ code: 6039;
2083
+ name: "crossProgramInvokeIsRestricted";
2084
+ },
2085
+ {
2086
+ code: 6040;
1838
2087
  name: "invalidDlnOrderTargetTokenOrPrice";
1839
2088
  }
1840
2089
  ];
@@ -2140,11 +2389,11 @@ type IntentsProgram = {
2140
2389
  },
2141
2390
  {
2142
2391
  name: "giveTokenAmount";
2143
- type: "pubkey";
2392
+ type: "u64";
2144
2393
  },
2145
2394
  {
2146
2395
  name: "giveTokenFeeAmount";
2147
- type: "pubkey";
2396
+ type: "u64";
2148
2397
  },
2149
2398
  {
2150
2399
  name: "takeToken";
@@ -2260,6 +2509,12 @@ type IntentsProgram = {
2260
2509
  name: "maker";
2261
2510
  type: "pubkey";
2262
2511
  },
2512
+ {
2513
+ name: "delegate";
2514
+ type: {
2515
+ option: "pubkey";
2516
+ };
2517
+ },
2263
2518
  {
2264
2519
  name: "rentPayer";
2265
2520
  type: "pubkey";
@@ -2418,7 +2673,7 @@ type IntentsProgram = {
2418
2673
  name: "uninitialized";
2419
2674
  },
2420
2675
  {
2421
- name: "inProgress";
2676
+ name: "ready";
2422
2677
  fields: [
2423
2678
  {
2424
2679
  name: "encodedIntent";
@@ -2435,7 +2690,7 @@ type IntentsProgram = {
2435
2690
  ];
2436
2691
  },
2437
2692
  {
2438
- name: "closed";
2693
+ name: "cancelled";
2439
2694
  fields: [
2440
2695
  {
2441
2696
  name: "encodedIntent";
@@ -2450,9 +2705,6 @@ type IntentsProgram = {
2450
2705
  };
2451
2706
  }
2452
2707
  ];
2453
- },
2454
- {
2455
- name: "terminated";
2456
2708
  }
2457
2709
  ];
2458
2710
  };
@@ -2651,6 +2903,7 @@ type UpdateIntentParams = UpdateIntentOffsetLength | UpdateIntentData;
2651
2903
  interface InitIntentParams {
2652
2904
  authority: PublicKey;
2653
2905
  payer?: PublicKey;
2906
+ delegate?: PublicKey;
2654
2907
  intent: {
2655
2908
  id: Buffer;
2656
2909
  data: Buffer;
@@ -2664,6 +2917,7 @@ interface InitIntentParams {
2664
2917
  interface CreateAndUpdateIntentParams {
2665
2918
  authority: PublicKey;
2666
2919
  payer?: PublicKey;
2920
+ delegate?: PublicKey;
2667
2921
  intent: {
2668
2922
  inputTokensLength: number;
2669
2923
  } & UpdateIntentParams;
@@ -2682,7 +2936,7 @@ interface UpdateRecordTxsParams {
2682
2936
  ALTs?: Array<AddressLookupTableAccount>;
2683
2937
  computeBudget?: ComputeBudget;
2684
2938
  }
2685
- type WriteIntentParams = Omit<InitIntentParams, "signature"> & {
2939
+ type WriteIntentParams = Omit<InitIntentParams, "signature" | "delegate"> & {
2686
2940
  record: PublicKey;
2687
2941
  };
2688
2942
  interface CloseRecordParams {
@@ -2747,6 +3001,7 @@ interface SwapEndParams {
2747
3001
  intentId: Buffer;
2748
3002
  endAmount: bigint;
2749
3003
  bps: number;
3004
+ inputMint: PublicKey;
2750
3005
  outputMint: PublicKey;
2751
3006
  outputTokenProgram?: PublicKey;
2752
3007
  }
@@ -2775,6 +3030,7 @@ interface ExecuteIntentParams {
2775
3030
  dstChainId: number;
2776
3031
  nonce: bigint;
2777
3032
  };
3033
+ dlnMetadata: Buffer;
2778
3034
  dlnSrc?: PublicKey;
2779
3035
  tokenProgram?: PublicKey;
2780
3036
  }
@@ -2816,29 +3072,29 @@ declare class IntentsClient {
2816
3072
  getIntentStorage(connection: Connection, intentId: Buffer$1): Promise<IntentStorage | null>;
2817
3073
  approveProtocolTransfersIxs({ owner, tokens, tokenProgram, }: ApproveProtocolTransfersParams): Promise<TransactionInstruction[]>;
2818
3074
  private closeIntentIxs;
2819
- executeIntentIxs({ tradeId, intentId, taker, maker, tokenMint, dlnOrder, dlnSrc, tokenProgram, }: ExecuteIntentParams): Promise<TransactionInstruction[]>;
3075
+ executeIntentIxs({ tradeId, intentId, taker, maker, tokenMint, dlnOrder, dlnMetadata, dlnSrc, tokenProgram, }: ExecuteIntentParams): Promise<TransactionInstruction[]>;
2820
3076
  executeSameChainIntentIxs({ tradeId, intentId, taker, maker, tokenMint, receiver, amount, tokenProgram, }: ExecuteIntentSameChainParams): Promise<TransactionInstruction[]>;
2821
3077
  initIntentIxs(maker: PublicKey, payer: PublicKey, id: Buffer$1, encodedIntentLength: number, inputTokensAmount: number): Promise<TransactionInstruction[]>;
2822
- initIntentUsingSigIxs(maker: PublicKey, payer: PublicKey, id: Buffer$1, encodedIntentLength: number, inputTokensAmount: number, signature: Buffer$1): Promise<TransactionInstruction[]>;
3078
+ initIntentUsingSigIxs(maker: PublicKey, payer: PublicKey, delegate: (PublicKey | null) | undefined, id: Buffer$1, encodedIntentLength: number, inputTokensAmount: number, signature: Buffer$1): Promise<TransactionInstruction[]>;
2823
3079
  setDelegateApprovedBudgetsIxs({ maker, payer, delegate, nonce, tokens, }: DelegateApprovedBudgetsParams): Promise<TransactionInstruction[]>;
2824
3080
  swapBeginIxs({ taker, maker, intentId, tradeId, beginAmount, // 0 for tests // transfer from random wallet to taker output amount, input / output = intent price
2825
3081
  target, inputMint, outputMint, inputTokenProgram, outputTokenProgram, }: SwapBeginParams): Promise<TransactionInstruction[]>;
2826
- swapEndIxs({ taker, intentId, endAmount, bps, outputMint, outputTokenProgram, }: SwapEndParams): Promise<TransactionInstruction[]>;
3082
+ swapEndIxs({ taker, intentId, endAmount, bps, inputMint, outputMint, outputTokenProgram, }: SwapEndParams): Promise<TransactionInstruction[]>;
2827
3083
  updateIntentIxs({ payer, record, id, offset, length, data, }: UpdateIntentParams): Promise<TransactionInstruction[]>;
2828
3084
  closeRecordIxs({ record, authority, receiver, }: CloseRecordParams): TransactionInstruction[];
2829
3085
  writeRecordIxs({ authority, record, buffer, offset, }: WriteRecordParams): TransactionInstruction[];
2830
3086
  reallocRecordIxs({ authority, payer, record, buffer, offset, }: UpdateRecordParams): Promise<TransactionInstruction[]>;
2831
- initIntentTxs({ authority, payer, intent, signature, blockhash, ALTs, computeBudget, }: InitIntentParams): Promise<{
3087
+ initIntentTxs({ authority, payer, delegate, intent, signature, blockhash, ALTs, computeBudget, }: InitIntentParams): Promise<{
2832
3088
  record: Keypair;
2833
3089
  txs: VersionedTransaction[];
2834
3090
  }>;
2835
3091
  writeIntentTxs({ authority, payer, record, intent, blockhash, ALTs, computeBudget, }: WriteIntentParams): Promise<VersionedTransaction[]>;
2836
- createIntentTxs({ authority, payer, intent, signature, blockhash, ALTs, computeBudget, }: InitIntentParams): Promise<{
3092
+ createIntentTxs({ authority, payer, delegate, intent, signature, blockhash, ALTs, computeBudget, }: InitIntentParams): Promise<{
2837
3093
  init: VersionedTransaction[];
2838
3094
  write: VersionedTransaction[];
2839
3095
  record: Keypair;
2840
3096
  }>;
2841
- createAndUpdateIntentTxs({ authority, payer, intent, signature, blockhash, ALTs, computeBudget, }: CreateAndUpdateIntentParams): Promise<VersionedTransaction[]>;
3097
+ createAndUpdateIntentTxs({ authority, payer, delegate, intent, signature, blockhash, ALTs, computeBudget, }: CreateAndUpdateIntentParams): Promise<VersionedTransaction[]>;
2842
3098
  updateRecordTxs({ authority, payer, record, serializedIntent, offset, blockhash, ALTs, computeBudget, }: UpdateRecordTxsParams): Promise<VersionedTransaction[]>;
2843
3099
  closeIntentTxs({ authority, payer, record, receiver, id, blockhash, ALTs, computeBudget, }: CloseIntentParams): Promise<VersionedTransaction[]>;
2844
3100
  swapTxs({ taker, maker, intentId, tradeId, inputMint, outputMint, beginAmount, endAmount, bps, target, inputTokenProgram, outputTokenProgram, instructions, computeBudget, payer, blockhash, ALTs, }: SwapParams): Promise<VersionedTransaction[]>;