versioned_verifier_resolver

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ContractType = "VersionedVerifierResolver"

ContractType labels Versioned Verifier Resolver.

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 Initialize = cldfops.NewOperation(
	"versioned-verifier-resolver:initialize",
	stellarops.ContractDeploymentVersion,
	"Initializes Versioned Verifier Resolver with owner and fee aggregator",
	func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) {
		c := vvrbindings.NewVersionedVerifierResolverClient(d.Invoker, in.ContractID)
		if err := c.Initialize(b.GetContext(), in.Owner, in.FeeAggregator); err != nil {
			return stellarops.Void{}, err
		}
		return stellarops.Void{}, nil
	},
)

Initialize calls VVR `initialize`.

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 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 InitializeInput

type InitializeInput struct {
	ContractID    string `json:"contract_id"`
	Owner         string `json:"owner"`
	FeeAggregator string `json:"fee_aggregator"`
}

InitializeInput sets VVR owner and fee aggregator.

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.

Jump to

Keyboard shortcuts

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