Documentation
¶
Index ¶
Constants ¶
View Source
const ContractType = "BurnMintPool"
ContractType labels burn-mint pool contracts.
Variables ¶
View Source
var AcceptOwnership = cldfops.NewOperation( "burn-mint-pool:accept-ownership", stellarops.ContractDeploymentVersion, "Accepts burn-mint pool ownership after transfer_ownership", func(b cldfops.Bundle, d stellardeps.StellarDeps, in AcceptOwnershipInput) (stellarops.Void, error) { c := bmpbindings.NewBurnMintPoolClient(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 burn-mint pool.
View Source
var Deploy = stellarops.NewDeployOperation("burn-mint-pool:deploy", "Deploys the burn-mint pool Soroban contract from WASM")
Deploy uploads pools_burn_mint_pool.wasm.
View Source
var Initialize = cldfops.NewOperation( "burn-mint-pool:initialize", stellarops.ContractDeploymentVersion, "Initializes burn-mint pool with owner, token, router, and ramp registry", func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) { c := bmpbindings.NewBurnMintPoolClient(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 burn-mint pool `initialize`.
View Source
var TransferOwnership = cldfops.NewOperation( "burn-mint-pool:transfer-ownership", stellarops.ContractDeploymentVersion, "Transfers burn-mint pool ownership to a pending new owner", func(b cldfops.Bundle, d stellardeps.StellarDeps, in TransferOwnershipInput) (stellarops.Void, error) { c := bmpbindings.NewBurnMintPoolClient(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 burn-mint pool.
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"`
Token string `json:"token"`
TokenDecimals uint32 `json:"token_decimals"`
Router string `json:"router"`
RampRegistry string `json:"ramp_registry"`
}
InitializeInput matches burn-mint pool `initialize` (same shape as lock-release pool).
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.