@zebec-network/zebec-vault-sdk 5.1.3 → 5.2.0-dev.1
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/artifacts/zebec_vault.d.ts +444 -26
- package/dist/artifacts/zebec_vault.json +820 -552
- package/dist/pda.d.ts +1 -12
- package/dist/pda.js +0 -71
- package/dist/service.d.ts +219 -9
- package/dist/service.js +148 -48
- package/dist/types.d.ts +4 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +2 -2
package/dist/pda.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import { Address } from "@coral-xyz/anchor";
|
|
1
|
+
import { type Address } from "@coral-xyz/anchor";
|
|
2
2
|
import { PublicKey } from "@solana/web3.js";
|
|
3
3
|
export declare function deriveVaultSigner(vault: Address, programId: Address): [PublicKey, number];
|
|
4
4
|
export declare function deriveUserVault(user: Address, programId: Address): [PublicKey, number];
|
|
5
|
-
export declare function deriveCardConfigPda(programId: Address): [PublicKey, number];
|
|
6
|
-
export declare function deriveTokenFeeMapPda(programId: Address): [PublicKey, number];
|
|
7
|
-
export declare function deriveCardPurchasePda(buyer: Address, buyerCounter: bigint, programId: Address): [PublicKey, number];
|
|
8
|
-
export declare function deriveUserPurchaseRecordPda(user: Address, programId: Address): [PublicKey, number];
|
|
9
|
-
export declare function deriveStreamConfigPda(programId: Address): [PublicKey, number];
|
|
10
|
-
export declare function deriveStreamVaultPda(metatadata: Address, programId: Address): [PublicKey, number];
|
|
11
|
-
export declare function deriveStakeAddress(staker: Address, lockup: Address, nonce: bigint, programId: Address): PublicKey;
|
|
12
|
-
export declare function deriveLockupAddress(name: string, programId: Address): PublicKey;
|
|
13
|
-
export declare function deriveUserNonceAddress(user: Address, lockup: Address, programId: Address): PublicKey;
|
|
14
|
-
export declare function deriveStakeVaultAddress(lockup: Address, programId: Address): PublicKey;
|
|
15
|
-
export declare function deriveRewardVaultAddress(lockup: Address, programId: Address): PublicKey;
|
package/dist/pda.js
CHANGED
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deriveVaultSigner = deriveVaultSigner;
|
|
4
4
|
exports.deriveUserVault = deriveUserVault;
|
|
5
|
-
exports.deriveCardConfigPda = deriveCardConfigPda;
|
|
6
|
-
exports.deriveTokenFeeMapPda = deriveTokenFeeMapPda;
|
|
7
|
-
exports.deriveCardPurchasePda = deriveCardPurchasePda;
|
|
8
|
-
exports.deriveUserPurchaseRecordPda = deriveUserPurchaseRecordPda;
|
|
9
|
-
exports.deriveStreamConfigPda = deriveStreamConfigPda;
|
|
10
|
-
exports.deriveStreamVaultPda = deriveStreamVaultPda;
|
|
11
|
-
exports.deriveStakeAddress = deriveStakeAddress;
|
|
12
|
-
exports.deriveLockupAddress = deriveLockupAddress;
|
|
13
|
-
exports.deriveUserNonceAddress = deriveUserNonceAddress;
|
|
14
|
-
exports.deriveStakeVaultAddress = deriveStakeVaultAddress;
|
|
15
|
-
exports.deriveRewardVaultAddress = deriveRewardVaultAddress;
|
|
16
5
|
const anchor_1 = require("@coral-xyz/anchor");
|
|
17
6
|
const web3_js_1 = require("@solana/web3.js");
|
|
18
7
|
const VAULT_PROGRAM_V1_SEEDS = {
|
|
@@ -27,63 +16,3 @@ function deriveUserVault(user, programId) {
|
|
|
27
16
|
const addressAndBump = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(VAULT_PROGRAM_V1_SEEDS.USER_VAULT), (0, anchor_1.translateAddress)(user).toBuffer()], (0, anchor_1.translateAddress)(programId));
|
|
28
17
|
return addressAndBump;
|
|
29
18
|
}
|
|
30
|
-
const CARD_PROGRAM_V2_SEEDS = {
|
|
31
|
-
CARD_CONFIG: anchor_1.utils.bytes.utf8.encode("card_config"),
|
|
32
|
-
TOKEN_FEE_MAP: anchor_1.utils.bytes.utf8.encode("token_fee_map"),
|
|
33
|
-
USER_CARD_PURCHASE: anchor_1.utils.bytes.utf8.encode("user_card_purchase"),
|
|
34
|
-
USER_PURCHASE_RECORD: anchor_1.utils.bytes.utf8.encode("user_purchase_record"),
|
|
35
|
-
};
|
|
36
|
-
function deriveCardConfigPda(programId) {
|
|
37
|
-
return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(CARD_PROGRAM_V2_SEEDS.CARD_CONFIG)], (0, anchor_1.translateAddress)(programId));
|
|
38
|
-
}
|
|
39
|
-
function deriveTokenFeeMapPda(programId) {
|
|
40
|
-
return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(CARD_PROGRAM_V2_SEEDS.TOKEN_FEE_MAP)], (0, anchor_1.translateAddress)(programId));
|
|
41
|
-
}
|
|
42
|
-
function deriveCardPurchasePda(buyer, buyerCounter, programId) {
|
|
43
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
44
|
-
Buffer.from(CARD_PROGRAM_V2_SEEDS.USER_CARD_PURCHASE),
|
|
45
|
-
(0, anchor_1.translateAddress)(buyer).toBuffer(),
|
|
46
|
-
new anchor_1.BN(buyerCounter.toString()).toArrayLike(Buffer, "le", 8),
|
|
47
|
-
], (0, anchor_1.translateAddress)(programId));
|
|
48
|
-
}
|
|
49
|
-
function deriveUserPurchaseRecordPda(user, programId) {
|
|
50
|
-
return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(CARD_PROGRAM_V2_SEEDS.USER_PURCHASE_RECORD), (0, anchor_1.translateAddress)(user).toBuffer()], (0, anchor_1.translateAddress)(programId));
|
|
51
|
-
}
|
|
52
|
-
const STREAM_PROGRAM_SEEDS = {
|
|
53
|
-
STREAM_CONFIG: anchor_1.utils.bytes.utf8.encode("config"),
|
|
54
|
-
};
|
|
55
|
-
function deriveStreamConfigPda(programId) {
|
|
56
|
-
return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(STREAM_PROGRAM_SEEDS.STREAM_CONFIG)], (0, anchor_1.translateAddress)(programId));
|
|
57
|
-
}
|
|
58
|
-
function deriveStreamVaultPda(metatadata, programId) {
|
|
59
|
-
return web3_js_1.PublicKey.findProgramAddressSync([(0, anchor_1.translateAddress)(metatadata).toBuffer()], (0, anchor_1.translateAddress)(programId));
|
|
60
|
-
}
|
|
61
|
-
const STAKE_PROGRAM_SEEDS = {
|
|
62
|
-
LOCKUP: anchor_1.utils.bytes.utf8.encode("zebec_lockup"),
|
|
63
|
-
STAKE_VAULT: anchor_1.utils.bytes.utf8.encode("stake_vault"),
|
|
64
|
-
REWARD_VAULT: anchor_1.utils.bytes.utf8.encode("reward_vault"),
|
|
65
|
-
};
|
|
66
|
-
function deriveStakeAddress(staker, lockup, nonce, programId) {
|
|
67
|
-
const [stakeAddress] = web3_js_1.PublicKey.findProgramAddressSync([
|
|
68
|
-
(0, anchor_1.translateAddress)(staker).toBuffer(),
|
|
69
|
-
(0, anchor_1.translateAddress)(lockup).toBuffer(),
|
|
70
|
-
new anchor_1.BN(nonce.toString()).toArrayLike(Buffer, "le", 8),
|
|
71
|
-
], (0, anchor_1.translateAddress)(programId));
|
|
72
|
-
return stakeAddress;
|
|
73
|
-
}
|
|
74
|
-
function deriveLockupAddress(name, programId) {
|
|
75
|
-
const [lockupAddress] = web3_js_1.PublicKey.findProgramAddressSync([STAKE_PROGRAM_SEEDS.LOCKUP, anchor_1.utils.bytes.utf8.encode(name)], (0, anchor_1.translateAddress)(programId));
|
|
76
|
-
return lockupAddress;
|
|
77
|
-
}
|
|
78
|
-
function deriveUserNonceAddress(user, lockup, programId) {
|
|
79
|
-
const [userNonceAddress] = web3_js_1.PublicKey.findProgramAddressSync([(0, anchor_1.translateAddress)(user).toBuffer(), (0, anchor_1.translateAddress)(lockup).toBuffer()], (0, anchor_1.translateAddress)(programId));
|
|
80
|
-
return userNonceAddress;
|
|
81
|
-
}
|
|
82
|
-
function deriveStakeVaultAddress(lockup, programId) {
|
|
83
|
-
const [stakeVault] = web3_js_1.PublicKey.findProgramAddressSync([STAKE_PROGRAM_SEEDS.STAKE_VAULT, (0, anchor_1.translateAddress)(lockup).toBuffer()], (0, anchor_1.translateAddress)(programId));
|
|
84
|
-
return stakeVault;
|
|
85
|
-
}
|
|
86
|
-
function deriveRewardVaultAddress(lockup, programId) {
|
|
87
|
-
const [rewardVault] = web3_js_1.PublicKey.findProgramAddressSync([STAKE_PROGRAM_SEEDS.REWARD_VAULT, (0, anchor_1.translateAddress)(lockup).toBuffer()], (0, anchor_1.translateAddress)(programId));
|
|
88
|
-
return rewardVault;
|
|
89
|
-
}
|
package/dist/service.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Address, BN, Program, Provider } from "@coral-xyz/anchor";
|
|
2
|
-
import { AccountMeta, Commitment,
|
|
1
|
+
import { type Address, BN, Program, type Provider } from "@coral-xyz/anchor";
|
|
2
|
+
import { type AccountMeta, type Commitment, Keypair, type PublicKey, type Signer, type TransactionInstruction } from "@solana/web3.js";
|
|
3
3
|
import { MultiTransactionPayload, TransactionPayload } from "@zebec-network/solana-common";
|
|
4
|
-
import { ZebecCardV2Idl } from "@zebec-network/zebec-card-v2-sdk";
|
|
5
|
-
import { ZebecStakeIdlV1 } from "@zebec-network/zebec-stake-sdk";
|
|
6
|
-
import { ZebecStreamIdl } from "@zebec-network/zebec-stream-sdk";
|
|
7
|
-
import { ZebecVaultV1Idl } from "./artifacts";
|
|
8
|
-
import { RpcNetwork } from "./constants";
|
|
9
|
-
import { CancelStreamParams, ChangeStreamReceiverParams,
|
|
4
|
+
import { type ZebecCardV2Idl } from "@zebec-network/zebec-card-v2-sdk";
|
|
5
|
+
import { type ZebecStakeIdlV1 } from "@zebec-network/zebec-stake-sdk";
|
|
6
|
+
import { type ZebecStreamIdl } from "@zebec-network/zebec-stream-sdk";
|
|
7
|
+
import { type ZebecVaultV1Idl } from "./artifacts";
|
|
8
|
+
import { type RpcNetwork } from "./constants";
|
|
9
|
+
import type { CancelStreamParams, ChangeStreamReceiverParams, CreateSilverCardInstructionData, CreateSilverCardParams, CreateStreamFromVaultParams, createMultipleStreamFromVaultParams, LoadCarbonCardInstructionData, LoadCarbonCardParams, Numeric, PauseResumeStreamParams, ProposalAction, ProposalInfo, StakeInstructionData, StakeUserNonceInfo, StreamMetadataInfo, SwapAndCreateSilverCardParams, SwapAndLoadCarbonCardParams, TokenFeeRecord, VaultInfo, WithdrawStreamParams } from "./types";
|
|
10
10
|
export declare class ZebecVaultService {
|
|
11
11
|
readonly provider: Provider;
|
|
12
12
|
readonly vaultV1Program: Program<ZebecVaultV1Idl>;
|
|
@@ -102,6 +102,10 @@ export declare class ZebecVaultService {
|
|
|
102
102
|
swapAndCreateSilverCard(params: SwapAndCreateSilverCardParams): Promise<TransactionPayload>;
|
|
103
103
|
swapAndLoadCarbonCard(params: SwapAndLoadCarbonCardParams): Promise<TransactionPayload>;
|
|
104
104
|
getCardCustomTokenFees(): Promise<TokenFeeRecord[]>;
|
|
105
|
+
getTransfeFeesForStreamInstruction(streamConfig: PublicKey, feeVault: PublicKey, tokenMint: PublicKey, vaultOwner: PublicKey, feeVaultTokenAccount: PublicKey, vault: PublicKey, vaultSigner: PublicKey, vaultSignerTokenAccount: PublicKey, data: {
|
|
106
|
+
decimals: number;
|
|
107
|
+
feeAmount: BN;
|
|
108
|
+
}): Promise<TransactionInstruction>;
|
|
105
109
|
getCreateStreamFromVaultInstruction(vaultOwner: PublicKey, vault: PublicKey, vaultSigner: PublicKey, vaultSignerAta: PublicKey, receiver: PublicKey, receiverAta: PublicKey, streamToken: PublicKey, streamMetadata: PublicKey, streamConfig: PublicKey, withdrawAccount: PublicKey, streamVault: PublicKey, streamVaultAta: PublicKey, zebecStreamProgram: PublicKey, streamData: {
|
|
106
110
|
amount: BN;
|
|
107
111
|
automaticWithdrawal: boolean;
|
|
@@ -124,6 +128,212 @@ export declare class ZebecVaultService {
|
|
|
124
128
|
getCancelStreamInstruction(feePayer: PublicKey, otherParty: PublicKey, otherPartyAta: PublicKey, signer: PublicKey, signerAta: PublicKey, streamMetadata: PublicKey, streamToken: PublicKey, streamVault: PublicKey, streamVaultAta: PublicKey): Promise<TransactionInstruction>;
|
|
125
129
|
getWithdrawStreamInstruction(receiver: PublicKey, receiverAta: PublicKey, streamMetadata: PublicKey, streamToken: PublicKey, streamVault: PublicKey, streamVaultAta: PublicKey, withdrawer: PublicKey, feePayer: PublicKey): Promise<TransactionInstruction>;
|
|
126
130
|
getChangeStreamReceiverInstruction(streamMetadata: PublicKey, newRecipient: PublicKey, signer: PublicKey): Promise<TransactionInstruction>;
|
|
131
|
+
getTransferFeesForStreamInstruction(feeVault: PublicKey, tokenMint: PublicKey, vaultOwner: PublicKey, feeVaultTokenAccount: PublicKey, vault: PublicKey, vaultSigner: PublicKey, vaultSignerTokenAccount: PublicKey, data: {
|
|
132
|
+
decimals: number;
|
|
133
|
+
feeAmount: BN;
|
|
134
|
+
}): Promise<import("@coral-xyz/anchor/dist/cjs/program/namespace/methods").MethodsBuilder<ZebecVaultV1Idl, {
|
|
135
|
+
name: "transferFees";
|
|
136
|
+
discriminator: [103, 60, 61, 79, 56, 61, 76, 49];
|
|
137
|
+
accounts: [{
|
|
138
|
+
name: "vaultOwner";
|
|
139
|
+
writable: true;
|
|
140
|
+
signer: true;
|
|
141
|
+
}, {
|
|
142
|
+
name: "vault";
|
|
143
|
+
pda: {
|
|
144
|
+
seeds: [{
|
|
145
|
+
kind: "const";
|
|
146
|
+
value: [122, 101, 98, 101, 99, 95, 117, 115, 101, 114, 95, 118, 97, 117, 108, 116];
|
|
147
|
+
}, {
|
|
148
|
+
kind: "account";
|
|
149
|
+
path: "vaultOwner";
|
|
150
|
+
}];
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
name: "vaultSigner";
|
|
154
|
+
pda: {
|
|
155
|
+
seeds: [{
|
|
156
|
+
kind: "const";
|
|
157
|
+
value: [122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 115, 105, 103, 110, 101, 114];
|
|
158
|
+
}, {
|
|
159
|
+
kind: "account";
|
|
160
|
+
path: "vault";
|
|
161
|
+
}];
|
|
162
|
+
};
|
|
163
|
+
}, {
|
|
164
|
+
name: "vaultSignerTokenAccount";
|
|
165
|
+
writable: true;
|
|
166
|
+
pda: {
|
|
167
|
+
seeds: [{
|
|
168
|
+
kind: "account";
|
|
169
|
+
path: "vaultSigner";
|
|
170
|
+
}, {
|
|
171
|
+
kind: "const";
|
|
172
|
+
value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
173
|
+
}, {
|
|
174
|
+
kind: "account";
|
|
175
|
+
path: "tokenMint";
|
|
176
|
+
}];
|
|
177
|
+
program: {
|
|
178
|
+
kind: "const";
|
|
179
|
+
value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
}, {
|
|
183
|
+
name: "feeVault";
|
|
184
|
+
writable: true;
|
|
185
|
+
}, {
|
|
186
|
+
name: "feeVaultTokenAccount";
|
|
187
|
+
writable: true;
|
|
188
|
+
pda: {
|
|
189
|
+
seeds: [{
|
|
190
|
+
kind: "account";
|
|
191
|
+
path: "feeVault";
|
|
192
|
+
}, {
|
|
193
|
+
kind: "const";
|
|
194
|
+
value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
195
|
+
}, {
|
|
196
|
+
kind: "account";
|
|
197
|
+
path: "tokenMint";
|
|
198
|
+
}];
|
|
199
|
+
program: {
|
|
200
|
+
kind: "const";
|
|
201
|
+
value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
name: "streamConfig";
|
|
206
|
+
pda: {
|
|
207
|
+
seeds: [{
|
|
208
|
+
kind: "const";
|
|
209
|
+
value: [99, 111, 110, 102, 105, 103];
|
|
210
|
+
}, {
|
|
211
|
+
kind: "account";
|
|
212
|
+
path: "stream_config.config_name";
|
|
213
|
+
account: "streamConfig";
|
|
214
|
+
}];
|
|
215
|
+
program: {
|
|
216
|
+
kind: "const";
|
|
217
|
+
value: [14, 182, 227, 133, 227, 148, 128, 223, 155, 42, 111, 113, 225, 202, 68, 21, 200, 52, 224, 124, 140, 58, 250, 120, 166, 198, 146, 141, 100, 198, 30, 185];
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
}, {
|
|
221
|
+
name: "tokenMint";
|
|
222
|
+
}, {
|
|
223
|
+
name: "tokenProgram";
|
|
224
|
+
address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
225
|
+
}, {
|
|
226
|
+
name: "associatedTokenProgram";
|
|
227
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
228
|
+
}, {
|
|
229
|
+
name: "systemProgram";
|
|
230
|
+
address: "11111111111111111111111111111111";
|
|
231
|
+
}];
|
|
232
|
+
args: [{
|
|
233
|
+
name: "params";
|
|
234
|
+
type: {
|
|
235
|
+
defined: {
|
|
236
|
+
name: "transferFeesParams";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
}];
|
|
240
|
+
} & {
|
|
241
|
+
name: "transferFees";
|
|
242
|
+
}, {
|
|
243
|
+
name: "vaultOwner";
|
|
244
|
+
writable: true;
|
|
245
|
+
signer: true;
|
|
246
|
+
} | {
|
|
247
|
+
name: "vault";
|
|
248
|
+
pda: {
|
|
249
|
+
seeds: [{
|
|
250
|
+
kind: "const";
|
|
251
|
+
value: [122, 101, 98, 101, 99, 95, 117, 115, 101, 114, 95, 118, 97, 117, 108, 116];
|
|
252
|
+
}, {
|
|
253
|
+
kind: "account";
|
|
254
|
+
path: "vaultOwner";
|
|
255
|
+
}];
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
258
|
+
name: "vaultSigner";
|
|
259
|
+
pda: {
|
|
260
|
+
seeds: [{
|
|
261
|
+
kind: "const";
|
|
262
|
+
value: [122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 115, 105, 103, 110, 101, 114];
|
|
263
|
+
}, {
|
|
264
|
+
kind: "account";
|
|
265
|
+
path: "vault";
|
|
266
|
+
}];
|
|
267
|
+
};
|
|
268
|
+
} | {
|
|
269
|
+
name: "vaultSignerTokenAccount";
|
|
270
|
+
writable: true;
|
|
271
|
+
pda: {
|
|
272
|
+
seeds: [{
|
|
273
|
+
kind: "account";
|
|
274
|
+
path: "vaultSigner";
|
|
275
|
+
}, {
|
|
276
|
+
kind: "const";
|
|
277
|
+
value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
278
|
+
}, {
|
|
279
|
+
kind: "account";
|
|
280
|
+
path: "tokenMint";
|
|
281
|
+
}];
|
|
282
|
+
program: {
|
|
283
|
+
kind: "const";
|
|
284
|
+
value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
} | {
|
|
288
|
+
name: "feeVault";
|
|
289
|
+
writable: true;
|
|
290
|
+
} | {
|
|
291
|
+
name: "feeVaultTokenAccount";
|
|
292
|
+
writable: true;
|
|
293
|
+
pda: {
|
|
294
|
+
seeds: [{
|
|
295
|
+
kind: "account";
|
|
296
|
+
path: "feeVault";
|
|
297
|
+
}, {
|
|
298
|
+
kind: "const";
|
|
299
|
+
value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
|
|
300
|
+
}, {
|
|
301
|
+
kind: "account";
|
|
302
|
+
path: "tokenMint";
|
|
303
|
+
}];
|
|
304
|
+
program: {
|
|
305
|
+
kind: "const";
|
|
306
|
+
value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
} | {
|
|
310
|
+
name: "streamConfig";
|
|
311
|
+
pda: {
|
|
312
|
+
seeds: [{
|
|
313
|
+
kind: "const";
|
|
314
|
+
value: [99, 111, 110, 102, 105, 103];
|
|
315
|
+
}, {
|
|
316
|
+
kind: "account";
|
|
317
|
+
path: "stream_config.config_name";
|
|
318
|
+
account: "streamConfig";
|
|
319
|
+
}];
|
|
320
|
+
program: {
|
|
321
|
+
kind: "const";
|
|
322
|
+
value: [14, 182, 227, 133, 227, 148, 128, 223, 155, 42, 111, 113, 225, 202, 68, 21, 200, 52, 224, 124, 140, 58, 250, 120, 166, 198, 146, 141, 100, 198, 30, 185];
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
} | {
|
|
326
|
+
name: "tokenMint";
|
|
327
|
+
} | {
|
|
328
|
+
name: "tokenProgram";
|
|
329
|
+
address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
330
|
+
} | {
|
|
331
|
+
name: "associatedTokenProgram";
|
|
332
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
333
|
+
} | {
|
|
334
|
+
name: "systemProgram";
|
|
335
|
+
address: "11111111111111111111111111111111";
|
|
336
|
+
}>>;
|
|
127
337
|
createStreamFromVault(params: CreateStreamFromVaultParams): Promise<TransactionPayload>;
|
|
128
338
|
createMultipleStreamFromVault(params: createMultipleStreamFromVaultParams): Promise<MultiTransactionPayload>;
|
|
129
339
|
cancelStream(params: CancelStreamParams): Promise<TransactionPayload>;
|
|
@@ -152,5 +362,5 @@ export declare class ZebecVaultService {
|
|
|
152
362
|
get cardV2ProgramId(): PublicKey;
|
|
153
363
|
get streamProgramId(): PublicKey;
|
|
154
364
|
get stakeProgramId(): PublicKey;
|
|
155
|
-
get connection(): Connection;
|
|
365
|
+
get connection(): import("@solana/web3.js").Connection;
|
|
156
366
|
}
|