embedded

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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(client *server.Client) *AcceleratorApi

func (*AcceleratorApi) AddPhase

func (aa *AcceleratorApi) AddPhase(id types.Hash, name, description, url string, znnFundsNeeded, qsrFundsNeeded *big.Int) *nom.AccountBlock

func (*AcceleratorApi) CreateProject

func (aa *AcceleratorApi) CreateProject(name, description, url string, znnFundsNeeded, qsrFundsNeeded *big.Int) *nom.AccountBlock

func (*AcceleratorApi) Donate

func (aa *AcceleratorApi) Donate(amount *big.Int, tokenStandard types.ZenonTokenStandard) *nom.AccountBlock

func (*AcceleratorApi) GetAll

func (aa *AcceleratorApi) GetAll(pageIndex, pageSize uint32) (*embedded.ProjectList, error)

func (*AcceleratorApi) GetPhaseById

func (aa *AcceleratorApi) GetPhaseById(id types.Hash) (*embedded.Phase, error)

func (*AcceleratorApi) GetPillarVotes

func (aa *AcceleratorApi) GetPillarVotes(name string, hashes []types.Hash) ([]*definition.PillarVote, error)

func (*AcceleratorApi) GetProjectById

func (aa *AcceleratorApi) GetProjectById(id types.Hash) (*embedded.Project, error)

func (*AcceleratorApi) GetVoteBreakdown

func (aa *AcceleratorApi) GetVoteBreakdown(id types.Hash) (*definition.VoteBreakdown, error)

func (*AcceleratorApi) UpdatePhase

func (aa *AcceleratorApi) UpdatePhase(id types.Hash, name, description, url string, znnFundsNeeded, qsrFundsNeeded *big.Int) *nom.AccountBlock

func (*AcceleratorApi) VoteByName

func (aa *AcceleratorApi) VoteByName(id types.Hash, pillarName string, vote uint8) *nom.AccountBlock

func (*AcceleratorApi) VoteByProducerAddress

func (aa *AcceleratorApi) VoteByProducerAddress(id types.Hash, vote uint8) *nom.AccountBlock

type BridgeApi

type BridgeApi struct {
	// contains filtered or unexported fields
}

func NewBridgeApi

func NewBridgeApi(client *server.Client) *BridgeApi

func (*BridgeApi) AddNetwork

func (ba *BridgeApi) AddNetwork(networkClass uint32, chainId uint32, name, contractAddress, metadata string) *nom.AccountBlock

func (*BridgeApi) ChangeAdministrator

func (ba *BridgeApi) ChangeAdministrator(administrator types.Address) *nom.AccountBlock

func (*BridgeApi) ChangeTssECDSAPubKey

func (ba *BridgeApi) ChangeTssECDSAPubKey(pubKey, signature, newSignature string) *nom.AccountBlock

func (*BridgeApi) Emergency

func (ba *BridgeApi) Emergency() *nom.AccountBlock

func (*BridgeApi) GetAllNetworks

func (ba *BridgeApi) GetAllNetworks(pageIndex, pageSize uint32) (*embedded.NetworkInfoList, error)

func (*BridgeApi) GetAllUnsignedWrapTokenRequests

func (ba *BridgeApi) GetAllUnsignedWrapTokenRequests(pageIndex, pageSize uint32) (*embedded.WrapTokenRequestList, error)

func (*BridgeApi) GetAllUnwrapTokenRequests

func (ba *BridgeApi) GetAllUnwrapTokenRequests(pageIndex, pageSize uint32) (*embedded.UnwrapTokenRequestList, error)

func (*BridgeApi) GetAllUnwrapTokenRequestsByToAddress

func (ba *BridgeApi) GetAllUnwrapTokenRequestsByToAddress(toAddress string, pageIndex, pageSize uint32) (*embedded.UnwrapTokenRequestList, error)

func (*BridgeApi) GetAllWrapTokenRequests

func (ba *BridgeApi) GetAllWrapTokenRequests(pageIndex, pageSize uint32) (*embedded.WrapTokenRequestList, error)

