versioned_verifier_resolver

package
v0.0.0-...-fb0831a Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 4 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ContractType = "CommitteeVerifierResolver"

ContractType labels Versioned Verifier Resolver. Matches the canonical EVM datastore type (versioned_verifier_resolver.CommitteeVerifierResolverType): a single vocabulary, no boundary translation.

Variables

View Source
var AcceptOwnership = cldfops.NewOperation(
	"versioned-verifier-resolver:accept-ownership",
	stellarops.ContractDeploymentVersion,
	"Accepts Versioned Verifier Resolver ownership after transfer_ownership",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in AcceptOwnershipInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(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 Versioned Verifier Resolver.

View Source
var ApplyInboundImplUpdates = cldfops.NewOperation(
	"versioned-verifier-resolver:apply-inbound-impl-updates",
	stellarops.ContractDeploymentVersion,
	"Applies Versioned Verifier Resolver inbound implementation updates",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in ApplyInboundImplUpdatesInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(d.Invoker, in.ContractID)
		if err := c.ApplyInboundImplUpdates(b.GetContext(), in.Implementations); err != nil {
			return stellarops.Void{}, err
		}
		return stellarops.Void{}, nil
	},
)

ApplyInboundImplUpdates calls VVR `apply_inbound_impl_updates`.

View Source
var ApplyOutboundImplUpdates = cldfops.NewOperation(
	"versioned-verifier-resolver:apply-outbound-impl-updates",
	stellarops.ContractDeploymentVersion,
	"Applies Versioned Verifier Resolver outbound implementation updates",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in ApplyOutboundImplUpdatesInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(d.Invoker, in.ContractID)
		if err := c.ApplyOutboundImplUpdates(b.GetContext(), in.Implementations); err != nil {
			return stellarops.Void{}, err
		}
		return stellarops.Void{}, nil
	},
)

ApplyOutboundImplUpdates calls VVR `apply_outbound_impl_updates`.

View Source
var Deploy = stellarops.NewDeployOperation("versioned-verifier-resolver:deploy", "Deploys the Versioned Verifier Resolver Soroban contract from WASM")

Deploy uploads ccvs_versioned_verifier_resolver.wasm.

View Source
var TransferOwnership = cldfops.NewOperation(
	"versioned-verifier-resolver:transfer-ownership",
	stellarops.ContractDeploymentVersion,
	"Transfers Versioned Verifier Resolver ownership to a pending new owner",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in TransferOwnershipInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(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 Versioned Verifier Resolver.

View Source
var Upgrade = cldfops.NewOperation(
	"versioned-verifier-resolver:upgrade",
	stellarops.ContractDeploymentVersion,
	"Upgrades the Versioned Verifier Resolver Soroban contract in place to a new WASM hash",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in UpgradeInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(d.Invoker, in.ContractID)
		if err := c.Upgrade(b.GetContext(), in.NewWasmHash); err != nil {
			return stellarops.Void{}, err
		}
		return stellarops.Void{}, nil
	},
)

Upgrade calls `upgrade` on Versioned Verifier Resolver (owner-gated in-place self-upgrade).

View Source
var WithdrawFeeTokens = cldfops.NewOperation(
	"versioned-verifier-resolver:withdraw-fee-tokens",
	stellarops.ContractDeploymentVersion,
	"Withdraws listed fee token balances to the Versioned Verifier Resolver fee aggregator",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in WithdrawFeeTokensInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(d.Invoker, in.ContractID)
		if err := c.WithdrawFeeTokens(b.GetContext(), in.FeeTokens); err != nil {
			return stellarops.Void{}, err
		}
		return stellarops.Void{}, nil
	},
)

WithdrawFeeTokens calls VVR `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 ApplyInboundImplUpdatesInput

type ApplyInboundImplUpdatesInput struct {
	ContractID      string                                    `json:"contract_id"`
	Implementations []vvrbindings.InboundImplementationUpdate `json:"implementations"`
}

ApplyInboundImplUpdatesInput binds inbound verifier implementations by version tag.

type ApplyOutboundImplUpdatesInput

type ApplyOutboundImplUpdatesInput struct {
	ContractID      string                                     `json:"contract_id"`
	Implementations []vvrbindings.OutboundImplementationUpdate `json:"implementations"`
}

ApplyOutboundImplUpdatesInput binds outbound verifier implementations per destination chain.

type TransferOwnershipInput

type TransferOwnershipInput struct {
	ContractID string `json:"contract_id"`
	NewOwner   string `json:"new_owner"`
}

TransferOwnershipInput starts two-step ownership transfer.

type UpgradeInput

type UpgradeInput struct {
	ContractID  string   `json:"contract_id"`
	NewWasmHash [32]byte `json:"new_wasm_hash"`
}

UpgradeInput upgrades the Versioned Verifier Resolver contract in place to a new Wasm hash.

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.

Jump to

Keyboard shortcuts

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