@streamflow/stream 5.6.0 → 5.6.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/LICENSE +674 -0
- package/package.json +5 -6
- package/dist/__tests__/aptos/streamClient.spec.d.ts +0 -1
- package/dist/__tests__/aptos/streamClient.spec.js +0 -161
- package/dist/aptos/StreamClient.d.ts +0 -51
- package/dist/aptos/StreamClient.js +0 -387
- package/dist/aptos/constants.d.ts +0 -8
- package/dist/aptos/constants.js +0 -28
- package/dist/aptos/index.d.ts +0 -2
- package/dist/aptos/index.js +0 -24
- package/dist/aptos/types.d.ts +0 -97
- package/dist/aptos/types.js +0 -76
- package/dist/aptos/utils.d.ts +0 -1
- package/dist/aptos/utils.js +0 -12
- package/dist/aptos/wallet.d.ts +0 -9
- package/dist/aptos/wallet.js +0 -89
- package/dist/common/BaseStreamClient.d.ts +0 -13
- package/dist/common/BaseStreamClient.js +0 -13
- package/dist/common/GenericStreamClient.d.ts +0 -93
- package/dist/common/GenericStreamClient.js +0 -114
- package/dist/common/constants.d.ts +0 -1
- package/dist/common/constants.js +0 -4
- package/dist/common/contractUtils.d.ts +0 -47
- package/dist/common/contractUtils.js +0 -55
- package/dist/common/types.d.ts +0 -252
- package/dist/common/types.js +0 -165
- package/dist/common/utils.d.ts +0 -22
- package/dist/common/utils.js +0 -101
- package/dist/evm/StreamClient.d.ts +0 -30
- package/dist/evm/StreamClient.js +0 -461
- package/dist/evm/abi.d.ts +0 -111
- package/dist/evm/abi.js +0 -1257
- package/dist/evm/constants.d.ts +0 -20
- package/dist/evm/constants.js +0 -39
- package/dist/evm/ercAbi.d.ts +0 -39
- package/dist/evm/ercAbi.js +0 -224
- package/dist/evm/index.d.ts +0 -2
- package/dist/evm/index.js +0 -24
- package/dist/evm/types.d.ts +0 -93
- package/dist/evm/types.js +0 -75
- package/dist/evm/utils.d.ts +0 -1
- package/dist/evm/utils.js +0 -12
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -41
- package/dist/solana/StreamClient.d.ts +0 -72
- package/dist/solana/StreamClient.js +0 -927
- package/dist/solana/constants.d.ts +0 -22
- package/dist/solana/constants.js +0 -50
- package/dist/solana/index.d.ts +0 -7
- package/dist/solana/index.js +0 -43
- package/dist/solana/instructionTypes.d.ts +0 -96
- package/dist/solana/instructionTypes.js +0 -2
- package/dist/solana/instructions.d.ts +0 -139
- package/dist/solana/instructions.js +0 -407
- package/dist/solana/layout.d.ts +0 -27
- package/dist/solana/layout.js +0 -170
- package/dist/solana/timelockIDL.d.ts +0 -22
- package/dist/solana/timelockIDL.js +0 -422
- package/dist/solana/types.d.ts +0 -292
- package/dist/solana/types.js +0 -81
- package/dist/solana/utils.d.ts +0 -44
- package/dist/solana/utils.js +0 -303
- package/dist/sui/StreamClient.d.ts +0 -79
- package/dist/sui/StreamClient.js +0 -571
- package/dist/sui/constants.d.ts +0 -10
- package/dist/sui/constants.js +0 -43
- package/dist/sui/index.d.ts +0 -2
- package/dist/sui/index.js +0 -23
- package/dist/sui/types.d.ts +0 -141
- package/dist/sui/types.js +0 -102
- package/dist/sui/utils.d.ts +0 -2
- package/dist/sui/utils.js +0 -29
- package/dist/sui/wallet.d.ts +0 -11
- package/dist/sui/wallet.js +0 -75
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PublicKey } from "@solana/web3.js";
|
|
2
|
-
export declare const TX_FINALITY_CONFIRMED = "confirmed";
|
|
3
|
-
export declare const STREAM_STRUCT_OFFSET_SENDER = 49;
|
|
4
|
-
export declare const STREAM_STRUCT_OFFSET_RECIPIENT = 113;
|
|
5
|
-
export declare const CREATE_PARAMS_PADDING = 126;
|
|
6
|
-
export declare const PROGRAM_ID: {
|
|
7
|
-
devnet: string;
|
|
8
|
-
mainnet: string;
|
|
9
|
-
testnet: string;
|
|
10
|
-
local: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const STREAMFLOW_PROGRAM_ID = "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
|
|
13
|
-
export declare const STREAMFLOW_DEVNET_PROGRAM_ID = "FGjLaVo5zLGdzCxMo9gu9tXr1kzTToKd8C8K7YS5hNM1";
|
|
14
|
-
export declare const STREAMFLOW_TREASURY_PUBLIC_KEY: PublicKey;
|
|
15
|
-
export declare const WITHDRAWOR_PUBLIC_KEY: PublicKey;
|
|
16
|
-
export declare const FEE_ORACLE_PUBLIC_KEY: PublicKey;
|
|
17
|
-
export declare const AIRDROP_TEST_TOKEN = "Gssm3vfi8s65R31SBdmQRq6cKeYojGgup7whkw4VCiQj";
|
|
18
|
-
export declare const AIRDROP_AMOUNT = 1;
|
|
19
|
-
export declare const SOLANA_ERROR_MATCH_REGEX: RegExp;
|
|
20
|
-
export declare const SOLANA_ERROR_MAP: {
|
|
21
|
-
[key: number]: string;
|
|
22
|
-
};
|
package/dist/solana/constants.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SOLANA_ERROR_MAP = exports.SOLANA_ERROR_MATCH_REGEX = exports.AIRDROP_AMOUNT = exports.AIRDROP_TEST_TOKEN = exports.FEE_ORACLE_PUBLIC_KEY = exports.WITHDRAWOR_PUBLIC_KEY = exports.STREAMFLOW_TREASURY_PUBLIC_KEY = exports.STREAMFLOW_DEVNET_PROGRAM_ID = exports.STREAMFLOW_PROGRAM_ID = exports.PROGRAM_ID = exports.CREATE_PARAMS_PADDING = exports.STREAM_STRUCT_OFFSET_RECIPIENT = exports.STREAM_STRUCT_OFFSET_SENDER = exports.TX_FINALITY_CONFIRMED = void 0;
|
|
5
|
-
var web3_js_1 = require("@solana/web3.js");
|
|
6
|
-
var types_1 = require("../common/types");
|
|
7
|
-
exports.TX_FINALITY_CONFIRMED = "confirmed";
|
|
8
|
-
exports.STREAM_STRUCT_OFFSET_SENDER = 49;
|
|
9
|
-
exports.STREAM_STRUCT_OFFSET_RECIPIENT = 113;
|
|
10
|
-
// Defined: https://github.com/streamflow-finance/protocol/blob/main/programs/protocol/src/state.rs#L25
|
|
11
|
-
exports.CREATE_PARAMS_PADDING = 126;
|
|
12
|
-
exports.PROGRAM_ID = (_a = {},
|
|
13
|
-
_a[types_1.ICluster.Devnet] = "HqDGZjaVRXJ9MGRQEw7qDc2rAr6iH1n1kAQdCZaCMfMZ",
|
|
14
|
-
_a[types_1.ICluster.Mainnet] = "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m",
|
|
15
|
-
_a[types_1.ICluster.Testnet] = "HqDGZjaVRXJ9MGRQEw7qDc2rAr6iH1n1kAQdCZaCMfMZ",
|
|
16
|
-
_a[types_1.ICluster.Local] = "HqDGZjaVRXJ9MGRQEw7qDc2rAr6iH1n1kAQdCZaCMfMZ",
|
|
17
|
-
_a);
|
|
18
|
-
exports.STREAMFLOW_PROGRAM_ID = "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
|
|
19
|
-
exports.STREAMFLOW_DEVNET_PROGRAM_ID = "FGjLaVo5zLGdzCxMo9gu9tXr1kzTToKd8C8K7YS5hNM1";
|
|
20
|
-
exports.STREAMFLOW_TREASURY_PUBLIC_KEY = new web3_js_1.PublicKey("5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw");
|
|
21
|
-
exports.WITHDRAWOR_PUBLIC_KEY = new web3_js_1.PublicKey("wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u");
|
|
22
|
-
exports.FEE_ORACLE_PUBLIC_KEY = new web3_js_1.PublicKey("B743wFVk2pCYhV91cn287e1xY7f1vt4gdY48hhNiuQmT");
|
|
23
|
-
exports.AIRDROP_TEST_TOKEN = "Gssm3vfi8s65R31SBdmQRq6cKeYojGgup7whkw4VCiQj";
|
|
24
|
-
exports.AIRDROP_AMOUNT = 1; // 1 SOL is the cap on the testnet
|
|
25
|
-
exports.SOLANA_ERROR_MATCH_REGEX = /custom program error: (0x\d{2})/;
|
|
26
|
-
exports.SOLANA_ERROR_MAP = {
|
|
27
|
-
0x60: types_1.SolanaContractErrorCode.AccountsNotWritable,
|
|
28
|
-
0x61: types_1.SolanaContractErrorCode.InvalidMetadata,
|
|
29
|
-
0x62: types_1.SolanaContractErrorCode.InvalidMetadataAccount,
|
|
30
|
-
0x63: types_1.SolanaContractErrorCode.MetadataAccountMismatch,
|
|
31
|
-
0x64: types_1.SolanaContractErrorCode.InvalidEscrowAccount,
|
|
32
|
-
0x65: types_1.SolanaContractErrorCode.NotAssociated,
|
|
33
|
-
0x66: types_1.SolanaContractErrorCode.MintMismatch,
|
|
34
|
-
0x67: types_1.SolanaContractErrorCode.TransferNotAllowed,
|
|
35
|
-
0x68: types_1.SolanaContractErrorCode.ContractClosed,
|
|
36
|
-
0x69: types_1.SolanaContractErrorCode.InvalidTreasury,
|
|
37
|
-
0x70: types_1.SolanaContractErrorCode.InvalidTimestamps,
|
|
38
|
-
0x71: types_1.SolanaContractErrorCode.InvalidDepositConfiguration,
|
|
39
|
-
0x72: types_1.SolanaContractErrorCode.AmountIsZero,
|
|
40
|
-
0x73: types_1.SolanaContractErrorCode.AmountMoreThanAvailable,
|
|
41
|
-
0x74: types_1.SolanaContractErrorCode.AmountAvailableIsZero,
|
|
42
|
-
0x80: types_1.SolanaContractErrorCode.ArithmeticError,
|
|
43
|
-
0x81: types_1.SolanaContractErrorCode.InvalidMetadataSize,
|
|
44
|
-
0x82: types_1.SolanaContractErrorCode.UninitializedMetadata,
|
|
45
|
-
0x83: types_1.SolanaContractErrorCode.Unauthorized,
|
|
46
|
-
0x84: types_1.SolanaContractErrorCode.SelfTransfer,
|
|
47
|
-
0x85: types_1.SolanaContractErrorCode.AlreadyPaused,
|
|
48
|
-
0x86: types_1.SolanaContractErrorCode.NotPaused,
|
|
49
|
-
0x87: types_1.SolanaContractErrorCode.MetadataNotRentExempt,
|
|
50
|
-
};
|
package/dist/solana/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default, default as SolanaStreamClient } from "./StreamClient";
|
|
2
|
-
export * from "./utils";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export * from "./instructions";
|
|
5
|
-
export * as constants from "./constants";
|
|
6
|
-
export { default as timelockIDL } from "./timelockIDL";
|
|
7
|
-
export { default as BN } from "bn.js";
|
package/dist/solana/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.BN = exports.timelockIDL = exports.constants = exports.SolanaStreamClient = exports.default = void 0;
|
|
33
|
-
var StreamClient_1 = require("./StreamClient");
|
|
34
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(StreamClient_1).default; } });
|
|
35
|
-
Object.defineProperty(exports, "SolanaStreamClient", { enumerable: true, get: function () { return __importDefault(StreamClient_1).default; } });
|
|
36
|
-
__exportStar(require("./utils"), exports);
|
|
37
|
-
__exportStar(require("./types"), exports);
|
|
38
|
-
__exportStar(require("./instructions"), exports);
|
|
39
|
-
exports.constants = __importStar(require("./constants"));
|
|
40
|
-
var timelockIDL_1 = require("./timelockIDL");
|
|
41
|
-
Object.defineProperty(exports, "timelockIDL", { enumerable: true, get: function () { return __importDefault(timelockIDL_1).default; } });
|
|
42
|
-
var bn_js_1 = require("bn.js");
|
|
43
|
-
Object.defineProperty(exports, "BN", { enumerable: true, get: function () { return __importDefault(bn_js_1).default; } });
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
export interface IStreamLayout {
|
|
2
|
-
magic: Uint8Array;
|
|
3
|
-
version: Uint8Array;
|
|
4
|
-
created_at: Uint8Array;
|
|
5
|
-
withdrawn_amount: Uint8Array;
|
|
6
|
-
canceled_at: Uint8Array;
|
|
7
|
-
end_time: Uint8Array;
|
|
8
|
-
last_withdrawn_at: Uint8Array;
|
|
9
|
-
sender: Uint8Array;
|
|
10
|
-
sender_tokens: Uint8Array;
|
|
11
|
-
recipient: Uint8Array;
|
|
12
|
-
recipient_tokens: Uint8Array;
|
|
13
|
-
mint: Uint8Array;
|
|
14
|
-
escrow_tokens: Uint8Array;
|
|
15
|
-
streamflow_treasury: Uint8Array;
|
|
16
|
-
streamflow_treasury_tokens: Uint8Array;
|
|
17
|
-
streamflow_fee_total: Uint8Array;
|
|
18
|
-
streamflow_fee_withdrawn: Uint8Array;
|
|
19
|
-
streamflow_fee_percent: number;
|
|
20
|
-
partner: Uint8Array;
|
|
21
|
-
partner_tokens: Uint8Array;
|
|
22
|
-
partner_fee_total: Uint8Array;
|
|
23
|
-
partner_fee_withdrawn: Uint8Array;
|
|
24
|
-
partner_fee_percent: number;
|
|
25
|
-
start_time: Uint8Array;
|
|
26
|
-
net_amount_deposited: Uint8Array;
|
|
27
|
-
period: Uint8Array;
|
|
28
|
-
amount_per_period: Uint8Array;
|
|
29
|
-
cliff: Uint8Array;
|
|
30
|
-
cliff_amount: Uint8Array;
|
|
31
|
-
cancelable_by_sender: number;
|
|
32
|
-
cancelable_by_recipient: number;
|
|
33
|
-
automatic_withdrawal: number;
|
|
34
|
-
transferable_by_sender: number;
|
|
35
|
-
transferable_by_recipient: number;
|
|
36
|
-
can_topup: number;
|
|
37
|
-
stream_name: Uint8Array;
|
|
38
|
-
withdraw_frequency: Uint8Array;
|
|
39
|
-
ghost: Uint8Array;
|
|
40
|
-
pausable: number;
|
|
41
|
-
can_update_rate: number;
|
|
42
|
-
create_params_padding_length: number;
|
|
43
|
-
create_params_padding: number[];
|
|
44
|
-
closed: number;
|
|
45
|
-
current_pause_start: Uint8Array;
|
|
46
|
-
pause_cumulative: Uint8Array;
|
|
47
|
-
last_rate_change_time: Uint8Array;
|
|
48
|
-
funds_unlocked_at_last_rate_change: Uint8Array;
|
|
49
|
-
}
|
|
50
|
-
export interface ICreateStreamLayout {
|
|
51
|
-
start_time: Uint8Array;
|
|
52
|
-
net_amount_deposited: Uint8Array;
|
|
53
|
-
period: Uint8Array;
|
|
54
|
-
amount_per_period: Uint8Array;
|
|
55
|
-
cliff: Uint8Array;
|
|
56
|
-
cliff_amount: Uint8Array;
|
|
57
|
-
cancelable_by_sender: number;
|
|
58
|
-
cancelable_by_recipient: number;
|
|
59
|
-
automatic_withdrawal: number;
|
|
60
|
-
transferable_by_sender: number;
|
|
61
|
-
transferable_by_recipient: number;
|
|
62
|
-
can_topup: number;
|
|
63
|
-
stream_name: Uint8Array;
|
|
64
|
-
withdraw_frequency: Uint8Array;
|
|
65
|
-
}
|
|
66
|
-
export interface ICreateUncheckedStreamLayout {
|
|
67
|
-
start_time: Uint8Array;
|
|
68
|
-
net_amount_deposited: Uint8Array;
|
|
69
|
-
period: Uint8Array;
|
|
70
|
-
amount_per_period: Uint8Array;
|
|
71
|
-
cliff: Uint8Array;
|
|
72
|
-
cliff_amount: Uint8Array;
|
|
73
|
-
cancelable_by_sender: number;
|
|
74
|
-
cancelable_by_recipient: number;
|
|
75
|
-
automatic_withdrawal: number;
|
|
76
|
-
transferable_by_sender: number;
|
|
77
|
-
transferable_by_recipient: number;
|
|
78
|
-
can_topup: number;
|
|
79
|
-
stream_name: Uint8Array;
|
|
80
|
-
withdraw_frequency: Uint8Array;
|
|
81
|
-
recipient: Uint8Array;
|
|
82
|
-
partner: Uint8Array;
|
|
83
|
-
pausable: number;
|
|
84
|
-
can_update_rate: number;
|
|
85
|
-
}
|
|
86
|
-
export interface IWithdrawStreamLayout {
|
|
87
|
-
amount: Uint8Array;
|
|
88
|
-
}
|
|
89
|
-
export interface IUpdateStreamLayout {
|
|
90
|
-
enable_automatic_withdrawal?: number;
|
|
91
|
-
withdraw_frequency?: Uint8Array;
|
|
92
|
-
amount_per_period?: Uint8Array;
|
|
93
|
-
}
|
|
94
|
-
export interface ITopupStreamLayout {
|
|
95
|
-
amount: Uint8Array;
|
|
96
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
2
|
-
import BN from "bn.js";
|
|
3
|
-
import { IUpdateData } from "../common/types";
|
|
4
|
-
interface CreateStreamData {
|
|
5
|
-
start: BN;
|
|
6
|
-
depositedAmount: BN;
|
|
7
|
-
period: BN;
|
|
8
|
-
amountPerPeriod: BN;
|
|
9
|
-
cliff: BN;
|
|
10
|
-
cliffAmount: BN;
|
|
11
|
-
cancelableBySender: boolean;
|
|
12
|
-
cancelableByRecipient: boolean;
|
|
13
|
-
automaticWithdrawal: boolean;
|
|
14
|
-
transferableBySender: boolean;
|
|
15
|
-
transferableByRecipient: boolean;
|
|
16
|
-
canTopup: boolean;
|
|
17
|
-
name: string;
|
|
18
|
-
withdrawFrequency: BN;
|
|
19
|
-
}
|
|
20
|
-
interface CreateStreamAccounts {
|
|
21
|
-
sender: PublicKey;
|
|
22
|
-
senderTokens: PublicKey;
|
|
23
|
-
recipient: PublicKey;
|
|
24
|
-
recipientTokens: PublicKey;
|
|
25
|
-
metadata: PublicKey;
|
|
26
|
-
escrowTokens: PublicKey;
|
|
27
|
-
streamflowTreasury: PublicKey;
|
|
28
|
-
streamflowTreasuryTokens: PublicKey;
|
|
29
|
-
partner: PublicKey;
|
|
30
|
-
partnerTokens: PublicKey;
|
|
31
|
-
mint: PublicKey;
|
|
32
|
-
feeOracle: PublicKey;
|
|
33
|
-
rent: PublicKey;
|
|
34
|
-
timelockProgram: PublicKey;
|
|
35
|
-
tokenProgram: PublicKey;
|
|
36
|
-
associatedTokenProgram: PublicKey;
|
|
37
|
-
withdrawor: PublicKey;
|
|
38
|
-
systemProgram: PublicKey;
|
|
39
|
-
}
|
|
40
|
-
export declare const createStreamInstruction: (data: CreateStreamData, programId: PublicKey, accounts: CreateStreamAccounts) => TransactionInstruction;
|
|
41
|
-
interface CreateUncheckedStreamData {
|
|
42
|
-
start: BN;
|
|
43
|
-
depositedAmount: BN;
|
|
44
|
-
period: BN;
|
|
45
|
-
amountPerPeriod: BN;
|
|
46
|
-
cliff: BN;
|
|
47
|
-
cliffAmount: BN;
|
|
48
|
-
cancelableBySender: boolean;
|
|
49
|
-
cancelableByRecipient: boolean;
|
|
50
|
-
automaticWithdrawal: boolean;
|
|
51
|
-
transferableBySender: boolean;
|
|
52
|
-
transferableByRecipient: boolean;
|
|
53
|
-
canTopup: boolean;
|
|
54
|
-
name: string;
|
|
55
|
-
withdrawFrequency: BN;
|
|
56
|
-
recipient: PublicKey;
|
|
57
|
-
partner: PublicKey;
|
|
58
|
-
}
|
|
59
|
-
interface CreateUncheckedStreamAccounts {
|
|
60
|
-
payer?: PublicKey;
|
|
61
|
-
sender: PublicKey;
|
|
62
|
-
senderTokens: PublicKey;
|
|
63
|
-
metadata: PublicKey;
|
|
64
|
-
escrowTokens: PublicKey;
|
|
65
|
-
mint: PublicKey;
|
|
66
|
-
feeOracle: PublicKey;
|
|
67
|
-
rent: PublicKey;
|
|
68
|
-
timelockProgram: PublicKey;
|
|
69
|
-
tokenProgram: PublicKey;
|
|
70
|
-
withdrawor: PublicKey;
|
|
71
|
-
systemProgram: PublicKey;
|
|
72
|
-
}
|
|
73
|
-
export declare const createUncheckedStreamInstruction: (data: CreateUncheckedStreamData, programId: PublicKey, accounts: CreateUncheckedStreamAccounts) => TransactionInstruction;
|
|
74
|
-
interface WithdrawAccounts {
|
|
75
|
-
authority: PublicKey;
|
|
76
|
-
recipient: PublicKey;
|
|
77
|
-
recipientTokens: PublicKey;
|
|
78
|
-
metadata: PublicKey;
|
|
79
|
-
escrowTokens: PublicKey;
|
|
80
|
-
streamflowTreasury: PublicKey;
|
|
81
|
-
streamflowTreasuryTokens: PublicKey;
|
|
82
|
-
partner: PublicKey;
|
|
83
|
-
partnerTokens: PublicKey;
|
|
84
|
-
mint: PublicKey;
|
|
85
|
-
tokenProgram: PublicKey;
|
|
86
|
-
}
|
|
87
|
-
export declare const withdrawStreamInstruction: (amount: BN, programId: PublicKey, { authority, recipient, recipientTokens, metadata, escrowTokens, streamflowTreasury, streamflowTreasuryTokens, partner, partnerTokens, mint, tokenProgram, }: WithdrawAccounts) => TransactionInstruction;
|
|
88
|
-
interface UpdateAccounts {
|
|
89
|
-
authority: PublicKey;
|
|
90
|
-
metadata: PublicKey;
|
|
91
|
-
withdrawor: PublicKey;
|
|
92
|
-
systemProgram: PublicKey;
|
|
93
|
-
}
|
|
94
|
-
export declare const updateStreamInstruction: (params: IUpdateData, programId: PublicKey, { authority, metadata, withdrawor, systemProgram }: UpdateAccounts) => TransactionInstruction;
|
|
95
|
-
interface CancelAccounts {
|
|
96
|
-
authority: PublicKey;
|
|
97
|
-
sender: PublicKey;
|
|
98
|
-
senderTokens: PublicKey;
|
|
99
|
-
recipient: PublicKey;
|
|
100
|
-
recipientTokens: PublicKey;
|
|
101
|
-
metadata: PublicKey;
|
|
102
|
-
escrowTokens: PublicKey;
|
|
103
|
-
streamflowTreasury: PublicKey;
|
|
104
|
-
streamflowTreasuryTokens: PublicKey;
|
|
105
|
-
partner: PublicKey;
|
|
106
|
-
partnerTokens: PublicKey;
|
|
107
|
-
mint: PublicKey;
|
|
108
|
-
tokenProgram: PublicKey;
|
|
109
|
-
}
|
|
110
|
-
export declare const cancelStreamInstruction: (programId: PublicKey, { authority, sender, senderTokens, recipient, recipientTokens, metadata, escrowTokens, streamflowTreasury, streamflowTreasuryTokens, partner, partnerTokens, mint, tokenProgram, }: CancelAccounts) => TransactionInstruction;
|
|
111
|
-
interface TransferAccounts {
|
|
112
|
-
authority: PublicKey;
|
|
113
|
-
newRecipient: PublicKey;
|
|
114
|
-
newRecipientTokens: PublicKey;
|
|
115
|
-
metadata: PublicKey;
|
|
116
|
-
mint: PublicKey;
|
|
117
|
-
rent: PublicKey;
|
|
118
|
-
tokenProgram: PublicKey;
|
|
119
|
-
associatedTokenProgram: PublicKey;
|
|
120
|
-
systemProgram: PublicKey;
|
|
121
|
-
}
|
|
122
|
-
export declare const transferStreamInstruction: (programId: PublicKey, { authority, newRecipient, newRecipientTokens, metadata, mint, rent, tokenProgram, associatedTokenProgram, systemProgram, }: TransferAccounts) => TransactionInstruction;
|
|
123
|
-
interface TopupAccounts {
|
|
124
|
-
sender: PublicKey;
|
|
125
|
-
senderTokens: PublicKey;
|
|
126
|
-
metadata: PublicKey;
|
|
127
|
-
escrowTokens: PublicKey;
|
|
128
|
-
streamflowTreasury: PublicKey;
|
|
129
|
-
streamflowTreasuryTokens: PublicKey;
|
|
130
|
-
partner: PublicKey;
|
|
131
|
-
partnerTokens: PublicKey;
|
|
132
|
-
mint: PublicKey;
|
|
133
|
-
tokenProgram: PublicKey;
|
|
134
|
-
withdrawor: PublicKey;
|
|
135
|
-
systemProgram: PublicKey;
|
|
136
|
-
}
|
|
137
|
-
export declare const topupStreamInstruction: (amount: BN, programId: PublicKey, { sender, senderTokens, metadata, escrowTokens, streamflowTreasury, streamflowTreasuryTokens, partner, partnerTokens, mint, tokenProgram, withdrawor, systemProgram, }: TopupAccounts) => TransactionInstruction;
|
|
138
|
-
export declare const prepareWrappedAccount: (connection: Connection, senderAddress: PublicKey, amount: BN) => Promise<TransactionInstruction[]>;
|
|
139
|
-
export {};
|