func (*BridgeApi) GetAllWrapTokenRequestsByToAddress

func (ba *BridgeApi) GetAllWrapTokenRequestsByToAddress(toAddress string, pageIndex, pageSize uint32) (*embedded.WrapTokenRequestList, error)

func (*BridgeApi) GetAllWrapTokenRequestsByToAddressNetworkClassAndChainId

func (ba *BridgeApi) GetAllWrapTokenRequestsByToAddressNetworkClassAndChainId(toAddress string, networkClass, pageIndex, pageSize uint32) (*embedded.WrapTokenRequestList, error)

func (*BridgeApi) GetBridgeInfo

func (ba *BridgeApi) GetBridgeInfo() (*definition.BridgeInfoVariable, error)

func (*BridgeApi) GetNetworkInfo

func (ba *BridgeApi) GetNetworkInfo(networkClass, chainId uint32) (*definition.NetworkInfo, error)

func (*BridgeApi) GetOrchestratorInfo

func (ba *BridgeApi) GetOrchestratorInfo() (*definition.OrchestratorInfo, error)

func (*BridgeApi) GetSecurityInfo

func (ba *BridgeApi) GetSecurityInfo() (*definition.SecurityInfoVariable, error)

func (*BridgeApi) GetTimeChallengesInfo

func (ba *BridgeApi) GetTimeChallengesInfo() (*embedded.TimeChallengesList, error)

func (*BridgeApi) GetUnwrapTokenRequestByHashAndLog

func (ba *BridgeApi) GetUnwrapTokenRequestByHashAndLog(txHash types.Hash, logIndex uint32) (*definition.UnwrapTokenRequest, error)

func (*BridgeApi) GetWrapTokenRequestById

func (ba *BridgeApi) GetWrapTokenRequestById(id types.Hash) (*definition.WrapTokenRequest, error)

func (*BridgeApi) Halt

func (ba *BridgeApi) Halt(signature string) *nom.AccountBlock

func (*BridgeApi) NominateGuardians

func (ba *BridgeApi) NominateGuardians(guardians []types.Address) *nom.AccountBlock

func (*BridgeApi) Redeem

func (ba *BridgeApi) Redeem(hash types.Hash, logIndex uint32) *nom.AccountBlock

func (*BridgeApi) RemoveNetwork

func (ba *BridgeApi) RemoveNetwork(networkClass uint32, chainId uint32) *nom.AccountBlock

func (*BridgeApi) RemoveTokenPair

func (ba *BridgeApi) RemoveTokenPair(networkClass uint32, chainId uint32, tokenStandard types.ZenonTokenStandard, tokenAddress string) *nom.AccountBlock

func (*BridgeApi) SetAllowKeygen

func (ba *BridgeApi) SetAllowKeygen(allowKeyGen bool) *nom.AccountBlock

func (*BridgeApi) SetBridgeMetadata

func (ba *BridgeApi) SetBridgeMetadata(metadata string) *nom.AccountBlock

func (*BridgeApi) SetNetworkMetadata

func (ba *BridgeApi) SetNetworkMetadata(networkClass uint32, chainId uint32, metadata string) *nom.AccountBlock

func (*BridgeApi) SetOrchestratorInfo

func (ba *BridgeApi) SetOrchestratorInfo(windowSize uint64, keyGenThreshold, confirmationsToFinality, estimatedMomentumTime uint32) *nom.AccountBlock

func (*BridgeApi) SetTokenPair

func (ba *BridgeApi) SetTokenPair(networkClass uint32, chainId uint32, tokenStandard types.ZenonTokenStandard, tokenAddress string, bridgeable, redeemable, owned bool, minAmount *big.Int, fee, redeemDelay uint32, metadata string) *nom.AccountBlock

func (*BridgeApi) Unhalt

func (ba *BridgeApi) Unhalt() *nom.AccountBlock

func (*BridgeApi) UnwrapToken

func (ba *BridgeApi) UnwrapToken(networkClass uint32, chainId uint32, tokenAddress string, txHash types.Hash, logIndex uint32, amount *big.Int, toAddress types.Address, signature string) *nom.AccountBlock

