@triadxyz/triad-protocol 2.2.0-beta → 2.2.2-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 +3 -51
- package/dist/index.js +2 -128
- package/dist/poseidon.d.ts +88 -0
- package/dist/poseidon.js +222 -0
- package/dist/trade.d.ts +1 -1
- package/dist/trade.js +6 -2
- package/dist/types/idl_triad_protocol.json +720 -75
- package/dist/types/poseidon.d.ts +15 -0
- package/dist/types/poseidon.js +2 -0
- package/dist/types/trade.d.ts +7 -6
- package/dist/types/triad_protocol.d.ts +1031 -96
- package/dist/utils/pda/poseidon.d.ts +1 -0
- package/dist/utils/pda/poseidon.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type CreateChestArgs = {
|
|
2
|
+
id: number;
|
|
3
|
+
initialPrizePool: number;
|
|
4
|
+
};
|
|
5
|
+
export type BidChestArgs = {
|
|
6
|
+
id: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
};
|
|
9
|
+
export type BuyChestTokenArgs = {
|
|
10
|
+
id: number;
|
|
11
|
+
amount: number;
|
|
12
|
+
};
|
|
13
|
+
export type CollectChestTokenArgs = {
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
package/dist/types/trade.d.ts
CHANGED
|
@@ -139,16 +139,17 @@ export type CreateMarketArgs = {
|
|
|
139
139
|
customer: PublicKey | null;
|
|
140
140
|
payoutFee: number;
|
|
141
141
|
mint: PublicKey;
|
|
142
|
+
poolId?: number;
|
|
142
143
|
};
|
|
143
144
|
export type CreatePoolArgs = {
|
|
144
145
|
poolId: number;
|
|
145
146
|
question: string;
|
|
146
|
-
startTime
|
|
147
|
-
endTime
|
|
148
|
-
feeBps
|
|
149
|
-
payoutFee
|
|
150
|
-
mint
|
|
151
|
-
customer
|
|
147
|
+
startTime?: number;
|
|
148
|
+
endTime?: number;
|
|
149
|
+
feeBps?: number;
|
|
150
|
+
payoutFee?: number;
|
|
151
|
+
mint?: PublicKey;
|
|
152
|
+
customer?: PublicKey | null;
|
|
152
153
|
markets: {
|
|
153
154
|
marketId: number;
|
|
154
155
|
question: string;
|