coregovernance

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "governance"
	ScDescription = "Core governance contract"
	HScName       = wasmlib.ScHname(0x17cf909f)
)
View Source
const (
	ParamChainOwner             = wasmlib.Key("oi")
	ParamFeeColor               = wasmlib.Key("fc")
	ParamHname                  = wasmlib.Key("hn")
	ParamMaxBlobSize            = wasmlib.Key("bs")
	ParamMaxEventSize           = wasmlib.Key("es")
	ParamMaxEventsPerReq        = wasmlib.Key("ne")
	ParamOwnerFee               = wasmlib.Key("of")
	ParamStateControllerAddress = wasmlib.Key("S")
	ParamValidatorFee           = wasmlib.Key("vf")
)
View Source
const (
	ResultAllowedStateControllerAddresses = wasmlib.Key("a")
	ResultChainID                         = wasmlib.Key("c")
	ResultChainOwnerID                    = wasmlib.Key("o")
	ResultDefaultOwnerFee                 = wasmlib.Key("do")
	ResultDefaultValidatorFee             = wasmlib.Key("dv")
	ResultDescription                     = wasmlib.Key("d")
	ResultFeeColor                        = wasmlib.Key("f")
	ResultMaxBlobSize                     = wasmlib.Key("mb")
	ResultMaxEventSize                    = wasmlib.Key("me")
	ResultMaxEventsPerReq                 = wasmlib.Key("mr")
	ResultOwnerFee                        = wasmlib.Key("of")
	ResultValidatorFee                    = wasmlib.Key("vf")
)
View Source
const (
	FuncAddAllowedStateControllerAddress    = "addAllowedStateControllerAddress"
	FuncClaimChainOwnership                 = "claimChainOwnership"
	FuncDelegateChainOwnership              = "delegateChainOwnership"
	FuncRemoveAllowedStateControllerAddress = "removeAllowedStateControllerAddress"
	FuncRotateStateController               = "rotateStateController"
	FuncSetChainInfo                        = "setChainInfo"
	FuncSetContractFee                      = "setContractFee"
	FuncSetDefaultFee                       = "setDefaultFee"
	ViewGetAllowedStateControllerAddresses  = "getAllowedStateControllerAddresses"
	ViewGetChainInfo                        = "getChainInfo"
	ViewGetFeeInfo                          = "getFeeInfo"
	ViewGetMaxBlobSize                      = "getMaxBlobSize"
)
View Source
const (
	HFuncAddAllowedStateControllerAddress    = wasmlib.ScHname(0x9469d567)
	HFuncClaimChainOwnership                 = wasmlib.ScHname(0x03ff0fc0)
	HFuncDelegateChainOwnership              = wasmlib.ScHname(0x93ecb6ad)
	HFuncRemoveAllowedStateControllerAddress = wasmlib.ScHname(0x31f69447)
	HFuncRotateStateController               = wasmlib.ScHname(0x244d1038)
	HFuncSetChainInfo                        = wasmlib.ScHname(0x702f5d2b)
	HFuncSetContractFee                      = wasmlib.ScHname(0x8421a42b)
	HFuncSetDefaultFee                       = wasmlib.ScHname(0x3310ecd0)
	HViewGetAllowedStateControllerAddresses  = wasmlib.ScHname(0xf3505183)
	HViewGetChainInfo                        = wasmlib.ScHname(0x434477e2)
	HViewGetFeeInfo                          = wasmlib.ScHname(0x9fe54b48)
	HViewGetMaxBlobSize                      = wasmlib.ScHname(0xe1db3d28)
)

Variables

This section is empty.

Functions

func OnLoad

func OnLoad()

Types

type AddAllowedStateControllerAddressCall

type AddAllowedStateControllerAddressCall struct {
	Func   *wasmlib.ScFunc
	Params MutableAddAllowedStateControllerAddressParams
}

type ArrayOfImmutableBytes

type ArrayOfImmutableBytes struct {
	// contains filtered or unexported fields
}

func (ArrayOfImmutableBytes) GetBytes

func (ArrayOfImmutableBytes) Length

func (a ArrayOfImmutableBytes) Length() int32

type ArrayOfMutableBytes

type ArrayOfMutableBytes struct {
	// contains filtered or unexported fields
}

func (ArrayOfMutableBytes) Clear

func (a ArrayOfMutableBytes) Clear()

func (ArrayOfMutableBytes) GetBytes

func (a ArrayOfMutableBytes) GetBytes(index int32) wasmlib.ScMutableBytes

func (ArrayOfMutableBytes) Length

func (a ArrayOfMutableBytes) Length() int32

type ClaimChainOwnershipCall

type ClaimChainOwnershipCall struct {
	Func *wasmlib.ScFunc
}

type DelegateChainOwnershipCall

type DelegateChainOwnershipCall struct {
	Func   *wasmlib.ScFunc
	Params MutableDelegateChainOwnershipParams
}

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) AddAllowedStateControllerAddress

func (sc Funcs) AddAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *AddAllowedStateControllerAddressCall

func (Funcs) ClaimChainOwnership

func (sc Funcs) ClaimChainOwnership(ctx wasmlib.ScFuncCallContext) *ClaimChainOwnershipCall

func (Funcs) DelegateChainOwnership

func (sc Funcs) DelegateChainOwnership(ctx wasmlib.ScFuncCallContext) *DelegateChainOwnershipCall

func (Funcs) GetAllowedStateControllerAddresses

func (sc Funcs) GetAllowedStateControllerAddresses(ctx wasmlib.ScViewCallContext) *GetAllowedStateControllerAddressesCall

func (Funcs) GetChainInfo

func (sc Funcs) GetChainInfo(ctx wasmlib.ScViewCallContext) *GetChainInfoCall

func (Funcs) GetFeeInfo

func (sc Funcs) GetFeeInfo(ctx wasmlib.ScViewCallContext) *GetFeeInfoCall

func (Funcs) GetMaxBlobSize

func (sc Funcs) GetMaxBlobSize(ctx wasmlib.ScViewCallContext) *GetMaxBlobSizeCall

func (Funcs) RemoveAllowedStateControllerAddress

func (sc Funcs) RemoveAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *RemoveAllowedStateControllerAddressCall

func (Funcs) RotateStateController

func (sc Funcs) RotateStateController(ctx wasmlib.ScFuncCallContext) *RotateStateControllerCall

func (Funcs) SetChainInfo

func (sc Funcs) SetChainInfo(ctx wasmlib.ScFuncCallContext) *SetChainInfoCall

func (Funcs) SetContractFee

func (sc Funcs) SetContractFee(ctx wasmlib.ScFuncCallContext) *SetContractFeeCall

func (Funcs) SetDefaultFee

func (sc Funcs) SetDefaultFee(ctx wasmlib.ScFuncCallContext) *SetDefaultFeeCall

type GetAllowedStateControllerAddressesCall

type GetAllowedStateControllerAddressesCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetAllowedStateControllerAddressesResults
}

type GetChainInfoCall

type GetChainInfoCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetChainInfoResults
}

type GetFeeInfoCall

type GetFeeInfoCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetFeeInfoParams
	Results ImmutableGetFeeInfoResults
}

type GetMaxBlobSizeCall

type GetMaxBlobSizeCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetMaxBlobSizeResults
}

type ImmutableAddAllowedStateControllerAddressParams

type ImmutableAddAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (ImmutableAddAllowedStateControllerAddressParams) ChainOwner

func (ImmutableAddAllowedStateControllerAddressParams) FeeColor

func (ImmutableAddAllowedStateControllerAddressParams) StateControllerAddress

type ImmutableDelegateChainOwnershipParams

type ImmutableDelegateChainOwnershipParams struct {
	// contains filtered or unexported fields
}

func (ImmutableDelegateChainOwnershipParams) ChainOwner

type ImmutableGetAllowedStateControllerAddressesResults

type ImmutableGetAllowedStateControllerAddressesResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetAllowedStateControllerAddressesResults) AllowedStateControllerAddresses

type ImmutableGetChainInfoResults

type ImmutableGetChainInfoResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetChainInfoResults) ChainID

func (ImmutableGetChainInfoResults) ChainOwnerID

func (ImmutableGetChainInfoResults) DefaultOwnerFee

func (ImmutableGetChainInfoResults) DefaultValidatorFee

func (s ImmutableGetChainInfoResults) DefaultValidatorFee() wasmlib.ScImmutableInt64

func (ImmutableGetChainInfoResults) Description

func (ImmutableGetChainInfoResults) FeeColor

func (ImmutableGetChainInfoResults) MaxBlobSize

func (ImmutableGetChainInfoResults) MaxEventSize

func (ImmutableGetChainInfoResults) MaxEventsPerReq

type ImmutableGetFeeInfoParams

type ImmutableGetFeeInfoParams struct {
	// contains filtered or unexported fields
}

func (ImmutableGetFeeInfoParams) Hname

type ImmutableGetFeeInfoResults

type ImmutableGetFeeInfoResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetFeeInfoResults) FeeColor

func (ImmutableGetFeeInfoResults) OwnerFee

func (ImmutableGetFeeInfoResults) ValidatorFee

type ImmutableGetMaxBlobSizeResults

type ImmutableGetMaxBlobSizeResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetMaxBlobSizeResults) MaxBlobSize

type ImmutableRemoveAllowedStateControllerAddressParams

type ImmutableRemoveAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (ImmutableRemoveAllowedStateControllerAddressParams) StateControllerAddress

type ImmutableRotateStateControllerParams

type ImmutableRotateStateControllerParams struct {
	// contains filtered or unexported fields
}

func (ImmutableRotateStateControllerParams) StateControllerAddress

type ImmutableSetChainInfoParams

type ImmutableSetChainInfoParams struct {
	// contains filtered or unexported fields
}

func (ImmutableSetChainInfoParams) MaxBlobSize

func (ImmutableSetChainInfoParams) MaxEventSize

func (ImmutableSetChainInfoParams) MaxEventsPerReq

func (ImmutableSetChainInfoParams) OwnerFee

