Documentation ¶
Index ¶
- Variables
- func AssignDnaIDsToRole(native *native.NativeService) ([]byte, error)
- func AssignFuncsToRole(native *native.NativeService) ([]byte, error)
- func Delegate(native *native.NativeService) ([]byte, error)
- func Init()
- func InitContractAdmin(native *native.NativeService) ([]byte, error)
- func RegisterAuthContract(native *native.NativeService)
- func Transfer(native *native.NativeService) ([]byte, error)
- func VerifyToken(native *native.NativeService) ([]byte, error)
- func Withdraw(native *native.NativeService) ([]byte, error)
- type AuthToken
- type DelegateParam
- type DelegateStatus
- type FuncsToRoleParam
- type InitContractAdminParam
- type OntIDsToRoleParam
- type Status
- type TransferParam
- type VerifyTokenParam
- type WithdrawParam
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PreAdmin = []byte{0x01} PreRoleFunc = []byte{0x02} PreRoleToken = []byte{0x03} PreDelegateStatus = []byte{0x04} )
Functions ¶
func AssignDnaIDsToRole ¶
func AssignDnaIDsToRole(native *native.NativeService) ([]byte, error)
func AssignFuncsToRole ¶
func AssignFuncsToRole(native *native.NativeService) ([]byte, error)
func InitContractAdmin ¶
func InitContractAdmin(native *native.NativeService) ([]byte, error)
func RegisterAuthContract ¶
func RegisterAuthContract(native *native.NativeService)
func VerifyToken ¶
func VerifyToken(native *native.NativeService) ([]byte, error)
Types ¶
type DelegateParam ¶
type DelegateParam struct { ContractAddr common.Address From []byte To []byte Role []byte Period uint64 Level uint64 KeyNo uint64 }
func (*DelegateParam) Deserialize ¶
func (this *DelegateParam) Deserialize(rd io.Reader) error
type DelegateStatus ¶
type DelegateStatus struct { AuthToken // contains filtered or unexported fields }
func (*DelegateStatus) Deserialize ¶
func (this *DelegateStatus) Deserialize(rd io.Reader) error
type FuncsToRoleParam ¶
type FuncsToRoleParam struct { ContractAddr common.Address AdminOntID []byte Role []byte FuncNames []string KeyNo uint64 }
**********************************************
func (*FuncsToRoleParam) Deserialize ¶
func (this *FuncsToRoleParam) Deserialize(rd io.Reader) error
type InitContractAdminParam ¶
type InitContractAdminParam struct {
AdminOntID []byte
}
**********************************************
func (*InitContractAdminParam) Deserialize ¶
func (this *InitContractAdminParam) Deserialize(rd io.Reader) error
type OntIDsToRoleParam ¶
type OntIDsToRoleParam struct { ContractAddr common.Address AdminOntID []byte Role []byte Persons [][]byte KeyNo uint64 }
func (*OntIDsToRoleParam) Deserialize ¶
func (this *OntIDsToRoleParam) Deserialize(rd io.Reader) error
type TransferParam ¶
**********************************************
func (*TransferParam) Deserialize ¶
func (this *TransferParam) Deserialize(rd io.Reader) error
type VerifyTokenParam ¶
func (*VerifyTokenParam) Deserialize ¶
func (this *VerifyTokenParam) Deserialize(rd io.Reader) error
type WithdrawParam ¶
type WithdrawParam struct { ContractAddr common.Address Initiator []byte Delegate []byte Role []byte KeyNo uint64 }
func (*WithdrawParam) Deserialize ¶
func (this *WithdrawParam) Deserialize(rd io.Reader) error
Click to show internal directories.
Click to hide internal directories.