Documentation ¶
Index ¶
- Variables
- type Bytes
- type ERC20AssetPool
- type ERC20Logic
- func (e ERC20Logic) GlobalResume(nonce *num.Uint) (*SignaturePayload, error)
- func (e ERC20Logic) GlobalStop(nonce *num.Uint) (*SignaturePayload, error)
- func (e ERC20Logic) ListAsset(tokenAddress string, vegaAssetID string, lifetimeLimit *num.Uint, ...) (*SignaturePayload, error)
- func (e ERC20Logic) RemoveAsset(tokenAddress string, nonce *num.Uint) (*SignaturePayload, error)
- func (e ERC20Logic) SetAssetLimits(tokenAddress string, lifetimeLimit *num.Uint, withdrawThreshold *num.Uint, ...) (*SignaturePayload, error)
- func (e ERC20Logic) SetWithdrawDelay(delay time.Duration, nonce *num.Uint) (*SignaturePayload, error)
- func (e ERC20Logic) WithdrawAsset(tokenAddress string, amount *num.Uint, ethPartyAddress string, ...) (*SignaturePayload, error)
- type ERC20LogicView
- func (e *ERC20LogicView) FindAsset(asset *types.AssetDetails) error
- func (e *ERC20LogicView) FindAssetLimitsUpdated(update *types.ERC20AssetLimitsUpdated, blockNumber uint64, logIndex uint64, ...) error
- func (e *ERC20LogicView) FindAssetList(al *types.ERC20AssetList, blockNumber, logIndex uint64) error
- func (e *ERC20LogicView) FindBridgeResumed(al *types.ERC20EventBridgeResumed, blockNumber, logIndex uint64) error
- func (e *ERC20LogicView) FindBridgeStopped(al *types.ERC20EventBridgeStopped, blockNumber, logIndex uint64) error
- func (e *ERC20LogicView) FindDeposit(d *types.ERC20Deposit, blockNumber, logIndex uint64, ethAssetAddress string) error
- func (e *ERC20LogicView) FindWithdrawal(w *types.ERC20Withdrawal, blockNumber, logIndex uint64, ethAssetAddress string) (*big.Int, string, uint, error)
- type ERC20MultiSigControl
- func (e *ERC20MultiSigControl) AddSigner(newSigner, submitter string, nonce *num.Uint) (*SignaturePayload, error)
- func (e *ERC20MultiSigControl) BurnNonce(submitter string, nonce *num.Uint) (*SignaturePayload, error)
- func (e *ERC20MultiSigControl) RemoveSigner(oldSigner, submitter string, nonce *num.Uint) (*SignaturePayload, error)
- func (e *ERC20MultiSigControl) SetThreshold(newThreshold uint16, submitter string, nonce *num.Uint) (*SignaturePayload, error)
- type ETHClient
- type EthConfirmations
- type SignaturePayload
- type Signer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAnERC20Asset = errors.New("not an erc20 asset") ErrUnableToFindERC20AssetList = errors.New("unable to find erc20 asset list event") ErrUnableToFindERC20BridgeStopped = errors.New("unable to find erc20 bridge stopped event") ErrUnableToFindERC20BridgeResumed = errors.New("unable to find erc20 bridge resumed event") ErrUnableToFindERC20Deposit = errors.New("unable to find erc20 asset deposit") ErrUnableToFindERC20Withdrawal = errors.New("unabled to find erc20 asset withdrawal") ErrUnableToFindERC20AssetLimitsUpdated = errors.New("unable to find erc20 asset limits update event") )
Functions ¶
This section is empty.
Types ¶
type ERC20AssetPool ¶
type ERC20AssetPool struct {
// contains filtered or unexported fields
}
func NewERC20AssetPool ¶
func NewERC20AssetPool(signer Signer, poolAddr string) *ERC20AssetPool
func (ERC20AssetPool) SetBridgeAddress ¶
func (e ERC20AssetPool) SetBridgeAddress( newAddress string, nonce *num.Uint, ) (*SignaturePayload, error)
func (ERC20AssetPool) SetMultiSigControl ¶
func (e ERC20AssetPool) SetMultiSigControl( newAddress string, nonce *num.Uint, ) (*SignaturePayload, error)
type ERC20Logic ¶
type ERC20Logic struct {
// contains filtered or unexported fields
}
ERC20Logic yea that's a weird name but it just matches the name of the contract.
func NewERC20Logic ¶
func NewERC20Logic(signer Signer, bridgeAddr string) *ERC20Logic
func (ERC20Logic) GlobalResume ¶
func (e ERC20Logic) GlobalResume( nonce *num.Uint, ) (*SignaturePayload, error)
func (ERC20Logic) GlobalStop ¶
func (e ERC20Logic) GlobalStop( nonce *num.Uint, ) (*SignaturePayload, error)
func (ERC20Logic) RemoveAsset ¶
func (e ERC20Logic) RemoveAsset( tokenAddress string, nonce *num.Uint, ) (*SignaturePayload, error)
func (ERC20Logic) SetAssetLimits ¶
func (e ERC20Logic) SetAssetLimits( tokenAddress string, lifetimeLimit *num.Uint, withdrawThreshold *num.Uint, nonce *num.Uint, ) (*SignaturePayload, error)
func (ERC20Logic) SetWithdrawDelay ¶
func (e ERC20Logic) SetWithdrawDelay( delay time.Duration, nonce *num.Uint, ) (*SignaturePayload, error)
func (ERC20Logic) WithdrawAsset ¶
type ERC20LogicView ¶
type ERC20LogicView struct {
// contains filtered or unexported fields
}
ERC20Logic yea that's a weird name but it just matches the name of the contract.
func NewERC20LogicView ¶
func NewERC20LogicView( clt ETHClient, ethConfs EthConfirmations, ) *ERC20LogicView
func (*ERC20LogicView) FindAsset ¶
func (e *ERC20LogicView) FindAsset( asset *types.AssetDetails, ) error
FindAsset will try to find an asset and validate it's details on ethereum.
func (*ERC20LogicView) FindAssetLimitsUpdated ¶
func (e *ERC20LogicView) FindAssetLimitsUpdated( update *types.ERC20AssetLimitsUpdated, blockNumber uint64, logIndex uint64, ethAssetAddress string, ) error
func (*ERC20LogicView) FindAssetList ¶
func (e *ERC20LogicView) FindAssetList( al *types.ERC20AssetList, blockNumber, logIndex uint64, ) error
FindAssetList will look at the ethereum logs and try to find the given transaction.
func (*ERC20LogicView) FindBridgeResumed ¶
func (e *ERC20LogicView) FindBridgeResumed( al *types.ERC20EventBridgeResumed, blockNumber, logIndex uint64, ) error
FindBridgeResumed will look at the ethereum logs and try to find the given transaction.
func (*ERC20LogicView) FindBridgeStopped ¶
func (e *ERC20LogicView) FindBridgeStopped( al *types.ERC20EventBridgeStopped, blockNumber, logIndex uint64, ) error
FindBridgeStopped will look at the ethereum logs and try to find the given transaction.
func (*ERC20LogicView) FindDeposit ¶
func (e *ERC20LogicView) FindDeposit( d *types.ERC20Deposit, blockNumber, logIndex uint64, ethAssetAddress string, ) error
func (*ERC20LogicView) FindWithdrawal ¶
func (e *ERC20LogicView) FindWithdrawal( w *types.ERC20Withdrawal, blockNumber, logIndex uint64, ethAssetAddress string, ) (*big.Int, string, uint, error)
type ERC20MultiSigControl ¶
type ERC20MultiSigControl struct {
// contains filtered or unexported fields
}
func NewERC20MultiSigControl ¶
func NewERC20MultiSigControl(signer Signer) *ERC20MultiSigControl
func (*ERC20MultiSigControl) AddSigner ¶
func (e *ERC20MultiSigControl) AddSigner( newSigner, submitter string, nonce *num.Uint, ) (*SignaturePayload, error)
func (*ERC20MultiSigControl) BurnNonce ¶
func (e *ERC20MultiSigControl) BurnNonce( submitter string, nonce *num.Uint, ) (*SignaturePayload, error)
func (*ERC20MultiSigControl) RemoveSigner ¶
func (e *ERC20MultiSigControl) RemoveSigner( oldSigner, submitter string, nonce *num.Uint, ) (*SignaturePayload, error)
func (*ERC20MultiSigControl) SetThreshold ¶
func (e *ERC20MultiSigControl) SetThreshold( newThreshold uint16, submitter string, nonce *num.Uint, ) (*SignaturePayload, error)
type EthConfirmations ¶
type SignaturePayload ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.