Documentation
¶
Index ¶
- Variables
- type Assets
- type Collateral
- type Config
- type ERC20BridgeView
- type Engine
- func (e *Engine) BridgeResumed(ctx context.Context, resumed bool, id string, block, logIndex uint64, ...) error
- func (e *Engine) BridgeStopped(ctx context.Context, stopped bool, id string, block, logIndex uint64, ...) error
- func (e *Engine) CalculateGovernanceTransferAmount(asset string, market string, accountType types.AccountType, ...) (*num.Uint, error)
- func (e *Engine) CancelGovTransfer(ctx context.Context, ID string) error
- func (e *Engine) CancelTransferFunds(ctx context.Context, cancel *types.CancelTransferFunds) error
- func (e *Engine) CheckTransfer(t *types.TransferBase) error
- func (e *Engine) Checkpoint() ([]byte, error)
- func (e *Engine) DepositBuiltinAsset(ctx context.Context, d *types.BuiltinAssetDeposit, id string, nonce uint64) error
- func (e *Engine) DepositERC20(ctx context.Context, d *types.ERC20Deposit, id string, ...) error
- func (e *Engine) ERC20WithdrawalEvent(ctx context.Context, w *types.ERC20Withdrawal, blockNumber, txIndex uint64, ...) error
- func (e *Engine) EnableBuiltinAsset(ctx context.Context, assetID string) error
- func (e *Engine) EnableERC20(_ context.Context, al *types.ERC20AssetList, id string, ...) error
- func (e *Engine) GetDispatchStrategy(hash string) *proto.DispatchStrategy
- func (e *Engine) GetState(k string) ([]byte, []types.StateProvider, error)
- func (e *Engine) Keys() []string
- func (e *Engine) Load(ctx context.Context, data []byte) error
- func (e *Engine) LoadState(ctx context.Context, p *types.Payload) ([]types.StateProvider, error)
- func (e *Engine) Name() types.CheckpointName
- func (e *Engine) Namespace() types.SnapshotNamespace
- func (e *Engine) NewGovernanceTransfer(ctx context.Context, ID, reference string, ...) error
- func (e *Engine) OnEpoch(ctx context.Context, ep types.Epoch)
- func (e *Engine) OnEpochRestore(ctx context.Context, ep types.Epoch)
- func (e *Engine) OnMaxAmountChanged(ctx context.Context, f num.Decimal) error
- func (e *Engine) OnMaxFractionChanged(ctx context.Context, f num.Decimal) error
- func (e *Engine) OnMinTransferQuantumMultiple(ctx context.Context, f num.Decimal) error
- func (e *Engine) OnMinWithdrawQuantumMultiple(ctx context.Context, f num.Decimal) error
- func (e *Engine) OnStateLoaded(ctx context.Context) error
- func (e *Engine) OnTick(ctx context.Context, _ time.Time)
- func (e *Engine) OnTransferFeeFactorUpdate(ctx context.Context, f num.Decimal) error
- func (e *Engine) ReloadConf(cfg Config)
- func (e *Engine) Stopped() bool
- func (e *Engine) TransferFunds(ctx context.Context, transfer *types.TransferFunds) error
- func (e *Engine) UpdateERC20(_ context.Context, event *types.ERC20AssetLimitsUpdated, id string, ...) error
- func (e *Engine) VerifyCancelGovernanceTransfer(transferID string) error
- func (e *Engine) VerifyGovernanceTransfer(transfer *types.NewTransferConfiguration) error
- func (e *Engine) WithdrawBuiltinAsset(ctx context.Context, id, party, assetID string, amount *num.Uint) error
- func (e *Engine) WithdrawERC20(ctx context.Context, id, party, assetID string, amount *num.Uint, ...) error
- type EpochService
- type EthereumEventSource
- type MarketActivityTracker
- type Notary
- type TimeService
- type Topology
- type Witness
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecurringTransferDoesNotExists = errors.New("recurring transfer does not exists") ErrCannotCancelOtherPartiesRecurringTransfers = errors.New("cannot cancel other parties recurring transfers") )
View Source
var ( ErrWrongAssetTypeUsedInBuiltinAssetChainEvent = errors.New("non builtin asset used for builtin asset chain event") ErrWrongAssetTypeUsedInERC20ChainEvent = errors.New("non ERC20 for ERC20 chain event") ErrWrongAssetUsedForERC20Withdraw = errors.New("non erc20 asset used for lock withdraw") ErrInvalidWithdrawalState = errors.New("invalid withdrawal state") ErrNotMatchingWithdrawalForReference = errors.New("invalid reference for withdrawal chain event") ErrWithdrawalNotReady = errors.New("withdrawal not ready") ErrNotEnoughFundsToTransfer =