I get timeouts when sending transactions via the safe contract using the latest version of the gnosis_safe
contract package.
I am able to make it work by removing gas
from the tx_parameters
. I think it has to do with setting gas
before calling buildTransaction()
. From my understanding this results in eth_estimateGas
not being called.
Here's how I am modifying the gnosis_safe package:
def get_raw_safe_transaction(...):
sender_address = ledger_api.api.toChecksumAddress(sender_address)
to_address = ledger_api.api.toChecksumAddress(to_address)
ledger_api = cast(EthereumApi, ledger_api)
signatures = cls._get_packed_signatures(owners, signatures_by_owner)
safe_contract = cls.get_instance(ledger_api, contract_address)
w3_tx = safe_contract.functions.execTransaction(
to_address,
value,
data,
operation,
safe_tx_gas,
base_gas,
safe_gas_price,
gas_token,
refund_receiver,
signatures,
)
configured_gas = base_gas + safe_tx_gas + 75000
tx_parameters: Dict[str, Union[str, int]] = {
"from": sender_address,
"gas": configured_gas, # remove this line
}
actual_nonce = ledger_api.api.eth.get_transaction_count(
ledger_api.api.toChecksumAddress(sender_address)
)
if actual_nonce != nonce:
nonce = actual_nonce
old_price = None
if gas_price is not None:
tx_parameters["gasPrice"] = gas_price
if max_fee_per_gas is not None:
tx_parameters["maxFeePerGas"] = max_fee_per_gas # pragma: nocover
if max_priority_fee_per_gas is not None: # pragma: nocover
tx_parameters["maxPriorityFeePerGas"] = max_priority_fee_per_gas
if (
gas_price is None
and max_fee_per_gas is None
and max_priority_fee_per_gas is None
):
tx_parameters.update(ledger_api.try_get_gas_pricing(old_price=old_price))
# note, the next line makes an eth_estimateGas call!
# `eth_estimateGas` not called when `tx_parameters` has a `gas` key
transaction_dict = w3_tx.buildTransaction(tx_parameters)
transaction_dict["gas"] = Wei(
max(transaction_dict["gas"] + 75000, configured_gas)
)
transaction_dict["nonce"] = nonce # pragma: nocover
return transaction_dict
Why I think that setting gas
in tx_parameters
is a problem
buildTransaction
on web3 tries to fill in default values for the missing fields, gas
is one the fields it will try to set if missing.
Chain of methods called: web3/contract.py:buildTransaction()
-> web3/contract.py:build_transaction_for_function()
-> web3/contract.py:fill_transaction_defaults()
For reference here's the impl of fill_transaction_defaults()
:
@curry
def fill_transaction_defaults(web3: "Web3", transaction: TxParams) -> TxParams:
"""
if web3 is None, fill as much as possible while offline
"""
strategy_based_gas_price = web3.eth.generate_gas_price(transaction)
is_dynamic_fee_transaction = (
not strategy_based_gas_price
and (
'gasPrice' not in transaction # default to dynamic fee transaction
or any_in_dict(DYNAMIC_FEE_TXN_PARAMS, transaction)
)
)
defaults = {}
for key, default_getter in TRANSACTION_DEFAULTS.items():
if key not in transaction:
if (
is_dynamic_fee_transaction and key == 'gasPrice'
or not is_dynamic_fee_transaction and key in DYNAMIC_FEE_TXN_PARAMS
):
# do not set default max fees if legacy txn or gas price if dynamic fee txn
continue
if callable(default_getter):
if web3 is None:
raise ValueError("You must specify a '%s' value in the transaction" % key)
default_val = default_getter(web3, transaction)
else:
default_val = default_getter
defaults[key] = default_val
return merge(defaults, transaction)
gas
is a transaction default member. If we set it, according to the above method, the 'gas' lambda function will not be called:
TRANSACTION_DEFAULTS = {
'value': 0,
'data': b'',
'gas': lambda web3, tx: web3.eth.estimate_gas(tx),
'gasPrice': lambda web3, tx: web3.eth.generate_gas_price(tx) or web3.eth.gas_price,
'maxFeePerGas': (
lambda web3, tx:
web3.eth.max_priority_fee + (2 * web3.eth.get_block('latest')['baseFeePerGas'])
),
'maxPriorityFeePerGas': lambda web3, tx: web3.eth.max_priority_fee,
'chainId': lambda web3, tx: web3.eth.chain_id,
}
The following I think is proof that this is the case:
Setup:
- Ganache as a local fork.
- To
web3/eth.py:estimate_gas()
a print statement was added:
def estimate_gas(
self,
transaction: TxParams,
block_identifier: Optional[BlockIdentifier] = None
) -> Wei:
print("estimate gas called!!!!!!")
return self._estimate_gas(transaction, block_identifier)
Notice estimate gas called!!!!!!
in the AEA logs and eth_estimateGas
in the ganache logs.
When gas
is not set:
Two estitmate_gas calls are made both in the AEA and in ganache. One before the safe is deployed, and one for a safe tx.
AEA logs:
_ _____ _
/ \ | ____| / \
/ _ \ | _| / _ \
/ ___ \ | |___ / ___ \
/_/ \_\|_____|/_/ \_\
v1.7.0
Available packages.
Starting AEA 'elcollectooorr' in 'async' mode...
[2022-05-12 16:03:08,242] [INFO] [elcollectooorr] Entered in the 'registration_startup' round for period 0
[2022-05-12 16:03:08,242] [INFO] [elcollectooorr] Start processing messages...
[2022-05-12 16:03:08,243] [INFO] [elcollectooorr] Entered in the 'registration_startup' behaviour state
[2022-05-12 16:03:08,243] [INFO] [elcollectooorr] Checking sync...
[2022-05-12 16:03:08,243] [INFO] [elcollectooorr] Checking status
[2022-05-12 16:03:11,248] [INFO] [elcollectooorr] Checking status
[2022-05-12 16:03:14,259] [INFO] [elcollectooorr] Checking status
[2022-05-12 16:03:17,263] [INFO] [elcollectooorr] Checking status
[2022-05-12 16:03:17,277] [INFO] [elcollectooorr] local height == remote; Sync complete...
[2022-05-12 16:03:17,888] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:16.834124
[2022-05-12 16:03:17,889] [INFO] [elcollectooorr] current AbciApp time: None
[2022-05-12 16:03:17,889] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:18,354] [INFO] [elcollectooorr] A2A transaction delivered!
[2022-05-12 16:03:18,355] [INFO] [elcollectooorr] Stop condition is true, no more attempts to send the transaction.
[2022-05-12 16:03:18,897] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:17.884065
[2022-05-12 16:03:18,898] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:16.834124
[2022-05-12 16:03:18,898] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:18,907] [INFO] [elcollectooorr] 'registration_startup' round is done with event: Event.DONE
[2022-05-12 16:03:18,907] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:03:47.884065
[2022-05-12 16:03:18,907] [INFO] [elcollectooorr] Entered in the 'randomness_safe' round for period 0
[2022-05-12 16:03:18,907] [INFO] [elcollectooorr] Entered in the 'randomness_safe' behaviour state
[2022-05-12 16:03:18,908] [INFO] [elcollectooorr] Retrieving DRAND values from api.
[2022-05-12 16:03:19,477] [INFO] [elcollectooorr] Verifying DRAND values.
[2022-05-12 16:03:19,863] [INFO] [elcollectooorr] DRAND check successful.
[2022-05-12 16:03:19,863] [INFO] [elcollectooorr] Retrieved DRAND values: {'round': 1897772, 'randomness': 'bcf753df221f3cff04c34bad430f72b3618137a28650de8c2b9be3705b914885', 'signature': '937c903ca1cf1851a6b0c991a860c797fad936755d8225279758f01941158a20851ba0c7ec39abf800b9a3fc8245600e18b7dea184ae2fa01f639c4c71bfd949afc365fdab0e00fdeb548f4e48e2c26fa5a01d1905fa576e3131f76c3d4808e3'}.
[2022-05-12 16:03:19,904] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:18.891808
[2022-05-12 16:03:19,904] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:17.884065
[2022-05-12 16:03:19,919] [INFO] [elcollectooorr] 'randomness_safe' round is done with event: Event.DONE
[2022-05-12 16:03:19,919] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:03:48.891808
[2022-05-12 16:03:19,919] [INFO] [elcollectooorr] Entered in the 'select_keeper_safe' round for period 0
[2022-05-12 16:03:19,920] [INFO] [elcollectooorr] Entered in the 'select_keeper_safe' behaviour state
[2022-05-12 16:03:19,920] [INFO] [elcollectooorr] Selected a new keeper: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0.
[2022-05-12 16:03:20,913] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:19.899419
[2022-05-12 16:03:20,913] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:18.891808
[2022-05-12 16:03:20,928] [INFO] [elcollectooorr] 'select_keeper_safe' round is done with event: Event.DONE
[2022-05-12 16:03:20,928] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.DEPLOY_TIMEOUT with deadline 2022-05-12 16:03:49.899419
[2022-05-12 16:03:20,928] [INFO] [elcollectooorr] Entered in the 'deploy_safe' round for period 0
[2022-05-12 16:03:20,930] [INFO] [elcollectooorr] Entered in the 'deploy_safe' behaviour state
[2022-05-12 16:03:20,930] [INFO] [elcollectooorr] I am the designated sender, deploying the safe contract...
[2022-05-12 16:03:20,940] [INFO] Network 1 - Sender 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 - Balance: 1000.000000Ξ
[2022-05-12 16:03:20,950] [INFO] Creating new Safe with owners=['0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0'] threshold=1 fallback-handler=0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4 salt-nonce=83638030360768167581629667952699494882599947840158484695659506031279433682200
[2022-05-12 16:03:21,921] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:20.908348
[2022-05-12 16:03:21,921] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:19.899419
estimate gas called!!!!!!
[2022-05-12 16:03:22,928] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:21.916340
[2022-05-12 16:03:22,928] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:20.908348
[2022-05-12 16:03:23,036] [INFO] [elcollectooorr] Sending signing request for transaction: RawTransaction: ledger_id=ethereum, body={'value': 0, 'gas': 312044, 'chainId': 1337, 'from': '0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0', 'maxFeePerGas': 89000000000, 'maxPriorityFeePerGas': 3000000000, 'nonce': 658, 'to': '0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2', 'data': '0x1688f0b9000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee7095520000000000000000000000000000000000000000000000000000000000000060b8e972967496c874cedfd85da6efd3b28f441dcaf77bdee8ed23ee575ead8d180000000000000000000000000000000000000000000000000000000000000184b63e800d0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f48f2b2d2a534e402487b3ee7c18c33aec0fe5e40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ffcf8fdee72ac11b5c542428b35eef5769c409f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'}...
[2022-05-12 16:03:23,043] [INFO] [elcollectooorr] Received signature response: Message(sender=decision_maker,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('61c462162bd779bc8688a74baac362941f6bf02a2e84b26abe44674966400238', '8fdbe4394e314496b40fde4238db34485f6f5bdb31e3a899a721868e76698519'),message_id=-1,performative=signed_transaction,signed_transaction=SignedTransaction: ledger_id=ethereum, body={'raw_transaction': '0x02f9029682053982029284b2d05e008514b8d03a008304c2ec94a6b71e26c5e0845f74c812102ca7114b6a896ab280b902241688f0b9000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee7095520000000000000000000000000000000000000000000000000000000000000060b8e972967496c874cedfd85da6efd3b28f441dcaf77bdee8ed23ee575ead8d180000000000000000000000000000000000000000000000000000000000000184b63e800d00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000,target=1)
Sending transaction...
[2022-05-12 16:03:23,044] [INFO] [elcollectooorr] sending transaction to ledger.
[2022-05-12 16:03:23,078] [INFO] [elcollectooorr] Transaction sent! Received transaction digest: Message(sender=valory/ledger:0.1.0,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('1b39cb9a2730eeb9f6cfa33e76081b854f100c843590ababf000f4de233f0a82', '9e5d0406a146d071ed2086a58ea32a7dabac48de0976996df7625dac6f7c7374'),message_id=-1,performative=transaction_digest,target=1,transaction_digest=TransactionDigest: ledger_id=ethereum, body=0x37386b83291d71d1c1a0884d1a0d8bd62b8aaf14cb8bbc920a3c2c6c54bd84c9)
[2022-05-12 16:03:23,078] [INFO] [elcollectooorr] sending transaction receipt request for tx_digest='0x37386b83291d71d1c1a0884d1a0d8bd62b8aaf14cb8bbc920a3c2c6c54bd84c9'.
[2022-05-12 16:03:23,952] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:22.923458
[2022-05-12 16:03:23,952] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:21.916340
[2022-05-12 16:03:24,955] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:23.938010
[2022-05-12 16:03:24,956] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:22.923458
[2022-05-12 16:03:25,964] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:24.950997
[2022-05-12 16:03:25,964] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:23.938010
[2022-05-12 16:03:26,103] [INFO] [elcollectooorr] Deployment tx digest: 0x37386b83291d71d1c1a0884d1a0d8bd62b8aaf14cb8bbc920a3c2c6c54bd84c9
[2022-05-12 16:03:26,103] [INFO] [elcollectooorr] Safe contract address: 0x90AEDb74544C66fAf575a9CbaCfd99e58C20675f
[2022-05-12 16:03:26,975] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:25.959936
[2022-05-12 16:03:26,975] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:24.950997
[2022-05-12 16:03:26,990] [INFO] [elcollectooorr] 'deploy_safe' round is done with event: Event.DONE
[2022-05-12 16:03:26,990] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.VALIDATE_TIMEOUT with deadline 2022-05-12 16:03:55.959936
[2022-05-12 16:03:26,990] [INFO] [elcollectooorr] Entered in the 'validate_safe' round for period 0
[2022-05-12 16:03:26,992] [INFO] [elcollectooorr] Entered in the 'validate_safe' behaviour state
[2022-05-12 16:03:27,986] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:26.969676
[2022-05-12 16:03:27,986] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:25.959936
[2022-05-12 16:03:28,001] [INFO] [elcollectooorr] 'validate_safe' round is done with event: Event.DONE
[2022-05-12 16:03:28,001] [INFO] [elcollectooorr] Entered in the 'deploy_decision_round' round for period 0
[2022-05-12 16:03:28,001] [INFO] [elcollectooorr] Entered in the 'deploy_decision_round_behaviour' behaviour state
[2022-05-12 16:03:28,996] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:27.981490
[2022-05-12 16:03:28,996] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:26.969676
[2022-05-12 16:03:28,996] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:29,012] [INFO] [elcollectooorr] 'deploy_decision_round' round is done with event: Event.DECIDED_YES
[2022-05-12 16:03:29,012] [INFO] [elcollectooorr] Entered in the 'deploy_basket_round' round for period 0
[2022-05-12 16:03:29,013] [INFO] [elcollectooorr] Entered in the 'deploy_basket_transaction_collection' behaviour state
[2022-05-12 16:03:30,005] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:28.991394
[2022-05-12 16:03:30,005] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:27.981490
[2022-05-12 16:03:30,005] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:30,020] [INFO] [elcollectooorr] 'deploy_basket_round' round is done with event: Event.DONE
[2022-05-12 16:03:30,021] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:03:58.991394
[2022-05-12 16:03:30,021] [INFO] [elcollectooorr] Entered in the 'randomness_transaction_submission' round for period 0
[2022-05-12 16:03:30,021] [INFO] [elcollectooorr] Entered in the 'randomness_transaction_submission' behaviour state
[2022-05-12 16:03:30,021] [INFO] [elcollectooorr] Retrieving DRAND values from api.
[2022-05-12 16:03:30,196] [INFO] [elcollectooorr] Verifying DRAND values.
[2022-05-12 16:03:30,560] [INFO] [elcollectooorr] DRAND check successful.
[2022-05-12 16:03:30,560] [INFO] [elcollectooorr] Retrieved DRAND values: {'round': 1897772, 'randomness': 'bcf753df221f3cff04c34bad430f72b3618137a28650de8c2b9be3705b914885', 'signature': '937c903ca1cf1851a6b0c991a860c797fad936755d8225279758f01941158a20851ba0c7ec39abf800b9a3fc8245600e18b7dea184ae2fa01f639c4c71bfd949afc365fdab0e00fdeb548f4e48e2c26fa5a01d1905fa576e3131f76c3d4808e3'}.
[2022-05-12 16:03:31,013] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:30.000692
[2022-05-12 16:03:31,013] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:28.991394
[2022-05-12 16:03:31,029] [INFO] [elcollectooorr] 'randomness_transaction_submission' round is done with event: Event.DONE
[2022-05-12 16:03:31,029] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:04:00.000692
[2022-05-12 16:03:31,029] [INFO] [elcollectooorr] Entered in the 'select_keeper_transaction_submission_a' round for period 0
[2022-05-12 16:03:31,030] [INFO] [elcollectooorr] Entered in the 'select_keeper_transaction_submission_a' behaviour state
[2022-05-12 16:03:31,030] [INFO] [elcollectooorr] Selected a new keeper: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0.
[2022-05-12 16:03:32,020] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:31.008546
[2022-05-12 16:03:32,021] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:30.000692
[2022-05-12 16:03:32,042] [INFO] [elcollectooorr] 'select_keeper_transaction_submission_a' round is done with event: Event.DONE
[2022-05-12 16:03:32,043] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:04:01.008546
[2022-05-12 16:03:32,043] [INFO] [elcollectooorr] Entered in the 'collect_signature' round for period 0
[2022-05-12 16:03:32,044] [INFO] [elcollectooorr] Entered in the 'sign' behaviour state
[2022-05-12 16:03:32,044] [INFO] [elcollectooorr] Consensus reached on tx hash: fd2d268242aa28e27286c512bbba2321688abba7678f0dd2a27da0538db89922000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009896800xde771104C0C44123d22D39bB716339cD0c3333a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000x00000000000000000000000000000000000000000x00000000000000000000000000000000000000005d6c58de
[2022-05-12 16:03:32,054] [INFO] [elcollectooorr] Signature: 31d510e5c4f060f3385f6de505481b1b1753657f6112a3b48c0bd65030457b3129d05790784c2d690e1a1df1446b42c1f1bd3ac03894196e2d9535f1851cc4f01c
[2022-05-12 16:03:33,028] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:32.015707
[2022-05-12 16:03:33,029] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:31.008546
[2022-05-12 16:03:33,046] [INFO] [elcollectooorr] 'collect_signature' round is done with event: Event.DONE
[2022-05-12 16:03:33,046] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.FINALIZE_TIMEOUT with deadline 2022-05-12 16:04:02.015707
[2022-05-12 16:03:33,046] [INFO] [elcollectooorr] Entered in the 'finalization' round for period 0
[2022-05-12 16:03:33,048] [INFO] [elcollectooorr] Entered in the 'finalize' behaviour state
[2022-05-12 16:03:33,048] [INFO] [elcollectooorr] I am the designated sender, attempting to send the safe transaction...
estimate gas called!!!!!!
[2022-05-12 16:03:34,036] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:33.023875
[2022-05-12 16:03:34,036] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:32.015707
[2022-05-12 16:03:34,941] [INFO] [elcollectooorr] Sending signing request for transaction: RawTransaction: ledger_id=ethereum, body={'value': 0, 'gas': 10460502, 'chainId': 1337, 'from': '0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0', 'maxFeePerGas': 78000000000, 'maxPriorityFeePerGas': 3000000000, 'to': '0x90AEDb74544C66fAf575a9CbaCfd99e58C20675f', 'data': '0x6a761202000000000000000000000000de771104c0c44123d22d39bb716339cd0c3333a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000045d6c58de00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004131d510e5c4f060f3385f6de505481b1b1753657f6112a3b48c0bd65030457b3129d05790784c2d690e1a1df1446b42c1f1bd3ac03894196e2d9535f1851cc4f01c00000000000000000000000000000000000000000000000000000000000000', 'nonce': 659}...
[2022-05-12 16:03:34,948] [INFO] [elcollectooorr] Received signature response: Message(sender=decision_maker,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('39292833f3761bfaea0dedaf689e8bc15b81e23d2ebb50900f3071b04c0ed7ac', 'e2c295addb21f6cb8c0c06f01100f96608f38ca0cfd79f46eb5f0edf9d205848'),message_id=-1,performative=signed_transaction,signed_transaction=SignedTransaction: ledger_id=ethereum, body={'raw_transaction': '0x02f9027682053982029384b2d05e00851229298c00839f9d569490aedb74544c66faf575a9cbacfd99e58c20675f80b902046a761202000000000000000000000000de771104c0c44123d22d39bb716339cd0c3333a10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,target=1)
Sending transaction...
[2022-05-12 16:03:34,949] [INFO] [elcollectooorr] sending transaction to ledger.
[2022-05-12 16:03:34,994] [INFO] [elcollectooorr] Transaction sent! Received transaction digest: Message(sender=valory/ledger:0.1.0,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('fa00c3fa24f40efc3c984ebc6320df168746decdc11737624ecfbd5bc00a7ea6', '36283b4ee2b9f2516d02c7eb837255d887f9178513829fdf97e6ceced0c1467d'),message_id=-1,performative=transaction_digest,target=1,transaction_digest=TransactionDigest: ledger_id=ethereum, body=0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1)
[2022-05-12 16:03:34,994] [INFO] [elcollectooorr] Sent transaction for mining with gas parameters {'maxPriorityFeePerGas': 3000000000, 'maxFeePerGas': 78000000000}
[2022-05-12 16:03:34,994] [INFO] [elcollectooorr] Finalization tx digest: 0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1
[2022-05-12 16:03:35,044] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:34.031465
[2022-05-12 16:03:35,044] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:33.023875
[2022-05-12 16:03:35,061] [INFO] [elcollectooorr] 'finalization' round is done with event: Event.DONE
[2022-05-12 16:03:35,061] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.VALIDATE_TIMEOUT with deadline 2022-05-12 16:04:04.031465
[2022-05-12 16:03:35,061] [INFO] [elcollectooorr] Entered in the 'validate_transaction' round for period 0
[2022-05-12 16:03:35,062] [INFO] [elcollectooorr] Entered in the 'validate_transaction' behaviour state
[2022-05-12 16:03:35,062] [INFO] [elcollectooorr] sending transaction receipt request for tx_digest='0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1'.
[2022-05-12 16:03:36,054] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:35.038814
[2022-05-12 16:03:36,054] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:34.031465
[2022-05-12 16:03:37,063] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:36.049013
[2022-05-12 16:03:37,063] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:35.038814
[2022-05-12 16:03:38,075] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:37.059219
[2022-05-12 16:03:38,075] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:36.049013
[2022-05-12 16:03:38,116] [INFO] [elcollectooorr] Verified result: True
[2022-05-12 16:03:38,116] [INFO] [elcollectooorr] Finalized with transaction hash: 0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1
[2022-05-12 16:03:39,079] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:38.066796
[2022-05-12 16:03:39,079] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:37.059219
[2022-05-12 16:03:39,095] [INFO] [elcollectooorr] 'validate_transaction' round is done with event: Event.DONE
[2022-05-12 16:03:39,095] [INFO] [elcollectooorr] Entered in the 'post_transaction_settlement_round' round for period 0
[2022-05-12 16:03:39,096] [INFO] [elcollectooorr] Entered in the 'post_tx_settlement_state' behaviour state
[2022-05-12 16:03:39,096] [INFO] [elcollectooorr] The TX submitted by deploy_basket_round was settled.
[2022-05-12 16:03:39,110] [INFO] [elcollectooorr] The settled tx cost: 0.09135382399736319Ξ.
[2022-05-12 16:03:40,086] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:39.074994
[2022-05-12 16:03:40,086] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:38.066796
[2022-05-12 16:03:40,086] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:40,102] [INFO] [elcollectooorr] 'post_transaction_settlement_round' round is done with event: PostTransactionSettlementEvent.BASKET_DONE
[2022-05-12 16:03:40,102] [INFO] [elcollectooorr] Entered in the 'post_deploy_basket_round' round for period 0
[2022-05-12 16:03:40,103] [INFO] [elcollectooorr] Entered in the 'basket_address_round_behaviour' behaviour state
/home/ardian/.virtualenvs/agent-academy-1-ivkQXcJL/lib/python3.8/site-packages/web3/contract.py:1166: UserWarning: The log with transaction hash: HexBytes('0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1') and logIndex: 0 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/home/ardian/.virtualenvs/agent-academy-1-ivkQXcJL/lib/python3.8/site-packages/web3/contract.py:1166: UserWarning: The log with transaction hash: HexBytes('0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1') and logIndex: 1 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/home/ardian/.virtualenvs/agent-academy-1-ivkQXcJL/lib/python3.8/site-packages/web3/contract.py:1166: UserWarning: The log with transaction hash: HexBytes('0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1') and logIndex: 2 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/home/ardian/.virtualenvs/agent-academy-1-ivkQXcJL/lib/python3.8/site-packages/web3/contract.py:1166: UserWarning: The log with transaction hash: HexBytes('0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1') and logIndex: 4 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
[2022-05-12 16:03:40,121] [INFO] [elcollectooorr] New basket address=0x97F1e70d521b83d17734efC1E26dCC7ae9ED0536
[2022-05-12 16:03:41,094] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:40.082053
[2022-05-12 16:03:41,095] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:39.074994
[2022-05-12 16:03:41,095] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:41,112] [INFO] [elcollectooorr] 'post_deploy_basket_round' round is done with event: Event.DONE
[2022-05-12 16:03:41,112] [INFO] [elcollectooorr] Entered in the 'permission_factory_round' round for period 0
[2022-05-12 16:03:41,114] [INFO] [elcollectooorr] Entered in the 'permission_vault_factory' behaviour state
[2022-05-12 16:03:42,102] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:41.090256
[2022-05-12 16:03:42,102] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:40.082053
[2022-05-12 16:03:42,102] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 16:03:42,120] [INFO] [elcollectooorr] 'permission_factory_round' round is done with event: Event.DONE
[2022-05-12 16:03:42,120] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:04:11.090256
[2022-05-12 16:03:42,120] [INFO] [elcollectooorr] Entered in the 'randomness_transaction_submission' round for period 0
[2022-05-12 16:03:42,121] [INFO] [elcollectooorr] Entered in the 'randomness_transaction_submission' behaviour state
[2022-05-12 16:03:42,121] [INFO] [elcollectooorr] Retrieving DRAND values from api.
[2022-05-12 16:03:42,471] [INFO] [elcollectooorr] Verifying DRAND values.
[2022-05-12 16:03:42,853] [INFO] [elcollectooorr] DRAND check successful.
[2022-05-12 16:03:42,853] [INFO] [elcollectooorr] Retrieved DRAND values: {'round': 1897773, 'randomness': 'd74c17658dc4d65131fec67deb1d55de392784af97c0b354c00b0fcb81ab1813', 'signature': '8948cc2a8e727c8cffe91b0f27c74c3ac60e035dd790090dbdcc5393163f5c87c645b155d4d1b7757c4f98b7ecef44230ca894c3065a8a2ac9ff83afa9b41f3f14d84d122a02976efb488b901cbf97db75ccb1dc4c750249c4b85afcf160a02c'}.
[2022-05-12 16:03:43,110] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 16:03:42.097991
[2022-05-12 16:03:43,110] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 16:03:41.090256
[2022-05-12 16:03:43,127] [INFO] [elcollectooorr] 'randomness_transaction_submission' round is done with event: Event.DONE
[2022-05-12 16:03:43,127] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 16:04:12.097991
[2022-05-12 16:03:43,127] [INFO] [elcollectooorr] Entered in the 'select_keeper_transaction_submission_a' round for period 0
[2022-05-12 16:03:43,129] [INFO] [elcollectooorr] Entered in the 'select_keeper_transaction_submission_a' behaviour state
[2022-05-12 16:03:43,129] [INFO] [elcollectooorr] Selected a new keeper: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0.
AEA 'elcollectooorr' interrupted!
Stopping AEA 'elcollectooorr' ...
Ganache logs:
Forked Chain
==================
Location: Ethereum Mainnet, via 丕Infura
Block: 14698800
Network ID: 1
Time: Thu May 12 2022 16:03:19 GMT+0200 (Central European Summer Time)
Chain Id
==================
1337
RPC Listening on 127.0.0.1:8545
eth_getBalance
net_version
eth_getCode
eth_getCode
eth_chainId
eth_getTransactionCount
eth_call
eth_getBlockByNumber
eth_estimateGas
eth_chainId
eth_sendRawTransaction
Transaction: 0x37386b83291d71d1c1a0884d1a0d8bd62b8aaf14cb8bbc920a3c2c6c54bd84c9
Gas usage: 259064
Block number: 14698802
Block time: Thu May 12 2022 16:03:23 GMT+0200 (Central European Summer Time)
eth_getTransactionReceipt
eth_getTransactionByHash
eth_getCode
eth_call
eth_call
eth_chainId
eth_getTransactionCount
eth_getBlockByNumber
eth_estimateGas
eth_chainId
eth_sendRawTransaction
Transaction: 0x2e0d3c180753bb9753b2e0960a2a392ebbec7aab4de75e30144872ec15c80ae1
Gas usage: 2010889
Block number: 14698803
Block time: Thu May 12 2022 16:03:34 GMT+0200 (Central European Summer Time)
eth_getTransactionReceipt
eth_getTransactionByHash
eth_call
eth_getTransactionByHash
eth_getTransactionReceipt
eth_getTransactionReceipt
eth_getTransactionByHash
eth_getTransactionReceipt
eth_call
eth_call
eth_chainId
When gas
is set:
One estimate gas call is made both in the AEA and in ganache, ie only when the safe contract is deployed.
The AEA logs
_ _____ _
/ \ | ____| / \
/ _ \ | _| / _ \
/ ___ \ | |___ / ___ \
/_/ \_\|_____|/_/ \_\
v1.7.0
Starting AEA 'elcollectooorr' in 'async' mode...
[2022-05-12 15:44:16,589] [INFO] [elcollectooorr] Entered in the 'registration_startup' round for period 0
[2022-05-12 15:44:16,589] [INFO] [elcollectooorr] Start processing messages...
[2022-05-12 15:44:16,590] [INFO] [elcollectooorr] Entered in the 'registration_startup' behaviour state
[2022-05-12 15:44:16,590] [INFO] [elcollectooorr] Checking sync...
[2022-05-12 15:44:16,590] [INFO] [elcollectooorr] Checking status
[2022-05-12 15:44:19,594] [INFO] [elcollectooorr] Checking status
[2022-05-12 15:44:22,606] [INFO] [elcollectooorr] Checking status
[2022-05-12 15:44:25,618] [INFO] [elcollectooorr] Checking status
[2022-05-12 15:44:28,630] [INFO] [elcollectooorr] Checking status
[2022-05-12 15:44:31,279] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:30.209864
[2022-05-12 15:44:31,279] [INFO] [elcollectooorr] current AbciApp time: None
[2022-05-12 15:44:31,280] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 15:44:31,639] [INFO] [elcollectooorr] Checking sync...
[2022-05-12 15:44:31,639] [INFO] [elcollectooorr] Checking status
[2022-05-12 15:44:31,653] [INFO] [elcollectooorr] local height == remote; Sync complete...
[2022-05-12 15:44:32,280] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:31.266440
[2022-05-12 15:44:32,280] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:30.209864
[2022-05-12 15:44:32,280] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 15:44:32,760] [INFO] [elcollectooorr] A2A transaction delivered!
[2022-05-12 15:44:32,760] [INFO] [elcollectooorr] Stop condition is true, no more attempts to send the transaction.
[2022-05-12 15:44:33,291] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:32.275674
[2022-05-12 15:44:33,291] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:31.266440
[2022-05-12 15:44:33,291] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 15:44:33,297] [INFO] [elcollectooorr] 'registration_startup' round is done with event: Event.DONE
[2022-05-12 15:44:33,298] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 15:45:02.275674
[2022-05-12 15:44:33,298] [INFO] [elcollectooorr] Entered in the 'randomness_safe' round for period 0
[2022-05-12 15:44:33,298] [INFO] [elcollectooorr] Entered in the 'randomness_safe' behaviour state
[2022-05-12 15:44:33,298] [INFO] [elcollectooorr] Retrieving DRAND values from api.
[2022-05-12 15:44:33,767] [INFO] [elcollectooorr] Verifying DRAND values.
[2022-05-12 15:44:34,186] [INFO] [elcollectooorr] DRAND check successful.
[2022-05-12 15:44:34,186] [INFO] [elcollectooorr] Retrieved DRAND values: {'round': 1897735, 'randomness': '0d463c86bbb45f58897fd4473769f7752d254b45989658b702483ceef37884d4', 'signature': 'b45e825939bb645467cfd79e77f09269718e3f170855f08a932f8aa76397f16dac5f40193c0f2521b091bc5076fc0fc715fdb07a3e5e66bb5bee0bfa155bddbf41ee1bde34562f99d46208226aeefd2d02a36645380ab87dcbb9bc6e229d07f8'}.
[2022-05-12 15:44:34,301] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:33.285893
[2022-05-12 15:44:34,301] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:32.275674
[2022-05-12 15:44:34,317] [INFO] [elcollectooorr] 'randomness_safe' round is done with event: Event.DONE
[2022-05-12 15:44:34,317] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 15:45:03.285893
[2022-05-12 15:44:34,317] [INFO] [elcollectooorr] Entered in the 'select_keeper_safe' round for period 0
[2022-05-12 15:44:34,318] [INFO] [elcollectooorr] Entered in the 'select_keeper_safe' behaviour state
[2022-05-12 15:44:34,318] [INFO] [elcollectooorr] Selected a new keeper: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0.
[2022-05-12 15:44:35,310] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:34.296228
[2022-05-12 15:44:35,310] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:33.285893
[2022-05-12 15:44:35,325] [INFO] [elcollectooorr] 'select_keeper_safe' round is done with event: Event.DONE
[2022-05-12 15:44:35,325] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.DEPLOY_TIMEOUT with deadline 2022-05-12 15:45:04.296228
[2022-05-12 15:44:35,325] [INFO] [elcollectooorr] Entered in the 'deploy_safe' round for period 0
[2022-05-12 15:44:35,326] [INFO] [elcollectooorr] Entered in the 'deploy_safe' behaviour state
[2022-05-12 15:44:35,326] [INFO] [elcollectooorr] I am the designated sender, deploying the safe contract...
[2022-05-12 15:44:35,337] [INFO] Network 1 - Sender 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 - Balance: 1000.000000Ξ
[2022-05-12 15:44:35,347] [INFO] Creating new Safe with owners=['0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0'] threshold=1 fallback-handler=0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4 salt-nonce=75528173773057354050542427737433987055045026913652713805146881223330236147429
[2022-05-12 15:44:36,332] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:35.305845
[2022-05-12 15:44:36,332] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:34.296228
estimate gas called!!!!!!
[2022-05-12 15:44:37,299] [INFO] [elcollectooorr] Sending signing request for transaction: RawTransaction: ledger_id=ethereum, body={'value': 0, 'gas': 312044, 'chainId': 1337, 'from': '0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0', 'maxFeePerGas': 89000000000, 'maxPriorityFeePerGas': 3000000000, 'nonce': 658, 'to': '0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2', 'data': '0x1688f0b9000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee7095520000000000000000000000000000000000000000000000000000000000000060a6fb6e731795a6934e3ffc141bb69ecd9030a02e9361ec9bcb85b1543bab26e50000000000000000000000000000000000000000000000000000000000000184b63e800d0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f48f2b2d2a534e402487b3ee7c18c33aec0fe5e40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ffcf8fdee72ac11b5c542428b35eef5769c409f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'}...
[2022-05-12 15:44:37,307] [INFO] [elcollectooorr] Received signature response: Message(sender=decision_maker,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('7a312f86a74eda303cc62dfd491d82daaa893af9a92f4439264a71176fe3d424', 'e5f13a7f38ae726020c66361480d3a936078848f9cb219c892c3657b2f58d514'),message_id=-1,performative=signed_transaction,signed_transaction=SignedTransaction: ledger_id=ethereum, body={'raw_transaction': '0x02f9029682053982029284b2d05e008514b8d03a008304c2ec94a6b71e26c5e0845f74c812102ca7114b6a896ab280b902241688f0b9000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee7095520000000000000000000000000000000000000000000000000000000000000060a6fb6e731795a6934e3ffc141bb69ecd9030a02e9361ec9bcb85b1543bab26e50000000000000000000000000000000000000000000000000000000000000184b63e800d00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000,target=1)
Sending transaction...
[2022-05-12 15:44:37,307] [INFO] [elcollectooorr] sending transaction to ledger.
[2022-05-12 15:44:37,334] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:36.319599
[2022-05-12 15:44:37,334] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:35.305845
[2022-05-12 15:44:37,345] [INFO] [elcollectooorr] Transaction sent! Received transaction digest: Message(sender=valory/ledger:0.1.0,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('1be52ff51efaf2ae95922fe4833e66780fb9d8d7f4aed5b5a6a3936cbcbb3625', '9b387bc1901372caf526910325a9226c92a0f2129ce0fbeebc22bb0e28ef8940'),message_id=-1,performative=transaction_digest,target=1,transaction_digest=TransactionDigest: ledger_id=ethereum, body=0x734f544e0799746c1619eac882cf21dd99b29e45f36960f16e047b8968b55de6)
[2022-05-12 15:44:37,345] [INFO] [elcollectooorr] sending transaction receipt request for tx_digest='0x734f544e0799746c1619eac882cf21dd99b29e45f36960f16e047b8968b55de6'.
[2022-05-12 15:44:38,347] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:37.329443
[2022-05-12 15:44:38,347] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:36.319599
[2022-05-12 15:44:39,362] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:38.340161
[2022-05-12 15:44:39,362] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:37.329443
[2022-05-12 15:44:40,366] [INFO] [elcollectooorr] Deployment tx digest: 0x734f544e0799746c1619eac882cf21dd99b29e45f36960f16e047b8968b55de6
[2022-05-12 15:44:40,366] [INFO] [elcollectooorr] Safe contract address: 0xEEf009511BE3B84AdfE9eb5774cF7F80C145Fc11
[2022-05-12 15:44:40,374] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:39.355479
[2022-05-12 15:44:40,375] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:38.340161
[2022-05-12 15:44:41,381] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:40.367053
[2022-05-12 15:44:41,381] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:39.355479
[2022-05-12 15:44:41,396] [INFO] [elcollectooorr] 'deploy_safe' round is done with event: Event.DONE
[2022-05-12 15:44:41,396] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.VALIDATE_TIMEOUT with deadline 2022-05-12 15:45:10.367053
[2022-05-12 15:44:41,396] [INFO] [elcollectooorr] Entered in the 'validate_safe' round for period 0
[2022-05-12 15:44:41,397] [INFO] [elcollectooorr] Entered in the 'validate_safe' behaviour state
[2022-05-12 15:44:42,390] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:41.376253
[2022-05-12 15:44:42,390] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:40.367053
[2022-05-12 15:44:42,405] [INFO] [elcollectooorr] 'validate_safe' round is done with event: Event.DONE
[2022-05-12 15:44:42,405] [INFO] [elcollectooorr] Entered in the 'deploy_decision_round' round for period 0
[2022-05-12 15:44:42,406] [INFO] [elcollectooorr] Entered in the 'deploy_decision_round_behaviour' behaviour state
[2022-05-12 15:44:43,402] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:42.385776
[2022-05-12 15:44:43,403] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:41.376253
[2022-05-12 15:44:43,403] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 15:44:43,418] [INFO] [elcollectooorr] 'deploy_decision_round' round is done with event: Event.DECIDED_YES
[2022-05-12 15:44:43,418] [INFO] [elcollectooorr] Entered in the 'deploy_basket_round' round for period 0
[2022-05-12 15:44:43,419] [INFO] [elcollectooorr] Entered in the 'deploy_basket_transaction_collection' behaviour state
[2022-05-12 15:44:44,412] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:43.396238
[2022-05-12 15:44:44,412] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:42.385776
[2022-05-12 15:44:44,412] [INFO] [elcollectooorr] no pending timeout, move time forward
[2022-05-12 15:44:44,427] [INFO] [elcollectooorr] 'deploy_basket_round' round is done with event: Event.DONE
[2022-05-12 15:44:44,427] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 15:45:13.396238
[2022-05-12 15:44:44,427] [INFO] [elcollectooorr] Entered in the 'randomness_transaction_submission' round for period 0
[2022-05-12 15:44:44,428] [INFO] [elcollectooorr] Entered in the 'randomness_transaction_submission' behaviour state
[2022-05-12 15:44:44,429] [INFO] [elcollectooorr] Retrieving DRAND values from api.
[2022-05-12 15:44:44,619] [INFO] [elcollectooorr] Verifying DRAND values.
[2022-05-12 15:44:44,990] [INFO] [elcollectooorr] DRAND check successful.
[2022-05-12 15:44:44,990] [INFO] [elcollectooorr] Retrieved DRAND values: {'round': 1897735, 'randomness': '0d463c86bbb45f58897fd4473769f7752d254b45989658b702483ceef37884d4', 'signature': 'b45e825939bb645467cfd79e77f09269718e3f170855f08a932f8aa76397f16dac5f40193c0f2521b091bc5076fc0fc715fdb07a3e5e66bb5bee0bfa155bddbf41ee1bde34562f99d46208226aeefd2d02a36645380ab87dcbb9bc6e229d07f8'}.
[2022-05-12 15:44:45,421] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:44.407904
[2022-05-12 15:44:45,421] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:43.396238
[2022-05-12 15:44:45,437] [INFO] [elcollectooorr] 'randomness_transaction_submission' round is done with event: Event.DONE
[2022-05-12 15:44:45,437] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 15:45:14.407904
[2022-05-12 15:44:45,437] [INFO] [elcollectooorr] Entered in the 'select_keeper_transaction_submission_a' round for period 0
[2022-05-12 15:44:45,437] [INFO] [elcollectooorr] Entered in the 'select_keeper_transaction_submission_a' behaviour state
[2022-05-12 15:44:45,438] [INFO] [elcollectooorr] Selected a new keeper: 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0.
[2022-05-12 15:44:46,445] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:45.416821
[2022-05-12 15:44:46,445] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:44.407904
[2022-05-12 15:44:46,499] [INFO] [elcollectooorr] 'select_keeper_transaction_submission_a' round is done with event: Event.DONE
[2022-05-12 15:44:46,499] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.ROUND_TIMEOUT with deadline 2022-05-12 15:45:15.416821
[2022-05-12 15:44:46,499] [INFO] [elcollectooorr] Entered in the 'collect_signature' round for period 0
[2022-05-12 15:44:46,501] [INFO] [elcollectooorr] Entered in the 'sign' behaviour state
[2022-05-12 15:44:46,501] [INFO] [elcollectooorr] Consensus reached on tx hash: ba6d618cac64b454e2b13b88e1e4858ada359b3b8fd5cafbf1c922253ce3e27b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009896800xde771104C0C44123d22D39bB716339cD0c3333a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000x00000000000000000000000000000000000000000x00000000000000000000000000000000000000005d6c58de
[2022-05-12 15:44:46,508] [INFO] [elcollectooorr] Signature: 50d59cdde16c1af6141c1dfd7edf2d2020d283a7c699027836e9b000a98e818b5d9f91c3644e029102081716fb7425b2d650f2803cdb626a7f07d10275958c011c
[2022-05-12 15:44:47,446] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:46.431038
[2022-05-12 15:44:47,446] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:45.416821
[2022-05-12 15:44:47,461] [INFO] [elcollectooorr] 'collect_signature' round is done with event: Event.DONE
[2022-05-12 15:44:47,461] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.FINALIZE_TIMEOUT with deadline 2022-05-12 15:45:16.431038
[2022-05-12 15:44:47,461] [INFO] [elcollectooorr] Entered in the 'finalization' round for period 0
[2022-05-12 15:44:47,462] [INFO] [elcollectooorr] Entered in the 'finalize' behaviour state
[2022-05-12 15:44:47,462] [INFO] [elcollectooorr] I am the designated sender, attempting to send the safe transaction...
[2022-05-12 15:44:47,483] [INFO] [elcollectooorr] Sending signing request for transaction: RawTransaction: ledger_id=ethereum, body={'value': 0, 'chainId': 1337, 'from': '0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0', 'gas': 10150000, 'maxFeePerGas': 78000000000, 'maxPriorityFeePerGas': 3000000000, 'to': '0xEEf009511BE3B84AdfE9eb5774cF7F80C145Fc11', 'data': '0x6a761202000000000000000000000000de771104c0c44123d22d39bb716339cd0c3333a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000045d6c58de00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004150d59cdde16c1af6141c1dfd7edf2d2020d283a7c699027836e9b000a98e818b5d9f91c3644e029102081716fb7425b2d650f2803cdb626a7f07d10275958c011c00000000000000000000000000000000000000000000000000000000000000', 'nonce': 659}...
[2022-05-12 15:44:47,490] [INFO] [elcollectooorr] Received signature response: Message(sender=decision_maker,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('fcb108d5face098d1627e2c7d4d23a300ba19bab14baeb9e5cfc893a1d8057e0', '2b59f06f24fcadc532f131fa3dbb6670d894261b2d3439c5da5260a3f77add99'),message_id=-1,performative=signed_transaction,signed_transaction=SignedTransaction: ledger_id=ethereum, body={'raw_transaction': '0x02f9027682053982029384b2d05e00851229298c00839ae07094eef009511be3b84adfe9eb5774cf7f80c145fc1180b902046a761202000000000000000000000000de771104c0c44123d22d39bb716339cd0c3333a10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,target=1)
Sending transaction...
[2022-05-12 15:44:47,491] [INFO] [elcollectooorr] sending transaction to ledger.
[2022-05-12 15:44:47,674] [INFO] [elcollectooorr] Transaction sent! Received transaction digest: Message(sender=valory/ledger:0.1.0,to=valory/elcollectooorr_abci:0.1.0,dialogue_reference=('fdf7e69e2c3091b0bb5caf907f5bca18d994e74d97da7128721555ffd256c013', 'ce561fd68185f89bd2c4e3d2a579abb9abaf233bb54467eb494b9a031f7971ef'),message_id=-1,performative=transaction_digest,target=1,transaction_digest=TransactionDigest: ledger_id=ethereum, body=0x7d33a196e59e642f26eb78141d25361b849616ec5356dce8c1b844bd25710f6f)
[2022-05-12 15:44:47,675] [INFO] [elcollectooorr] Sent transaction for mining with gas parameters {'maxPriorityFeePerGas': 3000000000, 'maxFeePerGas': 78000000000}
[2022-05-12 15:44:47,675] [INFO] [elcollectooorr] Finalization tx digest: 0x7d33a196e59e642f26eb78141d25361b849616ec5356dce8c1b844bd25710f6f
[2022-05-12 15:44:48,457] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:47.441821
[2022-05-12 15:44:48,457] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:46.431038
[2022-05-12 15:44:48,472] [INFO] [elcollectooorr] 'finalization' round is done with event: Event.DONE
[2022-05-12 15:44:48,472] [INFO] [elcollectooorr] scheduling timeout of 30.0 seconds for event Event.VALIDATE_TIMEOUT with deadline 2022-05-12 15:45:17.441821
[2022-05-12 15:44:48,472] [INFO] [elcollectooorr] Entered in the 'validate_transaction' round for period 0
[2022-05-12 15:44:48,473] [INFO] [elcollectooorr] Entered in the 'validate_transaction' behaviour state
[2022-05-12 15:44:48,474] [INFO] [elcollectooorr] sending transaction receipt request for tx_digest='0x7d33a196e59e642f26eb78141d25361b849616ec5356dce8c1b844bd25710f6f'.
[2022-05-12 15:44:49,466] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:48.452905
[2022-05-12 15:44:49,466] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:47.441821
[2022-05-12 15:44:50,477] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:49.461859
[2022-05-12 15:44:50,477] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:48.452905
[2022-05-12 15:44:51,498] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:50.472440
[2022-05-12 15:44:51,499] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:49.461859
[2022-05-12 15:44:52,514] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:51.486150
[2022-05-12 15:44:52,515] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:50.472440
[2022-05-12 15:44:53,524] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:52.501901
[2022-05-12 15:44:53,524] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:51.486150
[2022-05-12 15:44:54,534] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:53.518206
[2022-05-12 15:44:54,534] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:52.501901
[2022-05-12 15:44:55,551] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:54.529198
[2022-05-12 15:44:55,551] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:53.518206
[2022-05-12 15:44:56,560] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:55.542908
[2022-05-12 15:44:56,560] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:54.529198
[2022-05-12 15:44:57,567] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:56.555635
[2022-05-12 15:44:57,567] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:55.542908
[2022-05-12 15:44:58,590] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:57.562784
[2022-05-12 15:44:58,590] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:56.555635
[2022-05-12 15:44:59,601] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:58.576720
[2022-05-12 15:44:59,601] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:57.562784
[2022-05-12 15:45:00,620] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:44:59.593164
[2022-05-12 15:45:00,620] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:58.576720
[2022-05-12 15:45:01,624] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:45:00.608932
[2022-05-12 15:45:01,625] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:44:59.593164
[2022-05-12 15:45:02,639] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:45:01.620244
[2022-05-12 15:45:02,639] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:45:00.608932
[2022-05-12 15:45:03,655] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:45:02.631970
[2022-05-12 15:45:03,655] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:45:01.620244
[2022-05-12 15:45:04,662] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:45:03.646660
[2022-05-12 15:45:04,662] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:45:02.631970
[2022-05-12 15:45:05,683] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:45:04.657400
[2022-05-12 15:45:05,683] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:45:03.646660
[2022-05-12 15:45:06,685] [INFO] [elcollectooorr] arrived block with timestamp: 2022-05-12 15:45:05.670926
[2022-05-12 15:45:06,685] [INFO] [elcollectooorr] current AbciApp time: 2022-05-12 15:45:04.657400
AEA 'elcollectooorr' interrupted!
Stopping AEA 'elcollectooorr' ...
ganache logs:
Forked Chain
==================
Location: Ethereum Mainnet, via 丕Infura
Block: 14698800
Network ID: 1
Time: Thu May 12 2022 15:44:14 GMT+0200 (Central European Summer Time)
Chain Id
==================
1337
RPC Listening on 127.0.0.1:8545
eth_getBalance
net_version
eth_getCode
eth_getCode
eth_chainId
eth_getTransactionCount
eth_call
eth_getBlockByNumber
eth_estimateGas
eth_chainId
eth_sendRawTransaction
Transaction: 0x734f544e0799746c1619eac882cf21dd99b29e45f36960f16e047b8968b55de6
Gas usage: 259064
Block number: 14698802
Block time: Thu May 12 2022 15:44:37 GMT+0200 (Central European Summer Time)
eth_getTransactionReceipt
eth_getTransactionByHash
eth_getCode
eth_call
eth_call
eth_chainId
eth_getTransactionCount
eth_getBlockByNumber
eth_chainId
eth_sendRawTransaction
Transaction: 0x7d33a196e59e642f26eb78141d25361b849616ec5356dce8c1b844bd25710f6f
Gas usage: 64623
Block number: 14698803
Block time: Thu May 12 2022 15:44:47 GMT+0200 (Central European Summer Time)
Runtime error: revert
Revert reason: GS010
eth_getTransactionReceipt
eth_getTransactionByHash
eth_call
eth_getTransactionReceipt
eth_getTransactionByHash
eth_call
eth_getTransactionReceipt
eth_getTransactionByHash
eth_call
eth_getTransactionByHash