Name | Type | Description | Notes |
---|---|---|---|
Id | string | The ID of the staking position. | |
WalletId | string | The staker's wallet ID. | |
Address | string | The staker's wallet address. | |
Amounts | []AmountDetailsInner | The details about the staking amount. | |
PoolId | StakingPoolId | ||
TokenId | string | The token ID. | |
RewardsInfo | Pointer to map[string]interface{} | The information about the staking rewards. | [optional] |
CreatedTimestamp | int64 | The time when the staking position was created. | |
UpdatedTimestamp | int64 | The time when the staking position was last updated. | |
ValidatorInfo | BabylonValidator | ||
Extra | Pointer to StakingsExtra | [optional] |
func NewStakings(id string, walletId string, address string, amounts []AmountDetailsInner, poolId StakingPoolId, tokenId string, createdTimestamp int64, updatedTimestamp int64, validatorInfo BabylonValidator, ) *Stakings
NewStakings instantiates a new Stakings object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewStakingsWithDefaults() *Stakings
NewStakingsWithDefaults instantiates a new Stakings object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Stakings) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Stakings) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetId(v string)
SetId sets Id field to given value.
func (o *Stakings) GetWalletId() string
GetWalletId returns the WalletId field if non-nil, zero value otherwise.
func (o *Stakings) GetWalletIdOk() (*string, bool)
GetWalletIdOk returns a tuple with the WalletId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetWalletId(v string)
SetWalletId sets WalletId field to given value.
func (o *Stakings) GetAddress() string
GetAddress returns the Address field if non-nil, zero value otherwise.
func (o *Stakings) GetAddressOk() (*string, bool)
GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetAddress(v string)
SetAddress sets Address field to given value.
func (o *Stakings) GetAmounts() []AmountDetailsInner
GetAmounts returns the Amounts field if non-nil, zero value otherwise.
func (o *Stakings) GetAmountsOk() (*[]AmountDetailsInner, bool)
GetAmountsOk returns a tuple with the Amounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetAmounts(v []AmountDetailsInner)
SetAmounts sets Amounts field to given value.
func (o *Stakings) GetPoolId() StakingPoolId
GetPoolId returns the PoolId field if non-nil, zero value otherwise.
func (o *Stakings) GetPoolIdOk() (*StakingPoolId, bool)
GetPoolIdOk returns a tuple with the PoolId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetPoolId(v StakingPoolId)
SetPoolId sets PoolId field to given value.
func (o *Stakings) GetTokenId() string
GetTokenId returns the TokenId field if non-nil, zero value otherwise.
func (o *Stakings) GetTokenIdOk() (*string, bool)
GetTokenIdOk returns a tuple with the TokenId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetTokenId(v string)
SetTokenId sets TokenId field to given value.
func (o *Stakings) GetRewardsInfo() map[string]interface{}
GetRewardsInfo returns the RewardsInfo field if non-nil, zero value otherwise.
func (o *Stakings) GetRewardsInfoOk() (*map[string]interface{}, bool)
GetRewardsInfoOk returns a tuple with the RewardsInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetRewardsInfo(v map[string]interface{})
SetRewardsInfo sets RewardsInfo field to given value.
func (o *Stakings) HasRewardsInfo() bool
HasRewardsInfo returns a boolean if a field has been set.
func (o *Stakings) GetCreatedTimestamp() int64
GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise.
func (o *Stakings) GetCreatedTimestampOk() (*int64, bool)
GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetCreatedTimestamp(v int64)
SetCreatedTimestamp sets CreatedTimestamp field to given value.
func (o *Stakings) GetUpdatedTimestamp() int64
GetUpdatedTimestamp returns the UpdatedTimestamp field if non-nil, zero value otherwise.
func (o *Stakings) GetUpdatedTimestampOk() (*int64, bool)
GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetUpdatedTimestamp(v int64)
SetUpdatedTimestamp sets UpdatedTimestamp field to given value.
func (o *Stakings) GetValidatorInfo() BabylonValidator
GetValidatorInfo returns the ValidatorInfo field if non-nil, zero value otherwise.
func (o *Stakings) GetValidatorInfoOk() (*BabylonValidator, bool)
GetValidatorInfoOk returns a tuple with the ValidatorInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetValidatorInfo(v BabylonValidator)
SetValidatorInfo sets ValidatorInfo field to given value.
func (o *Stakings) GetExtra() StakingsExtra
GetExtra returns the Extra field if non-nil, zero value otherwise.
func (o *Stakings) GetExtraOk() (*StakingsExtra, bool)
GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Stakings) SetExtra(v StakingsExtra)
SetExtra sets Extra field to given value.
func (o *Stakings) HasExtra() bool
HasExtra returns a boolean if a field has been set.