Documentation
¶
Index ¶
Constants ¶
const ContractType = "CommitteeVerifier"
ContractType labels Committee Verifier (CCVS).
Variables ¶
var AcceptOwnership = cldfops.NewOperation( "committee-verifier:accept-ownership", stellarops.ContractDeploymentVersion, "Accepts Committee Verifier ownership after transfer_ownership", func(b cldfops.Bundle, d stellardeps.StellarDeps, in AcceptOwnershipInput) (stellarops.Void, error) { c := cvbindings.NewCommitteeVerifierClient(d.Invoker, in.ContractID) if err := c.AcceptOwnership(b.GetContext()); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
AcceptOwnership calls `accept_ownership` on Committee Verifier.
var ApplyRemoteChainCfgUpdates = cldfops.NewOperation( "committee-verifier:apply-remote-chain-cfg-updates", stellarops.ContractDeploymentVersion, "Applies Committee Verifier remote chain configuration updates", func(b cldfops.Bundle, d stellardeps.StellarDeps, in ApplyRemoteChainCfgUpdatesInput) (stellarops.Void, error) { c := cvbindings.NewCommitteeVerifierClient(d.Invoker, in.ContractID) if err := c.ApplyRemoteChainCfgUpdates(b.GetContext(), in.Configs); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
ApplyRemoteChainCfgUpdates calls Committee Verifier `apply_remote_chain_cfg_updates`.
var ApplySignatureConfigs = cldfops.NewOperation( "committee-verifier:apply-signature-configs", stellarops.ContractDeploymentVersion, "Applies Committee Verifier signature quorum configurations", func(b cldfops.Bundle, d stellardeps.StellarDeps, in ApplySignatureConfigsInput) (stellarops.Void, error) { c := cvbindings.NewCommitteeVerifierClient(d.Invoker, in.ContractID) if err := c.ApplySignatureConfigs(b.GetContext(), in.RemoveSelectors, in.SignatureQuorumConfigs); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
ApplySignatureConfigs calls Committee Verifier `apply_signature_configs`.
var Deploy = stellarops.NewDeployOperation("committee-verifier:deploy", "Deploys the Committee Verifier Soroban contract from WASM")
Deploy uploads ccvs_committee_verifier.wasm.
var Initialize = cldfops.NewOperation( "committee-verifier:initialize", stellarops.ContractDeploymentVersion, "Initializes Committee Verifier with owner, dynamic config, and RMN proxy", func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) { c := cvbindings.NewCommitteeVerifierClient(d.Invoker, in.ContractID) if err := c.Initialize(b.GetContext(), in.Owner, in.DynamicConfig, in.StorageLocations, in.RmnProxy, in.VersionTag); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
Initialize calls Committee Verifier `initialize`.
var TransferOwnership = cldfops.NewOperation( "committee-verifier:transfer-ownership", stellarops.ContractDeploymentVersion, "Transfers Committee Verifier ownership to a pending new owner", func(b cldfops.Bundle, d stellardeps.StellarDeps, in TransferOwnershipInput) (stellarops.Void, error) { c := cvbindings.NewCommitteeVerifierClient(d.Invoker, in.ContractID) if err := c.TransferOwnership(b.GetContext(), in.NewOwner); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
TransferOwnership calls `transfer_ownership` on Committee Verifier.
var WithdrawFeeTokens = cldfops.NewOperation( "committee-verifier:withdraw-fee-tokens", stellarops.ContractDeploymentVersion, "Withdraws listed fee token balances to the Committee Verifier fee aggregator", func(b cldfops.Bundle, d stellardeps.StellarDeps, in WithdrawFeeTokensInput) (stellarops.Void, error) { c := cvbindings.NewCommitteeVerifierClient(d.Invoker, in.ContractID) if err := c.WithdrawFeeTokens(b.GetContext(), in.FeeTokens); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
WithdrawFeeTokens calls Committee Verifier `withdraw_fee_tokens`.
Functions ¶
This section is empty.
Types ¶
type AcceptOwnershipInput ¶
type AcceptOwnershipInput struct {
ContractID string `json:"contract_id"`
}
AcceptOwnershipInput completes two-step ownership transfer for the caller.
type ApplyRemoteChainCfgUpdatesInput ¶
type ApplyRemoteChainCfgUpdatesInput struct {
ContractID string `json:"contract_id"`
Configs []cvbindings.RemoteChainConfig `json:"configs"`
}
ApplyRemoteChainCfgUpdatesInput applies per-remote-chain fee and router settings on Committee Verifier.
type ApplySignatureConfigsInput ¶
type ApplySignatureConfigsInput struct {
ContractID string `json:"contract_id"`
RemoveSelectors []uint64 `json:"remove_selectors"`
SignatureQuorumConfigs []cvbindings.SignatureQuorumConfig `json:"signature_quorum_configs"`
}
ApplySignatureConfigsInput updates signature quorum configs on Committee Verifier.
type InitializeInput ¶
type InitializeInput struct {
ContractID string `json:"contract_id"`
Owner string `json:"owner"`
DynamicConfig cvbindings.DynamicConfig `json:"dynamic_config"`
StorageLocations [][]byte `json:"storage_locations"`
RmnProxy string `json:"rmn_proxy"`
VersionTag [4]byte `json:"version_tag"`
}
InitializeInput configures Committee Verifier dynamic config and storage.
type TransferOwnershipInput ¶
type TransferOwnershipInput struct {
ContractID string `json:"contract_id"`
NewOwner string `json:"new_owner"`
}
TransferOwnershipInput starts two-step ownership transfer.
type WithdrawFeeTokensInput ¶
type WithdrawFeeTokensInput struct {
ContractID string `json:"contract_id"`
FeeTokens []string `json:"fee_tokens"`
}
WithdrawFeeTokensInput lists fee token contract IDs to withdraw to the configured fee aggregator.