@smithii_io/mixoor 0.0.12 → 0.0.13
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/src/index.js +205 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +198 -1
- package/dist/src/index.mjs.map +1 -1
- package/dist/types/src/generated/instructions/index.d.ts +1 -0
- package/dist/types/src/generated/instructions/index.d.ts.map +1 -1
- package/dist/types/src/generated/instructions/withdraw.d.ts +80 -0
- package/dist/types/src/generated/instructions/withdraw.d.ts.map +1 -0
- package/dist/types/src/generated/programs/mixoor.d.ts +6 -3
- package/dist/types/src/generated/programs/mixoor.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { MIXOOR_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const WITHDRAW_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getWithdrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type WithdrawInstruction<TProgram extends string = typeof MIXOOR_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = 'AdUKMLxLi18EfLqLFQvDaizXmvGoDFaNQfQU681vbTje', TAccountPool extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountVaultAta extends string | AccountMeta<string> = string, TAccountAuthorityAta extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
14
|
+
TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
|
|
15
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
16
|
+
TAccountVaultAta extends string ? ReadonlyAccount<TAccountVaultAta> : TAccountVaultAta,
|
|
17
|
+
TAccountAuthorityAta extends string ? ReadonlyAccount<TAccountAuthorityAta> : TAccountAuthorityAta,
|
|
18
|
+
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
|
|
19
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
20
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
21
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
22
|
+
...TRemainingAccounts
|
|
23
|
+
]>;
|
|
24
|
+
export type WithdrawInstructionData = {
|
|
25
|
+
discriminator: ReadonlyUint8Array;
|
|
26
|
+
amount: bigint;
|
|
27
|
+
};
|
|
28
|
+
export type WithdrawInstructionDataArgs = {
|
|
29
|
+
amount: number | bigint;
|
|
30
|
+
};
|
|
31
|
+
export declare function getWithdrawInstructionDataEncoder(): FixedSizeEncoder<WithdrawInstructionDataArgs>;
|
|
32
|
+
export declare function getWithdrawInstructionDataDecoder(): FixedSizeDecoder<WithdrawInstructionData>;
|
|
33
|
+
export declare function getWithdrawInstructionDataCodec(): FixedSizeCodec<WithdrawInstructionDataArgs, WithdrawInstructionData>;
|
|
34
|
+
export type WithdrawAsyncInput<TAccountAuthority extends string = string, TAccountPool extends string = string, TAccountVault extends string = string, TAccountVaultAta extends string = string, TAccountAuthorityAta extends string = string, TAccountMint extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
35
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
36
|
+
pool: Address<TAccountPool>;
|
|
37
|
+
vault?: Address<TAccountVault>;
|
|
38
|
+
vaultAta?: Address<TAccountVaultAta>;
|
|
39
|
+
authorityAta?: Address<TAccountAuthorityAta>;
|
|
40
|
+
mint: Address<TAccountMint>;
|
|
41
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
42
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
43
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
44
|
+
amount: WithdrawInstructionDataArgs['amount'];
|
|
45
|
+
};
|
|
46
|
+
export declare function getWithdrawInstructionAsync<TAccountAuthority extends string, TAccountPool extends string, TAccountVault extends string, TAccountVaultAta extends string, TAccountAuthorityAta extends string, TAccountMint extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof MIXOOR_PROGRAM_ADDRESS>(input: WithdrawAsyncInput<TAccountAuthority, TAccountPool, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountMint, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
47
|
+
programAddress?: TProgramAddress;
|
|
48
|
+
}): Promise<WithdrawInstruction<TProgramAddress, TAccountAuthority, TAccountPool, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountMint, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>>;
|
|
49
|
+
export type WithdrawInput<TAccountAuthority extends string = string, TAccountPool extends string = string, TAccountVault extends string = string, TAccountVaultAta extends string = string, TAccountAuthorityAta extends string = string, TAccountMint extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string> = {
|
|
50
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
51
|
+
pool: Address<TAccountPool>;
|
|
52
|
+
vault: Address<TAccountVault>;
|
|
53
|
+
vaultAta: Address<TAccountVaultAta>;
|
|
54
|
+
authorityAta: Address<TAccountAuthorityAta>;
|
|
55
|
+
mint: Address<TAccountMint>;
|
|
56
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
57
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
58
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
59
|
+
amount: WithdrawInstructionDataArgs['amount'];
|
|
60
|
+
};
|
|
61
|
+
export declare function getWithdrawInstruction<TAccountAuthority extends string, TAccountPool extends string, TAccountVault extends string, TAccountVaultAta extends string, TAccountAuthorityAta extends string, TAccountMint extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TProgramAddress extends Address = typeof MIXOOR_PROGRAM_ADDRESS>(input: WithdrawInput<TAccountAuthority, TAccountPool, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountMint, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>, config?: {
|
|
62
|
+
programAddress?: TProgramAddress;
|
|
63
|
+
}): WithdrawInstruction<TProgramAddress, TAccountAuthority, TAccountPool, TAccountVault, TAccountVaultAta, TAccountAuthorityAta, TAccountMint, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram>;
|
|
64
|
+
export type ParsedWithdrawInstruction<TProgram extends string = typeof MIXOOR_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
65
|
+
programAddress: Address<TProgram>;
|
|
66
|
+
accounts: {
|
|
67
|
+
authority: TAccountMetas[0];
|
|
68
|
+
pool: TAccountMetas[1];
|
|
69
|
+
vault: TAccountMetas[2];
|
|
70
|
+
vaultAta: TAccountMetas[3];
|
|
71
|
+
authorityAta: TAccountMetas[4];
|
|
72
|
+
mint: TAccountMetas[5];
|
|
73
|
+
systemProgram: TAccountMetas[6];
|
|
74
|
+
tokenProgram: TAccountMetas[7];
|
|
75
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
76
|
+
};
|
|
77
|
+
data: WithdrawInstructionData;
|
|
78
|
+
};
|
|
79
|
+
export declare function parseWithdrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawInstruction<TProgram, TAccountMetas>;
|
|
80
|
+
//# sourceMappingURL=withdraw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/withdraw.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,E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,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAChC,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,sBAAsB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC1C,CAAC;IACF,IAAI,EAAE,uBAAuB,CAAC;CAC/B,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,yBAAyB,CAAC,QAAQ,EAAE,aAAa,CAAC,CA0BpD"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
import { type Address, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
-
import { type ParsedDepositInstruction, type ParsedInitializePoolInstruction, type ParsedTransferInstruction } from '../instructions';
|
|
9
|
+
import { type ParsedDepositInstruction, type ParsedInitializePoolInstruction, type ParsedTransferInstruction, type ParsedWithdrawInstruction } from '../instructions';
|
|
10
10
|
export declare const MIXOOR_PROGRAM_ADDRESS: Address<"mixEcfx7w47hvRwb9Nj7UeSQkCz6vZMbRHixMyYMLMb">;
|
|
11
11
|
export declare enum MixoorAccount {
|
|
12
12
|
NullifierAccount = 0,
|
|
@@ -19,7 +19,8 @@ export declare function identifyMixoorAccount(account: {
|
|
|
19
19
|
export declare enum MixoorInstruction {
|
|
20
20
|
Deposit = 0,
|
|
21
21
|
InitializePool = 1,
|
|
22
|
-
Transfer = 2
|
|
22
|
+
Transfer = 2,
|
|
23
|
+
Withdraw = 3
|
|
23
24
|
}
|
|
24
25
|
export declare function identifyMixoorInstruction(instruction: {
|
|
25
26
|
data: ReadonlyUint8Array;
|
|
@@ -30,5 +31,7 @@ export type ParsedMixoorInstruction<TProgram extends string = 'mixEcfx7w47hvRwb9
|
|
|
30
31
|
instructionType: MixoorInstruction.InitializePool;
|
|
31
32
|
} & ParsedInitializePoolInstruction<TProgram>) | ({
|
|
32
33
|
instructionType: MixoorInstruction.Transfer;
|
|
33
|
-
} & ParsedTransferInstruction<TProgram>)
|
|
34
|
+
} & ParsedTransferInstruction<TProgram>) | ({
|
|
35
|
+
instructionType: MixoorInstruction.Withdraw;
|
|
36
|
+
} & ParsedWithdrawInstruction<TProgram>);
|
|
34
37
|
//# sourceMappingURL=mixoor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixoor.d.ts","sourceRoot":"","sources":["../../../../../src/generated/programs/mixoor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC/B,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,sBAAsB,EACgB,OAAO,CAAC,6CAA6C,CAAC,CAAC;AAE1G,oBAAY,aAAa;IACvB,gBAAgB,IAAA;IAChB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAAG,kBAAkB,GACzD,aAAa,CAsCf;AAED,oBAAY,iBAAiB;IAC3B,OAAO,IAAA;IACP,cAAc,IAAA;IACd,QAAQ,IAAA;CACT;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAAG,kBAAkB,GAC7D,iBAAiB,
|
|
1
|
+
{"version":3,"file":"mixoor.d.ts","sourceRoot":"","sources":["../../../../../src/generated/programs/mixoor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK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
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "JavaScript client for the Mixoor program",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "./dist/src/index.mjs",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/
|
|
39
|
+
"url": "git+https://github.com/smithiiDev/mixoor.git"
|
|
40
40
|
},
|
|
41
41
|
"bugs": {
|
|
42
|
-
"url": "https://github.com/
|
|
42
|
+
"url": "https://github.com/smithiiDev/mixoor/issues"
|
|
43
43
|
},
|
|
44
|
-
"homepage": "https://github.com/
|
|
44
|
+
"homepage": "https://github.com/smithiiDev/mixoor#readme",
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@ava/typescript": "^4.1.0",
|