Documentation
¶
Index ¶
Constants ¶
View Source
const ContractType = "LinkToken"
ContractType labels LINK token contracts — the custom (non-SAC) Soroban LINK token used as the CCIP fee token.
Variables ¶
View Source
var Deploy = stellarops.NewDeployOperation("link-token:deploy", "Deploys the LINK Soroban token contract from WASM")
Deploy uploads link_token.wasm.
View Source
var Initialize = cldfops.NewOperation( "link-token:initialize", stellarops.ContractDeploymentVersion, "Initializes the LINK token with admin, name, symbol, and decimals", func(b cldfops.Bundle, d stellardeps.StellarDeps, in InitializeInput) (stellarops.Void, error) { if in.Admin == "" { return stellarops.Void{}, fmt.Errorf("link-token initialize: admin is required") } c := linkbindings.NewLinkTokenClient(d.Invoker, in.ContractID) if err := c.Initialize(b.GetContext(), in.Admin, in.Name, in.Symbol, in.Decimals); err != nil { return stellarops.Void{}, err } return stellarops.Void{}, nil }, )
Initialize calls LINK `initialize`. The deployer is set as the initial admin and later hands mint authority to the burn-mint pool via `set_admin` — that handoff is an operator step (as in the BnM onboarding sequence), not part of this op. No initial supply is minted; the pre-handoff mint is the only non-pool minting window.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.