* v0.6.0
* deployments
This commit is contained in:
Dror Tirosh
2023-04-25 00:53:27 +03:00
committed by GitHub
parent e7a2efc8c2
commit abff2aca61
33 changed files with 7499 additions and 1447 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@account-abstraction/contracts",
"description": "Account Abstraction (EIP 4337) contracts",
"version": "0.5.0",
"version": "0.6.0",
"main": "./dist/index.js",
"scripts": {
"prepack": "../scripts/prepack-contracts-package.sh",

View File

@@ -0,0 +1 @@
42161

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
100

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,138 +0,0 @@
{
"address": "0x6F9641dd4b6Cf822D4cf52ceE753a8910b034827",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "CalledFrom",
"type": "event"
},
{
"inputs": [],
"name": "count",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "counters",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "repeat",
"type": "uint256"
},
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "gasWaster",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "justemit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"args": [],
"solcInputHash": "d9d05b8f368b7da719711fa39726c3fc",
"metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"CalledFrom\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"count\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"counters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"repeat\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"gasWaster\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"justemit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/test/TestCounter.sol\":\"TestCounter\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/test/TestCounter.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity ^0.8.12;\\n\\n//sample \\\"receiver\\\" contract, for testing \\\"exec\\\" from wallet.\\ncontract TestCounter {\\n mapping(address => uint256) public counters;\\n\\n function count() public {\\n counters[msg.sender] = counters[msg.sender] + 1;\\n\\n }\\n\\n function justemit() public {\\n emit CalledFrom(msg.sender);\\n }\\n\\n event CalledFrom(address sender);\\n\\n //helper method to waste gas\\n // repeat - waste gas on writing storage in a loop\\n // junk - dynamic buffer to stress the function size.\\n mapping(uint256 => uint256) xxx;\\n uint256 offset;\\n\\n function gasWaster(uint256 repeat, string calldata /*junk*/) external {\\n for (uint256 i = 1; i <= repeat; i++) {\\n offset++;\\n xxx[offset] = i;\\n }\\n }\\n}\",\"keccak256\":\"0xbeb0d3d75684807e0d0eb0ac7c6d30a5cc18d075b6934be024edaf30603f6ff4\",\"license\":\"GPL-3.0\"}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50610280806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806306661abd14610051578063278ddd3c1461005b578063a1b4689014610063578063be65ab8c14610076575b600080fd5b6100596100a8565b005b6100596100d5565b610059610071366004610155565b61010a565b6100966100843660046101d1565b60006020819052908152604090205481565b60405190815260200160405180910390f35b336000908152602081905260409020546100c3906001610217565b33600090815260208190526040902055565b6040513381527ffb3b4d6258432a9a3d78dd9bffbcb6cfb1bd94f58da35fd530d08da7d1d058329060200160405180910390a1565b60015b83811161014f57600280549060006101248361022f565b90915550506002546000908152600160205260409020819055806101478161022f565b91505061010d565b50505050565b60008060006040848603121561016a57600080fd5b83359250602084013567ffffffffffffffff8082111561018957600080fd5b818601915086601f83011261019d57600080fd5b8135818111156101ac57600080fd5b8760208285010111156101be57600080fd5b6020830194508093505050509250925092565b6000602082840312156101e357600080fd5b81356001600160a01b03811681146101fa57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561022a5761022a610201565b500190565b600060001982141561024357610243610201565b506001019056fea2646970667358221220dade79ce4719f2c2c86175451bd8403811b1a0dfbd53e4883ad53911092cb46064736f6c634300080c0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806306661abd14610051578063278ddd3c1461005b578063a1b4689014610063578063be65ab8c14610076575b600080fd5b6100596100a8565b005b6100596100d5565b610059610071366004610155565b61010a565b6100966100843660046101d1565b60006020819052908152604090205481565b60405190815260200160405180910390f35b336000908152602081905260409020546100c3906001610217565b33600090815260208190526040902055565b6040513381527ffb3b4d6258432a9a3d78dd9bffbcb6cfb1bd94f58da35fd530d08da7d1d058329060200160405180910390a1565b60015b83811161014f57600280549060006101248361022f565b90915550506002546000908152600160205260409020819055806101478161022f565b91505061010d565b50505050565b60008060006040848603121561016a57600080fd5b83359250602084013567ffffffffffffffff8082111561018957600080fd5b818601915086601f83011261019d57600080fd5b8135818111156101ac57600080fd5b8760208285010111156101be57600080fd5b6020830194508093505050509250925092565b6000602082840312156101e357600080fd5b81356001600160a01b03811681146101fa57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561022a5761022a610201565b500190565b600060001982141561024357610243610201565b506001019056fea2646970667358221220dade79ce4719f2c2c86175451bd8403811b1a0dfbd53e4883ad53911092cb46064736f6c634300080c0033",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 5,
"contract": "contracts/test/TestCounter.sol:TestCounter",
"label": "counters",
"offset": 0,
"slot": "0",
"type": "t_mapping(t_address,t_uint256)"
},
{
"astId": 38,
"contract": "contracts/test/TestCounter.sol:TestCounter",
"label": "xxx",
"offset": 0,
"slot": "1",
"type": "t_mapping(t_uint256,t_uint256)"
},
{
"astId": 40,
"contract": "contracts/test/TestCounter.sol:TestCounter",
"label": "offset",
"offset": 0,
"slot": "2",
"type": "t_uint256"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_uint256)": {
"encoding": "mapping",
"key": "t_address",
"label": "mapping(address => uint256)",
"numberOfBytes": "32",
"value": "t_uint256"
},
"t_mapping(t_uint256,t_uint256)": {
"encoding": "mapping",
"key": "t_uint256",
"label": "mapping(uint256 => uint256)",
"numberOfBytes": "32",
"value": "t_uint256"
},
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
137

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
10

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{
"name": "accountabstraction",
"version": "0.5.0",
"description": "",
"version": "0.6.0",
"description": "ERC-4337 Account Abstraction Implementation",
"scripts": {
"clean": "rm -rf cache artifacts typechain typechain-types",
"compile": "./scripts/hh-wrapper compile",