Documentation
¶
Index ¶
Constants ¶
View Source
const ContractType = "TokenPool"
ContractType is used for generic token pool deployments (e.g. lock-release WASM behind this client).
Variables ¶
View Source
var Deploy = stellarops.NewDeployOperation("token-pool:deploy", "Deploys a Soroban token pool contract from WASM")
Deploy uploads pool WASM (e.g. pools_lock_release_pool.wasm).
View Source
var Initialize = cldfops.NewOperation( "token-pool:initialize", stellarops.ContractDeploymentVersion, "Initializes token pool with owner, token, router, and ramp registry", func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) { c := tpoolbindings.NewTokenPoolClient(d.Invoker, in.ContractID) if err := c.Initialize(b.GetContext(), in.Owner, in.Token, in.TokenDecimals, in.Router, in.RampRegistry); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
Initialize calls token pool `initialize`.
Functions ¶
This section is empty.
Types ¶
type InitializeInput ¶
type InitializeInput struct {
ContractID string `json:"contract_id"`
Owner string `json:"owner"`
Token string `json:"token"`
TokenDecimals uint32 `json:"token_decimals"`
Router string `json:"router"`
RampRegistry string `json:"ramp_registry"`
}
InitializeInput configures pool owner, token, decimals, router, and ramp registry.
Click to show internal directories.
Click to hide internal directories.