func (*BridgeApi) UpdateWrapRequest

func (ba *BridgeApi) UpdateWrapRequest(id types.Hash, signature string) *nom.AccountBlock

func (*BridgeApi) WrapToken

func (ba *BridgeApi) WrapToken(networkClass uint32, chainId uint32, toAddress string, amount *big.Int, tokenStandard types.ZenonTokenStandard) *nom.AccountBlock

type LiquidityApi

type LiquidityApi struct {
	// contains filtered or unexported fields
}

func NewLiquidityApi

func NewLiquidityApi(client *server.Client) *LiquidityApi

func (*LiquidityApi) CancelLiquidity

func (sa *LiquidityApi) CancelLiquidity(id types.Hash) *nom.AccountBlock

func (*LiquidityApi) CollectReward

func (sa *LiquidityApi) CollectReward() *nom.AccountBlock

func (*LiquidityApi) GetFrontierRewardByPage

func (sa *LiquidityApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)

func (*LiquidityApi) GetLiquidityInfo

func (sa *LiquidityApi) GetLiquidityInfo() (*definition.LiquidityInfo, error)

func (*LiquidityApi) GetLiquidityStakeEntriesByAddress

func (sa *LiquidityApi) GetLiquidityStakeEntriesByAddress(address types.Address, pageIndex, pageSize uint32) (*embedded.LiquidityStakeList, error)

func (*LiquidityApi) GetSecurityInfo

func (sa *LiquidityApi) GetSecurityInfo() (*definition.SecurityInfoVariable, error)

func (*LiquidityApi) GetTimeChallengesInfo

func (sa *LiquidityApi) GetTimeChallengesInfo() (*embedded.TimeChallengesList, error)

func (*LiquidityApi) GetUncollectedReward

func (sa *LiquidityApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)

func (*LiquidityApi) LiquidityStake

func (sa *LiquidityApi) LiquidityStake(durationInSec int64, amount *big.Int, zts types.ZenonTokenStandard) *nom.AccountBlock

func (*LiquidityApi) NominateGuardians

func (sa *LiquidityApi) NominateGuardians(guardians []types.Address) *nom.AccountBlock

func (*LiquidityApi) SetAdditionalReward

func (sa *LiquidityApi) SetAdditionalReward(znnReward *big.Int, qsrAmount *big.Int) *nom.AccountBlock

func (*LiquidityApi) SetIsHalted

func (sa *LiquidityApi) SetIsHalted(value bool) *nom.AccountBlock

func (*LiquidityApi) SetTokenTupleMethod

func (sa *LiquidityApi) SetTokenTupleMethod(tokenStandards []string, znnPercentages []uint32, qsrPercentages []uint32, minAmounts []*big.Int) *nom.AccountBlock

func (*LiquidityApi) UnlockLiquidityStakeEntries

func (sa *LiquidityApi) UnlockLiquidityStakeEntries(zts types.ZenonTokenStandard) *nom.AccountBlock

type PillarApi

type PillarApi struct {
	// contains filtered or unexported fields
}

func NewPillarApi

func NewPillarApi(client *server.Client) *PillarApi

func (*PillarApi) CheckNameAvailability

func (pa *PillarApi) CheckNameAvailability(name string) (*bool, error)

func (*PillarApi) CollectReward

func (pa *PillarApi) CollectReward() *nom.AccountBlock

func (*PillarApi) Delegate

func (pa *PillarApi) Delegate(name string) *nom.AccountBlock

func (*PillarApi) DepositQsr

func (pa *PillarApi) DepositQsr(amount *big.Int) *nom.AccountBlock

func (*PillarApi) GetAll

func (pa *PillarApi) GetAll(pageIndex, pageSize uint32) (*embedded.PillarInfoList, error)

func (*PillarApi) GetByName

func (pa *PillarApi) GetByName(name string) (*embedded.PillarInfo, error)

func (*PillarApi) GetByOwner

func (pa *PillarApi) GetByOwner(address types.Address) ([]*embedded.PillarInfo, error)

