origin

package
v0.5.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ParamEVMChainID   = "a"
	ParamEVMBlockKeep = "b"
	ParamChainOwner   = "c"
)

Variables

This section is empty.

Functions

func InitChain

func InitChain(store state.Store, initParams dict.Dict, originDeposit uint64) state.Store

func InitChainByAliasOutput

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

func L1Commitment

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

func NewChainOriginTransaction

func NewChainOriginTransaction(
	keyPair *cryptolib.KeyPair,
	stateControllerAddress iotago.Address,
	governanceControllerAddress iotago.Address,
	deposit uint64,
	initParams dict.Dict,
	unspentOutputs iotago.OutputSet,
	unspentOutputIDs iotago.OutputIDs,
) (*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