@triadxyz/triad-protocol 2.4.8-beta → 2.5.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.
@@ -143,6 +143,7 @@ export type CreateCustomerArgs = {
143
143
  name: string;
144
144
  authority: PublicKey;
145
145
  feeRecipient: PublicKey;
146
+ feeBps: number;
146
147
  };
147
148
  export type OpenOrderArgs = {
148
149
  marketId: number;
@@ -164,7 +165,7 @@ export type CreateMarketArgs = {
164
165
  feeBps: number;
165
166
  payoutFee: number;
166
167
  }[];
167
- customer: PublicKey | null;
168
+ customer: PublicKey;
168
169
  mint: PublicKey;
169
170
  poolId?: number;
170
171
  };
@@ -176,7 +177,7 @@ export type CreatePoolArgs = {
176
177
  feeBps: number;
177
178
  payoutFee: number;
178
179
  mint: PublicKey;
179
- customer?: PublicKey | null;
180
+ customer: PublicKey;
180
181
  markets: {
181
182
  marketId: number;
182
183
  question: string;
@@ -230,3 +231,9 @@ export type CollectMarketFeeArgs = {
230
231
  marketId: number;
231
232
  feeRecipient: PublicKey;
232
233
  };
234
+ export type Refer = {
235
+ id: number;
236
+ authority: string;
237
+ feeBps: number;
238
+ feeClaimed: number;
239
+ };
@@ -1,30 +1,14 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import BN from 'bn.js';
3
- export type StakeTokenArgs = {
4
- name: string;
5
- wallet: PublicKey;
6
- amount: number;
7
- };
8
3
  export type UpdateStakeVaultArgs = {
9
4
  amount?: BN;
10
5
  isLocked?: boolean;
11
6
  };
12
- export type RequestWithdrawArgs = {
13
- wallet: PublicKey;
14
- nfts: {
15
- name: string;
16
- mint: PublicKey;
17
- }[];
18
- };
19
7
  export type WithdrawArgs = {
20
8
  wallet: PublicKey;
21
9
  name: string;
22
10
  mint: PublicKey;
23
11
  };
24
- export type ClaimStakeRewardsArgs = {
25
- stake: Stake;
26
- collections: number;
27
- };
28
12
  export type StakeVault = {
29
13
  name: string;
30
14
  collection: string;
@@ -54,3 +38,18 @@ export type Stake = {
54
38
  available: number;
55
39
  amount: number;
56
40
  };
41
+ export type Unstake = {
42
+ bump: number;
43
+ authority: string;
44
+ amount: number;
45
+ withdrawTs: number;
46
+ };
47
+ export type StakeV3 = {
48
+ bump: number;
49
+ authority: string;
50
+ initTs: number;
51
+ checkedTs: number;
52
+ claimed: number;
53
+ available: number;
54
+ amount: number;
55
+ };