func (*PillarApi) GetDelegatedPillar

func (pa *PillarApi) GetDelegatedPillar(address types.Address) (*embedded.GetDelegatedPillarResponse, error)

func (*PillarApi) GetDepositedQsr

func (pa *PillarApi) GetDepositedQsr(address types.Address) (*big.Int, error)

func (*PillarApi) GetFrontierRewardByPage

func (pa *PillarApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)

func (*PillarApi) GetPillarEpochHistory

func (pa *PillarApi) GetPillarEpochHistory(pillarName string, pageIndex, pageSize uint32) (*embedded.PillarEpochHistoryList, error)

func (*PillarApi) GetPillarsHistoryByEpoch

func (pa *PillarApi) GetPillarsHistoryByEpoch(epoch uint64, pageIndex, pageSize uint32) (*embedded.PillarEpochHistoryList, error)

func (*PillarApi) GetQsrRegistrationCost

func (pa *PillarApi) GetQsrRegistrationCost() (*big.Int, error)

func (*PillarApi) GetUncollectedReward

func (pa *PillarApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)

func (*PillarApi) Register

func (pa *PillarApi) Register(name string, producerAddress, rewardAddress types.Address, blockProducingPercentage, delegationPercentage uint8) *nom.AccountBlock

func (*PillarApi) RegisterLegacy

func (pa *PillarApi) RegisterLegacy(name string, producerAddress, rewardAddress types.Address, blockProducingPercentage, delegationPercentage uint8, publicKey, signature string) *nom.AccountBlock

func (*PillarApi) Revoke

func (pa *PillarApi) Revoke() *nom.AccountBlock

func (*PillarApi) Undelegate

func (pa *PillarApi) Undelegate() *nom.AccountBlock

func (*PillarApi) UpdatePillar

func (pa *PillarApi) UpdatePillar(name string, producerAddress, rewardAddress types.Address, blockProducingPercentage, delegationPercentage uint8) *nom.AccountBlock

func (*PillarApi) WithdrawQsr

func (pa *PillarApi) WithdrawQsr() *nom.AccountBlock

type PlasmaApi

type PlasmaApi struct {
	// contains filtered or unexported fields
}

func NewPlasmaApi

func NewPlasmaApi(client *server.Client) *PlasmaApi

func (*PlasmaApi) Cancel

func (pa *PlasmaApi) Cancel(id types.Hash) *nom.AccountBlock

func (*PlasmaApi) Fuse

func (pa *PlasmaApi) Fuse(address types.Address, amount *big.Int) *nom.AccountBlock

func (*PlasmaApi) Get

func (pa *PlasmaApi) Get(address types.Address) (*embedded.PlasmaInfo, error)

func (*PlasmaApi) GetEntriesByAddress

func (pa *PlasmaApi) GetEntriesByAddress(address types.Address, pageIndex, pageSize uint32) (*embedded.FusionEntryList, error)

func (*PlasmaApi) GetRequiredPoWForAccountBlock

func (pa *PlasmaApi) GetRequiredPoWForAccountBlock(param embedded.GetRequiredParam) (*embedded.GetRequiredResult, error)

type SentinelApi

type SentinelApi struct {
	// contains filtered or unexported fields
}

func NewSentinelApi

func NewSentinelApi(client *server.Client) *SentinelApi

func (*SentinelApi) CollectReward

func (sa *SentinelApi) CollectReward() *nom.AccountBlock

func (*SentinelApi) DepositQsr

func (sa *SentinelApi) DepositQsr(amount *big.Int) *nom.AccountBlock

func (*SentinelApi) GetAllActive

func (sa *SentinelApi) GetAllActive(pageIndex, pageSize uint32) (*embedded.SentinelInfoList, error)

func (*SentinelApi) GetByOwner

func (sa *SentinelApi) GetByOwner(address types.Address) (*embedded.SentinelInfo, error)

func (*SentinelApi) GetDepositedQsr

func (sa *SentinelApi) GetDepositedQsr(address types.Address) (*big.Int, error)

