Documentation ¶
Index ¶
- Constants
- func InitChain(store state.Store, initParams dict.Dict, originDeposit uint64) state.Block
- func InitChainByAliasOutput(chainStore state.Store, aliasOutput *isc.AliasOutputWithID) (state.Block, error)
- func L1Commitment(initParams dict.Dict, originDeposit uint64) *state.L1Commitment
- func NewChainOriginTransaction(keyPair *cryptolib.KeyPair, stateControllerAddress iotago.Address, ...) (*iotago.Transaction, *iotago.AliasOutput, isc.ChainID, error)
Constants ¶
View Source
const ( ParamEVMChainID = "a" ParamBlockKeepAmount = "b" ParamChainOwner = "c" )
Variables ¶
This section is empty.
Functions ¶
func InitChainByAliasOutput ¶
func L1Commitment ¶
func L1Commitment(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.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.
Click to show internal directories.
Click to hide internal directories.