Skip to content

Commit

Permalink
Ignore nonce for ModuleGasEstimation (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 authored Jul 19, 2021
1 parent 904afdb commit e4d6f2f
Show file tree
Hide file tree
Showing 12 changed files with 1,433 additions and 8 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "ModuleIgnoreNonceCalls",
"sourceName": "contracts/modules/commons/ModuleIgnoreNonceCalls.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "_space",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_newNonce",
"type": "uint256"
}
],
"name": "NonceChange",
"type": "event"
},
{
"anonymous": true,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "_tx",
"type": "bytes32"
}
],
"name": "TxExecuted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "_tx",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "_reason",
"type": "bytes"
}
],
"name": "TxFailed",
"type": "event"
},
{
"inputs": [
{
"components": [
{
"internalType": "bool",
"name": "delegateCall",
"type": "bool"
},
{
"internalType": "bool",
"name": "revertOnError",
"type": "bool"
},
{
"internalType": "uint256",
"name": "gasLimit",
"type": "uint256"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct IModuleCalls.Transaction[]",
"name": "_txs",
"type": "tuple[]"
},
{
"internalType": "uint256",
"name": "_nonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_signature",
"type": "bytes"
}
],
"name": "execute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "nonce",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_space",
"type": "uint256"
}
],
"name": "readNonce",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "bool",
"name": "delegateCall",
"type": "bool"
},
{
"internalType": "bool",
"name": "revertOnError",
"type": "bool"
},
{
"internalType": "uint256",
"name": "gasLimit",
"type": "uint256"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct IModuleCalls.Transaction[]",
"name": "_txs",
"type": "tuple[]"
}
],
"name": "selfExecute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
6 changes: 3 additions & 3 deletions src/contracts/modules/MainModuleGasEstimation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;

import "./commons/ModuleIgnoreAuthUpgradable.sol";
import "./commons/ModuleIgnoreNonceCalls.sol";
import "./commons/ModuleHooks.sol";
import "./commons/ModuleCalls.sol";
import "./commons/ModuleUpdate.sol";
import "./commons/ModuleCreator.sol";

Expand All @@ -17,7 +17,7 @@ import "./commons/ModuleCreator.sol";
*/
contract MainModuleGasEstimation is
ModuleIgnoreAuthUpgradable,
ModuleCalls,
ModuleIgnoreNonceCalls,
ModuleUpdate,
ModuleHooks,
ModuleCreator
Expand All @@ -35,7 +35,7 @@ contract MainModuleGasEstimation is
bytes4 _interfaceID
) public override(
ModuleIgnoreAuthUpgradable,
ModuleCalls,
ModuleIgnoreNonceCalls,
ModuleUpdate,
ModuleHooks,
ModuleCreator
Expand Down
Loading

0 comments on commit e4d6f2f

Please sign in to comment.