contracts

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interchain

type Interchain struct {
	boltvm.Stub
}

func (*Interchain) Appchain

func (x *Interchain) Appchain() *boltvm.Response

func (*Interchain) Appchains

func (x *Interchain) Appchains() *boltvm.Response

Appchains returns all appchains

func (*Interchain) Audit

func (x *Interchain) Audit(proposer string, isApproved int32, desc string) *boltvm.Response

Audit bitxhub manager audit appchain register info caller is the bitxhub manager address proposer is the appchain manager address

func (*Interchain) CountAppchains

func (x *Interchain) CountAppchains() *boltvm.Response

CountAppchains counts all appchains including approved, rejected or registered

func (*Interchain) CountApprovedAppchains

func (x *Interchain) CountApprovedAppchains() *boltvm.Response

CountApprovedAppchains counts all approved appchains

func (*Interchain) DeleteAppchain

func (x *Interchain) DeleteAppchain(cid string) *boltvm.Response

func (*Interchain) FetchAuditRecords

func (x *Interchain) FetchAuditRecords(id string) *boltvm.Response

func (*Interchain) GetIBTPByID

func (x *Interchain) GetIBTPByID(id string) *boltvm.Response

func (*Interchain) HandleIBTP

func (x *Interchain) HandleIBTP(data []byte) *boltvm.Response

func (*Interchain) Register

func (x *Interchain) Register(validators string, consensusType int32, chainType, name, desc, version string) *boltvm.Response

Register appchain manager registers appchain info caller is the appchain manager address return appchain id and error

func (*Interchain) UpdateAppchain

func (x *Interchain) UpdateAppchain(validators string, consensusType int32, chainType, name, desc, version string) *boltvm.Response

type Role

type Role struct {
	boltvm.Stub
}

func (*Role) GetAdminRoles

func (r *Role) GetAdminRoles() *boltvm.Response

func (*Role) GetRole

func (r *Role) GetRole() *boltvm.Response

func (*Role) IsAdmin

func (r *Role) IsAdmin(address string) *boltvm.Response

func (*Role) SetAdminRoles

func (r *Role) SetAdminRoles(addrs string) *boltvm.Response

type RuleManager

type RuleManager struct {
	boltvm.Stub
}

RuleManager is the contract manage validation rules

func (*RuleManager) Audit

func (r *RuleManager) Audit(id string, isApproved int32, desc string) *boltvm.Response

func (*RuleManager) GetRuleAddress

func (r *RuleManager) GetRuleAddress(id string) *boltvm.Response

func (*RuleManager) RegisterRule

func (r *RuleManager) RegisterRule(id string, address string) *boltvm.Response

SetRule can map the validation rule address with the chain id

type Store

type Store struct {
	boltvm.Stub
}

func (*Store) Get

func (s *Store) Get(key string) *boltvm.Response

func (*Store) Set

func (s *Store) Set(key string, value string) *boltvm.Response

Jump to

Keyboard shortcuts

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