origin

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 26 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ParamEVMChainID               = "a"
	ParamBlockKeepAmount          = "b"
	ParamChainOwner               = "c"
	ParamWaspVersion              = "d"
	ParamDeployBaseTokenMagicWrap = "m"
)

Variables

This section is empty.

Functions

func InitChain

func InitChain(v isc.SchemaVersion, store state.Store, initParams dict.Dict, originDeposit uint64) state.Block

func InitChainByAliasOutput

func InitChainByAliasOutput(chainStore state.Store, aliasOutput *isc.AliasOutputWithID) (state.Block, error)

func L1Commitment

func L1Commitment(v isc.SchemaVersion, initParams dict.Dict, originDeposit uint64) *state.L1Commitment

L1Commitment calculates the L1 commitment for the origin state originDeposit must exclude the minSD for the AliasOutput

func NewChainOriginTransaction

func NewChainOriginTransaction(
	keyPair cryptolib.VariantKeyPair,
	stateControllerAddress iotago.Address,
	governanceControllerAddress iotago.Address,
	deposit uint64,
	initParams dict.Dict,
	unspentOutputs iotago.OutputSet,
	unspentOutputIDs iotago.OutputIDs,
	schemaVersion isc.SchemaVersion,
) (*iotago.Transaction, *iotago.AliasOutput, isc.ChainID, error)

NewChainOriginTransaction creates new origin transaction for the self-governed chain returns the transaction and newly minted chain ID

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL