Documentation
¶
Index ¶
Constants ¶
View Source
const ContractType = "RampRegistry"
ContractType labels RampRegistry.
Variables ¶
View Source
var AcceptOwnership = cldfops.NewOperation( "ramp-registry:accept-ownership", stellarops.ContractDeploymentVersion, "Accepts RampRegistry ownership after transfer_ownership", func(b cldfops.Bundle, d stellardeps.StellarDeps, in AcceptOwnershipInput) (stellarops.Void, error) { c := rrbindings.NewRampRegistryClient(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 RampRegistry.
View Source
var ApplyOfframpUpdates = cldfops.NewOperation( "ramp-registry:apply-offramp-updates", stellarops.ContractDeploymentVersion, "Applies RampRegistry off-ramp map updates", func(b cldfops.Bundle, d stellardeps.StellarDeps, in ApplyOfframpUpdatesInput) (stellarops.Void, error) { c := rrbindings.NewRampRegistryClient(d.Invoker, in.ContractID) if err := c.ApplyOfframpUpdates(b.GetContext(), in.Updates); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
ApplyOfframpUpdates calls RampRegistry `apply_offramp_updates`.
View Source
var ApplyOnrampUpdates = cldfops.NewOperation( "ramp-registry:apply-onramp-updates", stellarops.ContractDeploymentVersion, "Applies RampRegistry on-ramp map updates", func(b cldfops.Bundle, d stellardeps.StellarDeps, in ApplyOnrampUpdatesInput) (stellarops.Void, error) { c := rrbindings.NewRampRegistryClient(d.Invoker, in.ContractID) if err := c.ApplyOnrampUpdates(b.GetContext(), in.Updates); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
ApplyOnrampUpdates calls RampRegistry `apply_onramp_updates`.
View Source
var Deploy = stellarops.NewDeployOperation("ramp-registry:deploy", "Deploys the RampRegistry Soroban contract from WASM")
Deploy uploads ccip_ramp_registry.wasm.
View Source
var Initialize = cldfops.NewOperation( "ramp-registry:initialize", stellarops.ContractDeploymentVersion, "Initializes RampRegistry with owner", func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) { c := rrbindings.NewRampRegistryClient(d.Invoker, in.ContractID) if err := c.Initialize(b.GetContext(), in.Owner); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
Initialize calls RampRegistry `initialize`.
View Source
var TransferOwnership = cldfops.NewOperation( "ramp-registry:transfer-ownership", stellarops.ContractDeploymentVersion, "Transfers RampRegistry ownership to a pending new owner", func(b cldfops.Bundle, d stellardeps.StellarDeps, in TransferOwnershipInput) (stellarops.Void, error) { c := rrbindings.NewRampRegistryClient(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 RampRegistry.
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 ApplyOfframpUpdatesInput ¶
type ApplyOfframpUpdatesInput struct {
ContractID string `json:"contract_id"`
Updates []rrbindings.OffRampUpdate `json:"updates"`
}
ApplyOfframpUpdatesInput updates the RampRegistry off-ramp map.
type ApplyOnrampUpdatesInput ¶
type ApplyOnrampUpdatesInput struct {
ContractID string `json:"contract_id"`
Updates []rrbindings.OnRampUpdate `json:"updates"`
}
ApplyOnrampUpdatesInput updates the RampRegistry on-ramp map.
type InitializeInput ¶
InitializeInput sets RampRegistry owner.
type TransferOwnershipInput ¶
type TransferOwnershipInput struct {
ContractID string `json:"contract_id"`
NewOwner string `json:"new_owner"`
}
TransferOwnershipInput starts two-step ownership transfer.
Click to show internal directories.
Click to hide internal directories.