Documentation ¶
Index ¶
- Constants
- func AddLockNotifications(native *native.NativeService, contract, sourceAssetAddress common.Address, ...)
- func AddUnLockNotifications(native *native.NativeService, contract common.Address, fromChainId uint64, ...)
- func BindAssetHash(native *native.NativeService) ([]byte, error)
- func BindProxyHash(native *native.NativeService) ([]byte, error)
- func GenBindAssetHashKey(contract, assetContract common.Address, chainId uint64) []byte
- func GenBindProxyKey(contract common.Address, chainId uint64) []byte
- func GenCrossedAmountKey(contract, sourceContract common.Address, chainId uint64) []byte
- func GenCrossedLimitKey(contract, assetContract common.Address, chainId uint64) []byte
- func GetAssetHash(native *native.NativeService) ([]byte, error)
- func GetCrossedAmount(native *native.NativeService) ([]byte, error)
- func GetCrossedLimit(native *native.NativeService) ([]byte, error)
- func GetProxyHash(native *native.NativeService) ([]byte, error)
- func InitLockProxy()
- func Lock(native *native.NativeService) ([]byte, error)
- func RegisterLockProxyContract(native *native.NativeService)
- func Unlock(native *native.NativeService) ([]byte, error)
- func WithdrawONG(native *native.NativeService) ([]byte, error)
- type Args
- type BindAssetParam
- type BindProxyParam
- type LockParam
- type UnlockParam
Constants ¶
View Source
const ( LOCK_NAME = "lock" UNLOCK_NAME = "unlock" BIND_PROXY_NAME = "bindProxy" BIND_ASSET_NAME = "bindAsset" WITHDRAW_ONG_NAME = "withdrawONG" GET_PROXY_HASH_NAME = "getProxyHash" GET_ASSET_HASH_NAME = "getAssetHash" GET_CROSSED_LIMIT_NAME = "getCrossedLimit" GET_CROSSED_AMOUNT_NAME = "getCrossedAmount" TARGET_ASSET_HASH_PEFIX = "TargetAssetHash" CROSS_LIMIT_PREFIX = "AssetCrossLimit" CROSS_AMOUNT_PREFIX = "AssetCrossedAmount" )
Variables ¶
This section is empty.
Functions ¶
func AddLockNotifications ¶
func AddUnLockNotifications ¶
func BindAssetHash ¶
func BindAssetHash(native *native.NativeService) ([]byte, error)
func BindProxyHash ¶
func BindProxyHash(native *native.NativeService) ([]byte, error)
func GenBindAssetHashKey ¶
func GenCrossedAmountKey ¶
func GenCrossedLimitKey ¶
func GetAssetHash ¶
func GetAssetHash(native *native.NativeService) ([]byte, error)
func GetCrossedAmount ¶
func GetCrossedAmount(native *native.NativeService) ([]byte, error)
func GetCrossedLimit ¶
func GetCrossedLimit(native *native.NativeService) ([]byte, error)
func GetProxyHash ¶
func GetProxyHash(native *native.NativeService) ([]byte, error)
func InitLockProxy ¶
func InitLockProxy()
func RegisterLockProxyContract ¶
func RegisterLockProxyContract(native *native.NativeService)
func WithdrawONG ¶
func WithdrawONG(native *native.NativeService) ([]byte, error)
Types ¶
type Args ¶
Args for lock and unlock
func (*Args) Deserialization ¶
func (this *Args) Deserialization(source *common.ZeroCopySource) error
func (*Args) Serialization ¶
func (this *Args) Serialization(sink *common.ZeroCopySink)
type BindAssetParam ¶
type BindAssetParam struct { SourceAssetHash common.Address TargetChainId uint64 TargetAssetHash []byte Limit *big.Int IsTargetChainAsset bool }
func (*BindAssetParam) Deserialization ¶
func (this *BindAssetParam) Deserialization(source *common.ZeroCopySource) error
func (*BindAssetParam) Serialization ¶
func (this *BindAssetParam) Serialization(sink *common.ZeroCopySink)
type BindProxyParam ¶
func (*BindProxyParam) Deserialization ¶
func (this *BindProxyParam) Deserialization(source *common.ZeroCopySource) error
func (*BindProxyParam) Serialization ¶
func (this *BindProxyParam) Serialization(sink *common.ZeroCopySink)
type LockParam ¶
type LockParam struct { SourceAssetHash common.Address FromAddress common.Address ToChainID uint64 ToAddress []byte Value uint64 }
func (*LockParam) Deserialization ¶
func (this *LockParam) Deserialization(source *common.ZeroCopySource) error
func (*LockParam) Serialization ¶
func (this *LockParam) Serialization(sink *common.ZeroCopySink)
type UnlockParam ¶
func (*UnlockParam) Deserialization ¶
func (this *UnlockParam) Deserialization(source *common.ZeroCopySource) error
func (*UnlockParam) Serialization ¶
func (this *UnlockParam) Serialization(sink *common.ZeroCopySink)
Click to show internal directories.
Click to hide internal directories.