@debridge-finance/intents-client 1.2.6 → 1.3.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1032 -443
- package/dist/index.d.ts +1032 -443
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -22,7 +22,7 @@ type IntentsProgram = {
|
|
|
22
22
|
discriminator: [17, 3, 184, 144, 112, 130, 116, 98];
|
|
23
23
|
accounts: [
|
|
24
24
|
{
|
|
25
|
-
name: "
|
|
25
|
+
name: "maker";
|
|
26
26
|
signer: true;
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -91,6 +91,10 @@ type IntentsProgram = {
|
|
|
91
91
|
name: "closeIntent";
|
|
92
92
|
discriminator: [112, 245, 154, 249, 57, 126, 54, 122];
|
|
93
93
|
accounts: [
|
|
94
|
+
{
|
|
95
|
+
name: "initiator";
|
|
96
|
+
signer: true;
|
|
97
|
+
},
|
|
94
98
|
{
|
|
95
99
|
name: "maker";
|
|
96
100
|
docs: ["CHECK"];
|
|
@@ -224,149 +228,6 @@ type IntentsProgram = {
|
|
|
224
228
|
}
|
|
225
229
|
];
|
|
226
230
|
},
|
|
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
|
-
},
|
|
370
231
|
{
|
|
371
232
|
name: "executeIntent";
|
|
372
233
|
discriminator: [53, 130, 47, 154, 227, 220, 122, 212];
|
|
@@ -378,14 +239,6 @@ type IntentsProgram = {
|
|
|
378
239
|
},
|
|
379
240
|
{
|
|
380
241
|
name: "state";
|
|
381
|
-
pda: {
|
|
382
|
-
seeds: [
|
|
383
|
-
{
|
|
384
|
-
kind: "const";
|
|
385
|
-
value: [115, 116, 97, 116, 101];
|
|
386
|
-
}
|
|
387
|
-
];
|
|
388
|
-
};
|
|
389
242
|
},
|
|
390
243
|
{
|
|
391
244
|
name: "maker";
|
|
@@ -470,6 +323,7 @@ type IntentsProgram = {
|
|
|
470
323
|
},
|
|
471
324
|
{
|
|
472
325
|
name: "dlnSrc";
|
|
326
|
+
address: "srch38nzfcgwJnfKE6xWD8vfNJtudazwisdcociAuQt";
|
|
473
327
|
},
|
|
474
328
|
{
|
|
475
329
|
name: "dlnSrcState";
|
|
@@ -857,36 +711,60 @@ type IntentsProgram = {
|
|
|
857
711
|
},
|
|
858
712
|
{
|
|
859
713
|
name: "state";
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
name: "intentStorage";
|
|
717
|
+
writable: true;
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
name: "systemProgram";
|
|
721
|
+
address: "11111111111111111111111111111111";
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
name: "eventAuthority";
|
|
860
725
|
pda: {
|
|
861
726
|
seeds: [
|
|
862
727
|
{
|
|
863
728
|
kind: "const";
|
|
864
|
-
value: [
|
|
729
|
+
value: [
|
|
730
|
+
95,
|
|
731
|
+
95,
|
|
732
|
+
101,
|
|
733
|
+
118,
|
|
734
|
+
101,
|
|
735
|
+
110,
|
|
736
|
+
116,
|
|
737
|
+
95,
|
|
738
|
+
97,
|
|
739
|
+
117,
|
|
740
|
+
116,
|
|
741
|
+
104,
|
|
742
|
+
111,
|
|
743
|
+
114,
|
|
744
|
+
105,
|
|
745
|
+
116,
|
|
746
|
+
121
|
|
747
|
+
];
|
|
865
748
|
}
|
|
866
749
|
];
|
|
867
750
|
};
|
|
868
751
|
},
|
|
869
752
|
{
|
|
870
|
-
name: "
|
|
871
|
-
writable: true;
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
name: "systemProgram";
|
|
875
|
-
address: "11111111111111111111111111111111";
|
|
753
|
+
name: "program";
|
|
876
754
|
}
|
|
877
755
|
];
|
|
878
756
|
args: [
|
|
879
757
|
{
|
|
880
|
-
name: "
|
|
758
|
+
name: "space";
|
|
759
|
+
type: "u32";
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
name: "encodedIntentHash";
|
|
881
763
|
type: {
|
|
882
764
|
defined: {
|
|
883
|
-
name: "
|
|
765
|
+
name: "encodedIntentHash";
|
|
884
766
|
};
|
|
885
767
|
};
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
name: "space";
|
|
889
|
-
type: "u32";
|
|
890
768
|
}
|
|
891
769
|
];
|
|
892
770
|
},
|
|
@@ -925,59 +803,98 @@ type IntentsProgram = {
|
|
|
925
803
|
},
|
|
926
804
|
{
|
|
927
805
|
name: "state";
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
name: "intentStorage";
|
|
809
|
+
writable: true;
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
name: "systemProgram";
|
|
813
|
+
address: "11111111111111111111111111111111";
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
name: "eventAuthority";
|
|
928
817
|
pda: {
|
|
929
818
|
seeds: [
|
|
930
819
|
{
|
|
931
820
|
kind: "const";
|
|
932
|
-
value: [
|
|
821
|
+
value: [
|
|
822
|
+
95,
|
|
823
|
+
95,
|
|
824
|
+
101,
|
|
825
|
+
118,
|
|
826
|
+
101,
|
|
827
|
+
110,
|
|
828
|
+
116,
|
|
829
|
+
95,
|
|
830
|
+
97,
|
|
831
|
+
117,
|
|
832
|
+
116,
|
|
833
|
+
104,
|
|
834
|
+
111,
|
|
835
|
+
114,
|
|
836
|
+
105,
|
|
837
|
+
116,
|
|
838
|
+
121
|
|
839
|
+
];
|
|
933
840
|
}
|
|
934
841
|
];
|
|
935
842
|
};
|
|
936
843
|
},
|
|
937
844
|
{
|
|
938
|
-
name: "
|
|
939
|
-
writable: true;
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
name: "systemProgram";
|
|
943
|
-
address: "11111111111111111111111111111111";
|
|
845
|
+
name: "program";
|
|
944
846
|
}
|
|
945
847
|
];
|
|
946
848
|
args: [
|
|
947
849
|
{
|
|
948
|
-
name: "
|
|
850
|
+
name: "space";
|
|
851
|
+
type: "u32";
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
name: "encodedIntentHash";
|
|
949
855
|
type: {
|
|
950
856
|
defined: {
|
|
951
|
-
name: "
|
|
857
|
+
name: "encodedIntentHash";
|
|
952
858
|
};
|
|
953
859
|
};
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
name: "space";
|
|
957
|
-
type: "u32";
|
|
958
860
|
}
|
|
959
861
|
];
|
|
960
862
|
},
|
|
961
863
|
{
|
|
962
|
-
name: "
|
|
963
|
-
discriminator: [
|
|
864
|
+
name: "initIntentByDelegateUsingSig";
|
|
865
|
+
discriminator: [113, 25, 150, 248, 204, 41, 36, 34];
|
|
964
866
|
accounts: [
|
|
965
867
|
{
|
|
966
|
-
name: "
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
},
|
|
868
|
+
name: "delegate";
|
|
869
|
+
docs: ["CHECK"];
|
|
870
|
+
},
|
|
970
871
|
{
|
|
971
|
-
name: "
|
|
872
|
+
name: "maker";
|
|
873
|
+
docs: ["CHECK"];
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
name: "makerInfo";
|
|
972
877
|
pda: {
|
|
973
878
|
seeds: [
|
|
974
879
|
{
|
|
975
880
|
kind: "const";
|
|
976
|
-
value: [
|
|
881
|
+
value: [109, 97, 107, 101, 114, 95, 105, 110, 102, 111];
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
kind: "account";
|
|
885
|
+
path: "maker";
|
|
977
886
|
}
|
|
978
887
|
];
|
|
979
888
|
};
|
|
980
889
|
},
|
|
890
|
+
{
|
|
891
|
+
name: "rentPayer";
|
|
892
|
+
writable: true;
|
|
893
|
+
signer: true;
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
name: "state";
|
|
897
|
+
},
|
|
981
898
|
{
|
|
982
899
|
name: "intentStorage";
|
|
983
900
|
writable: true;
|
|
@@ -985,29 +902,129 @@ type IntentsProgram = {
|
|
|
985
902
|
{
|
|
986
903
|
name: "systemProgram";
|
|
987
904
|
address: "11111111111111111111111111111111";
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
name: "eventAuthority";
|
|
908
|
+
pda: {
|
|
909
|
+
seeds: [
|
|
910
|
+
{
|
|
911
|
+
kind: "const";
|
|
912
|
+
value: [
|
|
913
|
+
95,
|
|
914
|
+
95,
|
|
915
|
+
101,
|
|
916
|
+
118,
|
|
917
|
+
101,
|
|
918
|
+
110,
|
|
919
|
+
116,
|
|
920
|
+
95,
|
|
921
|
+
97,
|
|
922
|
+
117,
|
|
923
|
+
116,
|
|
924
|
+
104,
|
|
925
|
+
111,
|
|
926
|
+
114,
|
|
927
|
+
105,
|
|
928
|
+
116,
|
|
929
|
+
121
|
|
930
|
+
];
|
|
931
|
+
}
|
|
932
|
+
];
|
|
933
|
+
};
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
name: "program";
|
|
988
937
|
}
|
|
989
938
|
];
|
|
990
939
|
args: [
|
|
991
940
|
{
|
|
992
|
-
name: "
|
|
941
|
+
name: "space";
|
|
942
|
+
type: "u32";
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
name: "encodedIntentHash";
|
|
993
946
|
type: {
|
|
994
947
|
defined: {
|
|
995
|
-
name: "
|
|
948
|
+
name: "encodedIntentHash";
|
|
996
949
|
};
|
|
997
950
|
};
|
|
998
951
|
},
|
|
999
952
|
{
|
|
1000
|
-
name: "
|
|
1001
|
-
type:
|
|
1002
|
-
|
|
953
|
+
name: "signature";
|
|
954
|
+
type: {
|
|
955
|
+
array: ["u8", 64];
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
];
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
name: "initIntentUsingSig";
|
|
962
|
+
discriminator: [163, 186, 238, 179, 190, 181, 19, 185];
|
|
963
|
+
accounts: [
|
|
1003
964
|
{
|
|
1004
965
|
name: "maker";
|
|
1005
|
-
|
|
966
|
+
docs: ["CHECK"];
|
|
1006
967
|
},
|
|
1007
968
|
{
|
|
1008
|
-
name: "
|
|
969
|
+
name: "rentPayer";
|
|
970
|
+
writable: true;
|
|
971
|
+
signer: true;
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
name: "state";
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
name: "intentStorage";
|
|
978
|
+
writable: true;
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
name: "systemProgram";
|
|
982
|
+
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
|
+
}
|
|
1016
|
+
];
|
|
1017
|
+
args: [
|
|
1018
|
+
{
|
|
1019
|
+
name: "space";
|
|
1020
|
+
type: "u32";
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: "encodedIntentHash";
|
|
1009
1024
|
type: {
|
|
1010
|
-
|
|
1025
|
+
defined: {
|
|
1026
|
+
name: "encodedIntentHash";
|
|
1027
|
+
};
|
|
1011
1028
|
};
|
|
1012
1029
|
},
|
|
1013
1030
|
{
|
|
@@ -1098,6 +1115,40 @@ type IntentsProgram = {
|
|
|
1098
1115
|
}
|
|
1099
1116
|
];
|
|
1100
1117
|
},
|
|
1118
|
+
{
|
|
1119
|
+
name: "setCancelUntilTimestamp";
|
|
1120
|
+
discriminator: [206, 248, 194, 176, 4, 206, 30, 228];
|
|
1121
|
+
accounts: [
|
|
1122
|
+
{
|
|
1123
|
+
name: "inner";
|
|
1124
|
+
accounts: [
|
|
1125
|
+
{
|
|
1126
|
+
name: "protocolAuthority";
|
|
1127
|
+
signer: true;
|
|
1128
|
+
relations: ["state"];
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
name: "state";
|
|
1132
|
+
writable: true;
|
|
1133
|
+
pda: {
|
|
1134
|
+
seeds: [
|
|
1135
|
+
{
|
|
1136
|
+
kind: "const";
|
|
1137
|
+
value: [115, 116, 97, 116, 101];
|
|
1138
|
+
}
|
|
1139
|
+
];
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
];
|
|
1143
|
+
}
|
|
1144
|
+
];
|
|
1145
|
+
args: [
|
|
1146
|
+
{
|
|
1147
|
+
name: "cancelUntilTimestamp";
|
|
1148
|
+
type: "u64";
|
|
1149
|
+
}
|
|
1150
|
+
];
|
|
1151
|
+
},
|
|
1101
1152
|
{
|
|
1102
1153
|
name: "setDefaultFee";
|
|
1103
1154
|
discriminator: [150, 137, 197, 111, 176, 227, 201, 110];
|
|
@@ -1172,6 +1223,9 @@ type IntentsProgram = {
|
|
|
1172
1223
|
name: "maker";
|
|
1173
1224
|
signer: true;
|
|
1174
1225
|
},
|
|
1226
|
+
{
|
|
1227
|
+
name: "delegate";
|
|
1228
|
+
},
|
|
1175
1229
|
{
|
|
1176
1230
|
name: "rentPayer";
|
|
1177
1231
|
writable: true;
|
|
@@ -1202,10 +1256,6 @@ type IntentsProgram = {
|
|
|
1202
1256
|
}
|
|
1203
1257
|
];
|
|
1204
1258
|
args: [
|
|
1205
|
-
{
|
|
1206
|
-
name: "delegate";
|
|
1207
|
-
type: "pubkey";
|
|
1208
|
-
},
|
|
1209
1259
|
{
|
|
1210
1260
|
name: "nonce";
|
|
1211
1261
|
type: "u64";
|
|
@@ -1221,42 +1271,64 @@ type IntentsProgram = {
|
|
|
1221
1271
|
];
|
|
1222
1272
|
},
|
|
1223
1273
|
{
|
|
1224
|
-
name: "
|
|
1225
|
-
discriminator: [
|
|
1274
|
+
name: "setDelegateApprovedBudgetsUsingSig";
|
|
1275
|
+
discriminator: [26, 11, 76, 149, 162, 38, 128, 0];
|
|
1226
1276
|
accounts: [
|
|
1227
1277
|
{
|
|
1228
|
-
name: "
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1278
|
+
name: "maker";
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
name: "delegate";
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
name: "rentPayer";
|
|
1285
|
+
writable: true;
|
|
1286
|
+
signer: true;
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
name: "makerInfo";
|
|
1290
|
+
writable: true;
|
|
1291
|
+
pda: {
|
|
1292
|
+
seeds: [
|
|
1293
|
+
{
|
|
1294
|
+
kind: "const";
|
|
1295
|
+
value: [109, 97, 107, 101, 114, 95, 105, 110, 102, 111];
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
kind: "account";
|
|
1299
|
+
path: "maker";
|
|
1300
|
+
}
|
|
1301
|
+
];
|
|
1302
|
+
};
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
name: "state";
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
name: "systemProgram";
|
|
1309
|
+
address: "11111111111111111111111111111111";
|
|
1248
1310
|
}
|
|
1249
1311
|
];
|
|
1250
1312
|
args: [
|
|
1251
1313
|
{
|
|
1252
|
-
name: "
|
|
1253
|
-
type: "
|
|
1314
|
+
name: "nonce";
|
|
1315
|
+
type: "u64";
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
name: "encodedApprovedTokenBudgets";
|
|
1319
|
+
type: "bytes";
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
name: "signature";
|
|
1323
|
+
type: {
|
|
1324
|
+
array: ["u8", 64];
|
|
1325
|
+
};
|
|
1254
1326
|
}
|
|
1255
1327
|
];
|
|
1256
1328
|
},
|
|
1257
1329
|
{
|
|
1258
|
-
name: "
|
|
1259
|
-
discriminator: [
|
|
1330
|
+
name: "setFeeCollector";
|
|
1331
|
+
discriminator: [143, 46, 10, 113, 121, 157, 245, 166];
|
|
1260
1332
|
accounts: [
|
|
1261
1333
|
{
|
|
1262
1334
|
name: "inner";
|
|
@@ -1283,26 +1355,70 @@ type IntentsProgram = {
|
|
|
1283
1355
|
];
|
|
1284
1356
|
args: [
|
|
1285
1357
|
{
|
|
1286
|
-
name: "
|
|
1287
|
-
type: "
|
|
1358
|
+
name: "feeCollector";
|
|
1359
|
+
type: "pubkey";
|
|
1288
1360
|
}
|
|
1289
1361
|
];
|
|
1290
1362
|
},
|
|
1291
1363
|
{
|
|
1292
|
-
name: "
|
|
1293
|
-
discriminator: [
|
|
1364
|
+
name: "setMakerCancelUntilTimestamp";
|
|
1365
|
+
discriminator: [144, 42, 186, 107, 205, 215, 55, 229];
|
|
1294
1366
|
accounts: [
|
|
1295
1367
|
{
|
|
1296
|
-
name: "
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1368
|
+
name: "maker";
|
|
1369
|
+
signer: true;
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
name: "rentPayer";
|
|
1373
|
+
writable: true;
|
|
1374
|
+
signer: true;
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
name: "makerInfo";
|
|
1378
|
+
writable: true;
|
|
1379
|
+
pda: {
|
|
1380
|
+
seeds: [
|
|
1381
|
+
{
|
|
1382
|
+
kind: "const";
|
|
1383
|
+
value: [109, 97, 107, 101, 114, 95, 105, 110, 102, 111];
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
kind: "account";
|
|
1387
|
+
path: "maker";
|
|
1388
|
+
}
|
|
1389
|
+
];
|
|
1390
|
+
};
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
name: "state";
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
name: "systemProgram";
|
|
1397
|
+
address: "11111111111111111111111111111111";
|
|
1398
|
+
}
|
|
1399
|
+
];
|
|
1400
|
+
args: [
|
|
1401
|
+
{
|
|
1402
|
+
name: "cancelUntilTimestamp";
|
|
1403
|
+
type: "u64";
|
|
1404
|
+
}
|
|
1405
|
+
];
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
name: "setPause";
|
|
1409
|
+
discriminator: [63, 32, 154, 2, 56, 103, 79, 45];
|
|
1410
|
+
accounts: [
|
|
1411
|
+
{
|
|
1412
|
+
name: "inner";
|
|
1413
|
+
accounts: [
|
|
1414
|
+
{
|
|
1415
|
+
name: "protocolAuthority";
|
|
1416
|
+
signer: true;
|
|
1417
|
+
relations: ["state"];
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
name: "state";
|
|
1421
|
+
writable: true;
|
|
1306
1422
|
pda: {
|
|
1307
1423
|
seeds: [
|
|
1308
1424
|
{
|
|
@@ -1797,95 +1913,444 @@ type IntentsProgram = {
|
|
|
1797
1913
|
};
|
|
1798
1914
|
},
|
|
1799
1915
|
{
|
|
1800
|
-
name: "instructions";
|
|
1801
|
-
address: "Sysvar1nstructions1111111111111111111111111";
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
name: "systemProgram";
|
|
1805
|
-
address: "11111111111111111111111111111111";
|
|
1916
|
+
name: "instructions";
|
|
1917
|
+
address: "Sysvar1nstructions1111111111111111111111111";
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
name: "systemProgram";
|
|
1921
|
+
address: "11111111111111111111111111111111";
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
name: "outputTokenProgram";
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
name: "associatedTokenProgram";
|
|
1928
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
name: "eventAuthority";
|
|
1932
|
+
pda: {
|
|
1933
|
+
seeds: [
|
|
1934
|
+
{
|
|
1935
|
+
kind: "const";
|
|
1936
|
+
value: [
|
|
1937
|
+
95,
|
|
1938
|
+
95,
|
|
1939
|
+
101,
|
|
1940
|
+
118,
|
|
1941
|
+
101,
|
|
1942
|
+
110,
|
|
1943
|
+
116,
|
|
1944
|
+
95,
|
|
1945
|
+
97,
|
|
1946
|
+
117,
|
|
1947
|
+
116,
|
|
1948
|
+
104,
|
|
1949
|
+
111,
|
|
1950
|
+
114,
|
|
1951
|
+
105,
|
|
1952
|
+
116,
|
|
1953
|
+
121
|
|
1954
|
+
];
|
|
1955
|
+
}
|
|
1956
|
+
];
|
|
1957
|
+
};
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
name: "program";
|
|
1961
|
+
}
|
|
1962
|
+
];
|
|
1963
|
+
args: [
|
|
1964
|
+
{
|
|
1965
|
+
name: "expectedOutputTokenAmount";
|
|
1966
|
+
type: "u64";
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
name: "takerSurplusShareBps";
|
|
1970
|
+
type: "u32";
|
|
1971
|
+
}
|
|
1972
|
+
];
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
name: "updateIntent";
|
|
1976
|
+
discriminator: [214, 203, 249, 158, 90, 27, 54, 17];
|
|
1977
|
+
accounts: [
|
|
1978
|
+
{
|
|
1979
|
+
name: "rentPayer";
|
|
1980
|
+
writable: true;
|
|
1981
|
+
signer: true;
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
name: "state";
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
name: "intentStorage";
|
|
1988
|
+
writable: true;
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: "systemProgram";
|
|
1992
|
+
address: "11111111111111111111111111111111";
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
name: "buffer";
|
|
1996
|
+
optional: true;
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
name: "eventAuthority";
|
|
2000
|
+
pda: {
|
|
2001
|
+
seeds: [
|
|
2002
|
+
{
|
|
2003
|
+
kind: "const";
|
|
2004
|
+
value: [
|
|
2005
|
+
95,
|
|
2006
|
+
95,
|
|
2007
|
+
101,
|
|
2008
|
+
118,
|
|
2009
|
+
101,
|
|
2010
|
+
110,
|
|
2011
|
+
116,
|
|
2012
|
+
95,
|
|
2013
|
+
97,
|
|
2014
|
+
117,
|
|
2015
|
+
116,
|
|
2016
|
+
104,
|
|
2017
|
+
111,
|
|
2018
|
+
114,
|
|
2019
|
+
105,
|
|
2020
|
+
116,
|
|
2021
|
+
121
|
|
2022
|
+
];
|
|
2023
|
+
}
|
|
2024
|
+
];
|
|
2025
|
+
};
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
name: "program";
|
|
2029
|
+
}
|
|
2030
|
+
];
|
|
2031
|
+
args: [
|
|
2032
|
+
{
|
|
2033
|
+
name: "dataOrigin";
|
|
2034
|
+
type: {
|
|
2035
|
+
defined: {
|
|
2036
|
+
name: "dataOrigin";
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
];
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
name: "withdrawCancelledIntentTokenAccount";
|
|
2044
|
+
discriminator: [174, 169, 179, 36, 13, 33, 88, 124];
|
|
2045
|
+
accounts: [
|
|
2046
|
+
{
|
|
2047
|
+
name: "state";
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
name: "maker";
|
|
2051
|
+
docs: ["CHECK"];
|
|
2052
|
+
relations: ["intentStorage"];
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
name: "intentStorage";
|
|
2056
|
+
writable: true;
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
name: "intentTokenAccount";
|
|
2060
|
+
writable: true;
|
|
2061
|
+
pda: {
|
|
2062
|
+
seeds: [
|
|
2063
|
+
{
|
|
2064
|
+
kind: "account";
|
|
2065
|
+
path: "intentStorage";
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
kind: "account";
|
|
2069
|
+
path: "tokenProgram";
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
kind: "account";
|
|
2073
|
+
path: "tokenMint";
|
|
2074
|
+
}
|
|
2075
|
+
];
|
|
2076
|
+
program: {
|
|
2077
|
+
kind: "const";
|
|
2078
|
+
value: [
|
|
2079
|
+
140,
|
|
2080
|
+
151,
|
|
2081
|
+
37,
|
|
2082
|
+
143,
|
|
2083
|
+
78,
|
|
2084
|
+
36,
|
|
2085
|
+
137,
|
|
2086
|
+
241,
|
|
2087
|
+
187,
|
|
2088
|
+
61,
|
|
2089
|
+
16,
|
|
2090
|
+
41,
|
|
2091
|
+
20,
|
|
2092
|
+
142,
|
|
2093
|
+
13,
|
|
2094
|
+
131,
|
|
2095
|
+
11,
|
|
2096
|
+
90,
|
|
2097
|
+
19,
|
|
2098
|
+
153,
|
|
2099
|
+
218,
|
|
2100
|
+
255,
|
|
2101
|
+
16,
|
|
2102
|
+
132,
|
|
2103
|
+
4,
|
|
2104
|
+
142,
|
|
2105
|
+
123,
|
|
2106
|
+
216,
|
|
2107
|
+
219,
|
|
2108
|
+
233,
|
|
2109
|
+
248,
|
|
2110
|
+
89
|
|
2111
|
+
];
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
name: "makerTokenAccount";
|
|
2117
|
+
writable: true;
|
|
2118
|
+
pda: {
|
|
2119
|
+
seeds: [
|
|
2120
|
+
{
|
|
2121
|
+
kind: "account";
|
|
2122
|
+
path: "maker";
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
kind: "account";
|
|
2126
|
+
path: "tokenProgram";
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
kind: "account";
|
|
2130
|
+
path: "tokenMint";
|
|
2131
|
+
}
|
|
2132
|
+
];
|
|
2133
|
+
program: {
|
|
2134
|
+
kind: "const";
|
|
2135
|
+
value: [
|
|
2136
|
+
140,
|
|
2137
|
+
151,
|
|
2138
|
+
37,
|
|
2139
|
+
143,
|
|
2140
|
+
78,
|
|
2141
|
+
36,
|
|
2142
|
+
137,
|
|
2143
|
+
241,
|
|
2144
|
+
187,
|
|
2145
|
+
61,
|
|
2146
|
+
16,
|
|
2147
|
+
41,
|
|
2148
|
+
20,
|
|
2149
|
+
142,
|
|
2150
|
+
13,
|
|
2151
|
+
131,
|
|
2152
|
+
11,
|
|
2153
|
+
90,
|
|
2154
|
+
19,
|
|
2155
|
+
153,
|
|
2156
|
+
218,
|
|
2157
|
+
255,
|
|
2158
|
+
16,
|
|
2159
|
+
132,
|
|
2160
|
+
4,
|
|
2161
|
+
142,
|
|
2162
|
+
123,
|
|
2163
|
+
216,
|
|
2164
|
+
219,
|
|
2165
|
+
233,
|
|
2166
|
+
248,
|
|
2167
|
+
89
|
|
2168
|
+
];
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
name: "tokenMint";
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
name: "tokenProgram";
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
name: "associatedTokenProgram";
|
|
2180
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
2181
|
+
}
|
|
2182
|
+
];
|
|
2183
|
+
args: [];
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
name: "withdrawClosedIntentTokenAccount";
|
|
2187
|
+
discriminator: [123, 141, 239, 126, 107, 232, 214, 120];
|
|
2188
|
+
accounts: [
|
|
2189
|
+
{
|
|
2190
|
+
name: "state";
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
name: "intentStorage";
|
|
2194
|
+
docs: ["TODO: custom Account<'info, Terminated>"];
|
|
2195
|
+
pda: {
|
|
2196
|
+
seeds: [
|
|
2197
|
+
{
|
|
2198
|
+
kind: "const";
|
|
2199
|
+
value: [
|
|
2200
|
+
105,
|
|
2201
|
+
110,
|
|
2202
|
+
116,
|
|
2203
|
+
101,
|
|
2204
|
+
110,
|
|
2205
|
+
116,
|
|
2206
|
+
95,
|
|
2207
|
+
115,
|
|
2208
|
+
116,
|
|
2209
|
+
111,
|
|
2210
|
+
114,
|
|
2211
|
+
97,
|
|
2212
|
+
103,
|
|
2213
|
+
101
|
|
2214
|
+
];
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
kind: "arg";
|
|
2218
|
+
path: "intentId";
|
|
2219
|
+
}
|
|
2220
|
+
];
|
|
2221
|
+
};
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
name: "intentTokenAccount";
|
|
2225
|
+
writable: true;
|
|
2226
|
+
pda: {
|
|
2227
|
+
seeds: [
|
|
2228
|
+
{
|
|
2229
|
+
kind: "account";
|
|
2230
|
+
path: "intentStorage";
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
kind: "account";
|
|
2234
|
+
path: "tokenProgram";
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
kind: "account";
|
|
2238
|
+
path: "mint";
|
|
2239
|
+
}
|
|
2240
|
+
];
|
|
2241
|
+
program: {
|
|
2242
|
+
kind: "const";
|
|
2243
|
+
value: [
|
|
2244
|
+
140,
|
|
2245
|
+
151,
|
|
2246
|
+
37,
|
|
2247
|
+
143,
|
|
2248
|
+
78,
|
|
2249
|
+
36,
|
|
2250
|
+
137,
|
|
2251
|
+
241,
|
|
2252
|
+
187,
|
|
2253
|
+
61,
|
|
2254
|
+
16,
|
|
2255
|
+
41,
|
|
2256
|
+
20,
|
|
2257
|
+
142,
|
|
2258
|
+
13,
|
|
2259
|
+
131,
|
|
2260
|
+
11,
|
|
2261
|
+
90,
|
|
2262
|
+
19,
|
|
2263
|
+
153,
|
|
2264
|
+
218,
|
|
2265
|
+
255,
|
|
2266
|
+
16,
|
|
2267
|
+
132,
|
|
2268
|
+
4,
|
|
2269
|
+
142,
|
|
2270
|
+
123,
|
|
2271
|
+
216,
|
|
2272
|
+
219,
|
|
2273
|
+
233,
|
|
2274
|
+
248,
|
|
2275
|
+
89
|
|
2276
|
+
];
|
|
2277
|
+
};
|
|
2278
|
+
};
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
name: "feeLedger";
|
|
2282
|
+
writable: true;
|
|
2283
|
+
pda: {
|
|
2284
|
+
seeds: [
|
|
2285
|
+
{
|
|
2286
|
+
kind: "account";
|
|
2287
|
+
path: "state";
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
kind: "account";
|
|
2291
|
+
path: "tokenProgram";
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
kind: "account";
|
|
2295
|
+
path: "mint";
|
|
2296
|
+
}
|
|
2297
|
+
];
|
|
2298
|
+
program: {
|
|
2299
|
+
kind: "const";
|
|
2300
|
+
value: [
|
|
2301
|
+
140,
|
|
2302
|
+
151,
|
|
2303
|
+
37,
|
|
2304
|
+
143,
|
|
2305
|
+
78,
|
|
2306
|
+
36,
|
|
2307
|
+
137,
|
|
2308
|
+
241,
|
|
2309
|
+
187,
|
|
2310
|
+
61,
|
|
2311
|
+
16,
|
|
2312
|
+
41,
|
|
2313
|
+
20,
|
|
2314
|
+
142,
|
|
2315
|
+
13,
|
|
2316
|
+
131,
|
|
2317
|
+
11,
|
|
2318
|
+
90,
|
|
2319
|
+
19,
|
|
2320
|
+
153,
|
|
2321
|
+
218,
|
|
2322
|
+
255,
|
|
2323
|
+
16,
|
|
2324
|
+
132,
|
|
2325
|
+
4,
|
|
2326
|
+
142,
|
|
2327
|
+
123,
|
|
2328
|
+
216,
|
|
2329
|
+
219,
|
|
2330
|
+
233,
|
|
2331
|
+
248,
|
|
2332
|
+
89
|
|
2333
|
+
];
|
|
2334
|
+
};
|
|
2335
|
+
};
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
name: "mint";
|
|
1806
2339
|
},
|
|
1807
2340
|
{
|
|
1808
|
-
name: "
|
|
2341
|
+
name: "tokenProgram";
|
|
1809
2342
|
},
|
|
1810
2343
|
{
|
|
1811
2344
|
name: "associatedTokenProgram";
|
|
1812
2345
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1813
|
-
},
|
|
1814
|
-
{
|
|
1815
|
-
name: "eventAuthority";
|
|
1816
|
-
pda: {
|
|
1817
|
-
seeds: [
|
|
1818
|
-
{
|
|
1819
|
-
kind: "const";
|
|
1820
|
-
value: [
|
|
1821
|
-
95,
|
|
1822
|
-
95,
|
|
1823
|
-
101,
|
|
1824
|
-
118,
|
|
1825
|
-
101,
|
|
1826
|
-
110,
|
|
1827
|
-
116,
|
|
1828
|
-
95,
|
|
1829
|
-
97,
|
|
1830
|
-
117,
|
|
1831
|
-
116,
|
|
1832
|
-
104,
|
|
1833
|
-
111,
|
|
1834
|
-
114,
|
|
1835
|
-
105,
|
|
1836
|
-
116,
|
|
1837
|
-
121
|
|
1838
|
-
];
|
|
1839
|
-
}
|
|
1840
|
-
];
|
|
1841
|
-
};
|
|
1842
|
-
},
|
|
1843
|
-
{
|
|
1844
|
-
name: "program";
|
|
1845
|
-
}
|
|
1846
|
-
];
|
|
1847
|
-
args: [
|
|
1848
|
-
{
|
|
1849
|
-
name: "expectedOutcomeAmount";
|
|
1850
|
-
type: "u64";
|
|
1851
|
-
},
|
|
1852
|
-
{
|
|
1853
|
-
name: "takerSurplusShareBps";
|
|
1854
|
-
type: "u32";
|
|
1855
|
-
}
|
|
1856
|
-
];
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
name: "updateIntent";
|
|
1860
|
-
discriminator: [214, 203, 249, 158, 90, 27, 54, 17];
|
|
1861
|
-
accounts: [
|
|
1862
|
-
{
|
|
1863
|
-
name: "rentPayer";
|
|
1864
|
-
writable: true;
|
|
1865
|
-
signer: true;
|
|
1866
|
-
},
|
|
1867
|
-
{
|
|
1868
|
-
name: "state";
|
|
1869
|
-
},
|
|
1870
|
-
{
|
|
1871
|
-
name: "intentStorage";
|
|
1872
|
-
writable: true;
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
name: "systemProgram";
|
|
1876
|
-
address: "11111111111111111111111111111111";
|
|
1877
|
-
},
|
|
1878
|
-
{
|
|
1879
|
-
name: "buffer";
|
|
1880
|
-
optional: true;
|
|
1881
2346
|
}
|
|
1882
2347
|
];
|
|
1883
2348
|
args: [
|
|
1884
2349
|
{
|
|
1885
|
-
name: "
|
|
2350
|
+
name: "intentId";
|
|
1886
2351
|
type: {
|
|
1887
2352
|
defined: {
|
|
1888
|
-
name: "
|
|
2353
|
+
name: "intentId";
|
|
1889
2354
|
};
|
|
1890
2355
|
};
|
|
1891
2356
|
}
|
|
@@ -1907,6 +2372,10 @@ type IntentsProgram = {
|
|
|
1907
2372
|
}
|
|
1908
2373
|
];
|
|
1909
2374
|
events: [
|
|
2375
|
+
{
|
|
2376
|
+
name: "closedIntent";
|
|
2377
|
+
discriminator: [197, 62, 20, 42, 191, 176, 242, 94];
|
|
2378
|
+
},
|
|
1910
2379
|
{
|
|
1911
2380
|
name: "fulfilled";
|
|
1912
2381
|
discriminator: [210, 174, 131, 213, 40, 182, 83, 110];
|
|
@@ -1919,6 +2388,14 @@ type IntentsProgram = {
|
|
|
1919
2388
|
name: "intentBudgetSpent";
|
|
1920
2389
|
discriminator: [106, 148, 20, 168, 115, 89, 145, 56];
|
|
1921
2390
|
},
|
|
2391
|
+
{
|
|
2392
|
+
name: "newIntent";
|
|
2393
|
+
discriminator: [101, 118, 73, 187, 15, 74, 57, 97];
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
name: "sealedIntent";
|
|
2397
|
+
discriminator: [28, 191, 234, 161, 83, 32, 138, 137];
|
|
2398
|
+
},
|
|
1922
2399
|
{
|
|
1923
2400
|
name: "swapped";
|
|
1924
2401
|
discriminator: [217, 52, 52, 83, 147, 135, 96, 109];
|
|
@@ -1926,172 +2403,224 @@ type IntentsProgram = {
|
|
|
1926
2403
|
];
|
|
1927
2404
|
errors: [
|
|
1928
2405
|
{
|
|
1929
|
-
code:
|
|
1930
|
-
name: "
|
|
2406
|
+
code: 6160;
|
|
2407
|
+
name: "invalidArgument";
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
code: 6170;
|
|
2411
|
+
name: "invalidAmount";
|
|
2412
|
+
},
|
|
2413
|
+
{
|
|
2414
|
+
code: 6172;
|
|
2415
|
+
name: "malformedRemainingAccounts";
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
code: 16782961;
|
|
2419
|
+
name: "protocolPaused";
|
|
1931
2420
|
},
|
|
1932
2421
|
{
|
|
1933
|
-
code:
|
|
2422
|
+
code: 16782979;
|
|
1934
2423
|
name: "timeParadox";
|
|
1935
2424
|
},
|
|
1936
2425
|
{
|
|
1937
|
-
code:
|
|
2426
|
+
code: 6234;
|
|
1938
2427
|
name: "unknownCaller";
|
|
1939
2428
|
},
|
|
1940
2429
|
{
|
|
1941
|
-
code:
|
|
2430
|
+
code: 6236;
|
|
1942
2431
|
name: "unknownCancelAuthority";
|
|
1943
2432
|
},
|
|
1944
2433
|
{
|
|
1945
|
-
code:
|
|
1946
|
-
name: "
|
|
2434
|
+
code: 6079;
|
|
2435
|
+
name: "signatureVerificationFailed";
|
|
2436
|
+
},
|
|
2437
|
+
{
|
|
2438
|
+
code: 6085;
|
|
2439
|
+
name: "intentIdMiscalculated";
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
code: 6086;
|
|
2443
|
+
name: "intentFromAnotherChain";
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
code: 6087;
|
|
2447
|
+
name: "intentSameChainOnly";
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
code: 6088;
|
|
2451
|
+
name: "intentInconsistentInputTokens";
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
code: 6089;
|
|
2455
|
+
name: "intentInconsistentGiveTokens";
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
code: 6096;
|
|
2459
|
+
name: "intentInconsistentTakeTokens";
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
code: 6097;
|
|
2463
|
+
name: "intentInconsitentReceivers";
|
|
1947
2464
|
},
|
|
1948
2465
|
{
|
|
1949
|
-
code:
|
|
1950
|
-
name: "
|
|
2466
|
+
code: 6098;
|
|
2467
|
+
name: "intentInconsitentDstAuthorities";
|
|
1951
2468
|
},
|
|
1952
2469
|
{
|
|
1953
|
-
code:
|
|
1954
|
-
name: "
|
|
2470
|
+
code: 6275;
|
|
2471
|
+
name: "intentStorageAlreadyInitialized";
|
|
1955
2472
|
},
|
|
1956
2473
|
{
|
|
1957
|
-
code:
|
|
2474
|
+
code: 6276;
|
|
1958
2475
|
name: "intentHashMismatch";
|
|
1959
2476
|
},
|
|
1960
2477
|
{
|
|
1961
|
-
code:
|
|
1962
|
-
name: "
|
|
2478
|
+
code: 6277;
|
|
2479
|
+
name: "intentStorageSealed";
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
code: 6278;
|
|
2483
|
+
name: "missedBufferAccount";
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
code: 6288;
|
|
2487
|
+
name: "intentNotReady";
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
code: 6289;
|
|
2491
|
+
name: "intentCancelled";
|
|
1963
2492
|
},
|
|
1964
2493
|
{
|
|
1965
|
-
code:
|
|
1966
|
-
name: "
|
|
2494
|
+
code: 6290;
|
|
2495
|
+
name: "intentExpired";
|
|
1967
2496
|
},
|
|
1968
2497
|
{
|
|
1969
|
-
code:
|
|
1970
|
-
name: "
|
|
2498
|
+
code: 6291;
|
|
2499
|
+
name: "intentInvalidatedByUser";
|
|
1971
2500
|
},
|
|
1972
2501
|
{
|
|
1973
|
-
code:
|
|
1974
|
-
name: "
|
|
2502
|
+
code: 6292;
|
|
2503
|
+
name: "intentInvalidatedByProtocolAuthority";
|
|
1975
2504
|
},
|
|
1976
2505
|
{
|
|
1977
|
-
code:
|
|
1978
|
-
name: "
|
|
2506
|
+
code: 6293;
|
|
2507
|
+
name: "expectedClosedIntent";
|
|
1979
2508
|
},
|
|
1980
2509
|
{
|
|
1981
|
-
code:
|
|
1982
|
-
name: "
|
|
2510
|
+
code: 9664;
|
|
2511
|
+
name: "tokenAccountMissingProtocolDelegate";
|
|
1983
2512
|
},
|
|
1984
2513
|
{
|
|
1985
|
-
code:
|
|
2514
|
+
code: 9665;
|
|
1986
2515
|
name: "unknownInputToken";
|
|
1987
2516
|
},
|
|
1988
2517
|
{
|
|
1989
|
-
code:
|
|
1990
|
-
name: "
|
|
2518
|
+
code: 9666;
|
|
2519
|
+
name: "inputTokenAmountOutOfRange";
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
code: 9667;
|
|
2523
|
+
name: "inputTokenAmountExceedsBudget";
|
|
1991
2524
|
},
|
|
1992
2525
|
{
|
|
1993
|
-
code:
|
|
1994
|
-
name: "
|
|
2526
|
+
code: 9680;
|
|
2527
|
+
name: "takerNotAllowed";
|
|
1995
2528
|
},
|
|
1996
2529
|
{
|
|
1997
|
-
code:
|
|
2530
|
+
code: 9681;
|
|
1998
2531
|
name: "unknownRoute";
|
|
1999
2532
|
},
|
|
2000
2533
|
{
|
|
2001
|
-
code:
|
|
2534
|
+
code: 9682;
|
|
2002
2535
|
name: "priceViolation";
|
|
2003
2536
|
},
|
|
2004
2537
|
{
|
|
2005
|
-
code:
|
|
2538
|
+
code: 9683;
|
|
2006
2539
|
name: "invalidReceiver";
|
|
2007
2540
|
},
|
|
2008
2541
|
{
|
|
2009
|
-
code:
|
|
2010
|
-
name: "
|
|
2542
|
+
code: 9793;
|
|
2543
|
+
name: "invalidDlnOrderTakeAmount";
|
|
2011
2544
|
},
|
|
2012
2545
|
{
|
|
2013
|
-
code:
|
|
2546
|
+
code: 9794;
|
|
2014
2547
|
name: "invalidDlnDstReceiver";
|
|
2015
2548
|
},
|
|
2016
2549
|
{
|
|
2017
|
-
code:
|
|
2550
|
+
code: 9802;
|
|
2018
2551
|
name: "invalidDlnDstOrderAuthority";
|
|
2019
2552
|
},
|
|
2020
2553
|
{
|
|
2021
|
-
code:
|
|
2022
|
-
name: "
|
|
2554
|
+
code: 9803;
|
|
2555
|
+
name: "invalidDlnDstAllowedTaker";
|
|
2023
2556
|
},
|
|
2024
2557
|
{
|
|
2025
|
-
code:
|
|
2026
|
-
name: "
|
|
2558
|
+
code: 9804;
|
|
2559
|
+
name: "invalidDlnSrcAllowedCancelBeneficiary";
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
code: 9805;
|
|
2563
|
+
name: "invalidDlnMetadata";
|
|
2027
2564
|
},
|
|
2028
2565
|
{
|
|
2029
|
-
code:
|
|
2030
|
-
name: "
|
|
2566
|
+
code: 9806;
|
|
2567
|
+
name: "invalidDlnExtcallHash";
|
|
2031
2568
|
},
|
|
2032
2569
|
{
|
|
2033
|
-
code:
|
|
2570
|
+
code: 9788;
|
|
2034
2571
|
name: "cantBeClosed";
|
|
2035
2572
|
},
|
|
2036
2573
|
{
|
|
2037
|
-
code:
|
|
2574
|
+
code: 9839;
|
|
2038
2575
|
name: "intentArbitraryDataOverflow";
|
|
2039
2576
|
},
|
|
2040
2577
|
{
|
|
2041
|
-
code:
|
|
2042
|
-
name: "
|
|
2043
|
-
},
|
|
2044
|
-
{
|
|
2045
|
-
code: 6029;
|
|
2046
|
-
name: "takerMustBeFixedWhenAnyExtcallIsAllowed";
|
|
2578
|
+
code: 8832;
|
|
2579
|
+
name: "takerMustBeFixedWhenExtcallAllowed";
|
|
2047
2580
|
},
|
|
2048
2581
|
{
|
|
2049
|
-
code:
|
|
2582
|
+
code: 8833;
|
|
2050
2583
|
name: "ambiguousReceivers";
|
|
2051
2584
|
},
|
|
2052
2585
|
{
|
|
2053
|
-
code:
|
|
2586
|
+
code: 9600;
|
|
2054
2587
|
name: "interactionAccountNotFound";
|
|
2055
2588
|
},
|
|
2056
2589
|
{
|
|
2057
|
-
code:
|
|
2590
|
+
code: 9601;
|
|
2058
2591
|
name: "interactionProgramNotFound";
|
|
2059
2592
|
},
|
|
2060
2593
|
{
|
|
2061
|
-
code:
|
|
2594
|
+
code: 6239;
|
|
2062
2595
|
name: "interactionFixedAccountNotFound";
|
|
2063
2596
|
},
|
|
2064
2597
|
{
|
|
2065
|
-
code:
|
|
2598
|
+
code: 9536;
|
|
2066
2599
|
name: "unknownDelegate";
|
|
2067
2600
|
},
|
|
2068
2601
|
{
|
|
2069
|
-
code:
|
|
2070
|
-
name: "
|
|
2071
|
-
},
|
|
2072
|
-
{
|
|
2073
|
-
code: 6036;
|
|
2074
|
-
name: "delegateExceedsApprovedBudget";
|
|
2602
|
+
code: 9537;
|
|
2603
|
+
name: "delegateNonceMismatchNext";
|
|
2075
2604
|
},
|
|
2076
2605
|
{
|
|
2077
|
-
code:
|
|
2078
|
-
name: "
|
|
2606
|
+
code: 9546;
|
|
2607
|
+
name: "delegateHasNoApproval";
|
|
2079
2608
|
},
|
|
2080
2609
|
{
|
|
2081
|
-
code:
|
|
2082
|
-
name: "
|
|
2610
|
+
code: 9547;
|
|
2611
|
+
name: "delegateExceedsApprovedBudget";
|
|
2083
2612
|
},
|
|
2084
2613
|
{
|
|
2085
|
-
code:
|
|
2086
|
-
name: "
|
|
2614
|
+
code: 9550;
|
|
2615
|
+
name: "delegateApprovalExpired";
|
|
2087
2616
|
},
|
|
2088
2617
|
{
|
|
2089
|
-
code:
|
|
2090
|
-
name: "
|
|
2618
|
+
code: 9551;
|
|
2619
|
+
name: "delegateRevoked";
|
|
2091
2620
|
},
|
|
2092
2621
|
{
|
|
2093
|
-
code:
|
|
2094
|
-
name: "
|
|
2622
|
+
code: 16767137;
|
|
2623
|
+
name: "crossProgramInvokeRestricted";
|
|
2095
2624
|
}
|
|
2096
2625
|
];
|
|
2097
2626
|
types: [
|
|
@@ -2124,6 +2653,39 @@ type IntentsProgram = {
|
|
|
2124
2653
|
];
|
|
2125
2654
|
};
|
|
2126
2655
|
},
|
|
2656
|
+
{
|
|
2657
|
+
name: "closedIntent";
|
|
2658
|
+
type: {
|
|
2659
|
+
kind: "struct";
|
|
2660
|
+
fields: [
|
|
2661
|
+
{
|
|
2662
|
+
name: "status";
|
|
2663
|
+
type: {
|
|
2664
|
+
defined: {
|
|
2665
|
+
name: "closedIntentStatus";
|
|
2666
|
+
};
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
];
|
|
2670
|
+
};
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
name: "closedIntentStatus";
|
|
2674
|
+
repr: {
|
|
2675
|
+
kind: "rust";
|
|
2676
|
+
};
|
|
2677
|
+
type: {
|
|
2678
|
+
kind: "enum";
|
|
2679
|
+
variants: [
|
|
2680
|
+
{
|
|
2681
|
+
name: "wiped";
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
name: "terminated";
|
|
2685
|
+
}
|
|
2686
|
+
];
|
|
2687
|
+
};
|
|
2688
|
+
},
|
|
2127
2689
|
{
|
|
2128
2690
|
name: "createOrderArgs";
|
|
2129
2691
|
docs: ["Structure for forming a new order"];
|
|
@@ -2272,6 +2834,9 @@ type IntentsProgram = {
|
|
|
2272
2834
|
type: {
|
|
2273
2835
|
kind: "enum";
|
|
2274
2836
|
variants: [
|
|
2837
|
+
{
|
|
2838
|
+
name: "any";
|
|
2839
|
+
},
|
|
2275
2840
|
{
|
|
2276
2841
|
name: "perToken";
|
|
2277
2842
|
fields: [
|
|
@@ -2284,9 +2849,6 @@ type IntentsProgram = {
|
|
|
2284
2849
|
}
|
|
2285
2850
|
];
|
|
2286
2851
|
},
|
|
2287
|
-
{
|
|
2288
|
-
name: "any";
|
|
2289
|
-
},
|
|
2290
2852
|
{
|
|
2291
2853
|
name: "revoked";
|
|
2292
2854
|
}
|
|
@@ -2317,6 +2879,17 @@ type IntentsProgram = {
|
|
|
2317
2879
|
];
|
|
2318
2880
|
};
|
|
2319
2881
|
},
|
|
2882
|
+
{
|
|
2883
|
+
name: "encodedIntentHash";
|
|
2884
|
+
type: {
|
|
2885
|
+
kind: "struct";
|
|
2886
|
+
fields: [
|
|
2887
|
+
{
|
|
2888
|
+
array: ["u8", 32];
|
|
2889
|
+
}
|
|
2890
|
+
];
|
|
2891
|
+
};
|
|
2892
|
+
},
|
|
2320
2893
|
{
|
|
2321
2894
|
name: "fulfilled";
|
|
2322
2895
|
type: {
|
|
@@ -2371,15 +2944,15 @@ type IntentsProgram = {
|
|
|
2371
2944
|
};
|
|
2372
2945
|
},
|
|
2373
2946
|
{
|
|
2374
|
-
name: "
|
|
2947
|
+
name: "executionMetadata";
|
|
2375
2948
|
type: {
|
|
2376
|
-
|
|
2949
|
+
option: "bytes";
|
|
2377
2950
|
};
|
|
2378
2951
|
},
|
|
2379
2952
|
{
|
|
2380
|
-
name: "
|
|
2953
|
+
name: "tradeId";
|
|
2381
2954
|
type: {
|
|
2382
|
-
|
|
2955
|
+
array: ["u8", 32];
|
|
2383
2956
|
};
|
|
2384
2957
|
},
|
|
2385
2958
|
{
|
|
@@ -2390,41 +2963,9 @@ type IntentsProgram = {
|
|
|
2390
2963
|
};
|
|
2391
2964
|
};
|
|
2392
2965
|
},
|
|
2393
|
-
{
|
|
2394
|
-
name: "giveToken";
|
|
2395
|
-
type: "pubkey";
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
name: "giveTokenAmount";
|
|
2399
|
-
type: "u64";
|
|
2400
|
-
},
|
|
2401
2966
|
{
|
|
2402
2967
|
name: "giveTokenFeeAmount";
|
|
2403
2968
|
type: "u64";
|
|
2404
|
-
},
|
|
2405
|
-
{
|
|
2406
|
-
name: "takeToken";
|
|
2407
|
-
type: {
|
|
2408
|
-
defined: {
|
|
2409
|
-
name: "address";
|
|
2410
|
-
};
|
|
2411
|
-
};
|
|
2412
|
-
},
|
|
2413
|
-
{
|
|
2414
|
-
name: "takeTokenAmount";
|
|
2415
|
-
type: {
|
|
2416
|
-
defined: {
|
|
2417
|
-
name: "u256";
|
|
2418
|
-
};
|
|
2419
|
-
};
|
|
2420
|
-
},
|
|
2421
|
-
{
|
|
2422
|
-
name: "takeTokenRecipient";
|
|
2423
|
-
type: {
|
|
2424
|
-
defined: {
|
|
2425
|
-
name: "address";
|
|
2426
|
-
};
|
|
2427
|
-
};
|
|
2428
2969
|
}
|
|
2429
2970
|
];
|
|
2430
2971
|
};
|
|
@@ -2533,10 +3074,10 @@ type IntentsProgram = {
|
|
|
2533
3074
|
};
|
|
2534
3075
|
},
|
|
2535
3076
|
{
|
|
2536
|
-
name: "
|
|
3077
|
+
name: "encodedIntentHash";
|
|
2537
3078
|
type: {
|
|
2538
3079
|
defined: {
|
|
2539
|
-
name: "
|
|
3080
|
+
name: "encodedIntentHash";
|
|
2540
3081
|
};
|
|
2541
3082
|
};
|
|
2542
3083
|
},
|
|
@@ -2565,7 +3106,7 @@ type IntentsProgram = {
|
|
|
2565
3106
|
kind: "struct";
|
|
2566
3107
|
fields: [
|
|
2567
3108
|
{
|
|
2568
|
-
name: "
|
|
3109
|
+
name: "cancelUntilTimestamp";
|
|
2569
3110
|
type: "u64";
|
|
2570
3111
|
},
|
|
2571
3112
|
{
|
|
@@ -2581,6 +3122,22 @@ type IntentsProgram = {
|
|
|
2581
3122
|
];
|
|
2582
3123
|
};
|
|
2583
3124
|
},
|
|
3125
|
+
{
|
|
3126
|
+
name: "newIntent";
|
|
3127
|
+
type: {
|
|
3128
|
+
kind: "struct";
|
|
3129
|
+
fields: [
|
|
3130
|
+
{
|
|
3131
|
+
name: "intentId";
|
|
3132
|
+
type: {
|
|
3133
|
+
defined: {
|
|
3134
|
+
name: "intentId";
|
|
3135
|
+
};
|
|
3136
|
+
};
|
|
3137
|
+
}
|
|
3138
|
+
];
|
|
3139
|
+
};
|
|
3140
|
+
},
|
|
2584
3141
|
{
|
|
2585
3142
|
name: "offer";
|
|
2586
3143
|
type: {
|
|
@@ -2613,6 +3170,26 @@ type IntentsProgram = {
|
|
|
2613
3170
|
];
|
|
2614
3171
|
};
|
|
2615
3172
|
},
|
|
3173
|
+
{
|
|
3174
|
+
name: "sealedIntent";
|
|
3175
|
+
type: {
|
|
3176
|
+
kind: "struct";
|
|
3177
|
+
fields: [
|
|
3178
|
+
{
|
|
3179
|
+
name: "intentId";
|
|
3180
|
+
type: {
|
|
3181
|
+
defined: {
|
|
3182
|
+
name: "intentId";
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
name: "encodedIntent";
|
|
3188
|
+
type: "bytes";
|
|
3189
|
+
}
|
|
3190
|
+
];
|
|
3191
|
+
};
|
|
3192
|
+
},
|
|
2616
3193
|
{
|
|
2617
3194
|
name: "setApprovedTokenBudgets";
|
|
2618
3195
|
type: {
|
|
@@ -2661,7 +3238,7 @@ type IntentsProgram = {
|
|
|
2661
3238
|
type: "bool";
|
|
2662
3239
|
},
|
|
2663
3240
|
{
|
|
2664
|
-
name: "
|
|
3241
|
+
name: "cancelUntilTimestamp";
|
|
2665
3242
|
type: "u64";
|
|
2666
3243
|
},
|
|
2667
3244
|
{
|
|
@@ -2789,6 +3366,24 @@ type IntentsProgram = {
|
|
|
2789
3366
|
}
|
|
2790
3367
|
];
|
|
2791
3368
|
constants: [
|
|
3369
|
+
{
|
|
3370
|
+
name: "clockDriftToleranceSecs";
|
|
3371
|
+
type: "u64";
|
|
3372
|
+
value: "300";
|
|
3373
|
+
},
|
|
3374
|
+
{
|
|
3375
|
+
name: "defaultFeeBps";
|
|
3376
|
+
type: "u32";
|
|
3377
|
+
value: "8";
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
name: "intentIdHashPrefix";
|
|
3381
|
+
docs: [
|
|
3382
|
+
"Used **only** as sub-seed for [IntentId][`crate::types::IntentId`]"
|
|
3383
|
+
];
|
|
3384
|
+
type: "bytes";
|
|
3385
|
+
value: "[105, 110, 116, 101, 110, 116, 95, 105, 100]";
|
|
3386
|
+
},
|
|
2792
3387
|
{
|
|
2793
3388
|
name: "intentStorageBaseSeed";
|
|
2794
3389
|
type: "bytes";
|
|
@@ -2830,10 +3425,6 @@ type TakeToken = {
|
|
|
2830
3425
|
chainId: number;
|
|
2831
3426
|
token: AddressType;
|
|
2832
3427
|
price: bigint;
|
|
2833
|
-
} | {
|
|
2834
|
-
chainId: Any;
|
|
2835
|
-
token?: never;
|
|
2836
|
-
price?: never;
|
|
2837
3428
|
} | {
|
|
2838
3429
|
chainId: number;
|
|
2839
3430
|
token: Any;
|
|
@@ -2884,7 +3475,7 @@ type ComputeBudget = {
|
|
|
2884
3475
|
price?: number;
|
|
2885
3476
|
};
|
|
2886
3477
|
interface ApproveProtocolTransfersParams {
|
|
2887
|
-
|
|
3478
|
+
maker: PublicKey;
|
|
2888
3479
|
tokens: {
|
|
2889
3480
|
mint: PublicKey;
|
|
2890
3481
|
amount: bigint;
|
|
@@ -2914,6 +3505,7 @@ interface InitIntentParams {
|
|
|
2914
3505
|
delegate?: PublicKey;
|
|
2915
3506
|
intent: {
|
|
2916
3507
|
id: Buffer;
|
|
3508
|
+
hash: Buffer;
|
|
2917
3509
|
data: Buffer;
|
|
2918
3510
|
inputTokensLength: number;
|
|
2919
3511
|
};
|
|
@@ -2927,6 +3519,7 @@ interface CreateAndUpdateIntentParams {
|
|
|
2927
3519
|
payer?: PublicKey;
|
|
2928
3520
|
delegate?: PublicKey;
|
|
2929
3521
|
intent: {
|
|
3522
|
+
hash: Buffer;
|
|
2930
3523
|
inputTokensLength: number;
|
|
2931
3524
|
} & UpdateIntentParams;
|
|
2932
3525
|
signature?: Buffer;
|
|
@@ -3080,12 +3673,13 @@ declare class IntentsClient {
|
|
|
3080
3673
|
private getSpace;
|
|
3081
3674
|
getState(connection: Connection): Promise<State | null>;
|
|
3082
3675
|
getIntentStorage(connection: Connection, intentId: Buffer$1): Promise<IntentStorage | null>;
|
|
3083
|
-
approveProtocolTransfersIxs({
|
|
3676
|
+
approveProtocolTransfersIxs({ maker, tokens, tokenProgram, }: ApproveProtocolTransfersParams): Promise<TransactionInstruction[]>;
|
|
3084
3677
|
private closeIntentIxs;
|
|
3085
3678
|
executeIntentIxs({ tradeId, intentId, taker, maker, tokenMint, dlnOrder, dlnMetadata, dlnSrc, tokenProgram, }: ExecuteIntentParams): Promise<TransactionInstruction[]>;
|
|
3086
3679
|
executeSameChainIntentIxs({ tradeId, intentId, taker, maker, tokenMint, receiver, amount, tokenProgram, }: ExecuteIntentSameChainParams): Promise<TransactionInstruction[]>;
|
|
3087
|
-
initIntentIxs(maker: PublicKey, payer: PublicKey, id: Buffer$1, encodedIntentLength: number, inputTokensAmount: number): Promise<TransactionInstruction[]>;
|
|
3088
|
-
initIntentUsingSigIxs(maker: PublicKey, payer: PublicKey, delegate: (PublicKey | null) | undefined,
|
|
3680
|
+
initIntentIxs(maker: PublicKey, payer: PublicKey, id: Buffer$1, encodedIntentHash: Buffer$1, encodedIntentLength: number, inputTokensAmount: number): Promise<TransactionInstruction[]>;
|
|
3681
|
+
initIntentUsingSigIxs(maker: PublicKey, payer: PublicKey, delegate: (PublicKey | null) | undefined, // TODO
|
|
3682
|
+
id: Buffer$1, encodedIntentHash: Buffer$1, encodedIntentLength: number, inputTokensAmount: number, signature: Buffer$1): Promise<TransactionInstruction[]>;
|
|
3089
3683
|
setDelegateApprovedBudgetsIxs({ maker, payer, delegate, nonce, tokens, }: DelegateApprovedBudgetsParams): Promise<TransactionInstruction[]>;
|
|
3090
3684
|
swapBeginIxs({ taker, maker, intentId, tradeId, beginAmount, // 0 for tests // transfer from random wallet to taker output amount, input / output = intent price
|
|
3091
3685
|
target, inputMint, outputMint, inputTokenProgram, outputTokenProgram, }: SwapBeginParams): Promise<TransactionInstruction[]>;
|
|
@@ -3130,15 +3724,10 @@ declare class Intent implements Serializable {
|
|
|
3130
3724
|
private serializeAddresses;
|
|
3131
3725
|
private serializeOptionalPubkey;
|
|
3132
3726
|
serialize(): Buffer;
|
|
3133
|
-
getId(): {
|
|
3134
|
-
hex: string;
|
|
3135
|
-
buffer: Buffer;
|
|
3136
|
-
};
|
|
3137
|
-
static getId(serializedIntent: Buffer): {
|
|
3727
|
+
static getId(serializedIntent: Buffer, maker: PublicKey, programId: PublicKey): {
|
|
3138
3728
|
hex: string;
|
|
3139
3729
|
buffer: Buffer;
|
|
3140
3730
|
};
|
|
3141
|
-
static getTextToSign(intent: Intent): string;
|
|
3142
3731
|
}
|
|
3143
3732
|
|
|
3144
3733
|
export { DEFAULT_RECORD_OFFSET, IDL, Intent, IntentsClient };
|