Documentation
¶
Index ¶
Constants ¶
View Source
const ContractType = "RmnProxy"
ContractType labels RMN Proxy.
Variables ¶
View Source
var AcceptOwnership = cldfops.NewOperation( "rmn-proxy:accept-ownership", stellarops.ContractDeploymentVersion, "Accepts RMN Proxy ownership after transfer_ownership", func(b cldfops.Bundle, d stellardeps.StellarDeps, in AcceptOwnershipInput) (stellarops.Void, error) { c := rmnproxybindings.NewRmnProxyClient(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 RMN Proxy.
View Source
var Deploy = stellarops.NewDeployOperation("rmn-proxy:deploy", "Deploys the RMN Proxy Soroban contract from WASM")
Deploy uploads rmn_proxy.wasm.
View Source
var Initialize = cldfops.NewOperation( "rmn-proxy:initialize", stellarops.ContractDeploymentVersion, "Initializes RMN Proxy with owner and RMN Remote address", func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) { c := rmnproxybindings.NewRmnProxyClient(d.Invoker, in.ContractID) if err := c.Initialize(b.GetContext(), in.Owner, in.RmnRemote); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
Initialize calls RMN Proxy `initialize`.
View Source
var TransferOwnership = cldfops.NewOperation( "rmn-proxy:transfer-ownership", stellarops.ContractDeploymentVersion, "Transfers RMN Proxy ownership to a pending new owner", func(b cldfops.Bundle, d stellardeps.StellarDeps, in TransferOwnershipInput) (stellarops.Void, error) { c := rmnproxybindings.NewRmnProxyClient(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 RMN Proxy.
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 InitializeInput ¶
type InitializeInput struct {
ContractID string `json:"contract_id"`
Owner string `json:"owner"`
RmnRemote string `json:"rmn_remote"`
}
InitializeInput wires RMN Proxy to RMN Remote.
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.