Documentation
¶
Index ¶
- type AcceleratorApi
- func (a AcceleratorApi) AddPhase(id types.Hash, name string, description string, url string, znnNeeded *big.Int, ...) (*nom.AccountBlock, error)
- func (a AcceleratorApi) CreateProject(name string, description string, url string, znnNeeded *big.Int, ...) (*nom.AccountBlock, error)
- func (a AcceleratorApi) Donate(amount *big.Int, zts types.ZenonTokenStandard) (*nom.AccountBlock, error)
- func (a AcceleratorApi) GetAll(pageIndex, pageSize uint32) (*embedded.ProjectList, error)
- func (a AcceleratorApi) GetPhaseById(id types.Hash) (*embedded.Phase, error)
- func (a AcceleratorApi) GetPillarVotes(name string, hashes []types.Hash) ([]definition.PillarVote, error)
- func (a AcceleratorApi) GetProjectById(id types.Hash) (*embedded.Project, error)
- func (a AcceleratorApi) GetVoteBreakdown(id types.Hash) (*definition.VoteBreakdown, error)
- func (a AcceleratorApi) UpdatePhase(id types.Hash, name string, description string, url string, znnNeeded *big.Int, ...) (*nom.AccountBlock, error)
- func (a AcceleratorApi) VoteByName(id types.Hash, pillarName string, vote uint8) (*nom.AccountBlock, error)
- func (a AcceleratorApi) VoteByProdAddress(id types.Hash, vote uint8) (*nom.AccountBlock, error)
- type PillarApi
- func (p PillarApi) CheckNameAvailability(name string) (bool, error)
- func (p PillarApi) CollectReward() (*nom.AccountBlock, error)
- func (p PillarApi) Delegate(name string) (*nom.AccountBlock, error)
- func (p PillarApi) DepositQsr(amount *big.Int) (*nom.AccountBlock, error)
- func (p PillarApi) GetAll(pageIndex, pageSize uint32) (*embedded.PillarInfoList, error)
- func (p PillarApi) GetByName(name string) (*embedded.PillarInfo, error)
- func (p PillarApi) GetByOwner(address types.Address) ([]embedded.PillarInfo, error)
- func (p PillarApi) GetDelegatedPillar(address types.Address) (*embedded.GetDelegatedPillarResponse, error)
- func (p PillarApi) GetDepositedQsr(address types.Address) (*big.Int, error)
- func (p PillarApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)
- func (p PillarApi) GetPillarEpochHistory(name string, pageIndex, pageSize uint32) (*embedded.PillarEpochHistoryList, error)
- func (p PillarApi) GetPillarsHistoryByEpoch(epoch uint64, pageIndex, pageSize uint32) (*embedded.PillarEpochHistoryList, error)
- func (p PillarApi) GetQsrRegistrationCost() (*big.Int, error)
- func (p PillarApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)
- func (p PillarApi) Register(name string, producerAddress types.Address, rewardAddress types.Address, ...) (*nom.AccountBlock, error)
- func (p PillarApi) RegisterLegacy(name string, producerAddress types.Address, rewardAddress types.Address, ...) (*nom.AccountBlock, error)
- func (p PillarApi) Revoke(name string) (*nom.AccountBlock, error)
- func (p PillarApi) Undelegate() (*nom.AccountBlock, error)
- func (p PillarApi) UpdatePillar(name string, producerAddress types.Address, rewardAddress types.Address, ...) (*nom.AccountBlock, error)
- func (p PillarApi) WithdrawQsr() (*nom.AccountBlock, error)
- type PlasmaApi
- func (p PlasmaApi) Cancel(id types.Hash) (*nom.AccountBlock, error)
- func (p PlasmaApi) Fuse(beneficiary types.Address, amount *big.Int) (*nom.AccountBlock, error)
- func (p PlasmaApi) Get(address types.Address) (*embedded.PlasmaInfo, error)
- func (p PlasmaApi) GetEntriesByAddress(address types.Address, pageIndex, pageSize uint32) (*embedded.FusionEntryList, error)
- func (p PlasmaApi) GetRequiredPoWForAccountBlock(param *embedded.GetRequiredParam) (*embedded.GetRequiredResult, error)
- type SentinelApi
- func (s SentinelApi) CollectReward() (*nom.AccountBlock, error)
- func (s SentinelApi) DepositQsr(amount *big.Int) (*nom.AccountBlock, error)
- func (s SentinelApi) GetAllActive(pageIndex, pageSize uint32) (*embedded.SentinelInfoList, error)
- func (s SentinelApi) GetByOwner(address types.Address) (*embedded.SentinelInfo, error)
- func (s SentinelApi) GetDepositedQsr(address types.Address) (*big.Int, error)
- func (s SentinelApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)
- func (s SentinelApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)
- func (s SentinelApi) Register() (*nom.AccountBlock, error)
- func (s SentinelApi) Revoke() (*nom.AccountBlock, error)
- func (s SentinelApi) WithdrawQsr() (*nom.AccountBlock, error)
- type SporkApi
- type StakeApi
- func (s StakeApi) Cancel(id types.Hash) (*nom.AccountBlock, error)
- func (s StakeApi) CollectReward() (*nom.AccountBlock, error)
- func (s StakeApi) GetEntriesByAddress(address types.Address, pageIndex, pageSize uint32) (*embedded.StakeList, error)
- func (s StakeApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)
- func (s StakeApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)
- func (s StakeApi) Stake(durationInSec int64, amount *big.Int) (*nom.AccountBlock, error)
- type SwapApi
- func (s SwapApi) GetAssets() (map[types.Hash]embedded.SwapAssetEntrySimple, error)
- func (s SwapApi) GetAssetsByKeyIdHash(keyIdHash types.Hash) (*embedded.SwapAssetEntry, error)
- func (s SwapApi) GetLegacyPillars() ([]embedded.SwapLegacyPillarEntry, error)
- func (s SwapApi) RetrieveAssets(pubKey string, signature string) (*nom.AccountBlock, error)
- type TokenApi
- func (t *TokenApi) BurnToken(zts types.ZenonTokenStandard, amount *big.Int) (*nom.AccountBlock, error)
- func (t *TokenApi) GetAll(pageIndex, pageSize uint32) (*embedded.TokenList, error)
- func (t *TokenApi) GetByOwner(address types.Address, pageIndex, pageSize uint32) (*embedded.TokenList, error)
- func (t *TokenApi) GetByZts(zts types.ZenonTokenStandard) (*api.Token, error)
- func (t *TokenApi) IssueToken(tokenName string, tokenSymbol string, tokenDomain string, totalSupply *big.Int, ...) (*nom.AccountBlock, error)
- func (t *TokenApi) MintToken(zts types.ZenonTokenStandard, amount *big.Int, receiveAddress types.Address) (*nom.AccountBlock, error)
- func (t *TokenApi) UpdateToken(zts types.ZenonTokenStandard, owner types.Address, mintable bool, ...) (*nom.AccountBlock, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceleratorApi ¶
type AcceleratorApi struct {
// contains filtered or unexported fields
}
func NewAcceleratorApi ¶
func NewAcceleratorApi(c client.Client) AcceleratorApi
func (AcceleratorApi) CreateProject ¶
func (a AcceleratorApi) CreateProject(name string, description string, url string, znnNeeded *big.Int, qsrNeeded *big.Int) (*nom.AccountBlock, error)
ContractMethods
func (AcceleratorApi) Donate ¶
func (a AcceleratorApi) Donate(amount *big.Int, zts types.ZenonTokenStandard) (*nom.AccountBlock, error)
func (AcceleratorApi) GetAll ¶
func (a AcceleratorApi) GetAll(pageIndex, pageSize uint32) (*embedded.ProjectList, error)
RPC
func (AcceleratorApi) GetPhaseById ¶
func (AcceleratorApi) GetPillarVotes ¶
func (a AcceleratorApi) GetPillarVotes(name string, hashes []types.Hash) ([]definition.PillarVote, error)
func (AcceleratorApi) GetProjectById ¶
func (AcceleratorApi) GetVoteBreakdown ¶
func (a AcceleratorApi) GetVoteBreakdown(id types.Hash) (*definition.VoteBreakdown, error)
func (AcceleratorApi) UpdatePhase ¶
func (AcceleratorApi) VoteByName ¶
func (a AcceleratorApi) VoteByName(id types.Hash, pillarName string, vote uint8) (*nom.AccountBlock, error)
func (AcceleratorApi) VoteByProdAddress ¶
func (a AcceleratorApi) VoteByProdAddress(id types.Hash, vote uint8) (*nom.AccountBlock, error)
type PillarApi ¶
type PillarApi struct {
// contains filtered or unexported fields
}
func NewPillarApi ¶
func (PillarApi) CheckNameAvailability ¶
func (PillarApi) CollectReward ¶
func (p PillarApi) CollectReward() (*nom.AccountBlock, error)
Common contract methods
func (PillarApi) DepositQsr ¶
func (PillarApi) GetAll ¶
func (p PillarApi) GetAll(pageIndex, pageSize uint32) (*embedded.PillarInfoList, error)
func (PillarApi) GetByName ¶
func (p PillarApi) GetByName(name string) (*embedded.PillarInfo, error)
func (PillarApi) GetByOwner ¶
func (PillarApi) GetDelegatedPillar ¶
func (PillarApi) GetDepositedQsr ¶
Common RPC
func (PillarApi) GetFrontierRewardByPage ¶
func (PillarApi) GetPillarEpochHistory ¶
func (PillarApi) GetPillarsHistoryByEpoch ¶
func (PillarApi) GetQsrRegistrationCost ¶
RPC
func (PillarApi) GetUncollectedReward ¶
func (p PillarApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)
func (PillarApi) Register ¶
func (p PillarApi) Register(name string, producerAddress types.Address, rewardAddress types.Address, giveBlockRewardPercentage uint8, giveDelegateRewardPercentage uint8) (*nom.AccountBlock, error)
Contract methods
func (PillarApi) RegisterLegacy ¶
func (PillarApi) Undelegate ¶
func (p PillarApi) Undelegate() (*nom.AccountBlock, error)
func (PillarApi) UpdatePillar ¶
func (PillarApi) WithdrawQsr ¶
func (p PillarApi) WithdrawQsr() (*nom.AccountBlock, error)
type PlasmaApi ¶
type PlasmaApi struct {
// contains filtered or unexported fields
}
func NewPlasmaApi ¶
func (PlasmaApi) GetEntriesByAddress ¶
func (PlasmaApi) GetRequiredPoWForAccountBlock ¶
func (p PlasmaApi) GetRequiredPoWForAccountBlock(param *embedded.GetRequiredParam) (*embedded.GetRequiredResult, error)
type SentinelApi ¶
type SentinelApi struct {
// contains filtered or unexported fields
}
func NewSentinelApi ¶
func NewSentinelApi(c client.Client) SentinelApi
func (SentinelApi) CollectReward ¶
func (s SentinelApi) CollectReward() (*nom.AccountBlock, error)
Common contract methods
func (SentinelApi) DepositQsr ¶
func (s SentinelApi) DepositQsr(amount *big.Int) (*nom.AccountBlock, error)
func (SentinelApi) GetAllActive ¶
func (s SentinelApi) GetAllActive(pageIndex, pageSize uint32) (*embedded.SentinelInfoList, error)
RPC
func (SentinelApi) GetByOwner ¶
func (s SentinelApi) GetByOwner(address types.Address) (*embedded.SentinelInfo, error)
func (SentinelApi) GetDepositedQsr ¶
Common RPC
func (SentinelApi) GetFrontierRewardByPage ¶
func (s SentinelApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)
func (SentinelApi) GetUncollectedReward ¶
func (s SentinelApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)
func (SentinelApi) Register ¶
func (s SentinelApi) Register() (*nom.AccountBlock, error)
Contract methods
func (SentinelApi) Revoke ¶
func (s SentinelApi) Revoke() (*nom.AccountBlock, error)
func (SentinelApi) WithdrawQsr ¶
func (s SentinelApi) WithdrawQsr() (*nom.AccountBlock, error)
type SporkApi ¶
type SporkApi struct {
// contains filtered or unexported fields
}
func NewSporkApi ¶
type StakeApi ¶
type StakeApi struct {
// contains filtered or unexported fields
}
func NewStakeApi ¶
func (StakeApi) CollectReward ¶
func (s StakeApi) CollectReward() (*nom.AccountBlock, error)
Common contract methods
func (StakeApi) GetEntriesByAddress ¶
func (s StakeApi) GetEntriesByAddress(address types.Address, pageIndex, pageSize uint32) (*embedded.StakeList, error)
RPC
func (StakeApi) GetFrontierRewardByPage ¶
func (StakeApi) GetUncollectedReward ¶
func (s StakeApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)
Common RPC
type SwapApi ¶
type SwapApi struct {
// contains filtered or unexported fields
}
func NewSwapApi ¶
func (SwapApi) GetAssetsByKeyIdHash ¶
RPC
func (SwapApi) GetLegacyPillars ¶
func (s SwapApi) GetLegacyPillars() ([]embedded.SwapLegacyPillarEntry, error)
func (SwapApi) RetrieveAssets ¶
Contract methods
type TokenApi ¶
type TokenApi struct {
// contains filtered or unexported fields
}
func NewTokenApi ¶
func (*TokenApi) BurnToken ¶
func (t *TokenApi) BurnToken(zts types.ZenonTokenStandard, amount *big.Int) (*nom.AccountBlock, error)
func (*TokenApi) GetByOwner ¶
func (*TokenApi) IssueToken ¶
func (t *TokenApi) IssueToken( tokenName string, tokenSymbol string, tokenDomain string, totalSupply *big.Int, maxSupply *big.Int, decimals uint8, mintable bool, burnable bool, utility bool) (*nom.AccountBlock, error)
Contract methods
func (*TokenApi) MintToken ¶
func (t *TokenApi) MintToken(zts types.ZenonTokenStandard, amount *big.Int, receiveAddress types.Address) (*nom.AccountBlock, error)
func (*TokenApi) UpdateToken ¶
func (t *TokenApi) UpdateToken(zts types.ZenonTokenStandard, owner types.Address, mintable bool, burnable bool) (*nom.AccountBlock, error)
Click to show internal directories.
Click to hide internal directories.