@bench.games/opportunity-markets 0.2.6 → 0.2.7
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/browser/index.js +128 -134
- package/dist/index.cjs +14 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -12
- package/dist/index.d.ts +9 -12
- package/dist/index.js +128 -134
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -48,6 +48,8 @@ type CentralState = {
|
|
|
48
48
|
protocolFeeBp: number;
|
|
49
49
|
feeRecipient: Address;
|
|
50
50
|
minimumInitialRevealPeriod: bigint;
|
|
51
|
+
/** Reserved for future use */
|
|
52
|
+
reserved: Array<number>;
|
|
51
53
|
};
|
|
52
54
|
type CentralStateArgs = {
|
|
53
55
|
bump: number;
|
|
@@ -57,6 +59,8 @@ type CentralStateArgs = {
|
|
|
57
59
|
protocolFeeBp: number;
|
|
58
60
|
feeRecipient: Address;
|
|
59
61
|
minimumInitialRevealPeriod: number | bigint;
|
|
62
|
+
/** Reserved for future use */
|
|
63
|
+
reserved: Array<number>;
|
|
60
64
|
};
|
|
61
65
|
declare function getCentralStateEncoder(): FixedSizeEncoder<CentralStateArgs>;
|
|
62
66
|
declare function getCentralStateDecoder(): FixedSizeDecoder<CentralState>;
|
|
@@ -1420,17 +1424,19 @@ declare function getTokenVaultDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuff
|
|
|
1420
1424
|
type TokenVault = {
|
|
1421
1425
|
discriminator: ReadonlyUint8Array;
|
|
1422
1426
|
bump: number;
|
|
1423
|
-
fundManager: Address;
|
|
1424
1427
|
mint: Address;
|
|
1425
1428
|
collectedFees: bigint;
|
|
1426
1429
|
protocolFeeBp: number;
|
|
1430
|
+
/** Reserved for future use */
|
|
1431
|
+
reserved: Array<number>;
|
|
1427
1432
|
};
|
|
1428
1433
|
type TokenVaultArgs = {
|
|
1429
1434
|
bump: number;
|
|
1430
|
-
fundManager: Address;
|
|
1431
1435
|
mint: Address;
|
|
1432
1436
|
collectedFees: number | bigint;
|
|
1433
1437
|
protocolFeeBp: number;
|
|
1438
|
+
/** Reserved for future use */
|
|
1439
|
+
reserved: Array<number>;
|
|
1434
1440
|
};
|
|
1435
1441
|
declare function getTokenVaultEncoder(): FixedSizeEncoder<TokenVaultArgs>;
|
|
1436
1442
|
declare function getTokenVaultDecoder(): FixedSizeDecoder<TokenVault>;
|
|
@@ -2473,11 +2479,8 @@ type InitTokenVaultInstruction<TProgram extends string = typeof OPPORTUNITY_MARK
|
|
|
2473
2479
|
]>;
|
|
2474
2480
|
type InitTokenVaultInstructionData = {
|
|
2475
2481
|
discriminator: ReadonlyUint8Array;
|
|
2476
|
-
fundManager: Address;
|
|
2477
|
-
};
|
|
2478
|
-
type InitTokenVaultInstructionDataArgs = {
|
|
2479
|
-
fundManager: Address;
|
|
2480
2482
|
};
|
|
2483
|
+
type InitTokenVaultInstructionDataArgs = {};
|
|
2481
2484
|
declare function getInitTokenVaultInstructionDataEncoder(): FixedSizeEncoder<InitTokenVaultInstructionDataArgs>;
|
|
2482
2485
|
declare function getInitTokenVaultInstructionDataDecoder(): FixedSizeDecoder<InitTokenVaultInstructionData>;
|
|
2483
2486
|
declare function getInitTokenVaultInstructionDataCodec(): FixedSizeCodec<InitTokenVaultInstructionDataArgs, InitTokenVaultInstructionData>;
|
|
@@ -2487,7 +2490,6 @@ type InitTokenVaultAsyncInput<TAccountPayer extends string = string, TAccountTok
|
|
|
2487
2490
|
tokenVault?: Address<TAccountTokenVault>;
|
|
2488
2491
|
centralState?: Address<TAccountCentralState>;
|
|
2489
2492
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2490
|
-
fundManager: InitTokenVaultInstructionDataArgs['fundManager'];
|
|
2491
2493
|
};
|
|
2492
2494
|
declare function getInitTokenVaultInstructionAsync<TAccountPayer extends string, TAccountTokenMint extends string, TAccountTokenVault extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitTokenVaultAsyncInput<TAccountPayer, TAccountTokenMint, TAccountTokenVault, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2493
2495
|
programAddress?: TProgramAddress;
|
|
@@ -2498,7 +2500,6 @@ type InitTokenVaultInput<TAccountPayer extends string = string, TAccountTokenMin
|
|
|
2498
2500
|
tokenVault: Address<TAccountTokenVault>;
|
|
2499
2501
|
centralState: Address<TAccountCentralState>;
|
|
2500
2502
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2501
|
-
fundManager: InitTokenVaultInstructionDataArgs['fundManager'];
|
|
2502
2503
|
};
|
|
2503
2504
|
declare function getInitTokenVaultInstruction<TAccountPayer extends string, TAccountTokenMint extends string, TAccountTokenVault extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitTokenVaultInput<TAccountPayer, TAccountTokenMint, TAccountTokenVault, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2504
2505
|
programAddress?: TProgramAddress;
|
|
@@ -3466,12 +3467,8 @@ interface BaseInstructionParams {
|
|
|
3466
3467
|
}
|
|
3467
3468
|
|
|
3468
3469
|
interface InitTokenVaultParams extends BaseInstructionParams {
|
|
3469
|
-
/** The signer/payer for the transaction */
|
|
3470
3470
|
payer: TransactionSigner;
|
|
3471
|
-
/** The token mint for this vault */
|
|
3472
3471
|
tokenMint: Address;
|
|
3473
|
-
/** Address that can withdraw tokens from the vault */
|
|
3474
|
-
fundManager: Address;
|
|
3475
3472
|
}
|
|
3476
3473
|
declare function initTokenVault(input: InitTokenVaultParams): Promise<InitTokenVaultInstruction<string>>;
|
|
3477
3474
|
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ type CentralState = {
|
|
|
48
48
|
protocolFeeBp: number;
|
|
49
49
|
feeRecipient: Address;
|
|
50
50
|
minimumInitialRevealPeriod: bigint;
|
|
51
|
+
/** Reserved for future use */
|
|
52
|
+
reserved: Array<number>;
|
|
51
53
|
};
|
|
52
54
|
type CentralStateArgs = {
|
|
53
55
|
bump: number;
|
|
@@ -57,6 +59,8 @@ type CentralStateArgs = {
|
|
|
57
59
|
protocolFeeBp: number;
|
|
58
60
|
feeRecipient: Address;
|
|
59
61
|
minimumInitialRevealPeriod: number | bigint;
|
|
62
|
+
/** Reserved for future use */
|
|
63
|
+
reserved: Array<number>;
|
|
60
64
|
};
|
|
61
65
|
declare function getCentralStateEncoder(): FixedSizeEncoder<CentralStateArgs>;
|
|
62
66
|
declare function getCentralStateDecoder(): FixedSizeDecoder<CentralState>;
|
|
@@ -1420,17 +1424,19 @@ declare function getTokenVaultDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuff
|
|
|
1420
1424
|
type TokenVault = {
|
|
1421
1425
|
discriminator: ReadonlyUint8Array;
|
|
1422
1426
|
bump: number;
|
|
1423
|
-
fundManager: Address;
|
|
1424
1427
|
mint: Address;
|
|
1425
1428
|
collectedFees: bigint;
|
|
1426
1429
|
protocolFeeBp: number;
|
|
1430
|
+
/** Reserved for future use */
|
|
1431
|
+
reserved: Array<number>;
|
|
1427
1432
|
};
|
|
1428
1433
|
type TokenVaultArgs = {
|
|
1429
1434
|
bump: number;
|
|
1430
|
-
fundManager: Address;
|
|
1431
1435
|
mint: Address;
|
|
1432
1436
|
collectedFees: number | bigint;
|
|
1433
1437
|
protocolFeeBp: number;
|
|
1438
|
+
/** Reserved for future use */
|
|
1439
|
+
reserved: Array<number>;
|
|
1434
1440
|
};
|
|
1435
1441
|
declare function getTokenVaultEncoder(): FixedSizeEncoder<TokenVaultArgs>;
|
|
1436
1442
|
declare function getTokenVaultDecoder(): FixedSizeDecoder<TokenVault>;
|
|
@@ -2473,11 +2479,8 @@ type InitTokenVaultInstruction<TProgram extends string = typeof OPPORTUNITY_MARK
|
|
|
2473
2479
|
]>;
|
|
2474
2480
|
type InitTokenVaultInstructionData = {
|
|
2475
2481
|
discriminator: ReadonlyUint8Array;
|
|
2476
|
-
fundManager: Address;
|
|
2477
|
-
};
|
|
2478
|
-
type InitTokenVaultInstructionDataArgs = {
|
|
2479
|
-
fundManager: Address;
|
|
2480
2482
|
};
|
|
2483
|
+
type InitTokenVaultInstructionDataArgs = {};
|
|
2481
2484
|
declare function getInitTokenVaultInstructionDataEncoder(): FixedSizeEncoder<InitTokenVaultInstructionDataArgs>;
|
|
2482
2485
|
declare function getInitTokenVaultInstructionDataDecoder(): FixedSizeDecoder<InitTokenVaultInstructionData>;
|
|
2483
2486
|
declare function getInitTokenVaultInstructionDataCodec(): FixedSizeCodec<InitTokenVaultInstructionDataArgs, InitTokenVaultInstructionData>;
|
|
@@ -2487,7 +2490,6 @@ type InitTokenVaultAsyncInput<TAccountPayer extends string = string, TAccountTok
|
|
|
2487
2490
|
tokenVault?: Address<TAccountTokenVault>;
|
|
2488
2491
|
centralState?: Address<TAccountCentralState>;
|
|
2489
2492
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2490
|
-
fundManager: InitTokenVaultInstructionDataArgs['fundManager'];
|
|
2491
2493
|
};
|
|
2492
2494
|
declare function getInitTokenVaultInstructionAsync<TAccountPayer extends string, TAccountTokenMint extends string, TAccountTokenVault extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitTokenVaultAsyncInput<TAccountPayer, TAccountTokenMint, TAccountTokenVault, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2493
2495
|
programAddress?: TProgramAddress;
|
|
@@ -2498,7 +2500,6 @@ type InitTokenVaultInput<TAccountPayer extends string = string, TAccountTokenMin
|
|
|
2498
2500
|
tokenVault: Address<TAccountTokenVault>;
|
|
2499
2501
|
centralState: Address<TAccountCentralState>;
|
|
2500
2502
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
2501
|
-
fundManager: InitTokenVaultInstructionDataArgs['fundManager'];
|
|
2502
2503
|
};
|
|
2503
2504
|
declare function getInitTokenVaultInstruction<TAccountPayer extends string, TAccountTokenMint extends string, TAccountTokenVault extends string, TAccountCentralState extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof OPPORTUNITY_MARKET_PROGRAM_ADDRESS>(input: InitTokenVaultInput<TAccountPayer, TAccountTokenMint, TAccountTokenVault, TAccountCentralState, TAccountSystemProgram>, config?: {
|
|
2504
2505
|
programAddress?: TProgramAddress;
|
|
@@ -3466,12 +3467,8 @@ interface BaseInstructionParams {
|
|
|
3466
3467
|
}
|
|
3467
3468
|
|
|
3468
3469
|
interface InitTokenVaultParams extends BaseInstructionParams {
|
|
3469
|
-
/** The signer/payer for the transaction */
|
|
3470
3470
|
payer: TransactionSigner;
|
|
3471
|
-
/** The token mint for this vault */
|
|
3472
3471
|
tokenMint: Address;
|
|
3473
|
-
/** Address that can withdraw tokens from the vault */
|
|
3474
|
-
fundManager: Address;
|
|
3475
3472
|
}
|
|
3476
3473
|
declare function initTokenVault(input: InitTokenVaultParams): Promise<InitTokenVaultInstruction<string>>;
|
|
3477
3474
|
|