oscore_oracle

package
v0.0.0-...-29f768c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oracle

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

func NewOracle

func NewOracle(nodeRPCAddr string, contractAddr string, signer *ontSDK.Account, gasPrice,
	gasLimit uint64) (*Oracle, error)

func (*Oracle) AcceptAdmin

func (this *Oracle) AcceptAdmin() (string, error)

func (*Oracle) BindAddressToONTID

func (this *Oracle) BindAddressToONTID(addr common.Address, ont_id []byte, index uint64) (string, error)

func (*Oracle) GetAddr

func (this *Oracle) GetAddr() common.Address

func (*Oracle) GetBindedONTID

func (this *Oracle) GetBindedONTID(addr common.Address) ([]byte, error)

func (*Oracle) GetKYC

func (this *Oracle) GetKYC(addr common.Address) ([]byte, error)

func (*Oracle) GetLevel

func (this *Oracle) GetLevel(addr common.Address) (*big.Int, error)

func (*Oracle) Init

func (this *Oracle) Init(admin common.Address) (string, error)

func (*Oracle) PutAddressKYC

func (this *Oracle) PutAddressKYC(addr common.Address, kyc_hash []byte) (string, error)

func (*Oracle) PutAddressLevel

func (this *Oracle) PutAddressLevel(addr common.Address, level uint64) (string, error)

func (*Oracle) SetPendingAdmin

func (this *Oracle) SetPendingAdmin(newPendingAdmin common.Address) (string, error)

func (*Oracle) UpdateSigner

func (this *Oracle) UpdateSigner(newSigner *ontSDK.Account)

Jump to

Keyboard shortcuts

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