func (ImmutableSetChainInfoParams) ValidatorFee

type ImmutableSetContractFeeParams

type ImmutableSetContractFeeParams struct {
	// contains filtered or unexported fields
}

func (ImmutableSetContractFeeParams) Hname

func (ImmutableSetContractFeeParams) OwnerFee

func (ImmutableSetContractFeeParams) ValidatorFee

type ImmutableSetDefaultFeeParams

type ImmutableSetDefaultFeeParams struct {
	// contains filtered or unexported fields
}

func (ImmutableSetDefaultFeeParams) OwnerFee

func (ImmutableSetDefaultFeeParams) ValidatorFee

type MutableAddAllowedStateControllerAddressParams

type MutableAddAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (MutableAddAllowedStateControllerAddressParams) ChainOwner

func (MutableAddAllowedStateControllerAddressParams) FeeColor

func (MutableAddAllowedStateControllerAddressParams) StateControllerAddress

type MutableDelegateChainOwnershipParams

type MutableDelegateChainOwnershipParams struct {
	// contains filtered or unexported fields
}

func (MutableDelegateChainOwnershipParams) ChainOwner

type MutableGetAllowedStateControllerAddressesResults

type MutableGetAllowedStateControllerAddressesResults struct {
	// contains filtered or unexported fields
}

func (MutableGetAllowedStateControllerAddressesResults) AllowedStateControllerAddresses

func (s MutableGetAllowedStateControllerAddressesResults) AllowedStateControllerAddresses() ArrayOfMutableBytes

type MutableGetChainInfoResults

type MutableGetChainInfoResults struct {
	// contains filtered or unexported fields
}

func (MutableGetChainInfoResults) ChainID

func (MutableGetChainInfoResults) ChainOwnerID

func (MutableGetChainInfoResults) DefaultOwnerFee

func (MutableGetChainInfoResults) DefaultValidatorFee

func (s MutableGetChainInfoResults) DefaultValidatorFee() wasmlib.ScMutableInt64

func (MutableGetChainInfoResults) Description

func (MutableGetChainInfoResults) FeeColor

func (MutableGetChainInfoResults) MaxBlobSize

func (MutableGetChainInfoResults) MaxEventSize

func (MutableGetChainInfoResults) MaxEventsPerReq

type MutableGetFeeInfoParams

type MutableGetFeeInfoParams struct {
	// contains filtered or unexported fields
}

func (MutableGetFeeInfoParams) Hname

type MutableGetFeeInfoResults

type MutableGetFeeInfoResults struct {
	// contains filtered or unexported fields
}

func (MutableGetFeeInfoResults) FeeColor

func (MutableGetFeeInfoResults) OwnerFee

func (MutableGetFeeInfoResults) ValidatorFee

type MutableGetMaxBlobSizeResults

type MutableGetMaxBlobSizeResults struct {
	// contains filtered or unexported fields
}

func (MutableGetMaxBlobSizeResults) MaxBlobSize

type MutableRemoveAllowedStateControllerAddressParams

type MutableRemoveAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (MutableRemoveAllowedStateControllerAddressParams) StateControllerAddress

type MutableRotateStateControllerParams

type MutableRotateStateControllerParams struct {
	// contains filtered or unexported fields
}

func (MutableRotateStateControllerParams) StateControllerAddress

func (s MutableRotateStateControllerParams) StateControllerAddress() wasmlib.ScMutableAddress

type MutableSetChainInfoParams

type MutableSetChainInfoParams struct {
	// contains filtered or unexported fields
}

func (MutableSetChainInfoParams) MaxBlobSize

func (MutableSetChainInfoParams) MaxEventSize

func (MutableSetChainInfoParams) MaxEventsPerReq

func (s MutableSetChainInfoParams) MaxEventsPerReq() wasmlib.ScMutableInt16

func (MutableSetChainInfoParams) OwnerFee

func (MutableSetChainInfoParams) ValidatorFee

type MutableSetContractFeeParams

type MutableSetContractFeeParams struct {
	// contains filtered or unexported fields
}

func (MutableSetContractFeeParams) Hname

func (MutableSetContractFeeParams) OwnerFee

func (MutableSetContractFeeParams) ValidatorFee

type MutableSetDefaultFeeParams

type MutableSetDefaultFeeParams struct {
	// contains filtered or unexported fields
}

func (MutableSetDefaultFeeParams) OwnerFee

func (MutableSetDefaultFeeParams) ValidatorFee

type RemoveAllowedStateControllerAddressCall

type RemoveAllowedStateControllerAddressCall struct {
	Func   *wasmlib.ScFunc
	Params MutableRemoveAllowedStateControllerAddressParams
}

type RotateStateControllerCall

type RotateStateControllerCall struct {
	Func   *wasmlib.ScFunc
	Params MutableRotateStateControllerParams
}

type SetChainInfoCall

type SetChainInfoCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetChainInfoParams
}

type SetContractFeeCall

type SetContractFeeCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetContractFeeParams
}

type SetDefaultFeeCall

type SetDefaultFeeCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetDefaultFeeParams
}

Jump to

Keyboard shortcuts

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