Versions in this module Expand all Collapse all v1 v1.15.0 Nov 22, 2021 Changes in this version + const BIND_ASSET_NAME + const BIND_PROXY_NAME + const CROSS_AMOUNT_PREFIX + const CROSS_LIMIT_PREFIX + const GET_ASSET_HASH_NAME + const GET_CROSSED_AMOUNT_NAME + const GET_CROSSED_LIMIT_NAME + const GET_PROXY_HASH_NAME + const LOCK_NAME + const TARGET_ASSET_HASH_PEFIX + const UNLOCK_NAME + const WITHDRAW_ONG_NAME + 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 struct + TargetAssetHash []byte + ToAddress []byte + Value uint64 + func (this *Args) Deserialization(source *common.ZeroCopySource) error + func (this *Args) Serialization(sink *common.ZeroCopySink) + type BindAssetParam struct + IsTargetChainAsset bool + Limit *big.Int + SourceAssetHash common.Address + TargetAssetHash []byte + TargetChainId uint64 + func (this *BindAssetParam) Deserialization(source *common.ZeroCopySource) error + func (this *BindAssetParam) Serialization(sink *common.ZeroCopySink) + type BindProxyParam struct + TargetChainId uint64 + TargetHash []byte + func (this *BindProxyParam) Deserialization(source *common.ZeroCopySource) error + func (this *BindProxyParam) Serialization(sink *common.ZeroCopySink) + type LockParam struct + FromAddress common.Address + SourceAssetHash common.Address + ToAddress []byte + ToChainID uint64 + Value uint64 + func (this *LockParam) Deserialization(source *common.ZeroCopySource) error + func (this *LockParam) Serialization(sink *common.ZeroCopySink) + type UnlockParam struct + ArgsBs []byte + FromChainId uint64 + FromContractHashBs []byte + func (this *UnlockParam) Deserialization(source *common.ZeroCopySource) error + func (this *UnlockParam) Serialization(sink *common.ZeroCopySink)