demo

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract1

type Contract1 struct {
}

func (*Contract1) Find

func (c *Contract1) Find() protogo.Response

func (*Contract1) InitContract

func (c *Contract1) InitContract() protogo.Response

func (*Contract1) InvokeContract

func (c *Contract1) InvokeContract(method string) protogo.Response

func (*Contract1) Save

func (c *Contract1) Save() protogo.Response

func (*Contract1) UpgradeContract

func (c *Contract1) UpgradeContract() protogo.Response

type Contract2

type Contract2 struct {
}

func (*Contract2) CrossCall

func (c *Contract2) CrossCall() protogo.Response

func (*Contract2) Display

func (c *Contract2) Display() protogo.Response

func (*Contract2) InitContract

func (c *Contract2) InitContract() protogo.Response

func (*Contract2) InvokeContract

func (c *Contract2) InvokeContract(method string) protogo.Response

func (*Contract2) UpgradeContract

func (c *Contract2) UpgradeContract() protogo.Response

type ContractCut

type ContractCut struct {
}

func (*ContractCut) FindByFileHash

func (c *ContractCut) FindByFileHash() protogo.Response

func (*ContractCut) InitContract

func (c *ContractCut) InitContract() protogo.Response

func (*ContractCut) InvokeContract

func (c *ContractCut) InvokeContract(method string) protogo.Response

func (*ContractCut) Save

func (c *ContractCut) Save() protogo.Response

func (*ContractCut) UpgradeContract

func (c *ContractCut) UpgradeContract() protogo.Response

type ContractFactCut

type ContractFactCut struct {
}

func (*ContractFactCut) FindByFileHash

func (c *ContractFactCut) FindByFileHash() protogo.Response

func (*ContractFactCut) InitContract

func (c *ContractFactCut) InitContract() protogo.Response

func (*ContractFactCut) InvokeContract

func (c *ContractFactCut) InvokeContract(method string) protogo.Response

func (*ContractFactCut) Save

func (c *ContractFactCut) Save() protogo.Response

func (*ContractFactCut) UpgradeContract

func (c *ContractFactCut) UpgradeContract() protogo.Response

type CrossEvmContract

type CrossEvmContract struct {
}

func (*CrossEvmContract) CrossEvmStorageGet

func (c *CrossEvmContract) CrossEvmStorageGet() protogo.Response

func (*CrossEvmContract) CrossEvmStorageSet

func (c *CrossEvmContract) CrossEvmStorageSet() protogo.Response

func (*CrossEvmContract) InitContract

func (c *CrossEvmContract) InitContract() protogo.Response

func (*CrossEvmContract) InvokeContract

func (c *CrossEvmContract) InvokeContract(method string) protogo.Response

func (*CrossEvmContract) UpgradeContract

func (c *CrossEvmContract) UpgradeContract() protogo.Response

type Fact

type Fact struct {
	FileHash string `json:"FileHash"`
	FileName string `json:"FileName"`
	Time     int32  `json:"time"`
}

存证对象

func NewFact

func NewFact(FileHash string, FileName string, time int32) *Fact

新建存证对象

type FactContract

type FactContract struct {
}

func (*FactContract) FindByFileHash

func (f *FactContract) FindByFileHash() protogo.Response

func (*FactContract) InitContract

func (f *FactContract) InitContract() protogo.Response

func (*FactContract) InvokeContract

func (f *FactContract) InvokeContract(method string) protogo.Response

func (*FactContract) Save

func (f *FactContract) Save() protogo.Response

func (*FactContract) UpgradeContract

func (f *FactContract) UpgradeContract() protogo.Response

type Peoples

type Peoples struct {
	Peoples map[int]string `json:"peoples"`
}

type RaffleContract

type RaffleContract struct {
}

func (*RaffleContract) BkdrHash

func (r *RaffleContract) BkdrHash(timestamp string) int

func (*RaffleContract) InitContract

func (r *RaffleContract) InitContract() protogo.Response

func (*RaffleContract) InvokeContract

func (r *RaffleContract) InvokeContract(method string) protogo.Response

func (*RaffleContract) Raffle

func (r *RaffleContract) Raffle() protogo.Response

func (*RaffleContract) RegisterAll

func (r *RaffleContract) RegisterAll() protogo.Response

func (*RaffleContract) UpgradeContract

func (r *RaffleContract) UpgradeContract() protogo.Response

type StoreMapContract

type StoreMapContract struct {
}

func (*StoreMapContract) Del

func (*StoreMapContract) Exist

func (s *StoreMapContract) Exist() protogo.Response

func (*StoreMapContract) Get

func (*StoreMapContract) InitContract

func (s *StoreMapContract) InitContract() protogo.Response

func (*StoreMapContract) InvokeContract

func (s *StoreMapContract) InvokeContract(method string) protogo.Response

func (*StoreMapContract) Set

func (*StoreMapContract) UpgradeContract

func (s *StoreMapContract) UpgradeContract() protogo.Response

type TestContract

type TestContract struct {
}

func (*TestContract) FindByFileHash

func (t *TestContract) FindByFileHash() protogo.Response

func (*TestContract) InitContract

func (t *TestContract) InitContract() protogo.Response

func (*TestContract) InvokeContract

func (t *TestContract) InvokeContract(method string) protogo.Response

func (*TestContract) Save

func (t *TestContract) Save() protogo.Response

func (*TestContract) UpgradeContract

func (t *TestContract) UpgradeContract() protogo.Response

type TransferContract

type TransferContract struct {
}

func (*TransferContract) Init

func (t *TransferContract) Init() protogo.Response

func (*TransferContract) InitContract

func (t *TransferContract) InitContract() protogo.Response

func (*TransferContract) InvokeContract

func (t *TransferContract) InvokeContract(method string) protogo.Response

func (*TransferContract) Transfer

func (t *TransferContract) Transfer() protogo.Response

func (*TransferContract) UpgradeContract

func (t *TransferContract) UpgradeContract() protogo.Response

Jump to

Keyboard shortcuts

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