Documentation ¶
Index ¶
- type BoundFeeOracleV1
- func (c BoundFeeOracleV1) BulkSetFeeParams(ctx context.Context, params []bindings.IFeeOracleV1ChainFeeParams) error
- func (c BoundFeeOracleV1) GasPriceOn(ctx context.Context, destChainID uint64) (*big.Int, error)
- func (c BoundFeeOracleV1) PostsTo(ctx context.Context, destChainID uint64) (uint64, error)
- func (c BoundFeeOracleV1) SetGasPriceOn(ctx context.Context, destChainID uint64, gasPrice *big.Int) error
- func (c BoundFeeOracleV1) SetToNativeRate(ctx context.Context, destChainID uint64, rate *big.Int) error
- func (c BoundFeeOracleV1) ToNativeRate(ctx context.Context, destChainID uint64) (*big.Int, error)
- type FeeOracleV1
- type MockFeeOracleV1
- func (m *MockFeeOracleV1) BulkSetFeeParams(_ context.Context, params []bindings.IFeeOracleV1ChainFeeParams) error
- func (m *MockFeeOracleV1) GasPriceOn(_ context.Context, destChainID uint64) (*big.Int, error)
- func (m *MockFeeOracleV1) PostsTo(_ context.Context, destChainID uint64) (uint64, error)
- func (m *MockFeeOracleV1) SetGasPriceOn(_ context.Context, destChainID uint64, gasPrice *big.Int) error
- func (m *MockFeeOracleV1) SetToNativeRate(_ context.Context, destChainID uint64, rate *big.Int) error
- func (m *MockFeeOracleV1) ToNativeRate(_ context.Context, destChainID uint64) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundFeeOracleV1 ¶
type BoundFeeOracleV1 struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, chain netconf.Chain, ethCl ethclient.Client, pk *ecdsa.PrivateKey) (BoundFeeOracleV1, error)
New creates a new bound FeeOracleV1 contract.
func (BoundFeeOracleV1) BulkSetFeeParams ¶
func (c BoundFeeOracleV1) BulkSetFeeParams(ctx context.Context, params []bindings.IFeeOracleV1ChainFeeParams) error
func (BoundFeeOracleV1) GasPriceOn ¶
GasPriceOn returns the gas price on the FeeOracleV1 contract for the destination chain.
func (BoundFeeOracleV1) PostsTo ¶
PostsTo returns the postsTo value on the FeeOracleV1 contract for the destination chain.
func (BoundFeeOracleV1) SetGasPriceOn ¶
func (c BoundFeeOracleV1) SetGasPriceOn(ctx context.Context, destChainID uint64, gasPrice *big.Int) error
SetGasPriceOn sets the gas price on the FeeOracleV1 contract for the destination chain.
func (BoundFeeOracleV1) SetToNativeRate ¶
func (c BoundFeeOracleV1) SetToNativeRate(ctx context.Context, destChainID uint64, rate *big.Int) error
SetToNativeRate sets the conversion rate on the FeeOracleV1 contract for the destination chain.
func (BoundFeeOracleV1) ToNativeRate ¶
ToNativeRate returns the "to native" conversion rate on the FeeOracleV1 contract for the destination chaink.
type FeeOracleV1 ¶
type FeeOracleV1 interface { SetGasPriceOn(ctx context.Context, destChainID uint64, gasPrice *big.Int) error GasPriceOn(ctx context.Context, destChainID uint64) (*big.Int, error) SetToNativeRate(ctx context.Context, destChainID uint64, rate *big.Int) error ToNativeRate(ctx context.Context, destChainID uint64) (*big.Int, error) PostsTo(ctx context.Context, destChainID uint64) (uint64, error) BulkSetFeeParams(ctx context.Context, params []bindings.IFeeOracleV1ChainFeeParams) error }
type MockFeeOracleV1 ¶
type MockFeeOracleV1 struct {
// contains filtered or unexported fields
}
func NewMockFeeOracleV1 ¶
func NewMockFeeOracleV1() *MockFeeOracleV1
func (*MockFeeOracleV1) BulkSetFeeParams ¶
func (m *MockFeeOracleV1) BulkSetFeeParams(_ context.Context, params []bindings.IFeeOracleV1ChainFeeParams) error
func (*MockFeeOracleV1) GasPriceOn ¶
func (*MockFeeOracleV1) SetGasPriceOn ¶
func (*MockFeeOracleV1) SetToNativeRate ¶
func (*MockFeeOracleV1) ToNativeRate ¶
Click to show internal directories.
Click to hide internal directories.