@coolwallet/sol
Version:
Coolwallet Solana sdk
58 lines (57 loc) • 2.08 kB
TypeScript
import * as types from '../config/types';
declare function compileTransferTransaction(transaction: {
fromPubkey: types.Address;
toPubkey: types.Address;
recentBlockhash: string;
lamports: number | string;
computeUnitPrice?: string;
computeUnitLimit?: string;
}): types.TransactionArgs;
declare function compileSplTokenTransaction(transaction: {
signer: types.Address;
fromTokenAccount: types.Address;
toTokenAccount: types.Address;
recentBlockhash: string;
amount: number | string;
programId: types.TokenProgramId;
tokenInfo: types.TokenInfo;
computeUnitPrice?: string;
computeUnitLimit?: string;
}): types.TransactionArgs;
declare function compileAssociateTokenAccount(transaction: {
signer: types.Address;
owner: types.Address;
associateAccount: types.Address;
token: types.Address;
recentBlockhash: string;
programId: types.TokenProgramId;
}): types.TransactionArgs;
declare function compileUndelegate(transaction: {
feePayer: types.Address;
recentBlockhash: string;
stakePubkey: types.Address;
authorizedPubkey: types.Address;
computeUnitPrice?: string;
computeUnitLimit?: string;
}): types.TransactionArgs;
declare function compileDelegateAndCreateAccountWithSeed(transaction: {
fromPubkey: types.Address;
newAccountPubkey: types.Address;
basePubkey: types.Address;
votePubkey: types.Address;
seed: string;
lamports: string | number;
recentBlockhash: string;
computeUnitPrice?: string;
computeUnitLimit?: string;
}): types.TransactionArgs;
declare function compileStakingWithdraw(transaction: {
authorizedPubkey: types.Address;
stakePubkey: types.Address;
withdrawToPubKey: types.Address;
recentBlockhash: string;
lamports: number | string;
computeUnitPrice?: string;
computeUnitLimit?: string;
}): types.TransactionArgs;
export { compileTransferTransaction, compileSplTokenTransaction, compileAssociateTokenAccount, compileUndelegate, compileDelegateAndCreateAccountWithSeed, compileStakingWithdraw, };