Class DelegationTransactionsFactory
Properties
Private
Readonly
argSerializer
Private
Readonly
config
config: Config
Methods
Private
computeExecutionGasLimitForNodesManagement
- computeExecutionGasLimitForNodesManagement(numNodes): bigint
Returns bigint
createTransactionForAddingNodes
- createTransactionForAddingNodes(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
publicKeys: IValidatorPublicKey[];
sender: IAddress;
signedMessages: Uint8Array[];
}delegationContract: IAddress
publicKeys: IValidatorPublicKey[]
signedMessages: Uint8Array[]
createTransactionForChangingServiceFee
- createTransactionForChangingServiceFee(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
sender: IAddress;
serviceFee: bigint;
}delegationContract: IAddress
serviceFee: bigint
createTransactionForModifyingDelegationCap
- createTransactionForModifyingDelegationCap(options): Transaction
Parameters
- options: {
delegationCap: bigint;
delegationContract: IAddress;
sender: IAddress;
}delegationCap: bigint
delegationContract: IAddress
createTransactionForNewDelegationContract
- createTransactionForNewDelegationContract(options): Transaction
Parameters
- options: {
amount: bigint;
sender: IAddress;
serviceFee: bigint;
totalDelegationCap: bigint;
}amount: bigint
serviceFee: bigint
totalDelegationCap: bigint
createTransactionForRemovingNodes
- createTransactionForRemovingNodes(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
publicKeys: IValidatorPublicKey[];
sender: IAddress;
}delegationContract: IAddress
publicKeys: IValidatorPublicKey[]
createTransactionForSettingAutomaticActivation
- createTransactionForSettingAutomaticActivation(options): Transaction
createTransactionForSettingCapCheckOnRedelegateRewards
- createTransactionForSettingCapCheckOnRedelegateRewards(options): Transaction
createTransactionForSettingMetadata
- createTransactionForSettingMetadata(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
identifier: string;
name: string;
sender: IAddress;
website: string;
}delegationContract: IAddress
identifier: string
name: string
website: string
createTransactionForStakingNodes
- createTransactionForStakingNodes(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
publicKeys: IValidatorPublicKey[];
sender: IAddress;
}delegationContract: IAddress
publicKeys: IValidatorPublicKey[]
createTransactionForUnbondingNodes
- createTransactionForUnbondingNodes(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
publicKeys: IValidatorPublicKey[];
sender: IAddress;
}delegationContract: IAddress
publicKeys: IValidatorPublicKey[]
createTransactionForUnjailingNodes
- createTransactionForUnjailingNodes(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
publicKeys: IValidatorPublicKey[];
sender: IAddress;
}delegationContract: IAddress
publicKeys: IValidatorPublicKey[]
createTransactionForUnsettingAutomaticActivation
- createTransactionForUnsettingAutomaticActivation(options): Transaction
createTransactionForUnsettingCapCheckOnRedelegateRewards
- createTransactionForUnsettingCapCheckOnRedelegateRewards(options): Transaction
createTransactionForUnstakingNodes
- createTransactionForUnstakingNodes(options): Transaction
Parameters
- options: {
delegationContract: IAddress;
publicKeys: IValidatorPublicKey[];
sender: IAddress;
}delegationContract: IAddress
publicKeys: IValidatorPublicKey[]
Use this class to create delegation related transactions like creating a new delegation contract or adding nodes.