iscpcontract

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EVMAddress is the arbitrary address on which the standard
	// ISCP EVM contract lives
	EVMAddress = common.HexToAddress("0x1074")
	//go:embed ISCP.abi
	ABI string
)

To get the storage layout: solc --storage-layout ISCP.sol | tail -n +4 | jq .

Functions

func ChainIDFromISCPAddress

func ChainIDFromISCPAddress(a ISCPAddress) *iscp.ChainID

func DeployOnGenesis

func DeployOnGenesis(genesisAlloc core.GenesisAlloc, chainID *iscp.ChainID)

DeployOnGenesis sets up the initial state of the ISCP EVM contract which will go into the EVM genesis block

Types

type ISCPAddress

type ISCPAddress struct {
	TypeID [1]byte
	Digest [32]byte
}

ISCPAddress maps to the equally-named struct in iscp.sol

func ChainIDToISCPAddress

func ChainIDToISCPAddress(chainID *iscp.ChainID) (ret ISCPAddress)

Jump to

Keyboard shortcuts

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