func (*SentinelApi) GetFrontierRewardByPage

func (sa *SentinelApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)

func (*SentinelApi) GetUncollectedReward

func (sa *SentinelApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)

func (*SentinelApi) Register

func (sa *SentinelApi) Register() *nom.AccountBlock

func (*SentinelApi) Revoke

func (sa *SentinelApi) Revoke() *nom.AccountBlock

func (*SentinelApi) WithdrawQsr

func (sa *SentinelApi) WithdrawQsr() *nom.AccountBlock

type SporkApi

type SporkApi struct {
	// contains filtered or unexported fields
}

func NewSporkApi

func NewSporkApi(client *server.Client) *SporkApi

func (*SporkApi) GetAll

func (sa *SporkApi) GetAll(pageIndex, pageSize uint32) (*embedded.SporkList, error)

type StakeApi

type StakeApi struct {
	// contains filtered or unexported fields
}

func NewStakeApi

func NewStakeApi(client *server.Client) *StakeApi

func (*StakeApi) Cancel

func (sa *StakeApi) Cancel(id types.Hash) *nom.AccountBlock

func (*StakeApi) CollectReward

func (sa *StakeApi) CollectReward() *nom.AccountBlock

func (*StakeApi) GetEntriesByAddress

func (sa *StakeApi) GetEntriesByAddress(address types.Address, pageIndex, pageSize uint32) (*embedded.StakeList, error)

func (*StakeApi) GetFrontierRewardByPage

func (sa *StakeApi) GetFrontierRewardByPage(address types.Address, pageIndex, pageSize uint32) (*embedded.RewardHistoryList, error)

func (*StakeApi) GetUncollectedReward

func (sa *StakeApi) GetUncollectedReward(address types.Address) (*definition.RewardDeposit, error)

func (*StakeApi) Stake

func (sa *StakeApi) Stake(durationInSec int64, amount *big.Int) *nom.AccountBlock

type SwapApi

type SwapApi struct {
	// contains filtered or unexported fields
}

func NewSwapApi

func NewSwapApi(client *server.Client) *SwapApi

func (*SwapApi) GetAssets

func (sa *SwapApi) GetAssets() (map[types.Hash]*embedded.SwapAssetEntrySimple, error)

func (*SwapApi) GetAssetsByKeyIdHash

func (sa *SwapApi) GetAssetsByKeyIdHash(keyIdHash types.Hash) (*embedded.SwapAssetEntry, error)

func (*SwapApi) GetLegacyPillars

func (sa *SwapApi) GetLegacyPillars() ([]*embedded.SwapLegacyPillarEntry, error)

type TokenApi

type TokenApi struct {
	// contains filtered or unexported fields
}

func NewTokenApi

func NewTokenApi(client *server.Client) *TokenApi

func (*TokenApi) Burn

func (ta *TokenApi) Burn(tokenStandard types.ZenonTokenStandard, amount *big.Int) *nom.AccountBlock

func (*TokenApi) GetAll

func (ta *TokenApi) GetAll(pageIndex, pageSize uint32) (*embedded.TokenList, error)

func (*TokenApi) GetByOwner

func (ta *TokenApi) GetByOwner(address types.Address, pageIndex, pageSize uint32) (*embedded.TokenList, error)

func (*TokenApi) GetByZts

func (ta *TokenApi) GetByZts(zts types.ZenonTokenStandard) (*api.Token, error)

func (*TokenApi) IssueToken

func (ta *TokenApi) IssueToken(tokenName, tokenSymbol, tokenDomain string, totalSupply, maxSupply *big.Int, decimals uint8, isMintable, isBurnable, isUtility bool) *nom.AccountBlock

func (*TokenApi) Mint

func (ta *TokenApi) Mint(tokenStandard types.ZenonTokenStandard, amount *big.Int, receiver types.Address) *nom.AccountBlock

func (*TokenApi) UpdateToken

func (ta *TokenApi) UpdateToken(tokenStandard types.ZenonTokenStandard, owner types.Address, isMintable, isBurnable bool) *nom.AccountBlock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL