@triadxyz/triad-protocol 1.9.9-beta → 2.0.0-beta
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/trade.js
CHANGED
|
@@ -593,8 +593,8 @@ class Trade {
|
|
|
593
593
|
mint,
|
|
594
594
|
tokenProgram,
|
|
595
595
|
sellerAuthority: new web3_js_1.PublicKey(order.authority),
|
|
596
|
-
|
|
597
|
-
|
|
596
|
+
marketAta: (0, pda_2.getTokenATA)(marketPDA, mint, tokenProgram),
|
|
597
|
+
buyerAta: (0, pda_2.getTokenATA)(this.program.provider.publicKey, mint, tokenProgram)
|
|
598
598
|
})
|
|
599
599
|
.instruction());
|
|
600
600
|
remainingUSDC -= usdcAmount;
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
"writable": true
|
|
748
748
|
},
|
|
749
749
|
{
|
|
750
|
-
"name": "
|
|
750
|
+
"name": "seller_ata",
|
|
751
751
|
"writable": true,
|
|
752
752
|
"pda": {
|
|
753
753
|
"seeds": [
|
|
@@ -776,31 +776,7 @@
|
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
778
|
"name": "market_ata",
|
|
779
|
-
"writable": true
|
|
780
|
-
"pda": {
|
|
781
|
-
"seeds": [
|
|
782
|
-
{
|
|
783
|
-
"kind": "account",
|
|
784
|
-
"path": "market"
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
"kind": "account",
|
|
788
|
-
"path": "token_program"
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
"kind": "account",
|
|
792
|
-
"path": "mint"
|
|
793
|
-
}
|
|
794
|
-
],
|
|
795
|
-
"program": {
|
|
796
|
-
"kind": "const",
|
|
797
|
-
"value": [
|
|
798
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
799
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
800
|
-
219, 233, 248, 89
|
|
801
|
-
]
|
|
802
|
-
}
|
|
803
|
-
}
|
|
779
|
+
"writable": true
|
|
804
780
|
},
|
|
805
781
|
{
|
|
806
782
|
"name": "token_program"
|
|
@@ -860,15 +836,15 @@
|
|
|
860
836
|
"writable": true
|
|
861
837
|
},
|
|
862
838
|
{
|
|
863
|
-
"name": "
|
|
839
|
+
"name": "buyer_ata",
|
|
864
840
|
"writable": true
|
|
865
841
|
},
|
|
866
842
|
{
|
|
867
|
-
"name": "
|
|
843
|
+
"name": "market_ata",
|
|
868
844
|
"writable": true
|
|
869
845
|
},
|
|
870
846
|
{
|
|
871
|
-
"name": "
|
|
847
|
+
"name": "seller_ata",
|
|
872
848
|
"writable": true,
|
|
873
849
|
"pda": {
|
|
874
850
|
"seeds": [
|
|
@@ -1026,7 +1026,7 @@ export type TriadProtocol = {
|
|
|
1026
1026
|
writable: true;
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
name: '
|
|
1029
|
+
name: 'sellerAta';
|
|
1030
1030
|
writable: true;
|
|
1031
1031
|
pda: {
|
|
1032
1032
|
seeds: [
|
|
@@ -1085,59 +1085,6 @@ export type TriadProtocol = {
|
|
|
1085
1085
|
{
|
|
1086
1086
|
name: 'marketAta';
|
|
1087
1087
|
writable: true;
|
|
1088
|
-
pda: {
|
|
1089
|
-
seeds: [
|
|
1090
|
-
{
|
|
1091
|
-
kind: 'account';
|
|
1092
|
-
path: 'market';
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
kind: 'account';
|
|
1096
|
-
path: 'tokenProgram';
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
kind: 'account';
|
|
1100
|
-
path: 'mint';
|
|
1101
|
-
}
|
|
1102
|
-
];
|
|
1103
|
-
program: {
|
|
1104
|
-
kind: 'const';
|
|
1105
|
-
value: [
|
|
1106
|
-
140,
|
|
1107
|
-
151,
|
|
1108
|
-
37,
|
|
1109
|
-
143,
|
|
1110
|
-
78,
|
|
1111
|
-
36,
|
|
1112
|
-
137,
|
|
1113
|
-
241,
|
|
1114
|
-
187,
|
|
1115
|
-
61,
|
|
1116
|
-
16,
|
|
1117
|
-
41,
|
|
1118
|
-
20,
|
|
1119
|
-
142,
|
|
1120
|
-
13,
|
|
1121
|
-
131,
|
|
1122
|
-
11,
|
|
1123
|
-
90,
|
|
1124
|
-
19,
|
|
1125
|
-
153,
|
|
1126
|
-
218,
|
|
1127
|
-
255,
|
|
1128
|
-
16,
|
|
1129
|
-
132,
|
|
1130
|
-
4,
|
|
1131
|
-
142,
|
|
1132
|
-
123,
|
|
1133
|
-
216,
|
|
1134
|
-
219,
|
|
1135
|
-
233,
|
|
1136
|
-
248,
|
|
1137
|
-
89
|
|
1138
|
-
];
|
|
1139
|
-
};
|
|
1140
|
-
};
|
|
1141
1088
|
},
|
|
1142
1089
|
{
|
|
1143
1090
|
name: 'tokenProgram';
|
|
@@ -1197,15 +1144,15 @@ export type TriadProtocol = {
|
|
|
1197
1144
|
writable: true;
|
|
1198
1145
|
},
|
|
1199
1146
|
{
|
|
1200
|
-
name: '
|
|
1147
|
+
name: 'buyerAta';
|
|
1201
1148
|
writable: true;
|
|
1202
1149
|
},
|
|
1203
1150
|
{
|
|
1204
|
-
name: '
|
|
1151
|
+
name: 'marketAta';
|
|
1205
1152
|
writable: true;
|
|
1206
1153
|
},
|
|
1207
1154
|
{
|
|
1208
|
-
name: '
|
|
1155
|
+
name: 'sellerAta';
|
|
1209
1156
|
writable: true;
|
|
1210
1157
|
pda: {
|
|
1211
1158
|
seeds: [
|