@triadxyz/triad-protocol 3.1.3-beta → 3.1.5-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/index.d.ts +20 -0
- package/dist/index.js +55 -3
- package/dist/types/idl_triad_protocol.json +234 -2
- package/dist/types/triad_protocol.d.ts +319 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -418,9 +418,29 @@ export default class TriadProtocolClient {
|
|
|
418
418
|
* @param args.markets.customerFeeRecipient - The address of the customer fee recipient
|
|
419
419
|
*/
|
|
420
420
|
collectMarketFee({ markets }: CollectMarketFeeArgs): Promise<string>;
|
|
421
|
+
/**
|
|
422
|
+
* Collect Market Order Fee
|
|
423
|
+
* @param marketAddress - The address of the market
|
|
424
|
+
*/
|
|
425
|
+
collectMarketOrderFee(marketAddress: PublicKey[]): Promise<string>;
|
|
421
426
|
/**
|
|
422
427
|
* Close Order Book
|
|
423
428
|
* @param marketIds - Market IDs
|
|
424
429
|
*/
|
|
425
430
|
closeOrderBook(marketIds: number[]): Promise<string>;
|
|
431
|
+
/**
|
|
432
|
+
* Update Pool Question
|
|
433
|
+
* @param poolId - Pool ID
|
|
434
|
+
* @param question - Question
|
|
435
|
+
*/
|
|
436
|
+
updatePoolQuestion(poolId: number, question: string): Promise<string>;
|
|
437
|
+
/**
|
|
438
|
+
* Update Customer Fee
|
|
439
|
+
* @param customerId - Customer ID
|
|
440
|
+
* @param feeBps - Fee in basis points
|
|
441
|
+
*/
|
|
442
|
+
updateCustomerFee({ customerId, feeBps }: {
|
|
443
|
+
customerId: number;
|
|
444
|
+
feeBps: number;
|
|
445
|
+
}): Promise<string>;
|
|
426
446
|
}
|
package/dist/index.js
CHANGED
|
@@ -1080,10 +1080,27 @@ class TriadProtocolClient {
|
|
|
1080
1080
|
.accounts({
|
|
1081
1081
|
signer: this.program.provider.publicKey,
|
|
1082
1082
|
market: market.marketAddress,
|
|
1083
|
-
mint: constants_1.USDC_MINT,
|
|
1084
1083
|
customer: (0, pda_1.getCustomerPDA)(this.program.programId, market.customerId),
|
|
1085
|
-
customerFeeRecipient: market.customerFeeRecipient
|
|
1086
|
-
|
|
1084
|
+
customerFeeRecipient: market.customerFeeRecipient
|
|
1085
|
+
})
|
|
1086
|
+
.instruction());
|
|
1087
|
+
}
|
|
1088
|
+
return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Collect Market Order Fee
|
|
1093
|
+
* @param marketAddress - The address of the market
|
|
1094
|
+
*/
|
|
1095
|
+
collectMarketOrderFee(marketAddress) {
|
|
1096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1097
|
+
const ixs = [];
|
|
1098
|
+
for (const market of marketAddress) {
|
|
1099
|
+
ixs.push(yield this.program.methods
|
|
1100
|
+
.collectMarketOrderFee()
|
|
1101
|
+
.accounts({
|
|
1102
|
+
signer: this.program.provider.publicKey,
|
|
1103
|
+
market: market
|
|
1087
1104
|
})
|
|
1088
1105
|
.instruction());
|
|
1089
1106
|
}
|
|
@@ -1110,5 +1127,40 @@ class TriadProtocolClient {
|
|
|
1110
1127
|
return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
|
|
1111
1128
|
});
|
|
1112
1129
|
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Update Pool Question
|
|
1132
|
+
* @param poolId - Pool ID
|
|
1133
|
+
* @param question - Question
|
|
1134
|
+
*/
|
|
1135
|
+
updatePoolQuestion(poolId, question) {
|
|
1136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1137
|
+
const ixs = [];
|
|
1138
|
+
ixs.push(yield this.program.methods
|
|
1139
|
+
.updatePoolQuestion((0, helpers_1.encodeString)(question, 80))
|
|
1140
|
+
.accounts({
|
|
1141
|
+
signer: this.program.provider.publicKey,
|
|
1142
|
+
pool: (0, pda_1.getPoolPDA)(this.program.programId, poolId)
|
|
1143
|
+
})
|
|
1144
|
+
.instruction());
|
|
1145
|
+
return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Update Customer Fee
|
|
1150
|
+
* @param customerId - Customer ID
|
|
1151
|
+
* @param feeBps - Fee in basis points
|
|
1152
|
+
*/
|
|
1153
|
+
updateCustomerFee({ customerId, feeBps }) {
|
|
1154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1155
|
+
const ixs = [];
|
|
1156
|
+
ixs.push(yield this.program.methods
|
|
1157
|
+
.updateCustomerFee({ id: customerId, feeBps })
|
|
1158
|
+
.accounts({
|
|
1159
|
+
signer: this.program.provider.publicKey
|
|
1160
|
+
})
|
|
1161
|
+
.instruction());
|
|
1162
|
+
return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1113
1165
|
}
|
|
1114
1166
|
exports.default = TriadProtocolClient;
|
|
@@ -712,7 +712,8 @@
|
|
|
712
712
|
},
|
|
713
713
|
{
|
|
714
714
|
"name": "mint",
|
|
715
|
-
"writable": true
|
|
715
|
+
"writable": true,
|
|
716
|
+
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
|
716
717
|
},
|
|
717
718
|
{
|
|
718
719
|
"name": "market_ata",
|
|
@@ -799,7 +800,130 @@
|
|
|
799
800
|
}
|
|
800
801
|
},
|
|
801
802
|
{
|
|
802
|
-
"name": "
|
|
803
|
+
"name": "stake_vault_ata",
|
|
804
|
+
"writable": true,
|
|
805
|
+
"pda": {
|
|
806
|
+
"seeds": [
|
|
807
|
+
{
|
|
808
|
+
"kind": "account",
|
|
809
|
+
"path": "stake_vault"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"kind": "account",
|
|
813
|
+
"path": "token_program"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"kind": "account",
|
|
817
|
+
"path": "mint"
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
"program": {
|
|
821
|
+
"kind": "const",
|
|
822
|
+
"value": [
|
|
823
|
+
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
824
|
+
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
825
|
+
219, 233, 248, 89
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "token_program",
|
|
832
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"name": "associated_token_program",
|
|
836
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "system_program",
|
|
840
|
+
"address": "11111111111111111111111111111111"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"args": []
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "collect_market_order_fee",
|
|
847
|
+
"discriminator": [127, 95, 245, 217, 143, 141, 206, 34],
|
|
848
|
+
"accounts": [
|
|
849
|
+
{
|
|
850
|
+
"name": "signer",
|
|
851
|
+
"writable": true,
|
|
852
|
+
"signer": true
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "squads",
|
|
856
|
+
"writable": true,
|
|
857
|
+
"address": "Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "market",
|
|
861
|
+
"writable": true
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "mint",
|
|
865
|
+
"writable": true,
|
|
866
|
+
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "market_ata",
|
|
870
|
+
"writable": true,
|
|
871
|
+
"pda": {
|
|
872
|
+
"seeds": [
|
|
873
|
+
{
|
|
874
|
+
"kind": "account",
|
|
875
|
+
"path": "market"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"kind": "account",
|
|
879
|
+
"path": "token_program"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"kind": "account",
|
|
883
|
+
"path": "mint"
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
"program": {
|
|
887
|
+
"kind": "const",
|
|
888
|
+
"value": [
|
|
889
|
+
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
890
|
+
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
891
|
+
219, 233, 248, 89
|
|
892
|
+
]
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "squads_ata",
|
|
898
|
+
"writable": true,
|
|
899
|
+
"pda": {
|
|
900
|
+
"seeds": [
|
|
901
|
+
{
|
|
902
|
+
"kind": "account",
|
|
903
|
+
"path": "squads"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "account",
|
|
907
|
+
"path": "token_program"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"kind": "account",
|
|
911
|
+
"path": "mint"
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
"program": {
|
|
915
|
+
"kind": "const",
|
|
916
|
+
"value": [
|
|
917
|
+
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
918
|
+
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
919
|
+
219, 233, 248, 89
|
|
920
|
+
]
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"name": "token_program",
|
|
926
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
803
927
|
},
|
|
804
928
|
{
|
|
805
929
|
"name": "associated_token_program",
|
|
@@ -2442,6 +2566,47 @@
|
|
|
2442
2566
|
}
|
|
2443
2567
|
]
|
|
2444
2568
|
},
|
|
2569
|
+
{
|
|
2570
|
+
"name": "update_customer_fee",
|
|
2571
|
+
"discriminator": [218, 240, 1, 38, 34, 166, 40, 25],
|
|
2572
|
+
"accounts": [
|
|
2573
|
+
{
|
|
2574
|
+
"name": "signer",
|
|
2575
|
+
"writable": true,
|
|
2576
|
+
"signer": true
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
"name": "customer",
|
|
2580
|
+
"writable": true,
|
|
2581
|
+
"pda": {
|
|
2582
|
+
"seeds": [
|
|
2583
|
+
{
|
|
2584
|
+
"kind": "const",
|
|
2585
|
+
"value": [99, 117, 115, 116, 111, 109, 101, 114]
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
"kind": "arg",
|
|
2589
|
+
"path": "args.id"
|
|
2590
|
+
}
|
|
2591
|
+
]
|
|
2592
|
+
}
|
|
2593
|
+
},
|
|
2594
|
+
{
|
|
2595
|
+
"name": "system_program",
|
|
2596
|
+
"address": "11111111111111111111111111111111"
|
|
2597
|
+
}
|
|
2598
|
+
],
|
|
2599
|
+
"args": [
|
|
2600
|
+
{
|
|
2601
|
+
"name": "args",
|
|
2602
|
+
"type": {
|
|
2603
|
+
"defined": {
|
|
2604
|
+
"name": "UpdateCustomerFeeArgs"
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
]
|
|
2609
|
+
},
|
|
2445
2610
|
{
|
|
2446
2611
|
"name": "update_market_end",
|
|
2447
2612
|
"discriminator": [10, 188, 22, 219, 206, 83, 67, 31],
|
|
@@ -2553,6 +2718,33 @@
|
|
|
2553
2718
|
}
|
|
2554
2719
|
]
|
|
2555
2720
|
},
|
|
2721
|
+
{
|
|
2722
|
+
"name": "update_pool_question",
|
|
2723
|
+
"discriminator": [248, 60, 128, 181, 157, 182, 51, 166],
|
|
2724
|
+
"accounts": [
|
|
2725
|
+
{
|
|
2726
|
+
"name": "signer",
|
|
2727
|
+
"writable": true,
|
|
2728
|
+
"signer": true
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
"name": "pool",
|
|
2732
|
+
"writable": true
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"name": "system_program",
|
|
2736
|
+
"address": "11111111111111111111111111111111"
|
|
2737
|
+
}
|
|
2738
|
+
],
|
|
2739
|
+
"args": [
|
|
2740
|
+
{
|
|
2741
|
+
"name": "question",
|
|
2742
|
+
"type": {
|
|
2743
|
+
"array": ["u8", 80]
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
]
|
|
2747
|
+
},
|
|
2556
2748
|
{
|
|
2557
2749
|
"name": "update_stake_vault_is_locked",
|
|
2558
2750
|
"discriminator": [239, 65, 219, 190, 157, 173, 139, 226],
|
|
@@ -2704,6 +2896,10 @@
|
|
|
2704
2896
|
"name": "CollectMarketFeeEvent",
|
|
2705
2897
|
"discriminator": [210, 147, 203, 216, 158, 111, 59, 143]
|
|
2706
2898
|
},
|
|
2899
|
+
{
|
|
2900
|
+
"name": "CollectMarketOrderFeeEvent",
|
|
2901
|
+
"discriminator": [161, 42, 44, 15, 110, 57, 203, 165]
|
|
2902
|
+
},
|
|
2707
2903
|
{
|
|
2708
2904
|
"name": "MarketEvent",
|
|
2709
2905
|
"discriminator": [212, 67, 145, 23, 58, 104, 52, 83]
|
|
@@ -3291,6 +3487,26 @@
|
|
|
3291
3487
|
]
|
|
3292
3488
|
}
|
|
3293
3489
|
},
|
|
3490
|
+
{
|
|
3491
|
+
"name": "CollectMarketOrderFeeEvent",
|
|
3492
|
+
"type": {
|
|
3493
|
+
"kind": "struct",
|
|
3494
|
+
"fields": [
|
|
3495
|
+
{
|
|
3496
|
+
"name": "market_id",
|
|
3497
|
+
"type": "u64"
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"name": "fee",
|
|
3501
|
+
"type": "u64"
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"name": "timestamp",
|
|
3505
|
+
"type": "i64"
|
|
3506
|
+
}
|
|
3507
|
+
]
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3294
3510
|
{
|
|
3295
3511
|
"name": "Collection",
|
|
3296
3512
|
"type": {
|
|
@@ -4538,6 +4754,22 @@
|
|
|
4538
4754
|
]
|
|
4539
4755
|
}
|
|
4540
4756
|
},
|
|
4757
|
+
{
|
|
4758
|
+
"name": "UpdateCustomerFeeArgs",
|
|
4759
|
+
"type": {
|
|
4760
|
+
"kind": "struct",
|
|
4761
|
+
"fields": [
|
|
4762
|
+
{
|
|
4763
|
+
"name": "id",
|
|
4764
|
+
"type": "u16"
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
"name": "fee_bps",
|
|
4768
|
+
"type": "u16"
|
|
4769
|
+
}
|
|
4770
|
+
]
|
|
4771
|
+
}
|
|
4772
|
+
},
|
|
4541
4773
|
{
|
|
4542
4774
|
"name": "UserTrade",
|
|
4543
4775
|
"type": {
|
|
@@ -1043,6 +1043,7 @@ export type TriadProtocol = {
|
|
|
1043
1043
|
{
|
|
1044
1044
|
name: 'mint';
|
|
1045
1045
|
writable: true;
|
|
1046
|
+
address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
|
|
1046
1047
|
},
|
|
1047
1048
|
{
|
|
1048
1049
|
name: 'marketAta';
|
|
@@ -1215,8 +1216,218 @@ export type TriadProtocol = {
|
|
|
1215
1216
|
};
|
|
1216
1217
|
};
|
|
1217
1218
|
},
|
|
1219
|
+
{
|
|
1220
|
+
name: 'stakeVaultAta';
|
|
1221
|
+
writable: true;
|
|
1222
|
+
pda: {
|
|
1223
|
+
seeds: [
|
|
1224
|
+
{
|
|
1225
|
+
kind: 'account';
|
|
1226
|
+
path: 'stakeVault';
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
kind: 'account';
|
|
1230
|
+
path: 'tokenProgram';
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
kind: 'account';
|
|
1234
|
+
path: 'mint';
|
|
1235
|
+
}
|
|
1236
|
+
];
|
|
1237
|
+
program: {
|
|
1238
|
+
kind: 'const';
|
|
1239
|
+
value: [
|
|
1240
|
+
140,
|
|
1241
|
+
151,
|
|
1242
|
+
37,
|
|
1243
|
+
143,
|
|
1244
|
+
78,
|
|
1245
|
+
36,
|
|
1246
|
+
137,
|
|
1247
|
+
241,
|
|
1248
|
+
187,
|
|
1249
|
+
61,
|
|
1250
|
+
16,
|
|
1251
|
+
41,
|
|
1252
|
+
20,
|
|
1253
|
+
142,
|
|
1254
|
+
13,
|
|
1255
|
+
131,
|
|
1256
|
+
11,
|
|
1257
|
+
90,
|
|
1258
|
+
19,
|
|
1259
|
+
153,
|
|
1260
|
+
218,
|
|
1261
|
+
255,
|
|
1262
|
+
16,
|
|
1263
|
+
132,
|
|
1264
|
+
4,
|
|
1265
|
+
142,
|
|
1266
|
+
123,
|
|
1267
|
+
216,
|
|
1268
|
+
219,
|
|
1269
|
+
233,
|
|
1270
|
+
248,
|
|
1271
|
+
89
|
|
1272
|
+
];
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
name: 'tokenProgram';
|
|
1278
|
+
address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
name: 'associatedTokenProgram';
|
|
1282
|
+
address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
name: 'systemProgram';
|
|
1286
|
+
address: '11111111111111111111111111111111';
|
|
1287
|
+
}
|
|
1288
|
+
];
|
|
1289
|
+
args: [];
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
name: 'collectMarketOrderFee';
|
|
1293
|
+
discriminator: [127, 95, 245, 217, 143, 141, 206, 34];
|
|
1294
|
+
accounts: [
|
|
1295
|
+
{
|
|
1296
|
+
name: 'signer';
|
|
1297
|
+
writable: true;
|
|
1298
|
+
signer: true;
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
name: 'squads';
|
|
1302
|
+
writable: true;
|
|
1303
|
+
address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
name: 'market';
|
|
1307
|
+
writable: true;
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
name: 'mint';
|
|
1311
|
+
writable: true;
|
|
1312
|
+
address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
name: 'marketAta';
|
|
1316
|
+
writable: true;
|
|
1317
|
+
pda: {
|
|
1318
|
+
seeds: [
|
|
1319
|
+
{
|
|
1320
|
+
kind: 'account';
|
|
1321
|
+
path: 'market';
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
kind: 'account';
|
|
1325
|
+
path: 'tokenProgram';
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
kind: 'account';
|
|
1329
|
+
path: 'mint';
|
|
1330
|
+
}
|
|
1331
|
+
];
|
|
1332
|
+
program: {
|
|
1333
|
+
kind: 'const';
|
|
1334
|
+
value: [
|
|
1335
|
+
140,
|
|
1336
|
+
151,
|
|
1337
|
+
37,
|
|
1338
|
+
143,
|
|
1339
|
+
78,
|
|
1340
|
+
36,
|
|
1341
|
+
137,
|
|
1342
|
+
241,
|
|
1343
|
+
187,
|
|
1344
|
+
61,
|
|
1345
|
+
16,
|
|
1346
|
+
41,
|
|
1347
|
+
20,
|
|
1348
|
+
142,
|
|
1349
|
+
13,
|
|
1350
|
+
131,
|
|
1351
|
+
11,
|
|
1352
|
+
90,
|
|
1353
|
+
19,
|
|
1354
|
+
153,
|
|
1355
|
+
218,
|
|
1356
|
+
255,
|
|
1357
|
+
16,
|
|
1358
|
+
132,
|
|
1359
|
+
4,
|
|
1360
|
+
142,
|
|
1361
|
+
123,
|
|
1362
|
+
216,
|
|
1363
|
+
219,
|
|
1364
|
+
233,
|
|
1365
|
+
248,
|
|
1366
|
+
89
|
|
1367
|
+
];
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
name: 'squadsAta';
|
|
1373
|
+
writable: true;
|
|
1374
|
+
pda: {
|
|
1375
|
+
seeds: [
|
|
1376
|
+
{
|
|
1377
|
+
kind: 'account';
|
|
1378
|
+
path: 'squads';
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
kind: 'account';
|
|
1382
|
+
path: 'tokenProgram';
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
kind: 'account';
|
|
1386
|
+
path: 'mint';
|
|
1387
|
+
}
|
|
1388
|
+
];
|
|
1389
|
+
program: {
|
|
1390
|
+
kind: 'const';
|
|
1391
|
+
value: [
|
|
1392
|
+
140,
|
|
1393
|
+
151,
|
|
1394
|
+
37,
|
|
1395
|
+
143,
|
|
1396
|
+
78,
|
|
1397
|
+
36,
|
|
1398
|
+
137,
|
|
1399
|
+
241,
|
|
1400
|
+
187,
|
|
1401
|
+
61,
|
|
1402
|
+
16,
|
|
1403
|
+
41,
|
|
1404
|
+
20,
|
|
1405
|
+
142,
|
|
1406
|
+
13,
|
|
1407
|
+
131,
|
|
1408
|
+
11,
|
|
1409
|
+
90,
|
|
1410
|
+
19,
|
|
1411
|
+
153,
|
|
1412
|
+
218,
|
|
1413
|
+
255,
|
|
1414
|
+
16,
|
|
1415
|
+
132,
|
|
1416
|
+
4,
|
|
1417
|
+
142,
|
|
1418
|
+
123,
|
|
1419
|
+
216,
|
|
1420
|
+
219,
|
|
1421
|
+
233,
|
|
1422
|
+
248,
|
|
1423
|
+
89
|
|
1424
|
+
];
|
|
1425
|
+
};
|
|
1426
|
+
};
|
|
1427
|
+
},
|
|
1218
1428
|
{
|
|
1219
1429
|
name: 'tokenProgram';
|
|
1430
|
+
address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
|
|
1220
1431
|
},
|
|
1221
1432
|
{
|
|
1222
1433
|
name: 'associatedTokenProgram';
|
|
@@ -3388,6 +3599,47 @@ export type TriadProtocol = {
|
|
|
3388
3599
|
}
|
|
3389
3600
|
];
|
|
3390
3601
|
},
|
|
3602
|
+
{
|
|
3603
|
+
name: 'updateCustomerFee';
|
|
3604
|
+
discriminator: [218, 240, 1, 38, 34, 166, 40, 25];
|
|
3605
|
+
accounts: [
|
|
3606
|
+
{
|
|
3607
|
+
name: 'signer';
|
|
3608
|
+
writable: true;
|
|
3609
|
+
signer: true;
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
name: 'customer';
|
|
3613
|
+
writable: true;
|
|
3614
|
+
pda: {
|
|
3615
|
+
seeds: [
|
|
3616
|
+
{
|
|
3617
|
+
kind: 'const';
|
|
3618
|
+
value: [99, 117, 115, 116, 111, 109, 101, 114];
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
kind: 'arg';
|
|
3622
|
+
path: 'args.id';
|
|
3623
|
+
}
|
|
3624
|
+
];
|
|
3625
|
+
};
|
|
3626
|
+
},
|
|
3627
|
+
{
|
|
3628
|
+
name: 'systemProgram';
|
|
3629
|
+
address: '11111111111111111111111111111111';
|
|
3630
|
+
}
|
|
3631
|
+
];
|
|
3632
|
+
args: [
|
|
3633
|
+
{
|
|
3634
|
+
name: 'args';
|
|
3635
|
+
type: {
|
|
3636
|
+
defined: {
|
|
3637
|
+
name: 'updateCustomerFeeArgs';
|
|
3638
|
+
};
|
|
3639
|
+
};
|
|
3640
|
+
}
|
|
3641
|
+
];
|
|
3642
|
+
},
|
|
3391
3643
|
{
|
|
3392
3644
|
name: 'updateMarketEnd';
|
|
3393
3645
|
discriminator: [10, 188, 22, 219, 206, 83, 67, 31];
|
|
@@ -3499,6 +3751,33 @@ export type TriadProtocol = {
|
|
|
3499
3751
|
}
|
|
3500
3752
|
];
|
|
3501
3753
|
},
|
|
3754
|
+
{
|
|
3755
|
+
name: 'updatePoolQuestion';
|
|
3756
|
+
discriminator: [248, 60, 128, 181, 157, 182, 51, 166];
|
|
3757
|
+
accounts: [
|
|
3758
|
+
{
|
|
3759
|
+
name: 'signer';
|
|
3760
|
+
writable: true;
|
|
3761
|
+
signer: true;
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
name: 'pool';
|
|
3765
|
+
writable: true;
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
name: 'systemProgram';
|
|
3769
|
+
address: '11111111111111111111111111111111';
|
|
3770
|
+
}
|
|
3771
|
+
];
|
|
3772
|
+
args: [
|
|
3773
|
+
{
|
|
3774
|
+
name: 'question';
|
|
3775
|
+
type: {
|
|
3776
|
+
array: ['u8', 80];
|
|
3777
|
+
};
|
|
3778
|
+
}
|
|
3779
|
+
];
|
|
3780
|
+
},
|
|
3502
3781
|
{
|
|
3503
3782
|
name: 'updateStakeVaultIsLocked';
|
|
3504
3783
|
discriminator: [239, 65, 219, 190, 157, 173, 139, 226];
|
|
@@ -3662,6 +3941,10 @@ export type TriadProtocol = {
|
|
|
3662
3941
|
name: 'collectMarketFeeEvent';
|
|
3663
3942
|
discriminator: [210, 147, 203, 216, 158, 111, 59, 143];
|
|
3664
3943
|
},
|
|
3944
|
+
{
|
|
3945
|
+
name: 'collectMarketOrderFeeEvent';
|
|
3946
|
+
discriminator: [161, 42, 44, 15, 110, 57, 203, 165];
|
|
3947
|
+
},
|
|
3665
3948
|
{
|
|
3666
3949
|
name: 'marketEvent';
|
|
3667
3950
|
discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
|
|
@@ -4249,6 +4532,26 @@ export type TriadProtocol = {
|
|
|
4249
4532
|
];
|
|
4250
4533
|
};
|
|
4251
4534
|
},
|
|
4535
|
+
{
|
|
4536
|
+
name: 'collectMarketOrderFeeEvent';
|
|
4537
|
+
type: {
|
|
4538
|
+
kind: 'struct';
|
|
4539
|
+
fields: [
|
|
4540
|
+
{
|
|
4541
|
+
name: 'marketId';
|
|
4542
|
+
type: 'u64';
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
name: 'fee';
|
|
4546
|
+
type: 'u64';
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
name: 'timestamp';
|
|
4550
|
+
type: 'i64';
|
|
4551
|
+
}
|
|
4552
|
+
];
|
|
4553
|
+
};
|
|
4554
|
+
},
|
|
4252
4555
|
{
|
|
4253
4556
|
name: 'collection';
|
|
4254
4557
|
type: {
|
|
@@ -5496,6 +5799,22 @@ export type TriadProtocol = {
|
|
|
5496
5799
|
];
|
|
5497
5800
|
};
|
|
5498
5801
|
},
|
|
5802
|
+
{
|
|
5803
|
+
name: 'updateCustomerFeeArgs';
|
|
5804
|
+
type: {
|
|
5805
|
+
kind: 'struct';
|
|
5806
|
+
fields: [
|
|
5807
|
+
{
|
|
5808
|
+
name: 'id';
|
|
5809
|
+
type: 'u16';
|
|
5810
|
+
},
|
|
5811
|
+
{
|
|
5812
|
+
name: 'feeBps';
|
|
5813
|
+
type: 'u16';
|
|
5814
|
+
}
|
|
5815
|
+
];
|
|
5816
|
+
};
|
|
5817
|
+
},
|
|
5499
5818
|
{
|
|
5500
5819
|
name: 'userTrade';
|
|
5501
5820
|
type: {
|