Search
Preparing search index...
The search index is not available
Harmony_SDK_Doc
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
harmony-staking
StakingFactory
Class StakingFactory
Hierarchy
StakingFactory
Index
Constructors
constructor
Properties
chain
Id
directive
gas
Limit
gas
Price
messenger
nonce
signature
stake
Msg
Methods
build
collect
Rewards
create
Validator
delegate
edit
Validator
set
Messenger
set
TxParams
undelegate
Constructors
constructor
new
Staking
Factory
(
messenger
:
Messenger
)
:
StakingFactory
Parameters
messenger:
Messenger
Returns
StakingFactory
Properties
chain
Id
chain
Id
:
number
Optional
directive
directive
:
Directive
gas
Limit
gas
Limit
:
number
|
string
gas
Price
gas
Price
:
number
|
string
messenger
messenger
:
Messenger
nonce
nonce
:
number
|
string
signature
signature
:
Signature
Optional
stake
Msg
stake
Msg
:
CreateValidator
|
EditValidator
|
Delegate
|
Undelegate
|
CollectRewards
Methods
build
build
(
)
:
StakingTransaction
Returns
StakingTransaction
collect
Rewards
collect
Rewards
(
__namedParameters
:
{
delegatorAddress
:
string
}
)
:
this
Parameters
__namedParameters:
{
delegatorAddress
:
string
}
delegator
Address
:
string
Returns
this
create
Validator
create
Validator
(
__namedParameters
:
{
amount
:
number
;
commissionRate
:
CommissionRateInterface
;
description
:
DescriptionInterface
;
maxTotalDelegation
:
number
;
minSelfDelegation
:
number
;
slotPubKeys
:
string
[]
;
validatorAddress
:
string
}
)
:
this
Parameters
__namedParameters:
{
amount
:
number
;
commissionRate
:
CommissionRateInterface
;
description
:
DescriptionInterface
;
maxTotalDelegation
:
number
;
minSelfDelegation
:
number
;
slotPubKeys
:
string
[]
;
validatorAddress
:
string
}
amount
:
number
commission
Rate
:
CommissionRateInterface
description
:
DescriptionInterface
max
Total
Delegation
:
number
min
Self
Delegation
:
number
slot
Pub
Keys
:
string
[]
validator
Address
:
string
Returns
this
delegate
delegate
(
__namedParameters
:
{
amount
:
number
;
delegatorAddress
:
string
;
validatorAddress
:
string
}
)
:
this
Parameters
__namedParameters:
{
amount
:
number
;
delegatorAddress
:
string
;
validatorAddress
:
string
}
amount
:
number
delegator
Address
:
string
validator
Address
:
string
Returns
this
edit
Validator
edit
Validator
(
__namedParameters
:
{
commissionRate
:
string
;
description
:
DescriptionInterface
;
maxTotalDelegation
:
number
;
minSelfDelegation
:
number
;
slotKeyToAdd
:
string
;
slotKeyToRemove
:
string
;
validatorAddress
:
string
}
)
:
this
Parameters
__namedParameters:
{
commissionRate
:
string
;
description
:
DescriptionInterface
;
maxTotalDelegation
:
number
;
minSelfDelegation
:
number
;
slotKeyToAdd
:
string
;
slotKeyToRemove
:
string
;
validatorAddress
:
string
}
commission
Rate
:
string
description
:
DescriptionInterface
max
Total
Delegation
:
number
min
Self
Delegation
:
number
slot
Key
ToAdd
:
string
slot
Key
ToRemove
:
string
validator
Address
:
string
Returns
this
set
Messenger
set
Messenger
(
messenger
:
Messenger
)
:
void
Parameters
messenger:
Messenger
Returns
void
set
TxParams
set
TxParams
(
__namedParameters
:
{
chainId
:
number
;
gasLimit
:
string
|
number
;
gasPrice
:
string
|
number
;
nonce
:
string
|
number
;
signature
:
any
}
)
:
this
Parameters
__namedParameters:
{
chainId
:
number
;
gasLimit
:
string
|
number
;
gasPrice
:
string
|
number
;
nonce
:
string
|
number
;
signature
:
any
}
chain
Id
:
number
gas
Limit
:
string
|
number
gas
Price
:
string
|
number
nonce
:
string
|
number
signature
:
any
Returns
this
undelegate
undelegate
(
__namedParameters
:
{
amount
:
number
;
delegatorAddress
:
string
;
validatorAddress
:
string
}
)
:
this
Parameters
__namedParameters:
{
amount
:
number
;
delegatorAddress
:
string
;
validatorAddress
:
string
}
amount
:
number
delegator
Address
:
string
validator
Address
:
string
Returns
this
Globals
harmony-
account
harmony-
contract
harmony-
core
harmony-
crypto
harmony-
network
harmony-
staking
harmony-
transaction
harmony-
utils
Collect
Rewards
Create
Validator
Delegate
Edit
Validator
Staking
Factory
constructor
chain
Id
directive
gas
Limit
gas
Price
messenger
nonce
signature
stake
Msg
build
collect
Rewards
create
Validator
delegate
edit
Validator
set
Messenger
set
TxParams
undelegate
Staking
Transaction
Undelegate
Generated using
TypeDoc