Documentation
¶
Index ¶
- Constants
- func ChainNetworkID(passphrase string) [32]byte
- func ConfigToStellarSetConfig(cfg *mcmstypes.Config, clearRoot bool) (mcmsbindings.SignerAddresses, mcmsbindings.SignerGroups, [32]byte, [32]byte, ...)
- func EncodeSorobanMCMSInvokePayload(functionName string, argScVals []xdr.ScVal) ([]byte, error)
- func FindExistingStellarMCMS(refs []datastore.AddressRef, chainSelector uint64, qual string) (string, bool)
- func FindExistingStellarTimelock(refs []datastore.AddressRef, chainSelector uint64, qual string) (string, bool)
- func FindStellarMCMSAddressRef(e cldf.Environment, chainSelector uint64, input mcmsutils.Input) (frameworkdatastore.AddressRef, error)
- func FindStellarTimelockAddressRef(e cldf.Environment, chainSelector uint64, input mcmsutils.Input) (frameworkdatastore.AddressRef, error)
- func MCMSDeploySalt(chainSelector uint64, qual string) [32]byte
- func MCMSRefLookupOrder(action mcmstypes.TimelockAction) ([]cldf.ContractType, error)
- func MergeTripleMCMSConfig(p, b, c mcmstypes.Config) (*mcmstypes.Config, error)
- func QualifierStr(q *string) string
- func ResolveMCMSWasmPath() (string, error)
- func ResolveTimelockWasmPath() (string, error)
- func StellarMCMSDatastoreRefs(chainSelector uint64, qual, contractID string) []datastore.AddressRef
- func StellarTimelockDatastoreRef(chainSelector uint64, qual, contractID string) datastore.AddressRef
- func TimelockDeploySalt(chainSelector uint64, qual string) [32]byte
Constants ¶
const DefaultMCMSWasmRelative = "target/wasm32v1-none/release/mcms.wasm"
DefaultMCMSWasmRelative is the release artifact path relative to the chainlink-stellar repo root.
const DefaultTimelockWasmRelative = "target/wasm32v1-none/release/timelock.wasm"
DefaultTimelockWasmRelative is the timelock WASM path relative to the chainlink-stellar repo root.
Variables ¶
This section is empty.
Functions ¶
func ChainNetworkID ¶
ChainNetworkID is SHA-256 of the network passphrase (Soroban MCMS chain_network_id).
func ConfigToStellarSetConfig ¶
func ConfigToStellarSetConfig(cfg *mcmstypes.Config, clearRoot bool) (mcmsbindings.SignerAddresses, mcmsbindings.SignerGroups, [32]byte, [32]byte, bool, error)
ConfigToStellarSetConfig maps mcms types.Config to Soroban set_config inputs using the shared ExtractSetConfigInputs helper from github.com/smartcontractkit/mcms/sdk.
func EncodeSorobanMCMSInvokePayload ¶
EncodeSorobanMCMSInvokePayload builds StellarOp.data bytes: XDR for ScVal::Vec([Symbol(fn), ...args]), matching contracts/common/helpers/src/soroban_invoke.rs (decode_invoke_payload).
func FindExistingStellarMCMS ¶
func FindExistingStellarMCMS(refs []datastore.AddressRef, chainSelector uint64, qual string) (string, bool)
FindExistingStellarMCMS returns a contract id from ExistingAddresses if one of the MCMS alias types is present.
func FindExistingStellarTimelock ¶
func FindExistingStellarTimelock(refs []datastore.AddressRef, chainSelector uint64, qual string) (string, bool)
FindExistingStellarTimelock returns the RBACTimelock contract id from refs when present.
func FindStellarMCMSAddressRef ¶
func FindStellarMCMSAddressRef(e cldf.Environment, chainSelector uint64, input mcmsutils.Input) (frameworkdatastore.AddressRef, error)
FindStellarMCMSAddressRef resolves the MCMS contract from the environment datastore.
func FindStellarTimelockAddressRef ¶
func FindStellarTimelockAddressRef(e cldf.Environment, chainSelector uint64, input mcmsutils.Input) (frameworkdatastore.AddressRef, error)
FindStellarTimelockAddressRef resolves RBACTimelock from the datastore, or falls back to the MCMS contract when no timelock row exists (pre-timelock Stellar deployments).
func MCMSDeploySalt ¶
MCMSDeploySalt derives a deterministic deploy salt for a Stellar MCMS instance.
func MCMSRefLookupOrder ¶
func MCMSRefLookupOrder(action mcmstypes.TimelockAction) ([]cldf.ContractType, error)
MCMSRefLookupOrder returns datastore contract types to try when resolving a Stellar MCMS address.
func MergeTripleMCMSConfig ¶
MergeTripleMCMSConfig requires Proposer, Bypasser, and Canceller configs to be equal (single Soroban MCMS instance). Returns a copy suitable for ExtractSetConfigInputs.
func QualifierStr ¶
QualifierStr returns the qualifier string or empty if nil.
func ResolveMCMSWasmPath ¶
ResolveMCMSWasmPath returns the path to mcms.wasm. Order: STELLAR_MCMS_WASM (full path), then CHAINLINK_STELLAR_ROOT + DefaultMCMSWasmRelative, then cwd-relative DefaultMCMSWasmRelative.
func ResolveTimelockWasmPath ¶
ResolveTimelockWasmPath returns the path to timelock.wasm. Order: STELLAR_TIMELOCK_WASM (full path), then CHAINLINK_STELLAR_ROOT + DefaultTimelockWasmRelative, then cwd-relative DefaultTimelockWasmRelative.
func StellarMCMSDatastoreRefs ¶
func StellarMCMSDatastoreRefs(chainSelector uint64, qual, contractID string) []datastore.AddressRef
StellarMCMSDatastoreRefs emits the four datastore refs for a single Soroban MCMS (MCMS + EVM-style aliases).
func StellarTimelockDatastoreRef ¶
func StellarTimelockDatastoreRef(chainSelector uint64, qual, contractID string) datastore.AddressRef
StellarTimelockDatastoreRef is a single RBACTimelock ref (matches EVM datastore labeling).
func TimelockDeploySalt ¶
TimelockDeploySalt derives a deterministic deploy salt for a Soroban timelock instance.
Types ¶
This section is empty.