if_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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressLevelInfo

type AddressLevelInfo struct {
	OScoreLevel uint8  `json:"o_score_level"` // level
	Timestamp   uint64 `json:"timestamp"`
}

func (*AddressLevelInfo) Deserialize

func (this *AddressLevelInfo) Deserialize(source *common.ZeroCopySource) error

type IfOracle

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

func NewIfOracle

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

func (*IfOracle) AcceptAdmin

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

func (*IfOracle) Admin

func (this *IfOracle) Admin() (common.Address, error)

func (*IfOracle) BindAddressToONTID

func (this *IfOracle) BindAddressToONTID(addr common.Address, ont_id string, index uint64) (string, error)

func (*IfOracle) GetBindedONTID

func (this *IfOracle) GetBindedONTID(addr common.Address) (string, error)

func (*IfOracle) GetKYC

func (this *IfOracle) GetKYC(addr common.Address) (string, error)

func (*IfOracle) GetLevel

func (this *IfOracle) GetLevel(addr common.Address) (*AddressLevelInfo, error)

func (*IfOracle) Init

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

func (*IfOracle) PendingAdmin

func (this *IfOracle) PendingAdmin() (common.Address, error)

func (*IfOracle) PutAddressKYC

func (this *IfOracle) PutAddressKYC(addr common.Address, kycHash string) (string, error)

func (*IfOracle) PutAddressLevel

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

func (*IfOracle) SetPendingAdmin

func (this *IfOracle) SetPendingAdmin(pendingAdmin common.Address) (string, error)

Jump to

Keyboard shortcuts

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