Documentation ¶
Overview ¶
Package governance provides a client for the "governance" canister. Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go.
Index ¶
- type AccountIdentifier
- type Action
- type AddHotKey
- type AddOrRemoveNodeProvider
- type Agent
- func (a Agent) ClaimGtcNeurons(arg0 principal.Principal, arg1 []NeuronId) (*Result, error)
- func (a Agent) ClaimOrRefreshNeuronFromAccount(arg0 ClaimOrRefreshNeuronFromAccount) (*ClaimOrRefreshNeuronFromAccountResponse, error)
- func (a Agent) GetBuildMetadata() (*string, error)
- func (a Agent) GetFullNeuron(arg0 uint64) (*Result2, error)
- func (a Agent) GetFullNeuronByIdOrSubaccount(arg0 NeuronIdOrSubaccount) (*Result2, error)
- func (a Agent) GetLatestRewardEvent() (*RewardEvent, error)
- func (a Agent) GetMetrics() (*Result3, error)
- func (a Agent) GetMonthlyNodeProviderRewards() (*Result4, error)
- func (a Agent) GetMostRecentMonthlyNodeProviderRewards() (**MostRecentMonthlyNodeProviderRewards, error)
- func (a Agent) GetNetworkEconomicsParameters() (*NetworkEconomics, error)
- func (a Agent) GetNeuronIds() (*[]uint64, error)
- func (a Agent) GetNeuronInfo(arg0 uint64) (*Result5, error)
- func (a Agent) GetNeuronInfoByIdOrSubaccount(arg0 NeuronIdOrSubaccount) (*Result5, error)
- func (a Agent) GetNeuronsFundAuditInfo(arg0 GetNeuronsFundAuditInfoRequest) (*GetNeuronsFundAuditInfoResponse, error)
- func (a Agent) GetNodeProviderByCaller(arg0 idl.Null) (*Result7, error)
- func (a Agent) GetPendingProposals() (*[]ProposalInfo, error)
- func (a Agent) GetProposalInfo(arg0 uint64) (**ProposalInfo, error)
- func (a Agent) GetRestoreAgingSummary() (*RestoreAgingSummary, error)
- func (a Agent) ListKnownNeurons() (*ListKnownNeuronsResponse, error)
- func (a Agent) ListNeurons(arg0 ListNeurons) (*ListNeuronsResponse, error)
- func (a Agent) ListNodeProviders() (*ListNodeProvidersResponse, error)
- func (a Agent) ListProposals(arg0 ListProposalInfo) (*ListProposalInfoResponse, error)
- func (a Agent) ManageNeuron(arg0 ManageNeuron) (*ManageNeuronResponse, error)
- func (a Agent) SettleCommunityFundParticipation(arg0 SettleCommunityFundParticipation) (*Result, error)
- func (a Agent) SettleNeuronsFundParticipation(arg0 SettleNeuronsFundParticipationRequest) (*SettleNeuronsFundParticipationResponse, error)
- func (a Agent) SimulateManageNeuron(arg0 ManageNeuron) (*ManageNeuronResponse, error)
- func (a Agent) TransferGtcNeuron(arg0 NeuronId, arg1 NeuronId) (*Result, error)
- func (a Agent) UpdateNodeProvider(arg0 UpdateNodeProvider) (*Result, error)
- type Amount
- type ApproveGenesisKyc
- type Ballot
- type BallotInfo
- type By
- type Canister
- type CanisterStatusResultV2
- type CanisterSummary
- type CfNeuron
- type CfParticipant
- type Change
- type ChangeAutoStakeMaturity
- type ClaimOrRefresh
- type ClaimOrRefreshNeuronFromAccount
- type ClaimOrRefreshNeuronFromAccountResponse
- type ClaimOrRefreshResponse
- type Command
- type Command1
- type Command2
- type Committed
- type Committed1
- type Configure
- type Countries
- type CreateServiceNervousSystem
- type Decimal
- type DerivedProposalInformation
- type DeveloperDistribution
- type Disburse
- type DisburseResponse
- type DisburseToNeuron
- type DissolveState
- type Duration
- type ExecuteNnsFunction
- type Follow
- type Followees
- type Followers
- type FollowersMap
- type GetNeuronsFundAuditInfoRequest
- type GetNeuronsFundAuditInfoResponse
- type GlobalTimeOfDay
- type Governance
- type GovernanceCachedMetrics
- type GovernanceError
- type GovernanceParameters
- type IdealMatchedParticipationFunction
- type Image
- type IncreaseDissolveDelay
- type InitialTokenDistribution
- type KnownNeuron
- type KnownNeuronData
- type LedgerParameters
- type ListKnownNeuronsResponse
- type ListNeurons
- type ListNeuronsResponse
- type ListNodeProvidersResponse
- type ListProposalInfo
- type ListProposalInfoResponse
- type MakeProposalResponse
- type MakingSnsProposal
- type ManageNeuron
- type ManageNeuronResponse
- type Merge
- type MergeMaturity
- type MergeMaturityResponse
- type MergeResponse
- type Migration
- type Migrations
- type MostRecentMonthlyNodeProviderRewards
- type Motion
- type NetworkEconomics
- type Neuron
- type NeuronBasketConstructionParameters
- type NeuronBasketConstructionParameters1
- type NeuronDistribution
- type NeuronId
- type NeuronIdOrSubaccount
- type NeuronInFlightCommand
- type NeuronInfo
- type NeuronStakeTransfer
- type NeuronsFundAuditInfo
- type NeuronsFundData
- type NeuronsFundEconomics
- type NeuronsFundMatchedFundingCurveCoefficients
- type NeuronsFundNeuron
- type NeuronsFundNeuronPortion
- type NeuronsFundParticipation
- type NeuronsFundSnapshot
- type NodeProvider
- type Ok
- type Ok1
- type OpenSnsTokenSwap
- type Operation
- type Params
- type Percentage
- type Progress
- type Proposal
- type ProposalData
- type ProposalInfo
- type RegisterVote
- type RemoveHotKey
- type RestoreAgingNeuronGroup
- type RestoreAgingSummary
- type Result
- type Result1
- type Result10
- type Result2
- type Result3
- type Result4
- type Result5
- type Result6
- type Result7
- type Result8
- type Result9
- type RewardEvent
- type RewardMode
- type RewardNodeProvider
- type RewardNodeProviders
- type RewardToAccount
- type RewardToNeuron
- type SetDefaultFollowees
- type SetDissolveTimestamp
- type SetOpenTimeWindowRequest
- type SetSnsTokenSwapOpenTimeWindow
- type SettleCommunityFundParticipation
- type SettleNeuronsFundParticipationRequest
- type SettleNeuronsFundParticipationResponse
- type Spawn
- type SpawnResponse
- type Split
- type StakeMaturity
- type StakeMaturityResponse
- type SwapBackgroundInformation
- type SwapDistribution
- type SwapParameters
- type SwapParticipationLimits
- type Tally
- type TimeWindow
- type Tokens
- type UpdateNodeProvider
- type VotingRewardParameters
- type WaitForQuietState
- type XdrConversionRate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountIdentifier ¶
type AccountIdentifier struct {
Hash []byte `ic:"hash" json:"hash"`
}
type Action ¶
type Action struct { RegisterKnownNeuron *KnownNeuron `ic:"RegisterKnownNeuron,variant"` ManageNeuron *ManageNeuron `ic:"ManageNeuron,variant"` CreateServiceNervousSystem *CreateServiceNervousSystem `ic:"CreateServiceNervousSystem,variant"` ExecuteNnsFunction *ExecuteNnsFunction `ic:"ExecuteNnsFunction,variant"` RewardNodeProvider *RewardNodeProvider `ic:"RewardNodeProvider,variant"` OpenSnsTokenSwap *OpenSnsTokenSwap `ic:"OpenSnsTokenSwap,variant"` SetSnsTokenSwapOpenTimeWindow *SetSnsTokenSwapOpenTimeWindow `ic:"SetSnsTokenSwapOpenTimeWindow,variant"` SetDefaultFollowees *SetDefaultFollowees `ic:"SetDefaultFollowees,variant"` RewardNodeProviders *RewardNodeProviders `ic:"RewardNodeProviders,variant"` ManageNetworkEconomics *NetworkEconomics `ic:"ManageNetworkEconomics,variant"` ApproveGenesisKyc *ApproveGenesisKyc `ic:"ApproveGenesisKyc,variant"` AddOrRemoveNodeProvider *AddOrRemoveNodeProvider `ic:"AddOrRemoveNodeProvider,variant"` Motion *Motion `ic:"Motion,variant"` }
type AddOrRemoveNodeProvider ¶
type AddOrRemoveNodeProvider struct {
Change *Change `ic:"change,omitempty" json:"change,omitempty"`
}
type Agent ¶
Agent is a client for the "governance" canister.
func (Agent) ClaimGtcNeurons ¶
ClaimGtcNeurons calls the "claim_gtc_neurons" method on the "governance" canister.
func (Agent) ClaimOrRefreshNeuronFromAccount ¶
func (a Agent) ClaimOrRefreshNeuronFromAccount(arg0 ClaimOrRefreshNeuronFromAccount) (*ClaimOrRefreshNeuronFromAccountResponse, error)
ClaimOrRefreshNeuronFromAccount calls the "claim_or_refresh_neuron_from_account" method on the "governance" canister.
func (Agent) GetBuildMetadata ¶
GetBuildMetadata calls the "get_build_metadata" method on the "governance" canister.
func (Agent) GetFullNeuron ¶
GetFullNeuron calls the "get_full_neuron" method on the "governance" canister.
func (Agent) GetFullNeuronByIdOrSubaccount ¶
func (a Agent) GetFullNeuronByIdOrSubaccount(arg0 NeuronIdOrSubaccount) (*Result2, error)
GetFullNeuronByIdOrSubaccount calls the "get_full_neuron_by_id_or_subaccount" method on the "governance" canister.
func (Agent) GetLatestRewardEvent ¶
func (a Agent) GetLatestRewardEvent() (*RewardEvent, error)
GetLatestRewardEvent calls the "get_latest_reward_event" method on the "governance" canister.
func (Agent) GetMetrics ¶
GetMetrics calls the "get_metrics" method on the "governance" canister.
func (Agent) GetMonthlyNodeProviderRewards ¶
GetMonthlyNodeProviderRewards calls the "get_monthly_node_provider_rewards" method on the "governance" canister.
func (Agent) GetMostRecentMonthlyNodeProviderRewards ¶
func (a Agent) GetMostRecentMonthlyNodeProviderRewards() (**MostRecentMonthlyNodeProviderRewards, error)
GetMostRecentMonthlyNodeProviderRewards calls the "get_most_recent_monthly_node_provider_rewards" method on the "governance" canister.
func (Agent) GetNetworkEconomicsParameters ¶
func (a Agent) GetNetworkEconomicsParameters() (*NetworkEconomics, error)
GetNetworkEconomicsParameters calls the "get_network_economics_parameters" method on the "governance" canister.
func (Agent) GetNeuronIds ¶
GetNeuronIds calls the "get_neuron_ids" method on the "governance" canister.
func (Agent) GetNeuronInfo ¶
GetNeuronInfo calls the "get_neuron_info" method on the "governance" canister.
func (Agent) GetNeuronInfoByIdOrSubaccount ¶
func (a Agent) GetNeuronInfoByIdOrSubaccount(arg0 NeuronIdOrSubaccount) (*Result5, error)
GetNeuronInfoByIdOrSubaccount calls the "get_neuron_info_by_id_or_subaccount" method on the "governance" canister.
func (Agent) GetNeuronsFundAuditInfo ¶
func (a Agent) GetNeuronsFundAuditInfo(arg0 GetNeuronsFundAuditInfoRequest) (*GetNeuronsFundAuditInfoResponse, error)
GetNeuronsFundAuditInfo calls the "get_neurons_fund_audit_info" method on the "governance" canister.
func (Agent) GetNodeProviderByCaller ¶
GetNodeProviderByCaller calls the "get_node_provider_by_caller" method on the "governance" canister.
func (Agent) GetPendingProposals ¶
func (a Agent) GetPendingProposals() (*[]ProposalInfo, error)
GetPendingProposals calls the "get_pending_proposals" method on the "governance" canister.
func (Agent) GetProposalInfo ¶
func (a Agent) GetProposalInfo(arg0 uint64) (**ProposalInfo, error)
GetProposalInfo calls the "get_proposal_info" method on the "governance" canister.
func (Agent) GetRestoreAgingSummary ¶
func (a Agent) GetRestoreAgingSummary() (*RestoreAgingSummary, error)
GetRestoreAgingSummary calls the "get_restore_aging_summary" method on the "governance" canister.
func (Agent) ListKnownNeurons ¶
func (a Agent) ListKnownNeurons() (*ListKnownNeuronsResponse, error)
ListKnownNeurons calls the "list_known_neurons" method on the "governance" canister.
func (Agent) ListNeurons ¶
func (a Agent) ListNeurons(arg0 ListNeurons) (*ListNeuronsResponse, error)
ListNeurons calls the "list_neurons" method on the "governance" canister.
func (Agent) ListNodeProviders ¶
func (a Agent) ListNodeProviders() (*ListNodeProvidersResponse, error)
ListNodeProviders calls the "list_node_providers" method on the "governance" canister.
func (Agent) ListProposals ¶
func (a Agent) ListProposals(arg0 ListProposalInfo) (*ListProposalInfoResponse, error)
ListProposals calls the "list_proposals" method on the "governance" canister.
func (Agent) ManageNeuron ¶
func (a Agent) ManageNeuron(arg0 ManageNeuron) (*ManageNeuronResponse, error)
ManageNeuron calls the "manage_neuron" method on the "governance" canister.
func (Agent) SettleCommunityFundParticipation ¶
func (a Agent) SettleCommunityFundParticipation(arg0 SettleCommunityFundParticipation) (*Result, error)
SettleCommunityFundParticipation calls the "settle_community_fund_participation" method on the "governance" canister.
func (Agent) SettleNeuronsFundParticipation ¶
func (a Agent) SettleNeuronsFundParticipation(arg0 SettleNeuronsFundParticipationRequest) (*SettleNeuronsFundParticipationResponse, error)
SettleNeuronsFundParticipation calls the "settle_neurons_fund_participation" method on the "governance" canister.
func (Agent) SimulateManageNeuron ¶
func (a Agent) SimulateManageNeuron(arg0 ManageNeuron) (*ManageNeuronResponse, error)
SimulateManageNeuron calls the "simulate_manage_neuron" method on the "governance" canister.
func (Agent) TransferGtcNeuron ¶
TransferGtcNeuron calls the "transfer_gtc_neuron" method on the "governance" canister.
func (Agent) UpdateNodeProvider ¶
func (a Agent) UpdateNodeProvider(arg0 UpdateNodeProvider) (*Result, error)
UpdateNodeProvider calls the "update_node_provider" method on the "governance" canister.
type ApproveGenesisKyc ¶
type BallotInfo ¶
type By ¶
type By struct { NeuronIdOrSubaccount *struct { } `ic:"NeuronIdOrSubaccount,variant"` MemoAndController *ClaimOrRefreshNeuronFromAccount `ic:"MemoAndController,variant"` Memo *uint64 `ic:"Memo,variant"` }
type CanisterStatusResultV2 ¶
type CanisterStatusResultV2 struct { Status *int32 `ic:"status,omitempty" json:"status,omitempty"` FreezingThreshold *uint64 `ic:"freezing_threshold,omitempty" json:"freezing_threshold,omitempty"` Controllers []principal.Principal `ic:"controllers" json:"controllers"` MemorySize *uint64 `ic:"memory_size,omitempty" json:"memory_size,omitempty"` Cycles *uint64 `ic:"cycles,omitempty" json:"cycles,omitempty"` IdleCyclesBurnedPerDay *uint64 `ic:"idle_cycles_burned_per_day,omitempty" json:"idle_cycles_burned_per_day,omitempty"` ModuleHash []byte `ic:"module_hash" json:"module_hash"` }
type CanisterSummary ¶
type CanisterSummary struct { Status *CanisterStatusResultV2 `ic:"status,omitempty" json:"status,omitempty"` CanisterId *principal.Principal `ic:"canister_id,omitempty" json:"canister_id,omitempty"` }
type CfParticipant ¶
type Change ¶
type Change struct { ToRemove *NodeProvider `ic:"ToRemove,variant"` ToAdd *NodeProvider `ic:"ToAdd,variant"` }
type ChangeAutoStakeMaturity ¶
type ChangeAutoStakeMaturity struct {
RequestedSettingForAutoStakeMaturity bool `ic:"requested_setting_for_auto_stake_maturity" json:"requested_setting_for_auto_stake_maturity"`
}
type ClaimOrRefresh ¶
type ClaimOrRefresh struct {
By *By `ic:"by,omitempty" json:"by,omitempty"`
}
type ClaimOrRefreshNeuronFromAccountResponse ¶
type ClaimOrRefreshNeuronFromAccountResponse struct {
Result *Result1 `ic:"result,omitempty" json:"result,omitempty"`
}
type ClaimOrRefreshResponse ¶
type ClaimOrRefreshResponse struct {
RefreshedNeuronId *NeuronId `ic:"refreshed_neuron_id,omitempty" json:"refreshed_neuron_id,omitempty"`
}
type Command ¶
type Command struct { Spawn *Spawn `ic:"Spawn,variant"` Split *Split `ic:"Split,variant"` Follow *Follow `ic:"Follow,variant"` ClaimOrRefresh *ClaimOrRefresh `ic:"ClaimOrRefresh,variant"` Configure *Configure `ic:"Configure,variant"` RegisterVote *RegisterVote `ic:"RegisterVote,variant"` Merge *Merge `ic:"Merge,variant"` DisburseToNeuron *DisburseToNeuron `ic:"DisburseToNeuron,variant"` MakeProposal *Proposal `ic:"MakeProposal,variant"` StakeMaturity *StakeMaturity `ic:"StakeMaturity,variant"` MergeMaturity *MergeMaturity `ic:"MergeMaturity,variant"` Disburse *Disburse `ic:"Disburse,variant"` }
type Command1 ¶
type Command1 struct { Error *GovernanceError `ic:"Error,variant"` Spawn *SpawnResponse `ic:"Spawn,variant"` Split *SpawnResponse `ic:"Split,variant"` Follow *struct { } `ic:"Follow,variant"` ClaimOrRefresh *ClaimOrRefreshResponse `ic:"ClaimOrRefresh,variant"` Configure *struct { } `ic:"Configure,variant"` RegisterVote *struct { } `ic:"RegisterVote,variant"` Merge *MergeResponse `ic:"Merge,variant"` DisburseToNeuron *SpawnResponse `ic:"DisburseToNeuron,variant"` MakeProposal *MakeProposalResponse `ic:"MakeProposal,variant"` StakeMaturity *StakeMaturityResponse `ic:"StakeMaturity,variant"` MergeMaturity *MergeMaturityResponse `ic:"MergeMaturity,variant"` Disburse *DisburseResponse `ic:"Disburse,variant"` }
type Command2 ¶
type Command2 struct { Spawn *NeuronId `ic:"Spawn,variant"` Split *Split `ic:"Split,variant"` Configure *Configure `ic:"Configure,variant"` Merge *Merge `ic:"Merge,variant"` DisburseToNeuron *DisburseToNeuron `ic:"DisburseToNeuron,variant"` SyncCommand *struct { } `ic:"SyncCommand,variant"` ClaimOrRefreshNeuron *ClaimOrRefresh `ic:"ClaimOrRefreshNeuron,variant"` MergeMaturity *MergeMaturity `ic:"MergeMaturity,variant"` Disburse *Disburse `ic:"Disburse,variant"` }
type Committed ¶
type Committed struct { TotalDirectContributionIcpE8s *uint64 `ic:"total_direct_contribution_icp_e8s,omitempty" json:"total_direct_contribution_icp_e8s,omitempty"` TotalNeuronsFundContributionIcpE8s *uint64 `ic:"total_neurons_fund_contribution_icp_e8s,omitempty" json:"total_neurons_fund_contribution_icp_e8s,omitempty"` SnsGovernanceCanisterId *principal.Principal `ic:"sns_governance_canister_id,omitempty" json:"sns_governance_canister_id,omitempty"` }
type Committed1 ¶
type Committed1 struct { TotalDirectParticipationIcpE8s *uint64 `ic:"total_direct_participation_icp_e8s,omitempty" json:"total_direct_participation_icp_e8s,omitempty"` TotalNeuronsFundParticipationIcpE8s *uint64 `ic:"total_neurons_fund_participation_icp_e8s,omitempty" json:"total_neurons_fund_participation_icp_e8s,omitempty"` SnsGovernanceCanisterId *principal.Principal `ic:"sns_governance_canister_id,omitempty" json:"sns_governance_canister_id,omitempty"` }
type Configure ¶
type Configure struct {
Operation *Operation `ic:"operation,omitempty" json:"operation,omitempty"`
}
type CreateServiceNervousSystem ¶
type CreateServiceNervousSystem struct { Url *string `ic:"url,omitempty" json:"url,omitempty"` GovernanceParameters *GovernanceParameters `ic:"governance_parameters,omitempty" json:"governance_parameters,omitempty"` FallbackControllerPrincipalIds []principal.Principal `ic:"fallback_controller_principal_ids" json:"fallback_controller_principal_ids"` Logo *Image `ic:"logo,omitempty" json:"logo,omitempty"` Name *string `ic:"name,omitempty" json:"name,omitempty"` LedgerParameters *LedgerParameters `ic:"ledger_parameters,omitempty" json:"ledger_parameters,omitempty"` Description *string `ic:"description,omitempty" json:"description,omitempty"` DappCanisters []Canister `ic:"dapp_canisters" json:"dapp_canisters"` SwapParameters *SwapParameters `ic:"swap_parameters,omitempty" json:"swap_parameters,omitempty"` InitialTokenDistribution *InitialTokenDistribution `ic:"initial_token_distribution,omitempty" json:"initial_token_distribution,omitempty"` }
type Decimal ¶
type Decimal struct {
HumanReadable *string `ic:"human_readable,omitempty" json:"human_readable,omitempty"`
}
type DerivedProposalInformation ¶
type DerivedProposalInformation struct {
SwapBackgroundInformation *SwapBackgroundInformation `ic:"swap_background_information,omitempty" json:"swap_background_information,omitempty"`
}
type DeveloperDistribution ¶
type DeveloperDistribution struct {
DeveloperNeurons []NeuronDistribution `ic:"developer_neurons" json:"developer_neurons"`
}
type Disburse ¶
type Disburse struct { ToAccount *AccountIdentifier `ic:"to_account,omitempty" json:"to_account,omitempty"` Amount *Amount `ic:"amount,omitempty" json:"amount,omitempty"` }
type DisburseResponse ¶
type DisburseResponse struct {
TransferBlockHeight uint64 `ic:"transfer_block_height" json:"transfer_block_height"`
}
type DisburseToNeuron ¶
type DisburseToNeuron struct { DissolveDelaySeconds uint64 `ic:"dissolve_delay_seconds" json:"dissolve_delay_seconds"` KycVerified bool `ic:"kyc_verified" json:"kyc_verified"` AmountE8s uint64 `ic:"amount_e8s" json:"amount_e8s"` NewController *principal.Principal `ic:"new_controller,omitempty" json:"new_controller,omitempty"` Nonce uint64 `ic:"nonce" json:"nonce"` }
type DissolveState ¶
type Duration ¶
type Duration struct {
Seconds *uint64 `ic:"seconds,omitempty" json:"seconds,omitempty"`
}
type ExecuteNnsFunction ¶
type FollowersMap ¶
type GetNeuronsFundAuditInfoRequest ¶
type GetNeuronsFundAuditInfoRequest struct {
NnsProposalId *NeuronId `ic:"nns_proposal_id,omitempty" json:"nns_proposal_id,omitempty"`
}
type GetNeuronsFundAuditInfoResponse ¶
type GetNeuronsFundAuditInfoResponse struct {
Result *Result6 `ic:"result,omitempty" json:"result,omitempty"`
}
type GlobalTimeOfDay ¶
type GlobalTimeOfDay struct {
SecondsAfterUtcMidnight *uint64 `ic:"seconds_after_utc_midnight,omitempty" json:"seconds_after_utc_midnight,omitempty"`
}
type Governance ¶
type Governance struct { DefaultFollowees []struct { Field0 int32 `ic:"0" json:"0"` Field1 Followees `ic:"1" json:"1"` } `ic:"default_followees" json:"default_followees"` MakingSnsProposal *MakingSnsProposal `ic:"making_sns_proposal,omitempty" json:"making_sns_proposal,omitempty"` MostRecentMonthlyNodeProviderRewards *MostRecentMonthlyNodeProviderRewards `ic:"most_recent_monthly_node_provider_rewards,omitempty" json:"most_recent_monthly_node_provider_rewards,omitempty"` MaturityModulationLastUpdatedAtTimestampSeconds *uint64 `` /* 139-byte string literal not displayed */ WaitForQuietThresholdSeconds uint64 `ic:"wait_for_quiet_threshold_seconds" json:"wait_for_quiet_threshold_seconds"` Metrics *GovernanceCachedMetrics `ic:"metrics,omitempty" json:"metrics,omitempty"` NeuronManagementVotingPeriodSeconds *uint64 `ic:"neuron_management_voting_period_seconds,omitempty" json:"neuron_management_voting_period_seconds,omitempty"` NodeProviders []NodeProvider `ic:"node_providers" json:"node_providers"` CachedDailyMaturityModulationBasisPoints *int32 `ic:"cached_daily_maturity_modulation_basis_points,omitempty" json:"cached_daily_maturity_modulation_basis_points,omitempty"` Economics *NetworkEconomics `ic:"economics,omitempty" json:"economics,omitempty"` RestoreAgingSummary *RestoreAgingSummary `ic:"restore_aging_summary,omitempty" json:"restore_aging_summary,omitempty"` SpawningNeurons *bool `ic:"spawning_neurons,omitempty" json:"spawning_neurons,omitempty"` LatestRewardEvent *RewardEvent `ic:"latest_reward_event,omitempty" json:"latest_reward_event,omitempty"` ToClaimTransfers []NeuronStakeTransfer `ic:"to_claim_transfers" json:"to_claim_transfers"` ShortVotingPeriodSeconds uint64 `ic:"short_voting_period_seconds" json:"short_voting_period_seconds"` TopicFolloweeIndex []struct { Field0 int32 `ic:"0" json:"0"` Field1 FollowersMap `ic:"1" json:"1"` } `ic:"topic_followee_index" json:"topic_followee_index"` Migrations *Migrations `ic:"migrations,omitempty" json:"migrations,omitempty"` Proposals []struct { Field0 uint64 `ic:"0" json:"0"` Field1 ProposalData `ic:"1" json:"1"` } `ic:"proposals" json:"proposals"` XdrConversionRate *XdrConversionRate `ic:"xdr_conversion_rate,omitempty" json:"xdr_conversion_rate,omitempty"` InFlightCommands []struct { Field0 uint64 `ic:"0" json:"0"` Field1 NeuronInFlightCommand `ic:"1" json:"1"` } `ic:"in_flight_commands" json:"in_flight_commands"` Neurons []struct { Field0 uint64 `ic:"0" json:"0"` Field1 Neuron `ic:"1" json:"1"` } `ic:"neurons" json:"neurons"` GenesisTimestampSeconds uint64 `ic:"genesis_timestamp_seconds" json:"genesis_timestamp_seconds"` }
type GovernanceCachedMetrics ¶
type GovernanceCachedMetrics struct { TotalMaturityE8sEquivalent uint64 `ic:"total_maturity_e8s_equivalent" json:"total_maturity_e8s_equivalent"` NotDissolvingNeuronsE8sBuckets []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `ic:"not_dissolving_neurons_e8s_buckets" json:"not_dissolving_neurons_e8s_buckets"` DissolvingNeuronsStakedMaturityE8sEquivalentSum uint64 `ic:"dissolving_neurons_staked_maturity_e8s_equivalent_sum" json:"dissolving_neurons_staked_maturity_e8s_equivalent_sum"` GarbageCollectableNeuronsCount uint64 `ic:"garbage_collectable_neurons_count" json:"garbage_collectable_neurons_count"` DissolvingNeuronsStakedMaturityE8sEquivalentBuckets []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `` /* 127-byte string literal not displayed */ NeuronsWithInvalidStakeCount uint64 `ic:"neurons_with_invalid_stake_count" json:"neurons_with_invalid_stake_count"` NotDissolvingNeuronsCountBuckets []struct { Field0 uint64 `ic:"0" json:"0"` Field1 uint64 `ic:"1" json:"1"` } `ic:"not_dissolving_neurons_count_buckets" json:"not_dissolving_neurons_count_buckets"` EctNeuronCount uint64 `ic:"ect_neuron_count" json:"ect_neuron_count"` TotalSupplyIcp uint64 `ic:"total_supply_icp" json:"total_supply_icp"` NeuronsWithLessThan6MonthsDissolveDelayCount uint64 `ic:"neurons_with_less_than_6_months_dissolve_delay_count" json:"neurons_with_less_than_6_months_dissolve_delay_count"` DissolvedNeuronsCount uint64 `ic:"dissolved_neurons_count" json:"dissolved_neurons_count"` CommunityFundTotalMaturityE8sEquivalent uint64 `ic:"community_fund_total_maturity_e8s_equivalent" json:"community_fund_total_maturity_e8s_equivalent"` TotalStakedE8sSeed uint64 `ic:"total_staked_e8s_seed" json:"total_staked_e8s_seed"` TotalStakedMaturityE8sEquivalentEct uint64 `ic:"total_staked_maturity_e8s_equivalent_ect" json:"total_staked_maturity_e8s_equivalent_ect"` TotalStakedE8s uint64 `ic:"total_staked_e8s" json:"total_staked_e8s"` NotDissolvingNeuronsCount uint64 `ic:"not_dissolving_neurons_count" json:"not_dissolving_neurons_count"` TotalLockedE8s uint64 `ic:"total_locked_e8s" json:"total_locked_e8s"` NeuronsFundTotalActiveNeurons uint64 `ic:"neurons_fund_total_active_neurons" json:"neurons_fund_total_active_neurons"` TotalStakedMaturityE8sEquivalent uint64 `ic:"total_staked_maturity_e8s_equivalent" json:"total_staked_maturity_e8s_equivalent"` NotDissolvingNeuronsE8sBucketsEct []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `ic:"not_dissolving_neurons_e8s_buckets_ect" json:"not_dissolving_neurons_e8s_buckets_ect"` TotalStakedE8sEct uint64 `ic:"total_staked_e8s_ect" json:"total_staked_e8s_ect"` NotDissolvingNeuronsStakedMaturityE8sEquivalentSum uint64 `` /* 127-byte string literal not displayed */ DissolvedNeuronsE8s uint64 `ic:"dissolved_neurons_e8s" json:"dissolved_neurons_e8s"` DissolvingNeuronsE8sBucketsSeed []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `ic:"dissolving_neurons_e8s_buckets_seed" json:"dissolving_neurons_e8s_buckets_seed"` NeuronsWithLessThan6MonthsDissolveDelayE8s uint64 `ic:"neurons_with_less_than_6_months_dissolve_delay_e8s" json:"neurons_with_less_than_6_months_dissolve_delay_e8s"` NotDissolvingNeuronsStakedMaturityE8sEquivalentBuckets []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `` /* 135-byte string literal not displayed */ DissolvingNeuronsCountBuckets []struct { Field0 uint64 `ic:"0" json:"0"` Field1 uint64 `ic:"1" json:"1"` } `ic:"dissolving_neurons_count_buckets" json:"dissolving_neurons_count_buckets"` DissolvingNeuronsE8sBucketsEct []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `ic:"dissolving_neurons_e8s_buckets_ect" json:"dissolving_neurons_e8s_buckets_ect"` DissolvingNeuronsCount uint64 `ic:"dissolving_neurons_count" json:"dissolving_neurons_count"` DissolvingNeuronsE8sBuckets []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `ic:"dissolving_neurons_e8s_buckets" json:"dissolving_neurons_e8s_buckets"` TotalStakedMaturityE8sEquivalentSeed uint64 `ic:"total_staked_maturity_e8s_equivalent_seed" json:"total_staked_maturity_e8s_equivalent_seed"` CommunityFundTotalStakedE8s uint64 `ic:"community_fund_total_staked_e8s" json:"community_fund_total_staked_e8s"` NotDissolvingNeuronsE8sBucketsSeed []struct { Field0 uint64 `ic:"0" json:"0"` Field1 float64 `ic:"1" json:"1"` } `ic:"not_dissolving_neurons_e8s_buckets_seed" json:"not_dissolving_neurons_e8s_buckets_seed"` TimestampSeconds uint64 `ic:"timestamp_seconds" json:"timestamp_seconds"` SeedNeuronCount uint64 `ic:"seed_neuron_count" json:"seed_neuron_count"` }
type GovernanceError ¶
type GovernanceParameters ¶
type GovernanceParameters struct { NeuronMaximumDissolveDelayBonus *Percentage `ic:"neuron_maximum_dissolve_delay_bonus,omitempty" json:"neuron_maximum_dissolve_delay_bonus,omitempty"` NeuronMaximumAgeForAgeBonus *Duration `ic:"neuron_maximum_age_for_age_bonus,omitempty" json:"neuron_maximum_age_for_age_bonus,omitempty"` NeuronMaximumDissolveDelay *Duration `ic:"neuron_maximum_dissolve_delay,omitempty" json:"neuron_maximum_dissolve_delay,omitempty"` NeuronMinimumDissolveDelayToVote *Duration `ic:"neuron_minimum_dissolve_delay_to_vote,omitempty" json:"neuron_minimum_dissolve_delay_to_vote,omitempty"` NeuronMaximumAgeBonus *Percentage `ic:"neuron_maximum_age_bonus,omitempty" json:"neuron_maximum_age_bonus,omitempty"` NeuronMinimumStake *Tokens `ic:"neuron_minimum_stake,omitempty" json:"neuron_minimum_stake,omitempty"` ProposalWaitForQuietDeadlineIncrease *Duration `ic:"proposal_wait_for_quiet_deadline_increase,omitempty" json:"proposal_wait_for_quiet_deadline_increase,omitempty"` ProposalInitialVotingPeriod *Duration `ic:"proposal_initial_voting_period,omitempty" json:"proposal_initial_voting_period,omitempty"` ProposalRejectionFee *Tokens `ic:"proposal_rejection_fee,omitempty" json:"proposal_rejection_fee,omitempty"` VotingRewardParameters *VotingRewardParameters `ic:"voting_reward_parameters,omitempty" json:"voting_reward_parameters,omitempty"` }
type IdealMatchedParticipationFunction ¶
type IdealMatchedParticipationFunction struct {
SerializedRepresentation *string `ic:"serialized_representation,omitempty" json:"serialized_representation,omitempty"`
}
type Image ¶
type Image struct {
Base64Encoding *string `ic:"base64_encoding,omitempty" json:"base64_encoding,omitempty"`
}
type IncreaseDissolveDelay ¶
type IncreaseDissolveDelay struct {
AdditionalDissolveDelaySeconds uint32 `ic:"additional_dissolve_delay_seconds" json:"additional_dissolve_delay_seconds"`
}
type InitialTokenDistribution ¶
type InitialTokenDistribution struct { TreasuryDistribution *SwapDistribution `ic:"treasury_distribution,omitempty" json:"treasury_distribution,omitempty"` DeveloperDistribution *DeveloperDistribution `ic:"developer_distribution,omitempty" json:"developer_distribution,omitempty"` SwapDistribution *SwapDistribution `ic:"swap_distribution,omitempty" json:"swap_distribution,omitempty"` }
type KnownNeuron ¶
type KnownNeuron struct { Id *NeuronId `ic:"id,omitempty" json:"id,omitempty"` KnownNeuronData *KnownNeuronData `ic:"known_neuron_data,omitempty" json:"known_neuron_data,omitempty"` }
type KnownNeuronData ¶
type LedgerParameters ¶
type LedgerParameters struct { TransactionFee *Tokens `ic:"transaction_fee,omitempty" json:"transaction_fee,omitempty"` TokenSymbol *string `ic:"token_symbol,omitempty" json:"token_symbol,omitempty"` TokenLogo *Image `ic:"token_logo,omitempty" json:"token_logo,omitempty"` TokenName *string `ic:"token_name,omitempty" json:"token_name,omitempty"` }
type ListKnownNeuronsResponse ¶
type ListKnownNeuronsResponse struct {
KnownNeurons []KnownNeuron `ic:"known_neurons" json:"known_neurons"`
}
type ListNeurons ¶
type ListNeuronsResponse ¶
type ListNeuronsResponse struct { NeuronInfos []struct { Field0 uint64 `ic:"0" json:"0"` Field1 NeuronInfo `ic:"1" json:"1"` } `ic:"neuron_infos" json:"neuron_infos"` FullNeurons []Neuron `ic:"full_neurons" json:"full_neurons"` }
type ListNodeProvidersResponse ¶
type ListNodeProvidersResponse struct {
NodeProviders []NodeProvider `ic:"node_providers" json:"node_providers"`
}
type ListProposalInfo ¶
type ListProposalInfo struct { IncludeRewardStatus []int32 `ic:"include_reward_status" json:"include_reward_status"` OmitLargeFields *bool `ic:"omit_large_fields,omitempty" json:"omit_large_fields,omitempty"` BeforeProposal *NeuronId `ic:"before_proposal,omitempty" json:"before_proposal,omitempty"` Limit uint32 `ic:"limit" json:"limit"` ExcludeTopic []int32 `ic:"exclude_topic" json:"exclude_topic"` IncludeAllManageNeuronProposals *bool `ic:"include_all_manage_neuron_proposals,omitempty" json:"include_all_manage_neuron_proposals,omitempty"` IncludeStatus []int32 `ic:"include_status" json:"include_status"` }
type ListProposalInfoResponse ¶
type ListProposalInfoResponse struct {
ProposalInfo []ProposalInfo `ic:"proposal_info" json:"proposal_info"`
}
type MakeProposalResponse ¶
type MakingSnsProposal ¶
type ManageNeuron ¶
type ManageNeuron struct { Id *NeuronId `ic:"id,omitempty" json:"id,omitempty"` Command *Command `ic:"command,omitempty" json:"command,omitempty"` NeuronIdOrSubaccount *NeuronIdOrSubaccount `ic:"neuron_id_or_subaccount,omitempty" json:"neuron_id_or_subaccount,omitempty"` }
type ManageNeuronResponse ¶
type ManageNeuronResponse struct {
Command *Command1 `ic:"command,omitempty" json:"command,omitempty"`
}
type Merge ¶
type Merge struct {
SourceNeuronId *NeuronId `ic:"source_neuron_id,omitempty" json:"source_neuron_id,omitempty"`
}
type MergeMaturity ¶
type MergeMaturity struct {
PercentageToMerge uint32 `ic:"percentage_to_merge" json:"percentage_to_merge"`
}
type MergeMaturityResponse ¶
type MergeResponse ¶
type MergeResponse struct { TargetNeuron *Neuron `ic:"target_neuron,omitempty" json:"target_neuron,omitempty"` SourceNeuron *Neuron `ic:"source_neuron,omitempty" json:"source_neuron,omitempty"` TargetNeuronInfo *NeuronInfo `ic:"target_neuron_info,omitempty" json:"target_neuron_info,omitempty"` SourceNeuronInfo *NeuronInfo `ic:"source_neuron_info,omitempty" json:"source_neuron_info,omitempty"` }
type Migrations ¶
type MostRecentMonthlyNodeProviderRewards ¶
type MostRecentMonthlyNodeProviderRewards struct { Timestamp uint64 `ic:"timestamp" json:"timestamp"` Rewards []RewardNodeProvider `ic:"rewards" json:"rewards"` }
type NetworkEconomics ¶
type NetworkEconomics struct { NeuronMinimumStakeE8s uint64 `ic:"neuron_minimum_stake_e8s" json:"neuron_minimum_stake_e8s"` MaxProposalsToKeepPerTopic uint32 `ic:"max_proposals_to_keep_per_topic" json:"max_proposals_to_keep_per_topic"` NeuronManagementFeePerProposalE8s uint64 `ic:"neuron_management_fee_per_proposal_e8s" json:"neuron_management_fee_per_proposal_e8s"` RejectCostE8s uint64 `ic:"reject_cost_e8s" json:"reject_cost_e8s"` TransactionFeeE8s uint64 `ic:"transaction_fee_e8s" json:"transaction_fee_e8s"` NeuronSpawnDissolveDelaySeconds uint64 `ic:"neuron_spawn_dissolve_delay_seconds" json:"neuron_spawn_dissolve_delay_seconds"` MinimumIcpXdrRate uint64 `ic:"minimum_icp_xdr_rate" json:"minimum_icp_xdr_rate"` MaximumNodeProviderRewardsE8s uint64 `ic:"maximum_node_provider_rewards_e8s" json:"maximum_node_provider_rewards_e8s"` NeuronsFundEconomics *NeuronsFundEconomics `ic:"neurons_fund_economics,omitempty" json:"neurons_fund_economics,omitempty"` }
type Neuron ¶
type Neuron struct { Id *NeuronId `ic:"id,omitempty" json:"id,omitempty"` StakedMaturityE8sEquivalent *uint64 `ic:"staked_maturity_e8s_equivalent,omitempty" json:"staked_maturity_e8s_equivalent,omitempty"` Controller *principal.Principal `ic:"controller,omitempty" json:"controller,omitempty"` RecentBallots []BallotInfo `ic:"recent_ballots" json:"recent_ballots"` KycVerified bool `ic:"kyc_verified" json:"kyc_verified"` NeuronType *int32 `ic:"neuron_type,omitempty" json:"neuron_type,omitempty"` NotForProfit bool `ic:"not_for_profit" json:"not_for_profit"` MaturityE8sEquivalent uint64 `ic:"maturity_e8s_equivalent" json:"maturity_e8s_equivalent"` CachedNeuronStakeE8s uint64 `ic:"cached_neuron_stake_e8s" json:"cached_neuron_stake_e8s"` CreatedTimestampSeconds uint64 `ic:"created_timestamp_seconds" json:"created_timestamp_seconds"` AutoStakeMaturity *bool `ic:"auto_stake_maturity,omitempty" json:"auto_stake_maturity,omitempty"` AgingSinceTimestampSeconds uint64 `ic:"aging_since_timestamp_seconds" json:"aging_since_timestamp_seconds"` HotKeys []principal.Principal `ic:"hot_keys" json:"hot_keys"` Account []byte `ic:"account" json:"account"` JoinedCommunityFundTimestampSeconds *uint64 `ic:"joined_community_fund_timestamp_seconds,omitempty" json:"joined_community_fund_timestamp_seconds,omitempty"` DissolveState *DissolveState `ic:"dissolve_state,omitempty" json:"dissolve_state,omitempty"` Followees []struct { Field0 int32 `ic:"0" json:"0"` Field1 Followees `ic:"1" json:"1"` } `ic:"followees" json:"followees"` NeuronFeesE8s uint64 `ic:"neuron_fees_e8s" json:"neuron_fees_e8s"` Transfer *NeuronStakeTransfer `ic:"transfer,omitempty" json:"transfer,omitempty"` KnownNeuronData *KnownNeuronData `ic:"known_neuron_data,omitempty" json:"known_neuron_data,omitempty"` SpawnAtTimestampSeconds *uint64 `ic:"spawn_at_timestamp_seconds,omitempty" json:"spawn_at_timestamp_seconds,omitempty"` }
type NeuronDistribution ¶
type NeuronDistribution struct { Controller *principal.Principal `ic:"controller,omitempty" json:"controller,omitempty"` DissolveDelay *Duration `ic:"dissolve_delay,omitempty" json:"dissolve_delay,omitempty"` Memo *uint64 `ic:"memo,omitempty" json:"memo,omitempty"` VestingPeriod *Duration `ic:"vesting_period,omitempty" json:"vesting_period,omitempty"` Stake *Tokens `ic:"stake,omitempty" json:"stake,omitempty"` }
type NeuronIdOrSubaccount ¶
type NeuronInFlightCommand ¶
type NeuronInfo ¶
type NeuronInfo struct { DissolveDelaySeconds uint64 `ic:"dissolve_delay_seconds" json:"dissolve_delay_seconds"` RecentBallots []BallotInfo `ic:"recent_ballots" json:"recent_ballots"` NeuronType *int32 `ic:"neuron_type,omitempty" json:"neuron_type,omitempty"` CreatedTimestampSeconds uint64 `ic:"created_timestamp_seconds" json:"created_timestamp_seconds"` State int32 `ic:"state" json:"state"` StakeE8s uint64 `ic:"stake_e8s" json:"stake_e8s"` JoinedCommunityFundTimestampSeconds *uint64 `ic:"joined_community_fund_timestamp_seconds,omitempty" json:"joined_community_fund_timestamp_seconds,omitempty"` RetrievedAtTimestampSeconds uint64 `ic:"retrieved_at_timestamp_seconds" json:"retrieved_at_timestamp_seconds"` KnownNeuronData *KnownNeuronData `ic:"known_neuron_data,omitempty" json:"known_neuron_data,omitempty"` VotingPower uint64 `ic:"voting_power" json:"voting_power"` AgeSeconds uint64 `ic:"age_seconds" json:"age_seconds"` }
type NeuronStakeTransfer ¶
type NeuronStakeTransfer struct { ToSubaccount []byte `ic:"to_subaccount" json:"to_subaccount"` NeuronStakeE8s uint64 `ic:"neuron_stake_e8s" json:"neuron_stake_e8s"` From *principal.Principal `ic:"from,omitempty" json:"from,omitempty"` Memo uint64 `ic:"memo" json:"memo"` FromSubaccount []byte `ic:"from_subaccount" json:"from_subaccount"` TransferTimestamp uint64 `ic:"transfer_timestamp" json:"transfer_timestamp"` BlockHeight uint64 `ic:"block_height" json:"block_height"` }
type NeuronsFundAuditInfo ¶
type NeuronsFundAuditInfo struct { FinalNeuronsFundParticipation *NeuronsFundParticipation `ic:"final_neurons_fund_participation,omitempty" json:"final_neurons_fund_participation,omitempty"` InitialNeuronsFundParticipation *NeuronsFundParticipation `ic:"initial_neurons_fund_participation,omitempty" json:"initial_neurons_fund_participation,omitempty"` NeuronsFundRefunds *NeuronsFundSnapshot `ic:"neurons_fund_refunds,omitempty" json:"neurons_fund_refunds,omitempty"` }
type NeuronsFundData ¶
type NeuronsFundData struct { FinalNeuronsFundParticipation *NeuronsFundParticipation `ic:"final_neurons_fund_participation,omitempty" json:"final_neurons_fund_participation,omitempty"` InitialNeuronsFundParticipation *NeuronsFundParticipation `ic:"initial_neurons_fund_participation,omitempty" json:"initial_neurons_fund_participation,omitempty"` NeuronsFundRefunds *NeuronsFundSnapshot `ic:"neurons_fund_refunds,omitempty" json:"neurons_fund_refunds,omitempty"` }
type NeuronsFundEconomics ¶
type NeuronsFundEconomics struct { MaximumIcpXdrRate *Percentage `ic:"maximum_icp_xdr_rate,omitempty" json:"maximum_icp_xdr_rate,omitempty"` NeuronsFundMatchedFundingCurveCoefficients *NeuronsFundMatchedFundingCurveCoefficients `` /* 127-byte string literal not displayed */ MaxTheoreticalNeuronsFundParticipationAmountXdr *Decimal `` /* 139-byte string literal not displayed */ MinimumIcpXdrRate *Percentage `ic:"minimum_icp_xdr_rate,omitempty" json:"minimum_icp_xdr_rate,omitempty"` }
type NeuronsFundMatchedFundingCurveCoefficients ¶
type NeuronsFundMatchedFundingCurveCoefficients struct { ContributionThresholdXdr *Decimal `ic:"contribution_threshold_xdr,omitempty" json:"contribution_threshold_xdr,omitempty"` OneThirdParticipationMilestoneXdr *Decimal `ic:"one_third_participation_milestone_xdr,omitempty" json:"one_third_participation_milestone_xdr,omitempty"` FullParticipationMilestoneXdr *Decimal `ic:"full_participation_milestone_xdr,omitempty" json:"full_participation_milestone_xdr,omitempty"` }
type NeuronsFundNeuron ¶
type NeuronsFundNeuron struct { HotkeyPrincipal *string `ic:"hotkey_principal,omitempty" json:"hotkey_principal,omitempty"` IsCapped *bool `ic:"is_capped,omitempty" json:"is_capped,omitempty"` NnsNeuronId *uint64 `ic:"nns_neuron_id,omitempty" json:"nns_neuron_id,omitempty"` AmountIcpE8s *uint64 `ic:"amount_icp_e8s,omitempty" json:"amount_icp_e8s,omitempty"` }
type NeuronsFundNeuronPortion ¶
type NeuronsFundNeuronPortion struct { HotkeyPrincipal *principal.Principal `ic:"hotkey_principal,omitempty" json:"hotkey_principal,omitempty"` IsCapped *bool `ic:"is_capped,omitempty" json:"is_capped,omitempty"` MaturityEquivalentIcpE8s *uint64 `ic:"maturity_equivalent_icp_e8s,omitempty" json:"maturity_equivalent_icp_e8s,omitempty"` NnsNeuronId *NeuronId `ic:"nns_neuron_id,omitempty" json:"nns_neuron_id,omitempty"` AmountIcpE8s *uint64 `ic:"amount_icp_e8s,omitempty" json:"amount_icp_e8s,omitempty"` }
type NeuronsFundParticipation ¶
type NeuronsFundParticipation struct { TotalMaturityEquivalentIcpE8s *uint64 `ic:"total_maturity_equivalent_icp_e8s,omitempty" json:"total_maturity_equivalent_icp_e8s,omitempty"` IntendedNeuronsFundParticipationIcpE8s *uint64 `ic:"intended_neurons_fund_participation_icp_e8s,omitempty" json:"intended_neurons_fund_participation_icp_e8s,omitempty"` DirectParticipationIcpE8s *uint64 `ic:"direct_participation_icp_e8s,omitempty" json:"direct_participation_icp_e8s,omitempty"` SwapParticipationLimits *SwapParticipationLimits `ic:"swap_participation_limits,omitempty" json:"swap_participation_limits,omitempty"` MaxNeuronsFundSwapParticipationIcpE8s *uint64 `ic:"max_neurons_fund_swap_participation_icp_e8s,omitempty" json:"max_neurons_fund_swap_participation_icp_e8s,omitempty"` NeuronsFundReserves *NeuronsFundSnapshot `ic:"neurons_fund_reserves,omitempty" json:"neurons_fund_reserves,omitempty"` IdealMatchedParticipationFunction *IdealMatchedParticipationFunction `ic:"ideal_matched_participation_function,omitempty" json:"ideal_matched_participation_function,omitempty"` AllocatedNeuronsFundParticipationIcpE8s *uint64 `ic:"allocated_neurons_fund_participation_icp_e8s,omitempty" json:"allocated_neurons_fund_participation_icp_e8s,omitempty"` }
type NeuronsFundSnapshot ¶
type NeuronsFundSnapshot struct {
NeuronsFundNeuronPortions []NeuronsFundNeuronPortion `ic:"neurons_fund_neuron_portions" json:"neurons_fund_neuron_portions"`
}
type NodeProvider ¶
type NodeProvider struct { Id *principal.Principal `ic:"id,omitempty" json:"id,omitempty"` RewardAccount *AccountIdentifier `ic:"reward_account,omitempty" json:"reward_account,omitempty"` }
type Ok ¶
type Ok struct {
NeuronsFundAuditInfo *NeuronsFundAuditInfo `ic:"neurons_fund_audit_info,omitempty" json:"neurons_fund_audit_info,omitempty"`
}
type Ok1 ¶
type Ok1 struct {
NeuronsFundNeuronPortions []NeuronsFundNeuron `ic:"neurons_fund_neuron_portions" json:"neurons_fund_neuron_portions"`
}
type OpenSnsTokenSwap ¶
type OpenSnsTokenSwap struct { CommunityFundInvestmentE8s *uint64 `ic:"community_fund_investment_e8s,omitempty" json:"community_fund_investment_e8s,omitempty"` TargetSwapCanisterId *principal.Principal `ic:"target_swap_canister_id,omitempty" json:"target_swap_canister_id,omitempty"` Params *Params `ic:"params,omitempty" json:"params,omitempty"` }
type Operation ¶
type Operation struct { RemoveHotKey *RemoveHotKey `ic:"RemoveHotKey,variant"` AddHotKey *AddHotKey `ic:"AddHotKey,variant"` ChangeAutoStakeMaturity *ChangeAutoStakeMaturity `ic:"ChangeAutoStakeMaturity,variant"` StopDissolving *struct { } `ic:"StopDissolving,variant"` StartDissolving *struct { } `ic:"StartDissolving,variant"` IncreaseDissolveDelay *IncreaseDissolveDelay `ic:"IncreaseDissolveDelay,variant"` JoinCommunityFund *struct { } `ic:"JoinCommunityFund,variant"` LeaveCommunityFund *struct { } `ic:"LeaveCommunityFund,variant"` SetDissolveTimestamp *SetDissolveTimestamp `ic:"SetDissolveTimestamp,variant"` }
type Params ¶
type Params struct { MinParticipantIcpE8s uint64 `ic:"min_participant_icp_e8s" json:"min_participant_icp_e8s"` NeuronBasketConstructionParameters *NeuronBasketConstructionParameters1 `ic:"neuron_basket_construction_parameters,omitempty" json:"neuron_basket_construction_parameters,omitempty"` MaxIcpE8s uint64 `ic:"max_icp_e8s" json:"max_icp_e8s"` SwapDueTimestampSeconds uint64 `ic:"swap_due_timestamp_seconds" json:"swap_due_timestamp_seconds"` MinParticipants uint32 `ic:"min_participants" json:"min_participants"` SnsTokenE8s uint64 `ic:"sns_token_e8s" json:"sns_token_e8s"` SaleDelaySeconds *uint64 `ic:"sale_delay_seconds,omitempty" json:"sale_delay_seconds,omitempty"` MaxParticipantIcpE8s uint64 `ic:"max_participant_icp_e8s" json:"max_participant_icp_e8s"` MinDirectParticipationIcpE8s *uint64 `ic:"min_direct_participation_icp_e8s,omitempty" json:"min_direct_participation_icp_e8s,omitempty"` MinIcpE8s uint64 `ic:"min_icp_e8s" json:"min_icp_e8s"` MaxDirectParticipationIcpE8s *uint64 `ic:"max_direct_participation_icp_e8s,omitempty" json:"max_direct_participation_icp_e8s,omitempty"` }
type Percentage ¶
type Percentage struct {
BasisPoints *uint64 `ic:"basis_points,omitempty" json:"basis_points,omitempty"`
}
type ProposalData ¶
type ProposalData struct { Id *NeuronId `ic:"id,omitempty" json:"id,omitempty"` FailureReason *GovernanceError `ic:"failure_reason,omitempty" json:"failure_reason,omitempty"` CfParticipants []CfParticipant `ic:"cf_participants" json:"cf_participants"` Ballots []struct { Field0 uint64 `ic:"0" json:"0"` Field1 Ballot `ic:"1" json:"1"` } `ic:"ballots" json:"ballots"` ProposalTimestampSeconds uint64 `ic:"proposal_timestamp_seconds" json:"proposal_timestamp_seconds"` RewardEventRound uint64 `ic:"reward_event_round" json:"reward_event_round"` FailedTimestampSeconds uint64 `ic:"failed_timestamp_seconds" json:"failed_timestamp_seconds"` NeuronsFundData *NeuronsFundData `ic:"neurons_fund_data,omitempty" json:"neurons_fund_data,omitempty"` RejectCostE8s uint64 `ic:"reject_cost_e8s" json:"reject_cost_e8s"` DerivedProposalInformation *DerivedProposalInformation `ic:"derived_proposal_information,omitempty" json:"derived_proposal_information,omitempty"` LatestTally *Tally `ic:"latest_tally,omitempty" json:"latest_tally,omitempty"` SnsTokenSwapLifecycle *int32 `ic:"sns_token_swap_lifecycle,omitempty" json:"sns_token_swap_lifecycle,omitempty"` DecidedTimestampSeconds uint64 `ic:"decided_timestamp_seconds" json:"decided_timestamp_seconds"` Proposal *Proposal `ic:"proposal,omitempty" json:"proposal,omitempty"` Proposer *NeuronId `ic:"proposer,omitempty" json:"proposer,omitempty"` WaitForQuietState *WaitForQuietState `ic:"wait_for_quiet_state,omitempty" json:"wait_for_quiet_state,omitempty"` ExecutedTimestampSeconds uint64 `ic:"executed_timestamp_seconds" json:"executed_timestamp_seconds"` OriginalTotalCommunityFundMaturityE8sEquivalent *uint64 `` /* 139-byte string literal not displayed */ }
type ProposalInfo ¶
type ProposalInfo struct { Id *NeuronId `ic:"id,omitempty" json:"id,omitempty"` Status int32 `ic:"status" json:"status"` Topic int32 `ic:"topic" json:"topic"` FailureReason *GovernanceError `ic:"failure_reason,omitempty" json:"failure_reason,omitempty"` Ballots []struct { Field0 uint64 `ic:"0" json:"0"` Field1 Ballot `ic:"1" json:"1"` } `ic:"ballots" json:"ballots"` ProposalTimestampSeconds uint64 `ic:"proposal_timestamp_seconds" json:"proposal_timestamp_seconds"` RewardEventRound uint64 `ic:"reward_event_round" json:"reward_event_round"` DeadlineTimestampSeconds *uint64 `ic:"deadline_timestamp_seconds,omitempty" json:"deadline_timestamp_seconds,omitempty"` FailedTimestampSeconds uint64 `ic:"failed_timestamp_seconds" json:"failed_timestamp_seconds"` RejectCostE8s uint64 `ic:"reject_cost_e8s" json:"reject_cost_e8s"` DerivedProposalInformation *DerivedProposalInformation `ic:"derived_proposal_information,omitempty" json:"derived_proposal_information,omitempty"` LatestTally *Tally `ic:"latest_tally,omitempty" json:"latest_tally,omitempty"` RewardStatus int32 `ic:"reward_status" json:"reward_status"` DecidedTimestampSeconds uint64 `ic:"decided_timestamp_seconds" json:"decided_timestamp_seconds"` Proposal *Proposal `ic:"proposal,omitempty" json:"proposal,omitempty"` Proposer *NeuronId `ic:"proposer,omitempty" json:"proposer,omitempty"` ExecutedTimestampSeconds uint64 `ic:"executed_timestamp_seconds" json:"executed_timestamp_seconds"` }
type RegisterVote ¶
type RemoveHotKey ¶
type RestoreAgingNeuronGroup ¶
type RestoreAgingNeuronGroup struct { Count *uint64 `ic:"count,omitempty" json:"count,omitempty"` PreviousTotalStakeE8s *uint64 `ic:"previous_total_stake_e8s,omitempty" json:"previous_total_stake_e8s,omitempty"` CurrentTotalStakeE8s *uint64 `ic:"current_total_stake_e8s,omitempty" json:"current_total_stake_e8s,omitempty"` GroupType int32 `ic:"group_type" json:"group_type"` }
type RestoreAgingSummary ¶
type RestoreAgingSummary struct { Groups []RestoreAgingNeuronGroup `ic:"groups" json:"groups"` TimestampSeconds *uint64 `ic:"timestamp_seconds,omitempty" json:"timestamp_seconds,omitempty"` }
type Result ¶
type Result struct { Ok *idl.Null `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result1 ¶
type Result1 struct { Error *GovernanceError `ic:"Error,variant"` NeuronId *NeuronId `ic:"NeuronId,variant"` }
type Result10 ¶
type Result10 struct { Ok *Ok1 `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result2 ¶
type Result2 struct { Ok *Neuron `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result3 ¶
type Result3 struct { Ok *GovernanceCachedMetrics `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result4 ¶
type Result4 struct { Ok *RewardNodeProviders `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result5 ¶
type Result5 struct { Ok *NeuronInfo `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result6 ¶
type Result6 struct { Ok *Ok `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result7 ¶
type Result7 struct { Ok *NodeProvider `ic:"Ok,variant"` Err *GovernanceError `ic:"Err,variant"` }
type Result8 ¶
type Result8 struct { Committed *Committed `ic:"Committed,variant"` Aborted *struct { } `ic:"Aborted,variant"` }
type Result9 ¶
type Result9 struct { Committed *Committed1 `ic:"Committed,variant"` Aborted *struct { } `ic:"Aborted,variant"` }
type RewardEvent ¶
type RewardEvent struct { RoundsSinceLastDistribution *uint64 `ic:"rounds_since_last_distribution,omitempty" json:"rounds_since_last_distribution,omitempty"` DayAfterGenesis uint64 `ic:"day_after_genesis" json:"day_after_genesis"` ActualTimestampSeconds uint64 `ic:"actual_timestamp_seconds" json:"actual_timestamp_seconds"` TotalAvailableE8sEquivalent uint64 `ic:"total_available_e8s_equivalent" json:"total_available_e8s_equivalent"` LatestRoundAvailableE8sEquivalent *uint64 `ic:"latest_round_available_e8s_equivalent,omitempty" json:"latest_round_available_e8s_equivalent,omitempty"` DistributedE8sEquivalent uint64 `ic:"distributed_e8s_equivalent" json:"distributed_e8s_equivalent"` SettledProposals []NeuronId `ic:"settled_proposals" json:"settled_proposals"` }
type RewardMode ¶
type RewardMode struct { RewardToNeuron *RewardToNeuron `ic:"RewardToNeuron,variant"` RewardToAccount *RewardToAccount `ic:"RewardToAccount,variant"` }
type RewardNodeProvider ¶
type RewardNodeProvider struct { NodeProvider *NodeProvider `ic:"node_provider,omitempty" json:"node_provider,omitempty"` RewardMode *RewardMode `ic:"reward_mode,omitempty" json:"reward_mode,omitempty"` AmountE8s uint64 `ic:"amount_e8s" json:"amount_e8s"` }
type RewardNodeProviders ¶
type RewardNodeProviders struct { UseRegistryDerivedRewards *bool `ic:"use_registry_derived_rewards,omitempty" json:"use_registry_derived_rewards,omitempty"` Rewards []RewardNodeProvider `ic:"rewards" json:"rewards"` }
type RewardToAccount ¶
type RewardToAccount struct {
ToAccount *AccountIdentifier `ic:"to_account,omitempty" json:"to_account,omitempty"`
}
type RewardToNeuron ¶
type RewardToNeuron struct {
DissolveDelaySeconds uint64 `ic:"dissolve_delay_seconds" json:"dissolve_delay_seconds"`
}
type SetDefaultFollowees ¶
type SetDissolveTimestamp ¶
type SetDissolveTimestamp struct {
DissolveTimestampSeconds uint64 `ic:"dissolve_timestamp_seconds" json:"dissolve_timestamp_seconds"`
}
type SetOpenTimeWindowRequest ¶
type SetOpenTimeWindowRequest struct {
OpenTimeWindow *TimeWindow `ic:"open_time_window,omitempty" json:"open_time_window,omitempty"`
}
type SetSnsTokenSwapOpenTimeWindow ¶
type SetSnsTokenSwapOpenTimeWindow struct { Request *SetOpenTimeWindowRequest `ic:"request,omitempty" json:"request,omitempty"` SwapCanisterId *principal.Principal `ic:"swap_canister_id,omitempty" json:"swap_canister_id,omitempty"` }
type SettleNeuronsFundParticipationResponse ¶
type SettleNeuronsFundParticipationResponse struct {
Result *Result10 `ic:"result,omitempty" json:"result,omitempty"`
}
type SpawnResponse ¶
type SpawnResponse struct {
CreatedNeuronId *NeuronId `ic:"created_neuron_id,omitempty" json:"created_neuron_id,omitempty"`
}
type StakeMaturity ¶
type StakeMaturity struct {
PercentageToStake *uint32 `ic:"percentage_to_stake,omitempty" json:"percentage_to_stake,omitempty"`
}
type StakeMaturityResponse ¶
type SwapBackgroundInformation ¶
type SwapBackgroundInformation struct { LedgerIndexCanisterSummary *CanisterSummary `ic:"ledger_index_canister_summary,omitempty" json:"ledger_index_canister_summary,omitempty"` FallbackControllerPrincipalIds []principal.Principal `ic:"fallback_controller_principal_ids" json:"fallback_controller_principal_ids"` LedgerArchiveCanisterSummaries []CanisterSummary `ic:"ledger_archive_canister_summaries" json:"ledger_archive_canister_summaries"` LedgerCanisterSummary *CanisterSummary `ic:"ledger_canister_summary,omitempty" json:"ledger_canister_summary,omitempty"` SwapCanisterSummary *CanisterSummary `ic:"swap_canister_summary,omitempty" json:"swap_canister_summary,omitempty"` GovernanceCanisterSummary *CanisterSummary `ic:"governance_canister_summary,omitempty" json:"governance_canister_summary,omitempty"` RootCanisterSummary *CanisterSummary `ic:"root_canister_summary,omitempty" json:"root_canister_summary,omitempty"` DappCanisterSummaries []CanisterSummary `ic:"dapp_canister_summaries" json:"dapp_canister_summaries"` }
type SwapDistribution ¶
type SwapDistribution struct {
Total *Tokens `ic:"total,omitempty" json:"total,omitempty"`
}
type SwapParameters ¶
type SwapParameters struct { MinimumParticipants *uint64 `ic:"minimum_participants,omitempty" json:"minimum_participants,omitempty"` NeuronsFundParticipation *bool `ic:"neurons_fund_participation,omitempty" json:"neurons_fund_participation,omitempty"` Duration *Duration `ic:"duration,omitempty" json:"duration,omitempty"` NeuronBasketConstructionParameters *NeuronBasketConstructionParameters `ic:"neuron_basket_construction_parameters,omitempty" json:"neuron_basket_construction_parameters,omitempty"` ConfirmationText *string `ic:"confirmation_text,omitempty" json:"confirmation_text,omitempty"` MaximumParticipantIcp *Tokens `ic:"maximum_participant_icp,omitempty" json:"maximum_participant_icp,omitempty"` MinimumIcp *Tokens `ic:"minimum_icp,omitempty" json:"minimum_icp,omitempty"` MinimumDirectParticipationIcp *Tokens `ic:"minimum_direct_participation_icp,omitempty" json:"minimum_direct_participation_icp,omitempty"` MinimumParticipantIcp *Tokens `ic:"minimum_participant_icp,omitempty" json:"minimum_participant_icp,omitempty"` StartTime *GlobalTimeOfDay `ic:"start_time,omitempty" json:"start_time,omitempty"` MaximumDirectParticipationIcp *Tokens `ic:"maximum_direct_participation_icp,omitempty" json:"maximum_direct_participation_icp,omitempty"` MaximumIcp *Tokens `ic:"maximum_icp,omitempty" json:"maximum_icp,omitempty"` NeuronsFundInvestmentIcp *Tokens `ic:"neurons_fund_investment_icp,omitempty" json:"neurons_fund_investment_icp,omitempty"` RestrictedCountries *Countries `ic:"restricted_countries,omitempty" json:"restricted_countries,omitempty"` }
type SwapParticipationLimits ¶
type SwapParticipationLimits struct { MinParticipantIcpE8s *uint64 `ic:"min_participant_icp_e8s,omitempty" json:"min_participant_icp_e8s,omitempty"` MaxParticipantIcpE8s *uint64 `ic:"max_participant_icp_e8s,omitempty" json:"max_participant_icp_e8s,omitempty"` MinDirectParticipationIcpE8s *uint64 `ic:"min_direct_participation_icp_e8s,omitempty" json:"min_direct_participation_icp_e8s,omitempty"` MaxDirectParticipationIcpE8s *uint64 `ic:"max_direct_participation_icp_e8s,omitempty" json:"max_direct_participation_icp_e8s,omitempty"` }
type TimeWindow ¶
type UpdateNodeProvider ¶
type UpdateNodeProvider struct {
RewardAccount *AccountIdentifier `ic:"reward_account,omitempty" json:"reward_account,omitempty"`
}
type VotingRewardParameters ¶
type VotingRewardParameters struct { RewardRateTransitionDuration *Duration `ic:"reward_rate_transition_duration,omitempty" json:"reward_rate_transition_duration,omitempty"` InitialRewardRate *Percentage `ic:"initial_reward_rate,omitempty" json:"initial_reward_rate,omitempty"` FinalRewardRate *Percentage `ic:"final_reward_rate,omitempty" json:"final_reward_rate,omitempty"` }
type WaitForQuietState ¶
type WaitForQuietState struct {
CurrentDeadlineTimestampSeconds uint64 `ic:"current_deadline_timestamp_seconds" json:"current_deadline_timestamp_seconds"`
}