diff --git a/integration-tests/contracts/contract_models.go b/integration-tests/contracts/contract_models.go index 3409dc75d6e..979a9b1d954 100644 --- a/integration-tests/contracts/contract_models.go +++ b/integration-tests/contracts/contract_models.go @@ -387,6 +387,7 @@ type MercuryVerifierProxy interface { type MercuryFeeManager interface { Address() common.Address + UpdateSubscriberDiscount(subscriber common.Address, feedId [32]byte, token common.Address, discount uint64) (*types.Transaction, error) } type MercuryRewardManager interface { diff --git a/integration-tests/contracts/ethereum_contracts.go b/integration-tests/contracts/ethereum_contracts.go index 9cb858fe007..a43e4bd2f6a 100644 --- a/integration-tests/contracts/ethereum_contracts.go +++ b/integration-tests/contracts/ethereum_contracts.go @@ -2408,6 +2408,19 @@ func (e *EthereumMercuryFeeManager) Address() common.Address { return e.address } +func (e *EthereumMercuryFeeManager) UpdateSubscriberDiscount(subscriber common.Address, feedId [32]byte, token common.Address, discount uint64) (*types.Transaction, error) { + opts, err := e.client.TransactionOpts(e.client.GetDefaultWallet()) + if err != nil { + return nil, err + } + tx, err := e.instance.UpdateSubscriberDiscount(opts, subscriber, feedId, token, discount) + e.l.Info().Err(err).Msg("Called EthereumMercuryFeeManager.UpdateSubscriberDiscount()") + if err != nil { + return nil, err + } + return tx, e.client.ProcessTransaction(tx) +} + type EthereumMercuryRewardManager struct { address common.Address client blockchain.EVMClient