Class SmartContractTransactionsFactory
Constructors
constructor
- new SmartContractTransactionsFactory(
options: { abi?: IAbi; config: IConfig },
): SmartContractTransactionsFactory Parameters
- options: { abi?: IAbi; config: IConfig }
Methods
createTransactionForChangingOwnerAddress
createTransactionForClaimingDeveloperRewards
createTransactionForDeploy
- createTransactionForDeploy(
options: {
arguments?: any[];
bytecode: Uint8Array<ArrayBufferLike>;
gasLimit: bigint;
isPayable?: boolean;
isPayableBySmartContract?: boolean;
isReadable?: boolean;
isUpgradeable?: boolean;
nativeTransferAmount?: bigint;
sender: IAddress;
},
): Transaction Parameters
- options: {
arguments?: any[];
bytecode: Uint8Array<ArrayBufferLike>;
gasLimit: bigint;
isPayable?: boolean;
isPayableBySmartContract?: boolean;
isReadable?: boolean;
isUpgradeable?: boolean;
nativeTransferAmount?: bigint;
sender: IAddress;
}
createTransactionForExecute
- createTransactionForExecute(
options: {
arguments?: any[];
contract: IAddress;
function: string;
gasLimit: bigint;
nativeTransferAmount?: bigint;
sender: IAddress;
tokenTransfers?: TokenTransfer[];
},
): Transaction Parameters
- options: {
arguments?: any[];
contract: IAddress;
function: string;
gasLimit: bigint;
nativeTransferAmount?: bigint;
sender: IAddress;
tokenTransfers?: TokenTransfer[];
}
createTransactionForUpgrade
- createTransactionForUpgrade(
options: {
arguments?: any[];
bytecode: Uint8Array<ArrayBufferLike>;
contract: IAddress;
gasLimit: bigint;
isPayable?: boolean;
isPayableBySmartContract?: boolean;
isReadable?: boolean;
isUpgradeable?: boolean;
nativeTransferAmount?: bigint;
sender: IAddress;
},
): Transaction Parameters
- options: {
arguments?: any[];
bytecode: Uint8Array<ArrayBufferLike>;
contract: IAddress;
gasLimit: bigint;
isPayable?: boolean;
isPayableBySmartContract?: boolean;
isReadable?: boolean;
isUpgradeable?: boolean;
nativeTransferAmount?: bigint;
sender: IAddress;
}
Use this class to create transactions to deploy, call or upgrade a smart contract.