bridge

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//nolint:lll
	BridgeSCBytecode = "" /* 16508-byte string literal not displayed */
)

Variables

View Source
var (
	DefaultThreshold = "100000000000000000000" // 100 wDoge
	DefaultRate      = 100                     // 1%
)

Functions

func PredeployBridgeSC

func PredeployBridgeSC(params PredeployParams) (*chain.GenesisAccount, error)

PredeployBridgeSC is a helper method for setting up the bridge smart contract account, using the passed in owner and signers as pre-defined accounts.

Types

type PredeployParams

type PredeployParams struct {
	Owner   types.Address
	Signers []types.Address
}

PredeployParams contains the values used to predeploy the Bridge contract

type StorageIndexes

type StorageIndexes struct {
	OwnerIndex                []byte // address
	MinimumThresholdIndex     []byte // uint256
	SignersIndex              []byte // []address
	SignersArraySizeIndex     []byte // []address size
	AddressToIsSignerIndex    []byte // mapping(address => bool)
	AddressToSignerIndexIndex []byte // mapping(address => uint256)
	RateIndex                 []byte // uint256
}

StorageIndexes is a wrapper for different storage indexes that need to be modified

Jump to

Keyboard shortcuts

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