├── ts
├── index.ts
└── generated.ts
├── funding.json
├── foundry.toml
├── remappings.txt
├── src
├── IOpInflator.sol
├── IInflator.sol
├── BundleBulker.sol
├── PerOpInflator.sol
├── DaimoTransferInflator.sol
└── DaimoOpInflator.sol
├── tsconfig.json
├── .gitignore
├── .gitmodules
├── script
├── deploy.sh
└── Deploy.s.sol
├── .github
└── workflows
│ └── test.yml
├── package.json
├── wagmi.config.ts
├── test
├── PerOpInflator.t.sol
├── DaimoOpInflator.t.sol
└── BundleBulker.t.sol
├── README.md
├── broadcast
└── Deploy.s.sol
│ ├── 8453
│ ├── deploy-latest.json
│ ├── deployPerOpInflator-latest.json
│ └── deployDaimoOpInflator-latest.json
│ └── 84532
│ ├── deploy-latest.json
│ ├── deployPerOpInflator-latest.json
│ └── deployDaimoOpInflator-latest.json
└── LICENSE
/ts/index.ts:
--------------------------------------------------------------------------------
1 | export * from './generated';
--------------------------------------------------------------------------------
/funding.json:
--------------------------------------------------------------------------------
1 | {
2 | "opRetro": {
3 | "projectId": "0x31ad5901da0dd56bc4e1649645365b03443ac0712c72431bf6132b121b8b96eb"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/foundry.toml:
--------------------------------------------------------------------------------
1 | [profile.default]
2 | src = "src"
3 | out = "out"
4 | libs = ["lib"]
5 |
6 | # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
7 |
--------------------------------------------------------------------------------
/remappings.txt:
--------------------------------------------------------------------------------
1 | forge-std/=lib/forge-std/src/
2 | account-abstraction/=lib/account-abstraction/contracts/
3 | openzeppelin-contracts/=lib/openzeppelin-contracts/
4 | @openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/
5 | p256-verifier/=lib/p256-verifier/src/
--------------------------------------------------------------------------------
/src/IOpInflator.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-3.0-or-later
2 | pragma solidity >=0.8;
3 |
4 | import "account-abstraction/interfaces/IEntryPoint.sol";
5 |
6 | interface IOpInflator {
7 | function inflate(bytes calldata compressed) external view returns (UserOperation memory op);
8 | }
--------------------------------------------------------------------------------
/src/IInflator.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-3.0-or-later
2 | pragma solidity >=0.8;
3 |
4 | import "account-abstraction/interfaces/IEntryPoint.sol";
5 |
6 | interface IInflator {
7 | function inflate(bytes calldata compressed) external view returns (UserOperation[] memory ops, address payable beneficiary);
8 | }
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@tsconfig/node20/tsconfig.json",
3 | "compilerOptions": {
4 | "strict": true,
5 | "resolveJsonModule": true,
6 | "sourceMap": true,
7 | "outDir": "dist",
8 | "declaration": true
9 | },
10 | "include": ["ts/index.ts"],
11 | "exclude": []
12 | }
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiler files
2 | cache/
3 | out/
4 |
5 | # Ignores development broadcast logs
6 | !/broadcast
7 | /broadcast/*/31337/
8 | /broadcast/**/dry-run/
9 |
10 | # Keep latest deployment logs
11 | broadcast/*/*/*
12 | !broadcast/*/*/*-latest.json
13 |
14 | # Dotenv file
15 | .env
16 |
17 | # Typescript
18 | node_modules/
19 | dist/
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "lib/forge-std"]
2 | path = lib/forge-std
3 | url = https://github.com/foundry-rs/forge-std
4 | [submodule "lib/account-abstraction"]
5 | path = lib/account-abstraction
6 | url = https://github.com/eth-infinitism/account-abstraction
7 | [submodule "lib/openzeppelin-contracts"]
8 | path = lib/openzeppelin-contracts
9 | url = https://github.com/Openzeppelin/openzeppelin-contracts
10 | [submodule "lib/p256-verifier"]
11 | path = lib/p256-verifier
12 | url = https://github.com/daimo-eth/p256-verifier
13 |
--------------------------------------------------------------------------------
/script/deploy.sh:
--------------------------------------------------------------------------------
1 |
2 | # Deploy BundleBulker
3 | forge script script/Deploy.s.sol --sig "deploy()" --fork-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY
4 |
5 | # Deploy PerOpInflator
6 | forge script script/Deploy.s.sol --sig "deployPerOpInflator()" --fork-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY
7 |
8 | # Deploy example inflator
9 | forge script script/Deploy.s.sol --sig "deployDaimoOpInflator()" --fork-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY
10 |
--------------------------------------------------------------------------------
/.github/workflows/test.yml:
--------------------------------------------------------------------------------
1 | name: test
2 |
3 | on: workflow_dispatch
4 |
5 | env:
6 | FOUNDRY_PROFILE: ci
7 |
8 | jobs:
9 | check:
10 | strategy:
11 | fail-fast: true
12 |
13 | name: Foundry project
14 | runs-on: ubuntu-latest
15 | steps:
16 | - uses: actions/checkout@v4
17 | with:
18 | submodules: recursive
19 |
20 | - name: Install Foundry
21 | uses: foundry-rs/foundry-toolchain@v1
22 | with:
23 | version: nightly
24 |
25 | - name: Run Forge build
26 | run: |
27 | forge --version
28 | forge build --sizes
29 | id: build
30 |
31 | - name: Run Forge tests
32 | run: |
33 | forge test -vvv
34 | id: test
35 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@daimo/bulk",
3 | "version": "0.3.1",
4 | "description": "Make compressed 4337 bundles swole again. Save calldata, save cost, ship cheap 4337 on L2.",
5 | "main": "dist/index.js",
6 | "types": "dist/index.d.ts",
7 | "scripts": {
8 | "test": "forge test -vv",
9 | "build": "tsc",
10 | "codegen": "wagmi generate"
11 | },
12 | "repository": "https://github.com/daimo-eth/bulk.git",
13 | "author": "Daimo, Inc",
14 | "license": "GPL-3.0-or-later",
15 | "homepage": "https://github.com/daimo-eth/bulk#readme",
16 | "dependencies": {
17 | "@tsconfig/node20": "^20.1.2",
18 | "@wagmi/cli": "^1.5.2",
19 | "typescript": "^5.0.0"
20 | },
21 | "publishConfig": {
22 | "access": "public"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/wagmi.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from "@wagmi/cli";
2 | import { foundry } from "@wagmi/cli/plugins";
3 |
4 | import latestBundle from "./broadcast/Deploy.s.sol/8453/deploy-latest.json";
5 | import latestOp from "./broadcast/Deploy.s.sol/8453/deployPerOpInflator-latest.json";
6 |
7 | /**
8 | * We get contract addresses from our latest Base mainnet deployments.
9 | * Because of CREATE2, all except EphemeralNotes are deterministic.
10 | */
11 | const deployments = Object.fromEntries(
12 | [
13 | ...latestOp.transactions,
14 | ...latestBundle.transactions,
15 | ]
16 | .filter((t) => t.transactionType === "CREATE2")
17 | .map((r) => [r.contractName, r.contractAddress as `0x${string}`])
18 | );
19 |
20 | export default defineConfig({
21 | out: "ts/generated.ts",
22 | plugins: [
23 | foundry({
24 | project: ".",
25 | deployments,
26 | include: ["BundleBulker.sol/*", "PerOpInflator.sol/*", "Daimo*.sol/*"],
27 | }),
28 | ],
29 | });
30 |
--------------------------------------------------------------------------------
/test/PerOpInflator.t.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: UNLICENSED
2 | pragma solidity ^0.8.13;
3 |
4 | import {Test, console2} from "forge-std/Test.sol";
5 | import {UserOperation} from "account-abstraction/interfaces/IEntryPoint.sol";
6 |
7 | import {PerOpInflator} from "../src/PerOpInflator.sol";
8 | import {IInflator} from "../src/IInflator.sol";
9 | import {IOpInflator} from "../src/IOpInflator.sol";
10 |
11 |
12 | contract DummyOpInflator is IOpInflator {
13 | function inflate(
14 | bytes calldata compressed
15 | ) external pure override returns (UserOperation memory) {
16 | require(compressed.length == 4, "Wrong compressed length");
17 | require(uint32(bytes4(compressed[0:4])) == 0x12345678, "Wrong compressed data");
18 | UserOperation memory op;
19 | return op;
20 | }
21 | }
22 |
23 | contract PerOpInflatorTest is Test {
24 | function setUp() public {
25 | }
26 |
27 | function test_PerOpInflator() public {
28 | address payable alice = payable(address(0x123));
29 | PerOpInflator poi = new PerOpInflator(address(this));
30 | poi.setBeneficiary(alice);
31 | DummyOpInflator doi = new DummyOpInflator();
32 | poi.registerOpInflator(256, doi);
33 |
34 |
35 | bytes memory compressed = abi.encodePacked(
36 | hex"01", // 1 op
37 | hex"00000100", // inflator 100
38 | hex"0004", // op size
39 | hex"12345678" // op
40 | );
41 |
42 | (UserOperation[] memory ops, address beneficiary) = poi.inflate(compressed);
43 |
44 | assertEq(ops.length, 1);
45 | assertEq(beneficiary, alice);
46 | }
47 | }
--------------------------------------------------------------------------------
/src/BundleBulker.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-3.0-or-later
2 | pragma solidity >=0.8;
3 |
4 | import "./IInflator.sol";
5 |
6 | /**
7 | * Reinflates a compressed, inflatord 4337 bundle, then submits to EntryPoint.
8 | *
9 | * Lets anyone register a new inflator.
10 | */
11 | contract BundleBulker {
12 | address public constant ENTRY_POINT = 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789;
13 |
14 | mapping(uint32 => IInflator) public idToInflator;
15 | mapping(IInflator => uint32) public inflatorToID;
16 |
17 | event InflatorRegistered(uint32 id, IInflator inflator);
18 |
19 | function registerInflator(uint32 inflatorId, IInflator inflator) public {
20 | require(inflatorId != 0, "Inflator ID cannot be 0");
21 | require(
22 | bytes4(inflatorId) != this.registerInflator.selector && bytes4(inflatorId) != this.inflate.selector,
23 | "Inflator ID cannot clash with other functions"
24 | );
25 | require(address(inflator) != address(0), "Inflator address cannot be 0");
26 | require(address(idToInflator[inflatorId]) == address(0), "Inflator already registered");
27 | require(inflatorToID[inflator] == 0, "Inflator already registered");
28 |
29 | idToInflator[inflatorId] = inflator;
30 | inflatorToID[inflator] = inflatorId;
31 |
32 | emit InflatorRegistered(inflatorId, inflator);
33 | }
34 |
35 | function inflate(bytes calldata compressed) public view returns (UserOperation[] memory ops, address payable beneficiary) {
36 | uint32 inflatorID = uint32(bytes4(compressed[0:4]));
37 | IInflator inflator = idToInflator[inflatorID];
38 | require(address(inflator) != address(0), "Inflator not registered");
39 | return inflator.inflate(compressed[4:]);
40 | }
41 |
42 | fallback() external {
43 | (UserOperation[] memory ops, address payable beneficiary) = inflate(msg.data);
44 | IEntryPoint(ENTRY_POINT).handleOps(ops, beneficiary);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/script/Deploy.s.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: UNLICENSED
2 | pragma solidity ^0.8.13;
3 |
4 | import {Script, console2} from "forge-std/Script.sol";
5 | import "../src/BundleBulker.sol";
6 | import "../src/PerOpInflator.sol";
7 | import "../src/DaimoOpInflator.sol";
8 |
9 | contract DeployScript is Script {
10 | function setUp() public {}
11 |
12 | function deploy() public {
13 | vm.broadcast();
14 | new BundleBulker{salt:0x7cf7a0f0060e1519d0ee3e12e0ee57890f69d7aa693404299a3a779e90cd7921}();
15 | }
16 |
17 | function deployPerOpInflator() public {
18 | vm.startBroadcast();
19 |
20 | // Deploy PerOpInflator
21 | address payable beneficiary = payable(0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7);
22 | PerOpInflator pi = new PerOpInflator{salt:0}(msg.sender);
23 | pi.setBeneficiary(beneficiary);
24 | vm.stopBroadcast();
25 | }
26 |
27 | function deployDaimoOpInflator() public {
28 | vm.startBroadcast();
29 | // Deploy DaimoOpInflator
30 | address tokenAddress;
31 | address paymaster;
32 | if (block.chainid == 8453) {
33 | tokenAddress = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913; // Base USDC
34 | paymaster = 0xac5917075b3ED3a6a4516398800f3f64FCf4631E; // DaimoPaymasterV2
35 | } else if (block.chainid == 84531){
36 | tokenAddress = 0x1B85deDe8178E18CdE599B4C9d913534553C3dBf; // Base Goerli testUSDC
37 | paymaster = 0x13f490FafBb206440F25760A10C21A6220017fFa; // Pimlico ERC20 paymaster
38 | } else if (block.chainid == 84532){
39 | tokenAddress = 0x036CbD53842c5426634e7929541eC2318f3dCF7e; // Base Sepolia Circle USDC
40 | paymaster = 0xa9E1CCB08053e4f5daBb506718352389C1547462; // DaimoPaymasterV2
41 | } else {
42 | revert("Unsupported chain");
43 | }
44 |
45 | DaimoOpInflator i = new DaimoOpInflator{salt:0}(tokenAddress, msg.sender);
46 | i.setPaymaster(paymaster);
47 |
48 | vm.stopBroadcast();
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/PerOpInflator.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-3.0-or-later
2 | pragma solidity >=0.8;
3 |
4 | import "./IInflator.sol";
5 | import "./IOpInflator.sol";
6 | import "@openzeppelin/contracts/access/Ownable.sol";
7 | import "account-abstraction/interfaces/IEntryPoint.sol";
8 |
9 | /// Inflates a bundle containing n ops, each with their own inflator specified.
10 | contract PerOpInflator is IInflator, Ownable {
11 | address payable public beneficiary;
12 |
13 | mapping(uint32 => IOpInflator) public idToInflator;
14 | mapping(IOpInflator => uint32) public inflatorToID;
15 |
16 | event OpInflatorRegistered(uint32 id, IOpInflator inflator);
17 |
18 | function registerOpInflator(uint32 inflatorId, IOpInflator inflator) public {
19 | require(inflatorId != 0, "Inflator ID cannot be 0");
20 | require(address(inflator) != address(0), "Inflator address cannot be 0");
21 | require(address(idToInflator[inflatorId]) == address(0), "Inflator already registered");
22 | require(inflatorToID[inflator] == 0, "Inflator already registered");
23 |
24 | idToInflator[inflatorId] = inflator;
25 | inflatorToID[inflator] = inflatorId;
26 |
27 | emit OpInflatorRegistered(inflatorId, inflator);
28 | }
29 |
30 | constructor(address _owner) {
31 | transferOwnership(_owner);
32 | }
33 |
34 | function setBeneficiary(address payable _beneficiary) public onlyOwner {
35 | beneficiary = _beneficiary;
36 | }
37 |
38 | function inflate(
39 | bytes calldata compressed
40 | ) external view override returns (UserOperation[] memory, address payable) {
41 | uint256 numOps = uint256(uint8(bytes1(compressed[0:1])));
42 | UserOperation[] memory ops = new UserOperation[](numOps);
43 | uint256 offset = 1;
44 | for (uint256 i = 0; i < numOps; i++) {
45 | uint32 inflatorID = uint32(bytes4(compressed[offset:offset+4]));
46 | uint16 opSize = uint16(bytes2(compressed[offset+4:offset+6]));
47 | offset += 6;
48 |
49 | IOpInflator inflator = idToInflator[inflatorID];
50 | require(address(inflator) != address(0), "Bad inflator ID");
51 | ops[i] = inflator.inflate(compressed[offset:offset+opSize]);
52 | offset += opSize;
53 | }
54 | require(offset == compressed.length, "Wrong compressed length");
55 |
56 | return (ops, beneficiary);
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/DaimoTransferInflator.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-3.0-or-later
2 | pragma solidity >=0.8;
3 |
4 | import "./IInflator.sol";
5 | import "@openzeppelin/contracts/access/Ownable.sol";
6 | import "account-abstraction/interfaces/IEntryPoint.sol";
7 |
8 | /// Inflates a bundle containing a single Daimo USDC transfer.
9 | /// This reduces calldata usage from ~1.5kb to ~400 bytes.
10 | contract DaimoTransferInflator is IInflator, Ownable {
11 | address public coinAddr;
12 | address payable public beneficiary;
13 | address public paymaster;
14 |
15 | constructor(address _coinAddr, address _owner) {
16 | coinAddr = _coinAddr;
17 | transferOwnership(_owner);
18 | }
19 |
20 | function setBeneficiary(address payable _beneficiary) public onlyOwner {
21 | beneficiary = _beneficiary;
22 | }
23 |
24 | function setPaymaster(address _paymaster) public onlyOwner {
25 | paymaster = _paymaster;
26 | }
27 |
28 | function inflate(
29 | bytes calldata compressed
30 | ) external view override returns (UserOperation[] memory, address payable) {
31 | // Parse userop metadata
32 | UserOperation memory op;
33 | op.sender = address(uint160(bytes20(compressed[0:20])));
34 | op.nonce = uint256(uint128(bytes16(compressed[20:36]))) << 64;
35 | op.initCode = "";
36 | op.callGasLimit = uint256(300000);
37 | op.verificationGasLimit = uint256(700000);
38 | op.preVerificationGas = uint256(uint32(bytes4(compressed[36:40])));
39 | op.maxFeePerGas = uint256(uint48(bytes6(compressed[40:46])));
40 | op.maxPriorityFeePerGas = uint256(uint48(bytes6(compressed[46:52])));
41 |
42 | // Add calldata
43 | bytes20 recipientAddr = bytes20(compressed[52:72]);
44 | bytes6 amount = bytes6(compressed[72:78]);
45 | op.callData = abi.encodePacked(
46 | hex"34fcd5be", // executeBatch
47 | uint256(32), // offset calls
48 | uint256(1), // len(calls)
49 | uint256(32), // offset calls[0]
50 | hex"000000000000000000000000", // offset to token
51 | coinAddr, // eg Base USDC
52 | uint256(0), // value
53 | uint256(0x60), // offset calls[0].data
54 | uint256(0x44), // len(calls[0].data)
55 | hex"a9059cbb", // transfer(address,uint256)
56 | hex"000000000000000000000000", // offset to address
57 | recipientAddr,
58 | bytes26(0), // offset to amount
59 | uint48(amount),
60 | bytes28(0) // padding
61 | );
62 |
63 | // Decompress WebAuthn signature
64 | bytes calldata compressedSig = compressed[78:202];
65 |
66 | uint8 version = uint8(compressedSig[0]);
67 | require(version == 1, "Unsupported version");
68 | bytes6 validUntil = bytes6(compressedSig[1:7]);
69 | uint8 keySlot = uint8(compressedSig[7]);
70 |
71 | Signature memory sig;
72 | sig
73 | .authenticatorData = hex"00000000000000000000000000000000000000000000000000000000000000000500000000";
74 |
75 | sig.responseTypeLocation = 1;
76 | sig.challengeLocation = 23;
77 | sig.r = uint256(bytes32(compressedSig[8:40]));
78 | sig.s = uint256(bytes32(compressedSig[40:72]));
79 |
80 | // Challenge is always 52 bytes: 39 bytes (1 byte version + 6 byte validUntil + 32 byte opHash) * 8/6 for Base64
81 | // We could save 20 bytes by passing just the opHash, but unclear if worth the extra complexity.
82 | bytes calldata challenge = compressedSig[72:];
83 | sig.clientDataJSON = string(
84 | abi.encodePacked(
85 | '{"type":"webauthn.get","challenge":"',
86 | challenge,
87 | '"}'
88 | )
89 | );
90 | op.signature = abi.encodePacked(
91 | version,
92 | validUntil,
93 | keySlot,
94 | abi.encode(sig)
95 | );
96 |
97 |
98 | // Finally, add the paymaster + ticket signature for sponsored gas
99 | op.paymasterAndData = abi.encodePacked(
100 | paymaster,
101 | compressed[202:] // paymaster data, if required
102 | );
103 |
104 | UserOperation[] memory ops = new UserOperation[](1);
105 | ops[0] = op;
106 |
107 | return (ops, beneficiary);
108 | }
109 | }
110 |
111 | struct Signature {
112 | bytes authenticatorData;
113 | string clientDataJSON;
114 | uint256 challengeLocation;
115 | uint256 responseTypeLocation;
116 | uint256 r;
117 | uint256 s;
118 | }
119 |
--------------------------------------------------------------------------------
/test/DaimoOpInflator.t.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: UNLICENSED
2 | pragma solidity ^0.8.13;
3 |
4 | import {Test, console2} from "forge-std/Test.sol";
5 | import {UserOperation} from "account-abstraction/interfaces/IEntryPoint.sol";
6 |
7 | import {IInflator} from "../src/IInflator.sol";
8 | import {DaimoOpInflator} from "../src/DaimoOpInflator.sol";
9 |
10 |
11 | contract DummyNameReg {
12 | function resolveAddr(bytes32 name) external pure returns (address) {
13 | if (name== bytes32(bytes("bob"))) {
14 | return address(0x8bFfa71A959AF0b15C6eaa10d244d80BF23cb6A2);
15 | } else if (name == bytes32(bytes("blob"))) {
16 | return address(0xA1B349c566C44769888948aDC061ABCdB54497F7);
17 | } else {
18 | return address(0);
19 | }
20 | }
21 | }
22 |
23 | contract DaimoOpInflatorTest is Test {
24 | function setUp() public {
25 | DummyNameReg nameReg = new DummyNameReg();
26 | vm.etch(address(0x4430A644B215a187a3daa5b114fA3f3d9DeBc17D), address(nameReg).code);
27 | vm.chainId(8453);
28 | }
29 |
30 | function test_DaimoOpInflator() public {
31 | address payable alice = payable(address(0x123));
32 | DaimoOpInflator d = new DaimoOpInflator(
33 | address(0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913),
34 | alice
35 | );
36 | vm.startPrank(alice);
37 | d.setPaymaster(address(0x99D720cd5A04c16Dc5377638e3f6D609c895714F));
38 | vm.stopPrank();
39 |
40 | bytes memory compressed = abi.encodePacked(
41 | hex"03626F62", // sender
42 | hex"04626C6F62", // to
43 | hex"501c58693b65f1374631a2fca7bb7dc6", // nonce
44 | hex"007b44a3", // preVerificationGas
45 | hex"0000000f4272", // maxFeePerGas
46 | hex"0000000f4240", // maxPriorityFeePerGas
47 | hex"0000000f4240", // amount
48 | hex"0100006553c75f00", // sig version, validUntil, keySlot
49 | hex"ce1a2a89ec9d3cecd1e9fd65808d85702d7f8681d42ce8f0982363a362b87bd5", // sig r
50 | hex"498c72f497f9d27ae895c6d2c10a73e85b73d258371d2322c80ca5bfad242f5f" // sig s
51 | );
52 |
53 | // Length paymaster ticket sig: 119 bytes
54 | assertEq(compressed.length, 119);
55 |
56 | UserOperation memory op = d.inflate(compressed);
57 |
58 | assertEq(
59 | op.sender,
60 | address(0x8bFfa71A959AF0b15C6eaa10d244d80BF23cb6A2)
61 | );
62 | assertEq(op.nonce, 0x501c58693b65f1374631a2fca7bb7dc60000000000000000);
63 | assertEq(op.initCode, "");
64 | assertEq(op.callData,
65 | hex"34fcd5be" // executeBatch
66 | hex"0000000000000000000000000000000000000000000000000000000000000020"
67 | hex"0000000000000000000000000000000000000000000000000000000000000001"
68 | hex"0000000000000000000000000000000000000000000000000000000000000020"
69 | hex"000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913"
70 | hex"0000000000000000000000000000000000000000000000000000000000000000"
71 | hex"0000000000000000000000000000000000000000000000000000000000000060"
72 | hex"0000000000000000000000000000000000000000000000000000000000000044"
73 | hex"a9059cbb" // transfer
74 | hex"000000000000000000000000a1b349c566c44769888948adc061abcdb54497f7"
75 | hex"00000000000000000000000000000000000000000000000000000000000f4240"
76 | hex"00000000000000000000000000000000000000000000000000000000"
77 | );
78 | assertEq(op.callGasLimit, 300000);
79 | assertEq(op.verificationGasLimit, 700000);
80 | assertEq(op.preVerificationGas, 8078499);
81 | assertEq(op.maxFeePerGas, 1000050);
82 | assertEq(op.maxPriorityFeePerGas, 1000000);
83 | assertEq(
84 | op.paymasterAndData,
85 | hex"99d720cd5a04c16dc5377638e3f6d609c895714f"
86 | );
87 | assertEq(
88 | op.signature,
89 | abi.encodePacked(
90 | hex"01"
91 | hex"00006553c75f"
92 | hex"00"
93 | hex"0000000000000000000000000000000000000000000000000000000000000020"
94 | hex"00000000000000000000000000000000000000000000000000000000000000c0"
95 | hex"0000000000000000000000000000000000000000000000000000000000000120"
96 | hex"0000000000000000000000000000000000000000000000000000000000000017"
97 | hex"0000000000000000000000000000000000000000000000000000000000000001"
98 | hex"ce1a2a89ec9d3cecd1e9fd65808d85702d7f8681d42ce8f0982363a362b87bd5"
99 | hex"498c72f497f9d27ae895c6d2c10a73e85b73d258371d2322c80ca5bfad242f5f"
100 | hex"0000000000000000000000000000000000000000000000000000000000000025"
101 | hex"0000000000000000000000000000000000000000000000000000000000000000"
102 | hex"0500000000000000000000000000000000000000000000000000000000000000"
103 | hex"000000000000000000000000000000000000000000000000000000000000005a",
104 | '{"type":"webauthn.get","challenge":"AQAAZVPHX0VzpTcrm5fZhFP_VciTT3XMWHH2bNzjd54e1wN5M2io"}',
105 | hex"000000000000"
106 | )
107 | );
108 | }
109 | }
110 |
111 | contract DummyInflator is IInflator {
112 | function inflate(bytes calldata compressed)
113 | external
114 | override
115 | pure
116 | returns (UserOperation[] memory ops, address payable beneficiary)
117 | {
118 | assert(compressed.length == 20);
119 | ops = new UserOperation[](0);
120 | beneficiary = payable(address(bytes20(compressed[0:20])));
121 | }
122 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Bulk
2 |
3 | **Make compressed 4337 bundles swole again.**
4 |
5 | Bulk makes 4337 on L2 cheaper. Bundlers can pass compressed bundles to `BundleBulker`, which decompresses them before calling the 4337 EntryPoint contract. This reduces L1 data usage, the dominant cost of rollup transactions.
6 |
7 | For example, here's a single USDC transfer executed as as a one-op bundle.
8 |
9 | Before: [**1.6kb**](https://twitter.com/adietrichs/status/1725280716290773117)
10 |
11 | After: [**353b**](https://docs.google.com/spreadsheets/d/1rf3AJMmm9BCkBsmQiRq4yP3Zhne9vIW-ib0Dp4QD2Tw/edit)
12 |
13 | ## Details
14 |
15 | Decompression happens via arbitrary contracts that implement `IInflator`. This lets bundlers or individual applications can define their own templates or decompression algorithms. Inflators can be stateful for greater savings.
16 |
17 | A bundler supports compression as follows:
18 | - client submits compressed op
19 | - bundler inflates, validates as usual
20 | - bundler submits compressed
21 |
22 | **Compression is independent from the security of the contract account being called.** The same userops go to the EntryPoint either way, validation and execution identical--this is just an optimization to use less calldata.
23 |
24 | Bulk is intended for use directly by bundlers, eg with API keys--so griefing can be mitigated offchain. The userop mempool remains important for censorship resistance, and apps can continue to submit uncompressed ops to mempool as a fallback if a direct bundler API is unavailable.
25 |
26 | ## Deployment Details
27 |
28 | The deployment address of BundleBulker is `0x000000000091A1F34f51CE866bEd8983dB51a97E`. (deployed using create2 with salt `7cf7a0f0060e1519d0ee3e12e0ee57890f69d7aa693404299a3a779e90cd7921`)
29 |
30 | #### Mainnets
31 |
32 | |Chain Name|Deployment|
33 | |----------|----------|
34 | |Ethereum|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://etherscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
35 | |Base|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://basescan.org/address/0x000000000091a1f34f51ce866bed8983db51a97e)|
36 | |OP Mainnet|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://optimistic.etherscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
37 | |Polygon|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://polygonscan.com/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
38 | |Gnosis|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://gnosisscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
39 | |Arbitrum One|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://arbiscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
40 | |BSC |[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://bscscan.com/address/0x000000000091a1f34f51ce866bed8983db51a97e)|
41 | |opBNB|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://opbnbscan.com/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
42 | |Avalanche|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://snowtrace.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E/contract/43114/code)|
43 | |Linea Mainnet|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://lineascan.build/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
44 | |lyra|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://explorer.lyra.finance/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
45 | |Scroll|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://scrollscan.com/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
46 | |Klaytn|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://klaytnscope.com/account/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
47 | |DFK Chain|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://subnets.avax.network/c-chain/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
48 | |Celo|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://celoscan.io/address/0x000000000091a1f34f51ce866bed8983db51a97e)|
49 |
50 | #### Testnets
51 |
52 | |Chain Name|Deployment|
53 | |----------|----------|
54 | |Sepolia|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://sepolia.etherscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
55 | |Goerli|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://goerli.etherscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
56 | |Base Sepolia|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://sepolia.basescan.org/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
57 | |Base Goerli|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://goerli.basescan.org/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
58 | |Optimism Goerli|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://goerli-optimism.etherscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
59 | |Polygon Mumbai|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://mumbai.polygonscan.com/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
60 | |Arbitrum Sepolia|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://sepolia.arbiscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
61 | |Arbitrum Goerli|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://goerli.arbiscan.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
62 | |BSC Testnet|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://testnet.bscscan.com/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
63 | |Avalanche Fuji|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://testnet.snowtrace.io/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
64 | |Scroll Sepolia|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://sepolia.scrollscan.dev/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
65 | |Gnosis Chiado|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://gnosis-chiado.blockscout.com/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
66 | |Linea Goerli Testnet|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://goerli.lineascan.build/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
67 | |Celo Alfajores|[0x000000000091A1F34f51CE866bEd8983dB51a97E](https://explorer.celo.org/alfajores/address/0x000000000091A1F34f51CE866bEd8983dB51a97E)|
68 |
69 | ## Quick start
70 |
71 | **Proof of concept. In active development.**
72 |
73 | ```
74 | git clone git@github.com:daimo-eth/bulk --recurse-submodules
75 | foundryup
76 | ```
77 |
78 | ```
79 | forge test
80 | ```
81 |
82 |
--------------------------------------------------------------------------------
/src/DaimoOpInflator.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-3.0-or-later
2 | pragma solidity >=0.8;
3 |
4 | import "./IOpInflator.sol";
5 | import "@openzeppelin/contracts/access/Ownable.sol";
6 | import "account-abstraction/interfaces/IEntryPoint.sol";
7 | import "p256-verifier/utils/Base64URL.sol";
8 |
9 | interface INameReg {
10 | function resolveAddr(bytes32 name) external view returns (address);
11 | }
12 |
13 | /// Inflates an op containing a Daimo ERC20 transfer.
14 | /// Compression reduces userop data by 80%+ from ~800 bytes to ~125 bytes.
15 | /// Singleton bundle tx goes from ~1600 bytes to ~340 bytes.
16 | contract DaimoOpInflator is IOpInflator, Ownable {
17 | address public coinAddr;
18 | address public paymaster;
19 | INameReg public nameReg = INameReg(0x4430A644B215a187a3daa5b114fA3f3d9DeBc17D);
20 | address public entryPoint = 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789;
21 |
22 | constructor(address _coinAddr, address _owner) {
23 | coinAddr = _coinAddr;
24 | transferOwnership(_owner);
25 | }
26 |
27 | function setPaymaster(address _paymaster) public onlyOwner {
28 | paymaster = _paymaster;
29 | }
30 |
31 | function readString(bytes calldata compressed) internal pure returns (bytes32, bytes calldata) {
32 | uint8 len = uint8(compressed[0]);
33 | bytes32 str = bytes32(compressed[1:1+len]);
34 | compressed = compressed[1+len:];
35 | return (str, compressed);
36 | }
37 |
38 | function inflate(
39 | bytes calldata compressed
40 | ) external view override returns (UserOperation memory op) {
41 | // Parse userop metadata
42 | bytes32 fromName;
43 | bytes32 toName;
44 |
45 | (fromName, compressed) = readString(compressed);
46 | (toName, compressed) = readString(compressed);
47 |
48 | op.sender = nameReg.resolveAddr(fromName);
49 | op.nonce = uint256(uint128(bytes16(compressed[0:16]))) << 64;
50 | op.initCode = "";
51 | op.callGasLimit = uint256(300000);
52 | op.verificationGasLimit = uint256(700000);
53 | op.preVerificationGas = uint256(uint32(bytes4(compressed[16:20])));
54 | op.maxFeePerGas = uint256(uint48(bytes6(compressed[20:26])));
55 | op.maxPriorityFeePerGas = uint256(uint48(bytes6(compressed[26:32])));
56 |
57 | // Add calldata
58 | address recipientAddr = nameReg.resolveAddr(toName);
59 | bytes6 amount = bytes6(compressed[32:38]);
60 | op.callData = abi.encodePacked(
61 | hex"34fcd5be", // executeBatch
62 | uint256(32), // offset calls
63 | uint256(1), // len(calls)
64 | uint256(32), // offset calls[0]
65 | hex"000000000000000000000000", // offset to token
66 | coinAddr, // eg Base USDC
67 | uint256(0), // value
68 | uint256(0x60), // offset calls[0].data
69 | uint256(0x44), // len(calls[0].data)
70 | hex"a9059cbb", // transfer(address,uint256)
71 | hex"000000000000000000000000", // offset to address
72 | recipientAddr,
73 | bytes26(0), // offset to amount
74 | uint48(amount),
75 | bytes28(0) // padding
76 | );
77 |
78 | // Decompress WebAuthn signature
79 | compressed = compressed[38:];
80 | uint8 version = uint8(compressed[0]);
81 | require(version == 1, "Unsupported version");
82 | bytes6 validUntil = bytes6(compressed[1:7]);
83 | uint8 keySlot = uint8(compressed[7]);
84 |
85 | Signature memory sig;
86 | sig.authenticatorData = abi.encodePacked(bytes32(0), hex"0500000000");
87 | sig.responseTypeLocation = 1;
88 | sig.challengeLocation = 23;
89 | sig.r = uint256(bytes32(compressed[8:40]));
90 | sig.s = uint256(bytes32(compressed[40:72]));
91 |
92 |
93 | // Finally, add the paymaster + ticket signature for sponsored gas
94 | op.paymasterAndData = abi.encodePacked(
95 | paymaster,
96 | compressed[72:] // paymaster data, if required
97 | );
98 |
99 | // Template WebAuthn signature
100 | // Challenge is always 52 bytes: 39 bytes (1 byte version + 6 byte validUntil + 32 byte opHash) * 8/6 for Base64
101 | bytes32 opDataHash = keccak256(packOpData(op));
102 | bytes32 userOpHash = keccak256(abi.encode(opDataHash, entryPoint, block.chainid));
103 |
104 | string memory challenge = Base64URL.encode(abi.encodePacked(version, validUntil, userOpHash));
105 | sig.clientDataJSON = string(
106 | abi.encodePacked(
107 | '{"type":"webauthn.get","challenge":"',
108 | challenge,
109 | '"}'
110 | )
111 | );
112 | op.signature = abi.encodePacked(
113 | version,
114 | validUntil,
115 | keySlot,
116 | abi.encode(sig)
117 | );
118 |
119 | return op;
120 | }
121 |
122 | // Copied from UserOperation.sol
123 | // The version there only operates on UserOperation calldata
124 | function packOpData(UserOperation memory userOp) internal pure returns (bytes memory ret) {
125 | address sender = userOp.sender;
126 | // require(sender == address(0x8bFfa71A959AF0b15C6eaa10d244d80BF23cb6A2));
127 | uint256 nonce = userOp.nonce;
128 | // require(nonce == 1964309238010514598139960553805611309456889087397726257152);
129 | bytes32 hashInitCode = keccak256(userOp.initCode);
130 | // require(hashInitCode == keccak256(hex""));
131 | bytes32 hashCallData = keccak256(userOp.callData);
132 | uint256 callGasLimit = userOp.callGasLimit;
133 | // require(callGasLimit == 300000);
134 | uint256 verificationGasLimit = userOp.verificationGasLimit;
135 | // require(verificationGasLimit == 700000);
136 | uint256 preVerificationGas = userOp.preVerificationGas;
137 | // require(preVerificationGas == 8078499);
138 | uint256 maxFeePerGas = userOp.maxFeePerGas;
139 | // require(maxFeePerGas == 1000050);
140 | uint256 maxPriorityFeePerGas = userOp.maxPriorityFeePerGas;
141 | // require(maxPriorityFeePerGas == 1000000);
142 | bytes32 hashPaymasterAndData = keccak256(userOp.paymasterAndData);
143 | // require(hashPaymasterAndData == keccak256(hex"99d720cd5a04c16dc5377638e3f6d609c895714f"));
144 |
145 | return abi.encode(
146 | sender, nonce,
147 | hashInitCode, hashCallData,
148 | callGasLimit, verificationGasLimit, preVerificationGas,
149 | maxFeePerGas, maxPriorityFeePerGas,
150 | hashPaymasterAndData
151 | );
152 | }
153 | }
154 |
155 | struct Signature {
156 | bytes authenticatorData;
157 | string clientDataJSON;
158 | uint256 challengeLocation;
159 | uint256 responseTypeLocation;
160 | uint256 r;
161 | uint256 s;
162 | }
163 |
--------------------------------------------------------------------------------
/broadcast/Deploy.s.sol/8453/deploy-latest.json:
--------------------------------------------------------------------------------
1 | {
2 | "transactions": [
3 | {
4 | "hash": "0x1c99c8e974c6679fb47a61aeb7bd6f967d6d0952127a0f22e5fd8d0c6d22c55c",
5 | "transactionType": "CREATE2",
6 | "contractName": "BundleBulker",
7 | "contractAddress": "0x000000000091A1F34f51CE866bEd8983dB51a97E",
8 | "function": null,
9 | "arguments": null,
10 | "transaction": {
11 | "type": "0x02",
12 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
13 | "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
14 | "gas": "0xe7d01",
15 | "value": "0x0",
16 | "data": "0x0000000000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b50610ac4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806303a353bd146100675780633e652e301461009157806345c70658146100a657806394430fa5146100e7578063e5f7e72f14610102578063ef7fa71b1461013d575b600080fd5b61007a6100753660046104bc565b610150565b60405161008892919061057e565b60405180910390f35b6100a461009f3660046106d9565b610266565b005b6100cf6100b4366004610710565b6000602081905290815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610088565b6100cf735ff137d4b0fdcd49dca30c7cf57e578a026d278981565b610128610110366004610732565b60016020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610088565b6100a461014b3660046104bc565b610439565b6060600080610162600482868861074f565b61016b91610779565b60e01c6000818152602081905260409020549091506001600160a01b0316806101db5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f72206e6f74207265676973746572656400000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166303a353bd6101f7876004818b61074f565b6040518363ffffffff1660e01b81526004016102149291906107a9565b600060405180830381865afa158015610231573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261025991908101906108c0565b9350935050509250929050565b8163ffffffff166000036102bc5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f722049442063616e6e6f74206265203000000000000000000060448201526064016101d2565b6001600160a01b0381166103125760405162461bcd60e51b815260206004820152601c60248201527f496e666c61746f7220616464726573732063616e6e6f7420626520300000000060448201526064016101d2565b63ffffffff82166000908152602081905260409020546001600160a01b03161561037e5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c72656164792072656769737465726564000000000060448201526064016101d2565b6001600160a01b03811660009081526001602052604090205463ffffffff16156103ea5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c72656164792072656769737465726564000000000060448201526064016101d2565b63ffffffff90911660008181526020818152604080832080546001600160a01b039096166001600160a01b0319909616861790559382526001905291909120805463ffffffff19169091179055565b6000806104468484610150565b6040516307eb652360e21b81529193509150735ff137d4b0fdcd49dca30c7cf57e578a026d278990631fad948c90610484908590859060040161057e565b600060405180830381600087803b15801561049e57600080fd5b505af11580156104b2573d6000803e3d6000fd5b5050505050505050565b600080602083850312156104cf57600080fd5b823567ffffffffffffffff808211156104e757600080fd5b818501915085601f8301126104fb57600080fd5b81358181111561050a57600080fd5b86602082850101111561051c57600080fd5b60209290920196919550909350505050565b60005b83811015610549578181015183820152602001610531565b50506000910152565b6000815180845261056a81602086016020860161052e565b601f01601f19169290920160200192915050565b60006040808301818452808651808352606092508286019150828160051b8701016020808a0160005b8481101561068257898403605f19018652815180516001600160a01b03168552610160848201518587015289820151818b8801526105e782880182610552565b915050888201518682038a8801526105ff8282610552565b6080848101519089015260a0808501519089015260c0808501519089015260e08085015190890152610100808501519089015261012080850151898303828b0152919350915061064f8382610552565b92505050610140808301519250868203818801525061066e8183610552565b9785019795505050908201906001016105a7565b505081965061069b8189018a6001600160a01b03169052565b5050505050509392505050565b803563ffffffff811681146106bc57600080fd5b919050565b6001600160a01b03811681146106d657600080fd5b50565b600080604083850312156106ec57600080fd5b6106f5836106a8565b91506020830135610705816106c1565b809150509250929050565b60006020828403121561072257600080fd5b61072b826106a8565b9392505050565b60006020828403121561074457600080fd5b813561072b816106c1565b6000808585111561075f57600080fd5b8386111561076c57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156107a15780818660040360031b1b83161692505b505092915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052604160045260246000fd5b604051610160810167ffffffffffffffff81118282101715610812576108126107d8565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610841576108416107d8565b604052919050565b80516106bc816106c1565b600082601f83011261086557600080fd5b815167ffffffffffffffff81111561087f5761087f6107d8565b610892601f8201601f1916602001610818565b8181528460208386010111156108a757600080fd5b6108b882602083016020870161052e565b949350505050565b600080604083850312156108d357600080fd5b825167ffffffffffffffff808211156108eb57600080fd5b818501915085601f8301126108ff57600080fd5b8151602082821115610913576109136107d8565b8160051b610922828201610818565b928352848101820192828101908a85111561093c57600080fd5b83870192505b84831015610a715782518681111561095957600080fd5b8701610160818d03601f1901121561097057600080fd5b6109786107ee565b610983868301610849565b81526040820151868201526060820151888111156109a057600080fd5b6109ae8e8883860101610854565b6040830152506080820151888111156109c657600080fd5b6109d48e8883860101610854565b60608301525060a0820151608082015260c082015160a082015260e082015160c082015261010082015160e08201526101208201516101008201526101408083015189811115610a2357600080fd5b610a318f8983870101610854565b6101208401525061016083015189811115610a4b57600080fd5b610a598f8983870101610854565b91830191909152508352509183019190830190610942565b9750610a81915050878201610849565b945050505050925092905056fea264697066735822122044ec2999b9b372162e855911162a14ff477bf4ec4ad4b7b60e36085bd3a9c49364736f6c63430008150033",
17 | "nonce": "0xbd7",
18 | "accessList": []
19 | },
20 | "additionalContracts": [],
21 | "isFixedGasLimit": false
22 | }
23 | ],
24 | "receipts": [
25 | {
26 | "transactionHash": "0x1c99c8e974c6679fb47a61aeb7bd6f967d6d0952127a0f22e5fd8d0c6d22c55c",
27 | "transactionIndex": "0x1",
28 | "blockHash": "0x922767c41c6b927d17ff003e48bd82fdcff098b9aadb527897e61fb9d84bfd6f",
29 | "blockNumber": "0x9c3872",
30 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
31 | "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
32 | "cumulativeGasUsed": "0xaa004",
33 | "gasUsed": "0x9e8c3",
34 | "contractAddress": "0x000000000091A1F34f51CE866bEd8983dB51a97E",
35 | "logs": [],
36 | "status": "0x1",
37 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
38 | "type": "0x2",
39 | "effectiveGasPrice": "0xb2d05f16"
40 | }
41 | ],
42 | "libraries": [],
43 | "pending": [],
44 | "returns": {},
45 | "timestamp": 1707265485,
46 | "chain": 8453,
47 | "multi": false,
48 | "commit": "9c88bd1"
49 | }
--------------------------------------------------------------------------------
/broadcast/Deploy.s.sol/84532/deploy-latest.json:
--------------------------------------------------------------------------------
1 | {
2 | "transactions": [
3 | {
4 | "hash": "0xb7b4784a0efaf83254e6c63e85f2349fc12c6e4143c983a264992ec9e3a7d13b",
5 | "transactionType": "CREATE2",
6 | "contractName": "BundleBulker",
7 | "contractAddress": "0x000000000091A1F34f51CE866bEd8983dB51a97E",
8 | "function": null,
9 | "arguments": null,
10 | "transaction": {
11 | "type": "0x02",
12 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
13 | "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
14 | "gas": "0xe7d01",
15 | "value": "0x0",
16 | "data": "0x0000000000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b50610ac4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806303a353bd146100675780633e652e301461009157806345c70658146100a657806394430fa5146100e7578063e5f7e72f14610102578063ef7fa71b1461013d575b600080fd5b61007a6100753660046104bc565b610150565b60405161008892919061057e565b60405180910390f35b6100a461009f3660046106d9565b610266565b005b6100cf6100b4366004610710565b6000602081905290815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610088565b6100cf735ff137d4b0fdcd49dca30c7cf57e578a026d278981565b610128610110366004610732565b60016020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610088565b6100a461014b3660046104bc565b610439565b6060600080610162600482868861074f565b61016b91610779565b60e01c6000818152602081905260409020549091506001600160a01b0316806101db5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f72206e6f74207265676973746572656400000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166303a353bd6101f7876004818b61074f565b6040518363ffffffff1660e01b81526004016102149291906107a9565b600060405180830381865afa158015610231573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261025991908101906108c0565b9350935050509250929050565b8163ffffffff166000036102bc5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f722049442063616e6e6f74206265203000000000000000000060448201526064016101d2565b6001600160a01b0381166103125760405162461bcd60e51b815260206004820152601c60248201527f496e666c61746f7220616464726573732063616e6e6f7420626520300000000060448201526064016101d2565b63ffffffff82166000908152602081905260409020546001600160a01b03161561037e5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c72656164792072656769737465726564000000000060448201526064016101d2565b6001600160a01b03811660009081526001602052604090205463ffffffff16156103ea5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c72656164792072656769737465726564000000000060448201526064016101d2565b63ffffffff90911660008181526020818152604080832080546001600160a01b039096166001600160a01b0319909616861790559382526001905291909120805463ffffffff19169091179055565b6000806104468484610150565b6040516307eb652360e21b81529193509150735ff137d4b0fdcd49dca30c7cf57e578a026d278990631fad948c90610484908590859060040161057e565b600060405180830381600087803b15801561049e57600080fd5b505af11580156104b2573d6000803e3d6000fd5b5050505050505050565b600080602083850312156104cf57600080fd5b823567ffffffffffffffff808211156104e757600080fd5b818501915085601f8301126104fb57600080fd5b81358181111561050a57600080fd5b86602082850101111561051c57600080fd5b60209290920196919550909350505050565b60005b83811015610549578181015183820152602001610531565b50506000910152565b6000815180845261056a81602086016020860161052e565b601f01601f19169290920160200192915050565b60006040808301818452808651808352606092508286019150828160051b8701016020808a0160005b8481101561068257898403605f19018652815180516001600160a01b03168552610160848201518587015289820151818b8801526105e782880182610552565b915050888201518682038a8801526105ff8282610552565b6080848101519089015260a0808501519089015260c0808501519089015260e08085015190890152610100808501519089015261012080850151898303828b0152919350915061064f8382610552565b92505050610140808301519250868203818801525061066e8183610552565b9785019795505050908201906001016105a7565b505081965061069b8189018a6001600160a01b03169052565b5050505050509392505050565b803563ffffffff811681146106bc57600080fd5b919050565b6001600160a01b03811681146106d657600080fd5b50565b600080604083850312156106ec57600080fd5b6106f5836106a8565b91506020830135610705816106c1565b809150509250929050565b60006020828403121561072257600080fd5b61072b826106a8565b9392505050565b60006020828403121561074457600080fd5b813561072b816106c1565b6000808585111561075f57600080fd5b8386111561076c57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156107a15780818660040360031b1b83161692505b505092915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052604160045260246000fd5b604051610160810167ffffffffffffffff81118282101715610812576108126107d8565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610841576108416107d8565b604052919050565b80516106bc816106c1565b600082601f83011261086557600080fd5b815167ffffffffffffffff81111561087f5761087f6107d8565b610892601f8201601f1916602001610818565b8181528460208386010111156108a757600080fd5b6108b882602083016020870161052e565b949350505050565b600080604083850312156108d357600080fd5b825167ffffffffffffffff808211156108eb57600080fd5b818501915085601f8301126108ff57600080fd5b8151602082821115610913576109136107d8565b8160051b610922828201610818565b928352848101820192828101908a85111561093c57600080fd5b83870192505b84831015610a715782518681111561095957600080fd5b8701610160818d03601f1901121561097057600080fd5b6109786107ee565b610983868301610849565b81526040820151868201526060820151888111156109a057600080fd5b6109ae8e8883860101610854565b6040830152506080820151888111156109c657600080fd5b6109d48e8883860101610854565b60608301525060a0820151608082015260c082015160a082015260e082015160c082015261010082015160e08201526101208201516101008201526101408083015189811115610a2357600080fd5b610a318f8983870101610854565b6101208401525061016083015189811115610a4b57600080fd5b610a598f8983870101610854565b91830191909152508352509183019190830190610942565b9750610a81915050878201610849565b945050505050925092905056fea264697066735822122044ec2999b9b372162e855911162a14ff477bf4ec4ad4b7b60e36085bd3a9c49364736f6c63430008150033",
17 | "nonce": "0xe",
18 | "accessList": []
19 | },
20 | "additionalContracts": [],
21 | "isFixedGasLimit": false
22 | }
23 | ],
24 | "receipts": [
25 | {
26 | "transactionHash": "0xb7b4784a0efaf83254e6c63e85f2349fc12c6e4143c983a264992ec9e3a7d13b",
27 | "transactionIndex": "0x1",
28 | "blockHash": "0x880cadec7cbd76c2620ae6e69474bb15c25ec776bcb9f878da7f548e7ae12e51",
29 | "blockNumber": "0x57b490",
30 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
31 | "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
32 | "cumulativeGasUsed": "0xaa004",
33 | "gasUsed": "0x9e8c3",
34 | "contractAddress": "0x000000000091A1F34f51CE866bEd8983dB51a97E",
35 | "logs": [],
36 | "status": "0x1",
37 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
38 | "type": "0x2",
39 | "effectiveGasPrice": "0xb2d05f2f"
40 | }
41 | ],
42 | "libraries": [],
43 | "pending": [],
44 | "returns": {},
45 | "timestamp": 1707264004,
46 | "chain": 84532,
47 | "multi": false,
48 | "commit": "9c88bd1"
49 | }
--------------------------------------------------------------------------------
/test/BundleBulker.t.sol:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: UNLICENSED
2 | pragma solidity ^0.8.13;
3 |
4 | import {Test, console2} from "forge-std/Test.sol";
5 | import {UserOperation} from "account-abstraction/interfaces/IEntryPoint.sol";
6 |
7 | import {BundleBulker} from "../src/BundleBulker.sol";
8 | import {IInflator} from "../src/IInflator.sol";
9 | import {DaimoTransferInflator} from "../src/DaimoTransferInflator.sol";
10 |
11 | contract BundleBulkerTest is Test {
12 | BundleBulker public b;
13 |
14 | function setUp() public {
15 | b = new BundleBulker();
16 | }
17 |
18 | function test_AddInflator() public {
19 | IInflator tango = IInflator(address(0x123));
20 | IInflator foxtrot = IInflator(address(0x234));
21 |
22 | b.registerInflator(1, tango);
23 | assertEq(address(b.idToInflator(1)), address(tango));
24 | assertEq(b.inflatorToID(tango), 1);
25 |
26 | vm.expectRevert("Inflator ID cannot be 0");
27 | b.registerInflator(0, tango);
28 | vm.expectRevert("Inflator address cannot be 0");
29 | b.registerInflator(2, IInflator(address(0)));
30 | vm.expectRevert("Inflator already registered");
31 | b.registerInflator(1, foxtrot);
32 | vm.expectRevert("Inflator already registered");
33 | b.registerInflator(2, tango);
34 |
35 | b.registerInflator(2, foxtrot);
36 | assertEq(address(b.idToInflator(2)), address(foxtrot));
37 | assertEq(b.inflatorToID(foxtrot), 2);
38 | }
39 |
40 | function test_Inflate() public {
41 | DummyInflator d = new DummyInflator();
42 | b.registerInflator(77, d);
43 |
44 | bytes memory compressed = abi.encodePacked(uint32(77), address(0x999));
45 | (UserOperation[] memory ops, address payable beneficiary) = b.inflate(
46 | compressed
47 | );
48 | assertEq(beneficiary, payable(address(0x999)));
49 | assertEq(ops.length, 0);
50 | }
51 |
52 | function test_DaimoTransferInflator() public {
53 | address payable alice = payable(
54 | 0x43370330BE39D388f6219d8241dC1f76Fb9DF268
55 | );
56 | DaimoTransferInflator t = new DaimoTransferInflator(
57 | address(0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913),
58 | alice
59 | );
60 | vm.startPrank(alice);
61 | t.setBeneficiary(alice);
62 | t.setPaymaster(address(0x6f0F82fAFac7B5D8C269B02d408F094bAC6CF877));
63 | vm.stopPrank();
64 |
65 | bytes memory compressed = abi.encodePacked(
66 | hex"8bffa71a959af0b15c6eaa10d244d80bf23cb6a2", // sender
67 | hex"501c58693b65f1374631a2fca7bb7dc6", // nonce
68 | hex"007b44a3", // preVerificationGas
69 | hex"0000000f4272", // maxFeePerGas
70 | hex"0000000f4240", // maxPriorityFeePerGas
71 | hex"a1b349c566c44769888948adc061abcdb54497f7", // to
72 | hex"0000000f4240", // amount
73 | hex"0100006553c75f00", // sig version, validUntil, keySlot
74 | hex"ce1a2a89ec9d3cecd1e9fd65808d85702d7f8681d42ce8f0982363a362b87bd5", // sig r
75 | hex"498c72f497f9d27ae895c6d2c10a73e85b73d258371d2322c80ca5bfad242f5f", // sig s
76 | hex"415141415A5650485830567A705463726D35665A6846505F566369545433584D57484832624E7A6A6435346531774E354D32696F" // authenticatorChallenge
77 |
78 | // Below is OPTIONAL paymaster data. Most paymasters don't need this.
79 | // Even sponsoring paymasters are possible without an extra signature with tricks.
80 | hex"99", // paymaster sig v
81 | hex"7777777777777777777777777777777777777777777777777777777777777777", // paymaster sig r
82 | hex"8888888888888888888888888888888888888888888888888888888888888888", // paymaster sig s
83 | hex"00006553c999" // paymaster ticket validUntil
84 | );
85 |
86 | // Length paymaster ticket sig: 273 bytes
87 | // LENGTH WITH CORRECTLY OPTIMIZED PAYMASTER: 202 bytes
88 | assertEq(compressed.length, 273);
89 |
90 | (UserOperation[] memory ops, address payable beneficiary) = t.inflate(
91 | compressed
92 | );
93 |
94 | // Verify inflated 4337 bundle
95 | assertEq(beneficiary, alice);
96 | assertEq(ops.length, 1);
97 |
98 | // Verify the one userop in the bundle
99 | UserOperation memory op = ops[0];
100 | assertEq(
101 | op.sender,
102 | address(0x8bFfa71A959AF0b15C6eaa10d244d80BF23cb6A2)
103 | );
104 | assertEq(op.nonce, 0x501c58693b65f1374631a2fca7bb7dc60000000000000000);
105 | assertEq(op.initCode, "");
106 | assertEq(op.callData,
107 | hex"34fcd5be" // executeBatch
108 | hex"0000000000000000000000000000000000000000000000000000000000000020"
109 | hex"0000000000000000000000000000000000000000000000000000000000000001"
110 | hex"0000000000000000000000000000000000000000000000000000000000000020"
111 | hex"000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913"
112 | hex"0000000000000000000000000000000000000000000000000000000000000000"
113 | hex"0000000000000000000000000000000000000000000000000000000000000060"
114 | hex"0000000000000000000000000000000000000000000000000000000000000044"
115 | hex"a9059cbb" // transfer
116 | hex"000000000000000000000000a1b349c566c44769888948adc061abcdb54497f7"
117 | hex"00000000000000000000000000000000000000000000000000000000000f4240"
118 | hex"00000000000000000000000000000000000000000000000000000000"
119 | );
120 | assertEq(op.callGasLimit, 300000);
121 | assertEq(op.verificationGasLimit, 700000);
122 | assertEq(op.preVerificationGas, 8078499);
123 | assertEq(op.maxFeePerGas, 1000050);
124 | assertEq(op.maxPriorityFeePerGas, 1000000);
125 | assertEq(
126 | op.paymasterAndData,
127 | hex"6f0F82fAFac7B5D8C269B02d408F094bAC6CF877"
128 | hex"99"
129 | hex"7777777777777777777777777777777777777777777777777777777777777777"
130 | hex"8888888888888888888888888888888888888888888888888888888888888888"
131 | hex"00006553c999"
132 | );
133 | assertEq(
134 | op.signature,
135 | abi.encodePacked(
136 | hex"01"
137 | hex"00006553c75f"
138 | hex"00"
139 | hex"0000000000000000000000000000000000000000000000000000000000000020"
140 | hex"00000000000000000000000000000000000000000000000000000000000000c0"
141 | hex"0000000000000000000000000000000000000000000000000000000000000120"
142 | hex"0000000000000000000000000000000000000000000000000000000000000017"
143 | hex"0000000000000000000000000000000000000000000000000000000000000001"
144 | hex"ce1a2a89ec9d3cecd1e9fd65808d85702d7f8681d42ce8f0982363a362b87bd5"
145 | hex"498c72f497f9d27ae895c6d2c10a73e85b73d258371d2322c80ca5bfad242f5f"
146 | hex"0000000000000000000000000000000000000000000000000000000000000025"
147 | hex"0000000000000000000000000000000000000000000000000000000000000000"
148 | hex"0500000000000000000000000000000000000000000000000000000000000000"
149 | hex"000000000000000000000000000000000000000000000000000000000000005a",
150 | '{"type":"webauthn.get","challenge":"AQAAZVPHX0VzpTcrm5fZhFP_VciTT3XMWHH2bNzjd54e1wN5M2io"}',
151 | hex"000000000000"
152 | )
153 | );
154 | }
155 | }
156 |
157 | contract DummyInflator is IInflator {
158 | function inflate(bytes calldata compressed)
159 | external
160 | override
161 | pure
162 | returns (UserOperation[] memory ops, address payable beneficiary)
163 | {
164 | assert(compressed.length == 20);
165 | ops = new UserOperation[](0);
166 | beneficiary = payable(address(bytes20(compressed[0:20])));
167 | }
168 | }
--------------------------------------------------------------------------------
/broadcast/Deploy.s.sol/8453/deployPerOpInflator-latest.json:
--------------------------------------------------------------------------------
1 | {
2 | "transactions": [
3 | {
4 | "hash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
5 | "transactionType": "CREATE2",
6 | "contractName": "PerOpInflator",
7 | "contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
8 | "function": null,
9 | "arguments": [
10 | "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
11 | ],
12 | "transaction": {
13 | "type": "0x02",
14 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
15 | "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
16 | "gas": "0x1303cd",
17 | "value": "0x0",
18 | "data": "0x0000000000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b5060405162000f8938038062000f8983398101604081905261003191610173565b61003a33610049565b61004381610099565b506101a3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100a1610117565b6001600160a01b03811661010b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011481610049565b50565b6000546001600160a01b031633146101715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610102565b565b60006020828403121561018557600080fd5b81516001600160a01b038116811461019c57600080fd5b9392505050565b610dd680620001b36000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806345c706581161006657806345c7065814610115578063715018a61461013e5780638da5cb5b14610146578063e5f7e72f14610157578063f2fde38b1461019257600080fd5b806303a353bd146100985780630636ef61146100c25780631c31f710146100d757806338af3eed146100ea575b600080fd5b6100ab6100a63660046107cb565b6101a5565b6040516100b992919061088d565b60405180910390f35b6100d56100d03660046109e5565b610495565b005b6100d56100e5366004610a1c565b61066a565b6001546100fd906001600160a01b031681565b6040516001600160a01b0390911681526020016100b9565b6100fd610123366004610a40565b6002602052600090815260409020546001600160a01b031681565b6100d5610694565b6000546001600160a01b03166100fd565b61017d610165366004610a1c565b60036020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016100b9565b6100d56101a0366004610a1c565b6106a8565b60606000806101b76001828688610a5b565b6101c091610a85565b60f81c905060008167ffffffffffffffff8111156101e0576101e0610ab5565b60405190808252806020026020018201604052801561027757816020015b61026460405180610160016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b8152602001906001900390816101fe5790505b509050600160005b8381101561042b576000888389610297826004610ae1565b926102a493929190610a5b565b6102ad91610afa565b60e01c9050600089896102c1866004610ae1565b906102cd876006610ae1565b926102da93929190610a5b565b6102e391610b28565b60f01c90506102f3600685610ae1565b63ffffffff83166000908152600260205260409020549094506001600160a01b0316806103595760405162461bcd60e51b815260206004820152600f60248201526e109859081a5b999b185d1bdc881251608a1b60448201526064015b60405180910390fd5b6001600160a01b0381166303a353bd8c878d61037961ffff881683610ae1565b9261038693929190610a5b565b6040518363ffffffff1660e01b81526004016103a3929190610b56565b600060405180830381865afa1580156103c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103e89190810190610c42565b8685815181106103fa576103fa610d71565b602090810291909101015261041361ffff831686610ae1565b9450505050808061042390610d87565b91505061027f565b5080861461047b5760405162461bcd60e51b815260206004820152601760248201527f57726f6e6720636f6d70726573736564206c656e6774680000000000000000006044820152606401610350565b506001549093506001600160a01b03169150509250929050565b8163ffffffff166000036104eb5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f722049442063616e6e6f7420626520300000000000000000006044820152606401610350565b6001600160a01b0381166105415760405162461bcd60e51b815260206004820152601c60248201527f496e666c61746f7220616464726573732063616e6e6f742062652030000000006044820152606401610350565b63ffffffff82166000908152600260205260409020546001600160a01b0316156105ad5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c7265616479207265676973746572656400000000006044820152606401610350565b6001600160a01b03811660009081526003602052604090205463ffffffff16156106195760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c7265616479207265676973746572656400000000006044820152606401610350565b63ffffffff909116600081815260026020908152604080832080546001600160a01b039096166001600160a01b0319909616861790559382526003905291909120805463ffffffff19169091179055565b610672610721565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61069c610721565b6106a6600061077b565b565b6106b0610721565b6001600160a01b0381166107155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610350565b61071e8161077b565b50565b6000546001600160a01b031633146106a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610350565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080602083850312156107de57600080fd5b823567ffffffffffffffff808211156107f657600080fd5b818501915085601f83011261080a57600080fd5b81358181111561081957600080fd5b86602082850101111561082b57600080fd5b60209290920196919550909350505050565b60005b83811015610858578181015183820152602001610840565b50506000910152565b6000815180845261087981602086016020860161083d565b601f01601f19169290920160200192915050565b60006040808301818452808651808352606092508286019150828160051b8701016020808a0160005b8481101561099157898403605f19018652815180516001600160a01b03168552610160848201518587015289820151818b8801526108f682880182610861565b915050888201518682038a88015261090e8282610861565b6080848101519089015260a0808501519089015260c0808501519089015260e08085015190890152610100808501519089015261012080850151898303828b0152919350915061095e8382610861565b92505050610140808301519250868203818801525061097d8183610861565b9785019795505050908201906001016108b6565b50508196506109aa8189018a6001600160a01b03169052565b5050505050509392505050565b803563ffffffff811681146109cb57600080fd5b919050565b6001600160a01b038116811461071e57600080fd5b600080604083850312156109f857600080fd5b610a01836109b7565b91506020830135610a11816109d0565b809150509250929050565b600060208284031215610a2e57600080fd5b8135610a39816109d0565b9392505050565b600060208284031215610a5257600080fd5b610a39826109b7565b60008085851115610a6b57600080fd5b83861115610a7857600080fd5b5050820193919092039150565b6001600160f81b03198135818116916001851015610aad5780818660010360031b1b83161692505b505092915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610af457610af4610acb565b92915050565b6001600160e01b03198135818116916004851015610aad5760049490940360031b84901b1690921692915050565b6001600160f01b03198135818116916002851015610aad5760029490940360031b84901b1690921692915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b604051610160810167ffffffffffffffff81118282101715610ba957610ba9610ab5565b60405290565b80516109cb816109d0565b600082601f830112610bcb57600080fd5b815167ffffffffffffffff80821115610be657610be6610ab5565b604051601f8301601f19908116603f01168101908282118183101715610c0e57610c0e610ab5565b81604052838152866020858801011115610c2757600080fd5b610c3884602083016020890161083d565b9695505050505050565b600060208284031215610c5457600080fd5b815167ffffffffffffffff80821115610c6c57600080fd5b908301906101608286031215610c8157600080fd5b610c89610b85565b610c9283610baf565b815260208301516020820152604083015182811115610cb057600080fd5b610cbc87828601610bba565b604083015250606083015182811115610cd457600080fd5b610ce087828601610bba565b6060830152506080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015183811115610d2e57600080fd5b610d3a88828701610bba565b8284015250506101408084015183811115610d5457600080fd5b610d6088828701610bba565b918301919091525095945050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d9957610d99610acb565b506001019056fea2646970667358221220d3d0ac0b332cc9eda0f463ceeb3551dd051f6c8a18560ff7acde6f1d56269e3364736f6c634300081500330000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
19 | "nonce": "0x75b",
20 | "accessList": []
21 | },
22 | "additionalContracts": [],
23 | "isFixedGasLimit": false
24 | },
25 | {
26 | "hash": "0xa8efc39f3b8eb08b506ba403229588f645fbccb9f6775444671f072a8319c4d6",
27 | "transactionType": "CALL",
28 | "contractName": "PerOpInflator",
29 | "contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
30 | "function": "setBeneficiary(address)",
31 | "arguments": [
32 | "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
33 | ],
34 | "transaction": {
35 | "type": "0x02",
36 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
37 | "to": "0x24aa17a5a5d14bd3f5144a4a963ee8cdfae6b511",
38 | "gas": "0x10765",
39 | "value": "0x0",
40 | "data": "0x1c31f7100000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
41 | "nonce": "0x75c",
42 | "accessList": []
43 | },
44 | "additionalContracts": [],
45 | "isFixedGasLimit": false
46 | }
47 | ],
48 | "receipts": [
49 | {
50 | "transactionHash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
51 | "transactionIndex": "0x1",
52 | "blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
53 | "blockNumber": "0x816974",
54 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
55 | "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
56 | "cumulativeGasUsed": "0xdb79f",
57 | "gasUsed": "0xd006a",
58 | "contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
59 | "logs": [
60 | {
61 | "address": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
62 | "topics": [
63 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
64 | "0x0000000000000000000000000000000000000000000000000000000000000000",
65 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c"
66 | ],
67 | "data": "0x",
68 | "blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
69 | "blockNumber": "0x816974",
70 | "transactionHash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
71 | "transactionIndex": "0x1",
72 | "logIndex": "0x0",
73 | "removed": false
74 | },
75 | {
76 | "address": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
77 | "topics": [
78 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
79 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c",
80 | "0x0000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7"
81 | ],
82 | "data": "0x",
83 | "blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
84 | "blockNumber": "0x816974",
85 | "transactionHash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
86 | "transactionIndex": "0x1",
87 | "logIndex": "0x1",
88 | "removed": false
89 | }
90 | ],
91 | "status": "0x1",
92 | "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000080000000000000000020000000001000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000020000000000000000000000000000000000080000000000000000000000000000000",
93 | "type": "0x2",
94 | "effectiveGasPrice": "0xb2d05e3c"
95 | },
96 | {
97 | "transactionHash": "0xa8efc39f3b8eb08b506ba403229588f645fbccb9f6775444671f072a8319c4d6",
98 | "transactionIndex": "0x2",
99 | "blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
100 | "blockNumber": "0x816974",
101 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
102 | "to": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
103 | "cumulativeGasUsed": "0xe6bb9",
104 | "gasUsed": "0xb41a",
105 | "contractAddress": null,
106 | "logs": [],
107 | "status": "0x1",
108 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
109 | "type": "0x2",
110 | "effectiveGasPrice": "0xb2d05e3c"
111 | }
112 | ],
113 | "libraries": [],
114 | "pending": [],
115 | "returns": {},
116 | "timestamp": 1703751647,
117 | "chain": 8453,
118 | "multi": false,
119 | "commit": "dd015c0"
120 | }
--------------------------------------------------------------------------------
/broadcast/Deploy.s.sol/84532/deployPerOpInflator-latest.json:
--------------------------------------------------------------------------------
1 | {
2 | "transactions": [
3 | {
4 | "hash": "0x8a3f1f4d34c63af7a077e37869e0b232eeeef6a475604ed7e01832fa19cb8227",
5 | "transactionType": "CREATE2",
6 | "contractName": "PerOpInflator",
7 | "contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
8 | "function": null,
9 | "arguments": [
10 | "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
11 | ],
12 | "transaction": {
13 | "type": "0x02",
14 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
15 | "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
16 | "gas": "0x1303cd",
17 | "value": "0x0",
18 | "data": "0x0000000000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b5060405162000f8938038062000f8983398101604081905261003191610173565b61003a33610049565b61004381610099565b506101a3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100a1610117565b6001600160a01b03811661010b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011481610049565b50565b6000546001600160a01b031633146101715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610102565b565b60006020828403121561018557600080fd5b81516001600160a01b038116811461019c57600080fd5b9392505050565b610dd680620001b36000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806345c706581161006657806345c7065814610115578063715018a61461013e5780638da5cb5b14610146578063e5f7e72f14610157578063f2fde38b1461019257600080fd5b806303a353bd146100985780630636ef61146100c25780631c31f710146100d757806338af3eed146100ea575b600080fd5b6100ab6100a63660046107cb565b6101a5565b6040516100b992919061088d565b60405180910390f35b6100d56100d03660046109e5565b610495565b005b6100d56100e5366004610a1c565b61066a565b6001546100fd906001600160a01b031681565b6040516001600160a01b0390911681526020016100b9565b6100fd610123366004610a40565b6002602052600090815260409020546001600160a01b031681565b6100d5610694565b6000546001600160a01b03166100fd565b61017d610165366004610a1c565b60036020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016100b9565b6100d56101a0366004610a1c565b6106a8565b60606000806101b76001828688610a5b565b6101c091610a85565b60f81c905060008167ffffffffffffffff8111156101e0576101e0610ab5565b60405190808252806020026020018201604052801561027757816020015b61026460405180610160016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b8152602001906001900390816101fe5790505b509050600160005b8381101561042b576000888389610297826004610ae1565b926102a493929190610a5b565b6102ad91610afa565b60e01c9050600089896102c1866004610ae1565b906102cd876006610ae1565b926102da93929190610a5b565b6102e391610b28565b60f01c90506102f3600685610ae1565b63ffffffff83166000908152600260205260409020549094506001600160a01b0316806103595760405162461bcd60e51b815260206004820152600f60248201526e109859081a5b999b185d1bdc881251608a1b60448201526064015b60405180910390fd5b6001600160a01b0381166303a353bd8c878d61037961ffff881683610ae1565b9261038693929190610a5b565b6040518363ffffffff1660e01b81526004016103a3929190610b56565b600060405180830381865afa1580156103c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103e89190810190610c42565b8685815181106103fa576103fa610d71565b602090810291909101015261041361ffff831686610ae1565b9450505050808061042390610d87565b91505061027f565b5080861461047b5760405162461bcd60e51b815260206004820152601760248201527f57726f6e6720636f6d70726573736564206c656e6774680000000000000000006044820152606401610350565b506001549093506001600160a01b03169150509250929050565b8163ffffffff166000036104eb5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f722049442063616e6e6f7420626520300000000000000000006044820152606401610350565b6001600160a01b0381166105415760405162461bcd60e51b815260206004820152601c60248201527f496e666c61746f7220616464726573732063616e6e6f742062652030000000006044820152606401610350565b63ffffffff82166000908152600260205260409020546001600160a01b0316156105ad5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c7265616479207265676973746572656400000000006044820152606401610350565b6001600160a01b03811660009081526003602052604090205463ffffffff16156106195760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c7265616479207265676973746572656400000000006044820152606401610350565b63ffffffff909116600081815260026020908152604080832080546001600160a01b039096166001600160a01b0319909616861790559382526003905291909120805463ffffffff19169091179055565b610672610721565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61069c610721565b6106a6600061077b565b565b6106b0610721565b6001600160a01b0381166107155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610350565b61071e8161077b565b50565b6000546001600160a01b031633146106a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610350565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080602083850312156107de57600080fd5b823567ffffffffffffffff808211156107f657600080fd5b818501915085601f83011261080a57600080fd5b81358181111561081957600080fd5b86602082850101111561082b57600080fd5b60209290920196919550909350505050565b60005b83811015610858578181015183820152602001610840565b50506000910152565b6000815180845261087981602086016020860161083d565b601f01601f19169290920160200192915050565b60006040808301818452808651808352606092508286019150828160051b8701016020808a0160005b8481101561099157898403605f19018652815180516001600160a01b03168552610160848201518587015289820151818b8801526108f682880182610861565b915050888201518682038a88015261090e8282610861565b6080848101519089015260a0808501519089015260c0808501519089015260e08085015190890152610100808501519089015261012080850151898303828b0152919350915061095e8382610861565b92505050610140808301519250868203818801525061097d8183610861565b9785019795505050908201906001016108b6565b50508196506109aa8189018a6001600160a01b03169052565b5050505050509392505050565b803563ffffffff811681146109cb57600080fd5b919050565b6001600160a01b038116811461071e57600080fd5b600080604083850312156109f857600080fd5b610a01836109b7565b91506020830135610a11816109d0565b809150509250929050565b600060208284031215610a2e57600080fd5b8135610a39816109d0565b9392505050565b600060208284031215610a5257600080fd5b610a39826109b7565b60008085851115610a6b57600080fd5b83861115610a7857600080fd5b5050820193919092039150565b6001600160f81b03198135818116916001851015610aad5780818660010360031b1b83161692505b505092915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610af457610af4610acb565b92915050565b6001600160e01b03198135818116916004851015610aad5760049490940360031b84901b1690921692915050565b6001600160f01b03198135818116916002851015610aad5760029490940360031b84901b1690921692915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b604051610160810167ffffffffffffffff81118282101715610ba957610ba9610ab5565b60405290565b80516109cb816109d0565b600082601f830112610bcb57600080fd5b815167ffffffffffffffff80821115610be657610be6610ab5565b604051601f8301601f19908116603f01168101908282118183101715610c0e57610c0e610ab5565b81604052838152866020858801011115610c2757600080fd5b610c3884602083016020890161083d565b9695505050505050565b600060208284031215610c5457600080fd5b815167ffffffffffffffff80821115610c6c57600080fd5b908301906101608286031215610c8157600080fd5b610c89610b85565b610c9283610baf565b815260208301516020820152604083015182811115610cb057600080fd5b610cbc87828601610bba565b604083015250606083015182811115610cd457600080fd5b610ce087828601610bba565b6060830152506080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015183811115610d2e57600080fd5b610d3a88828701610bba565b8284015250506101408084015183811115610d5457600080fd5b610d6088828701610bba565b918301919091525095945050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d9957610d99610acb565b506001019056fea2646970667358221220d3d0ac0b332cc9eda0f463ceeb3551dd051f6c8a18560ff7acde6f1d56269e3364736f6c634300081500330000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
19 | "nonce": "0xf",
20 | "accessList": []
21 | },
22 | "additionalContracts": [],
23 | "isFixedGasLimit": false
24 | },
25 | {
26 | "hash": "0x7379d6d2b5b74a4a09975daf62a8de71ded83c2400768e11f11dc01320879ce3",
27 | "transactionType": "CALL",
28 | "contractName": "src/PerOpInflator.sol:PerOpInflator",
29 | "contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
30 | "function": "setBeneficiary(address)",
31 | "arguments": [
32 | "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
33 | ],
34 | "transaction": {
35 | "type": "0x02",
36 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
37 | "to": "0x24aa17a5a5d14bd3f5144a4a963ee8cdfae6b511",
38 | "gas": "0x10765",
39 | "value": "0x0",
40 | "data": "0x1c31f7100000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
41 | "nonce": "0x10",
42 | "accessList": []
43 | },
44 | "additionalContracts": [],
45 | "isFixedGasLimit": false
46 | }
47 | ],
48 | "receipts": [
49 | {
50 | "transactionHash": "0x8a3f1f4d34c63af7a077e37869e0b232eeeef6a475604ed7e01832fa19cb8227",
51 | "transactionIndex": "0x1",
52 | "blockHash": "0xa2528023138114e82687288c05e5ef47914b1ea05efa710ca7c0dc97cd187b16",
53 | "blockNumber": "0x57b4a9",
54 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
55 | "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
56 | "cumulativeGasUsed": "0xdb8a7",
57 | "gasUsed": "0xd0166",
58 | "contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
59 | "logs": [
60 | {
61 | "address": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
62 | "topics": [
63 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
64 | "0x0000000000000000000000000000000000000000000000000000000000000000",
65 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c"
66 | ],
67 | "data": "0x",
68 | "blockHash": "0xa2528023138114e82687288c05e5ef47914b1ea05efa710ca7c0dc97cd187b16",
69 | "blockNumber": "0x57b4a9",
70 | "transactionHash": "0x8a3f1f4d34c63af7a077e37869e0b232eeeef6a475604ed7e01832fa19cb8227",
71 | "transactionIndex": "0x1",
72 | "logIndex": "0x0",
73 | "removed": false
74 | },
75 | {
76 | "address": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
77 | "topics": [
78 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
79 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c",
80 | "0x0000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7"
81 | ],
82 | "data": "0x",
83 | "blockHash": "0xa2528023138114e82687288c05e5ef47914b1ea05efa710ca7c0dc97cd187b16",
84 | "blockNumber": "0x57b4a9",
85 | "transactionHash": "0x8a3f1f4d34c63af7a077e37869e0b232eeeef6a475604ed7e01832fa19cb8227",
86 | "transactionIndex": "0x1",
87 | "logIndex": "0x1",
88 | "removed": false
89 | }
90 | ],
91 | "status": "0x1",
92 | "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000080000000000000000020000000001000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000020000000000000000000000000000000000080000000000000000000000000000000",
93 | "type": "0x2",
94 | "effectiveGasPrice": "0xb2d05f18"
95 | },
96 | {
97 | "transactionHash": "0x7379d6d2b5b74a4a09975daf62a8de71ded83c2400768e11f11dc01320879ce3",
98 | "transactionIndex": "0x2",
99 | "blockHash": "0xa2528023138114e82687288c05e5ef47914b1ea05efa710ca7c0dc97cd187b16",
100 | "blockNumber": "0x57b4a9",
101 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
102 | "to": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
103 | "cumulativeGasUsed": "0xe6cc1",
104 | "gasUsed": "0xb41a",
105 | "contractAddress": null,
106 | "logs": [],
107 | "status": "0x1",
108 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
109 | "type": "0x2",
110 | "effectiveGasPrice": "0xb2d05f18"
111 | }
112 | ],
113 | "libraries": [],
114 | "pending": [],
115 | "returns": {},
116 | "timestamp": 1707264071,
117 | "chain": 84532,
118 | "multi": false,
119 | "commit": "9c88bd1"
120 | }
--------------------------------------------------------------------------------
/broadcast/Deploy.s.sol/8453/deployDaimoOpInflator-latest.json:
--------------------------------------------------------------------------------
1 | {
2 | "transactions": [
3 | {
4 | "hash": "0xe39ba167b8356860aa259f948a9583f3b3311741af5fec149d8dfb88102d1dd8",
5 | "transactionType": "CREATE2",
6 | "contractName": "DaimoOpInflator",
7 | "contractAddress": "0x209603886a4520195FBC6221e2d8c8A609eE6c16",
8 | "function": null,
9 | "arguments": [
10 | "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
11 | "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
12 | ],
13 | "transaction": {
14 | "type": "0x02",
15 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
16 | "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
17 | "gas": "0x19acd7",
18 | "value": "0x0",
19 | "data": "0x00000000000000000000000000000000000000000000000000000000000000006080604052600380546001600160a01b0319908116734430a644b215a187a3daa5b114fa3f3d9debc17d1790915560048054909116735ff137d4b0fdcd49dca30c7cf57e578a026d27891790553480156200005957600080fd5b506040516200157b3803806200157b8339810160408190526200007c9162000203565b6200008733620000b5565b600180546001600160a01b0319166001600160a01b038416179055620000ad8162000105565b50506200023b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200010f62000188565b6001600160a01b0381166200017a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200018581620000b5565b50565b6000546001600160a01b03163314620001e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000171565b565b80516001600160a01b0381168114620001fe57600080fd5b919050565b600080604083850312156200021757600080fd5b6200022283620001e6565b91506200023260208401620001e6565b90509250929050565b611330806200024b6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063715018a611610066578063715018a6146101145780638da5cb5b1461011c578063b0d691fe1461012d578063f2fde38b14610140578063f5aa34201461015357600080fd5b806303a353bd1461009857806316e4cbf9146100c1578063253ff613146100ec5780632a97fa77146100ff575b600080fd5b6100ab6100a6366004610cf1565b610166565b6040516100b89190610db3565b60405180910390f35b6002546100d4906001600160a01b031681565b6040516001600160a01b0390911681526020016100b8565b6003546100d4906001600160a01b031681565b61011261010d366004610ea9565b6106c4565b005b6101126106ee565b6000546001600160a01b03166100d4565b6004546100d4906001600160a01b031681565b61011261014e366004610ea9565b610702565b6001546100d4906001600160a01b031681565b6101cc60405180610160016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b6000806101d9858561077b565b909650945091506101ea858561077b565b600354604051635fa71e9560e11b8152600481018790529298509096509192506001600160a01b039091169063bf4e3d2a90602401602060405180830381865afa15801561023c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102609190610ecd565b6001600160a01b03168352604061027b601060008789610eea565b61028491610f14565b608090811c90911b60208086019190915260408051918201815260008252850152620493e090840152620aae6060a08401526102c4601460108688610eea565b6102cd91610f4d565b60e01c60c08401526102e3601a60148688610eea565b6102ec91610f7b565b60d01c60e08401526103026020601a8688610eea565b61030b91610f7b565b60d01c610100840152600354604051635fa71e9560e11b8152600481018390526000916001600160a01b03169063bf4e3d2a90602401602060405180830381865afa15801561035e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103829190610ecd565b9050600061039460266020888a610eea565b61039d91610f7b565b600180546040519293506103d9926020929183916001600160a01b03909116906000906060906044908a90849060d08c901c9082908901610fa9565b60408051601f1981840301815291905260608601526103fb866026818a610eea565b9650965060008787600081811061041457610414611080565b919091013560f81c9150506001811461046a5760405162461bcd60e51b81526020600482015260136024820152722ab739bab83837b93a32b2103b32b939b4b7b760691b60448201526064015b60405180910390fd5b600061047a600760018a8c610eea565b61048391610f7b565b905060008989600781811061049a5761049a611080565b9050013560f81c60f81b60f81c90506104e26040518060c001604052806060815260200160608152602001600081526020016000815260200160008152602001600081525090565b60405161050290600090602001908152600560f81b602082015260250190565b60408051601f1981840301815291815290825260016060830152601790820152610530602860088c8e610eea565b61053991611096565b608082015261054c604860288c8e610eea565b61055591611096565b60a08201526002546001600160a01b03166105738b6048818f610eea565b604051602001610585939291906110b4565b60408051601f198184030181529190526101208a015260006105a68a6107f9565b8051602091820120600454604080519384018390526001600160a01b0390911690830152466060830152915060009060800160408051601f198184030181529082905280516020918201206001600160f81b031960f88a901b16918301919091526001600160d01b03198716602183015260278201819052915060009061063e906047016040516020818303038152906040526108dc565b90508060405160200161065191906110e0565b60405160208183030381529060405284602001819052508686868660405160200161067c919061113e565b60408051601f198184030181529082905261069c949392916020016111ac565b60408051601f198184030181529190526101408d015250505050505050505050505b92915050565b6106cc610af4565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106f6610af4565b6107006000610b4e565b565b61070a610af4565b6001600160a01b03811661076f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610461565b61077881610b4e565b50565b6000366000808585600081811061079457610794611080565b919091013560f81c915060009050866001876107b08583611213565b60ff16926107c093929190610eea565b6107c991611096565b905086866107d8846001611213565b60ff169080926107ea93929190610eea565b91989097509095509350505050565b8051602080830151604080850151805190840120606086810151805190860120608088015160a089015160c08a015160e08b01516101008c01516101208d01518051908c01209851969b9a9798959794969395929491939092916108bc918c918c918c918c918c918c918c918c918c918c91016001600160a01b039a909a168a5260208a019890985260408901969096526060880194909452608087019290925260a086015260c085015260e08401526101008301526101208201526101400190565b6040516020818303038152906040529a5050505050505050505050919050565b606060006108e983610b9e565b905060008190506000600282511180156109345750816002835161090d919061122c565b8151811061091d5761091d611080565b6020910101516001600160f81b031916603d60f81b145b156109415750600261098c565b600182511180156109835750816001835161095c919061122c565b8151811061096c5761096c611080565b6020910101516001600160f81b031916603d60f81b145b1561098c575060015b600081835161099b919061122c565b905060008167ffffffffffffffff8111156109b8576109b861123f565b6040519080825280601f01601f1916602001820160405280156109e2576020820181803683370190505b50905060005b82811015610ae957848181518110610a0257610a02611080565b01602001516001600160f81b031916602b60f81b03610a4e57602d60f81b828281518110610a3257610a32611080565b60200101906001600160f81b031916908160001a905350610ad7565b848181518110610a6057610a60611080565b01602001516001600160f81b031916602f60f81b03610a9057605f60f81b828281518110610a3257610a32611080565b848181518110610aa257610aa2611080565b602001015160f81c60f81b828281518110610abf57610abf611080565b60200101906001600160f81b031916908160001a9053505b80610ae181611255565b9150506109e8565b509695505050505050565b6000546001600160a01b031633146107005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610461565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608151600003610bbd57505060408051602081019091526000815290565b60006040518060600160405280604081526020016112bb6040913990506000600384516002610bec919061126e565b610bf69190611281565b610c019060046112a3565b67ffffffffffffffff811115610c1957610c1961123f565b6040519080825280601f01601f191660200182016040528015610c43576020820181803683370190505b509050600182016020820185865187015b80821015610caf576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610c54565b5050600386510660018114610ccb5760028114610cde57610ce6565b603d6001830353603d6002830353610ce6565b603d60018303535b509195945050505050565b60008060208385031215610d0457600080fd5b823567ffffffffffffffff80821115610d1c57600080fd5b818501915085601f830112610d3057600080fd5b813581811115610d3f57600080fd5b866020828501011115610d5157600080fd5b60209290920196919550909350505050565b60005b83811015610d7e578181015183820152602001610d66565b50506000910152565b60008151808452610d9f816020860160208601610d63565b601f01601f19169290920160200192915050565b60208152610dcd6020820183516001600160a01b03169052565b6020820151604082015260006040830151610160806060850152610df5610180850183610d87565b91506060850151601f1980868503016080870152610e138483610d87565b9350608087015160a087015260a087015160c087015260c087015160e087015260e08701519150610100828188015280880151925050610120828188015280880151925050610140818786030181880152610e6e8584610d87565b908801518782039092018488015293509050610e8a8382610d87565b9695505050505050565b6001600160a01b038116811461077857600080fd5b600060208284031215610ebb57600080fd5b8135610ec681610e94565b9392505050565b600060208284031215610edf57600080fd5b8151610ec681610e94565b60008085851115610efa57600080fd5b83861115610f0757600080fd5b5050820193919092039150565b6fffffffffffffffffffffffffffffffff198135818116916010851015610f455780818660100360031b1b83161692505b505092915050565b6001600160e01b03198135818116916004851015610f455760049490940360031b84901b1690921692915050565b6001600160d01b03198135818116916006851015610f455760069490940360031b84901b1690921692915050565b631a7e6adf60e11b81528b60048201528a6024820152896044820152600060648201526bffffffffffffffffffffffff198960601b1660708201528760848201528660a48201528560c4820152600061101c61101260e4840163a9059cbb60e01b815260040190565b60008152600c0190565b611037818860601b6bffffffffffffffffffffffff19169052565b65ffffffffffff198616601482015261105f602e82018660d01b6001600160d01b0319169052565b63ffffffff19841660348201526050019d9c50505050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b803560208310156106be57600019602084900360031b1b1692915050565b6bffffffffffffffffffffffff198460601b168152818360148301376000910160140190815292915050565b7f7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6781526332911d1160e11b602082015260008251611125816024850160208701610d63565b61227d60f01b6024939091019283015250602601919050565b602081526000825160c0602084015261115a60e0840182610d87565b90506020840151601f198483030160408501526111778282610d87565b9150506040840151606084015260608401516080840152608084015160a084015260a084015160c08401528091505092915050565b6001600160f81b031960f886811b821683526001600160d01b03198616600184015284901b16600782015281516000906111ed816008850160208701610d63565b9190910160080195945050505050565b634e487b7160e01b600052601160045260246000fd5b60ff81811683821601908111156106be576106be6111fd565b818103818111156106be576106be6111fd565b634e487b7160e01b600052604160045260246000fd5b600060018201611267576112676111fd565b5060010190565b808201808211156106be576106be6111fd565b60008261129e57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176106be576106be6111fd56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e0a48bd2c53c0d8eef396e9818e871f5e84bed279b61ae19e11e1e4bf6fc726564736f6c63430008150033000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
20 | "nonce": "0xbd8",
21 | "accessList": []
22 | },
23 | "additionalContracts": [],
24 | "isFixedGasLimit": false
25 | },
26 | {
27 | "hash": "0xea36c6435ef52aaf47816e89c099c966303732666b34d2277abadedae5bac8b1",
28 | "transactionType": "CALL",
29 | "contractName": "src/DaimoOpInflator.sol:DaimoOpInflator",
30 | "contractAddress": "0x209603886a4520195FBC6221e2d8c8A609eE6c16",
31 | "function": "setPaymaster(address)",
32 | "arguments": [
33 | "0xac5917075b3ED3a6a4516398800f3f64FCf4631E"
34 | ],
35 | "transaction": {
36 | "type": "0x02",
37 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
38 | "to": "0x209603886a4520195fbc6221e2d8c8a609ee6c16",
39 | "gas": "0xf8e2",
40 | "value": "0x0",
41 | "data": "0x2a97fa77000000000000000000000000ac5917075b3ed3a6a4516398800f3f64fcf4631e",
42 | "nonce": "0xbd9",
43 | "accessList": []
44 | },
45 | "additionalContracts": [],
46 | "isFixedGasLimit": false
47 | }
48 | ],
49 | "receipts": [
50 | {
51 | "transactionHash": "0xe39ba167b8356860aa259f948a9583f3b3311741af5fec149d8dfb88102d1dd8",
52 | "transactionIndex": "0x1",
53 | "blockHash": "0x68dda513e67657c4737106a4cebcb6c8de9f41961d36472bbada0af1a5f4cfc3",
54 | "blockNumber": "0x9c387d",
55 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
56 | "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
57 | "cumulativeGasUsed": "0x134f30",
58 | "gasUsed": "0x1297fb",
59 | "contractAddress": "0x209603886a4520195FBC6221e2d8c8A609eE6c16",
60 | "logs": [
61 | {
62 | "address": "0x209603886a4520195FBC6221e2d8c8A609eE6c16",
63 | "topics": [
64 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
65 | "0x0000000000000000000000000000000000000000000000000000000000000000",
66 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c"
67 | ],
68 | "data": "0x",
69 | "blockHash": "0x68dda513e67657c4737106a4cebcb6c8de9f41961d36472bbada0af1a5f4cfc3",
70 | "blockNumber": "0x9c387d",
71 | "transactionHash": "0xe39ba167b8356860aa259f948a9583f3b3311741af5fec149d8dfb88102d1dd8",
72 | "transactionIndex": "0x1",
73 | "logIndex": "0x0",
74 | "removed": false
75 | },
76 | {
77 | "address": "0x209603886a4520195FBC6221e2d8c8A609eE6c16",
78 | "topics": [
79 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
80 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c",
81 | "0x0000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7"
82 | ],
83 | "data": "0x",
84 | "blockHash": "0x68dda513e67657c4737106a4cebcb6c8de9f41961d36472bbada0af1a5f4cfc3",
85 | "blockNumber": "0x9c387d",
86 | "transactionHash": "0xe39ba167b8356860aa259f948a9583f3b3311741af5fec149d8dfb88102d1dd8",
87 | "transactionIndex": "0x1",
88 | "logIndex": "0x1",
89 | "removed": false
90 | }
91 | ],
92 | "status": "0x1",
93 | "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000200000000000000000000000000000000000000000000000001000000000000000000000000000003000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000002000000000000000000000000020000000001000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000080000000000000000000000000000000",
94 | "type": "0x2",
95 | "effectiveGasPrice": "0xb2d05f16"
96 | },
97 | {
98 | "transactionHash": "0xea36c6435ef52aaf47816e89c099c966303732666b34d2277abadedae5bac8b1",
99 | "transactionIndex": "0x2",
100 | "blockHash": "0x68dda513e67657c4737106a4cebcb6c8de9f41961d36472bbada0af1a5f4cfc3",
101 | "blockNumber": "0x9c387d",
102 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
103 | "to": "0x209603886a4520195FBC6221e2d8c8A609eE6c16",
104 | "cumulativeGasUsed": "0x140360",
105 | "gasUsed": "0xb430",
106 | "contractAddress": null,
107 | "logs": [],
108 | "status": "0x1",
109 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
110 | "type": "0x2",
111 | "effectiveGasPrice": "0xb2d05f16"
112 | }
113 | ],
114 | "libraries": [],
115 | "pending": [],
116 | "returns": {},
117 | "timestamp": 1707265522,
118 | "chain": 8453,
119 | "multi": false,
120 | "commit": "9c88bd1"
121 | }
--------------------------------------------------------------------------------
/broadcast/Deploy.s.sol/84532/deployDaimoOpInflator-latest.json:
--------------------------------------------------------------------------------
1 | {
2 | "transactions": [
3 | {
4 | "hash": "0x4aeea6eb0c6d20b897396afbb2c44a198153fd0a00a04d96b3fb99c2366cd167",
5 | "transactionType": "CREATE2",
6 | "contractName": "DaimoOpInflator",
7 | "contractAddress": "0x64d265155642a2629569B196e6Df4067891F461E",
8 | "function": null,
9 | "arguments": [
10 | "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
11 | "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
12 | ],
13 | "transaction": {
14 | "type": "0x02",
15 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
16 | "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
17 | "gas": "0x19acd7",
18 | "value": "0x0",
19 | "data": "0x00000000000000000000000000000000000000000000000000000000000000006080604052600380546001600160a01b0319908116734430a644b215a187a3daa5b114fa3f3d9debc17d1790915560048054909116735ff137d4b0fdcd49dca30c7cf57e578a026d27891790553480156200005957600080fd5b506040516200157b3803806200157b8339810160408190526200007c9162000203565b6200008733620000b5565b600180546001600160a01b0319166001600160a01b038416179055620000ad8162000105565b50506200023b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200010f62000188565b6001600160a01b0381166200017a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200018581620000b5565b50565b6000546001600160a01b03163314620001e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000171565b565b80516001600160a01b0381168114620001fe57600080fd5b919050565b600080604083850312156200021757600080fd5b6200022283620001e6565b91506200023260208401620001e6565b90509250929050565b611330806200024b6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063715018a611610066578063715018a6146101145780638da5cb5b1461011c578063b0d691fe1461012d578063f2fde38b14610140578063f5aa34201461015357600080fd5b806303a353bd1461009857806316e4cbf9146100c1578063253ff613146100ec5780632a97fa77146100ff575b600080fd5b6100ab6100a6366004610cf1565b610166565b6040516100b89190610db3565b60405180910390f35b6002546100d4906001600160a01b031681565b6040516001600160a01b0390911681526020016100b8565b6003546100d4906001600160a01b031681565b61011261010d366004610ea9565b6106c4565b005b6101126106ee565b6000546001600160a01b03166100d4565b6004546100d4906001600160a01b031681565b61011261014e366004610ea9565b610702565b6001546100d4906001600160a01b031681565b6101cc60405180610160016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b6000806101d9858561077b565b909650945091506101ea858561077b565b600354604051635fa71e9560e11b8152600481018790529298509096509192506001600160a01b039091169063bf4e3d2a90602401602060405180830381865afa15801561023c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102609190610ecd565b6001600160a01b03168352604061027b601060008789610eea565b61028491610f14565b608090811c90911b60208086019190915260408051918201815260008252850152620493e090840152620aae6060a08401526102c4601460108688610eea565b6102cd91610f4d565b60e01c60c08401526102e3601a60148688610eea565b6102ec91610f7b565b60d01c60e08401526103026020601a8688610eea565b61030b91610f7b565b60d01c610100840152600354604051635fa71e9560e11b8152600481018390526000916001600160a01b03169063bf4e3d2a90602401602060405180830381865afa15801561035e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103829190610ecd565b9050600061039460266020888a610eea565b61039d91610f7b565b600180546040519293506103d9926020929183916001600160a01b03909116906000906060906044908a90849060d08c901c9082908901610fa9565b60408051601f1981840301815291905260608601526103fb866026818a610eea565b9650965060008787600081811061041457610414611080565b919091013560f81c9150506001811461046a5760405162461bcd60e51b81526020600482015260136024820152722ab739bab83837b93a32b2103b32b939b4b7b760691b60448201526064015b60405180910390fd5b600061047a600760018a8c610eea565b61048391610f7b565b905060008989600781811061049a5761049a611080565b9050013560f81c60f81b60f81c90506104e26040518060c001604052806060815260200160608152602001600081526020016000815260200160008152602001600081525090565b60405161050290600090602001908152600560f81b602082015260250190565b60408051601f1981840301815291815290825260016060830152601790820152610530602860088c8e610eea565b61053991611096565b608082015261054c604860288c8e610eea565b61055591611096565b60a08201526002546001600160a01b03166105738b6048818f610eea565b604051602001610585939291906110b4565b60408051601f198184030181529190526101208a015260006105a68a6107f9565b8051602091820120600454604080519384018390526001600160a01b0390911690830152466060830152915060009060800160408051601f198184030181529082905280516020918201206001600160f81b031960f88a901b16918301919091526001600160d01b03198716602183015260278201819052915060009061063e906047016040516020818303038152906040526108dc565b90508060405160200161065191906110e0565b60405160208183030381529060405284602001819052508686868660405160200161067c919061113e565b60408051601f198184030181529082905261069c949392916020016111ac565b60408051601f198184030181529190526101408d015250505050505050505050505b92915050565b6106cc610af4565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106f6610af4565b6107006000610b4e565b565b61070a610af4565b6001600160a01b03811661076f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610461565b61077881610b4e565b50565b6000366000808585600081811061079457610794611080565b919091013560f81c915060009050866001876107b08583611213565b60ff16926107c093929190610eea565b6107c991611096565b905086866107d8846001611213565b60ff169080926107ea93929190610eea565b91989097509095509350505050565b8051602080830151604080850151805190840120606086810151805190860120608088015160a089015160c08a015160e08b01516101008c01516101208d01518051908c01209851969b9a9798959794969395929491939092916108bc918c918c918c918c918c918c918c918c918c918c91016001600160a01b039a909a168a5260208a019890985260408901969096526060880194909452608087019290925260a086015260c085015260e08401526101008301526101208201526101400190565b6040516020818303038152906040529a5050505050505050505050919050565b606060006108e983610b9e565b905060008190506000600282511180156109345750816002835161090d919061122c565b8151811061091d5761091d611080565b6020910101516001600160f81b031916603d60f81b145b156109415750600261098c565b600182511180156109835750816001835161095c919061122c565b8151811061096c5761096c611080565b6020910101516001600160f81b031916603d60f81b145b1561098c575060015b600081835161099b919061122c565b905060008167ffffffffffffffff8111156109b8576109b861123f565b6040519080825280601f01601f1916602001820160405280156109e2576020820181803683370190505b50905060005b82811015610ae957848181518110610a0257610a02611080565b01602001516001600160f81b031916602b60f81b03610a4e57602d60f81b828281518110610a3257610a32611080565b60200101906001600160f81b031916908160001a905350610ad7565b848181518110610a6057610a60611080565b01602001516001600160f81b031916602f60f81b03610a9057605f60f81b828281518110610a3257610a32611080565b848181518110610aa257610aa2611080565b602001015160f81c60f81b828281518110610abf57610abf611080565b60200101906001600160f81b031916908160001a9053505b80610ae181611255565b9150506109e8565b509695505050505050565b6000546001600160a01b031633146107005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610461565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608151600003610bbd57505060408051602081019091526000815290565b60006040518060600160405280604081526020016112bb6040913990506000600384516002610bec919061126e565b610bf69190611281565b610c019060046112a3565b67ffffffffffffffff811115610c1957610c1961123f565b6040519080825280601f01601f191660200182016040528015610c43576020820181803683370190505b509050600182016020820185865187015b80821015610caf576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610c54565b5050600386510660018114610ccb5760028114610cde57610ce6565b603d6001830353603d6002830353610ce6565b603d60018303535b509195945050505050565b60008060208385031215610d0457600080fd5b823567ffffffffffffffff80821115610d1c57600080fd5b818501915085601f830112610d3057600080fd5b813581811115610d3f57600080fd5b866020828501011115610d5157600080fd5b60209290920196919550909350505050565b60005b83811015610d7e578181015183820152602001610d66565b50506000910152565b60008151808452610d9f816020860160208601610d63565b601f01601f19169290920160200192915050565b60208152610dcd6020820183516001600160a01b03169052565b6020820151604082015260006040830151610160806060850152610df5610180850183610d87565b91506060850151601f1980868503016080870152610e138483610d87565b9350608087015160a087015260a087015160c087015260c087015160e087015260e08701519150610100828188015280880151925050610120828188015280880151925050610140818786030181880152610e6e8584610d87565b908801518782039092018488015293509050610e8a8382610d87565b9695505050505050565b6001600160a01b038116811461077857600080fd5b600060208284031215610ebb57600080fd5b8135610ec681610e94565b9392505050565b600060208284031215610edf57600080fd5b8151610ec681610e94565b60008085851115610efa57600080fd5b83861115610f0757600080fd5b5050820193919092039150565b6fffffffffffffffffffffffffffffffff198135818116916010851015610f455780818660100360031b1b83161692505b505092915050565b6001600160e01b03198135818116916004851015610f455760049490940360031b84901b1690921692915050565b6001600160d01b03198135818116916006851015610f455760069490940360031b84901b1690921692915050565b631a7e6adf60e11b81528b60048201528a6024820152896044820152600060648201526bffffffffffffffffffffffff198960601b1660708201528760848201528660a48201528560c4820152600061101c61101260e4840163a9059cbb60e01b815260040190565b60008152600c0190565b611037818860601b6bffffffffffffffffffffffff19169052565b65ffffffffffff198616601482015261105f602e82018660d01b6001600160d01b0319169052565b63ffffffff19841660348201526050019d9c50505050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b803560208310156106be57600019602084900360031b1b1692915050565b6bffffffffffffffffffffffff198460601b168152818360148301376000910160140190815292915050565b7f7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6781526332911d1160e11b602082015260008251611125816024850160208701610d63565b61227d60f01b6024939091019283015250602601919050565b602081526000825160c0602084015261115a60e0840182610d87565b90506020840151601f198483030160408501526111778282610d87565b9150506040840151606084015260608401516080840152608084015160a084015260a084015160c08401528091505092915050565b6001600160f81b031960f886811b821683526001600160d01b03198616600184015284901b16600782015281516000906111ed816008850160208701610d63565b9190910160080195945050505050565b634e487b7160e01b600052601160045260246000fd5b60ff81811683821601908111156106be576106be6111fd565b818103818111156106be576106be6111fd565b634e487b7160e01b600052604160045260246000fd5b600060018201611267576112676111fd565b5060010190565b808201808211156106be576106be6111fd565b60008261129e57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176106be576106be6111fd56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e0a48bd2c53c0d8eef396e9818e871f5e84bed279b61ae19e11e1e4bf6fc726564736f6c63430008150033000000000000000000000000036cbd53842c5426634e7929541ec2318f3dcf7e0000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
20 | "nonce": "0x13",
21 | "accessList": []
22 | },
23 | "additionalContracts": [],
24 | "isFixedGasLimit": false
25 | },
26 | {
27 | "hash": "0xe2271b99aa90b48eea6761a77e4eec43d3e0f8bb93707ced53d95a0c6dd0f2eb",
28 | "transactionType": "CALL",
29 | "contractName": "src/DaimoOpInflator.sol:DaimoOpInflator",
30 | "contractAddress": "0x64d265155642a2629569B196e6Df4067891F461E",
31 | "function": "setPaymaster(address)",
32 | "arguments": [
33 | "0xa9E1CCB08053e4f5daBb506718352389C1547462"
34 | ],
35 | "transaction": {
36 | "type": "0x02",
37 | "from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
38 | "to": "0x64d265155642a2629569b196e6df4067891f461e",
39 | "gas": "0xf8e2",
40 | "value": "0x0",
41 | "data": "0x2a97fa77000000000000000000000000a9e1ccb08053e4f5dabb506718352389c1547462",
42 | "nonce": "0x14",
43 | "accessList": []
44 | },
45 | "additionalContracts": [],
46 | "isFixedGasLimit": false
47 | }
48 | ],
49 | "receipts": [
50 | {
51 | "transactionHash": "0x4aeea6eb0c6d20b897396afbb2c44a198153fd0a00a04d96b3fb99c2366cd167",
52 | "transactionIndex": "0x1",
53 | "blockHash": "0xd2ac0145a8eb72be37696f1b4933672e04a53914c8c10dcf159114a9f08472a6",
54 | "blockNumber": "0x57bad5",
55 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
56 | "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
57 | "cumulativeGasUsed": "0x134f3c",
58 | "gasUsed": "0x1297fb",
59 | "contractAddress": "0x64d265155642a2629569B196e6Df4067891F461E",
60 | "logs": [
61 | {
62 | "address": "0x64d265155642a2629569B196e6Df4067891F461E",
63 | "topics": [
64 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
65 | "0x0000000000000000000000000000000000000000000000000000000000000000",
66 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c"
67 | ],
68 | "data": "0x",
69 | "blockHash": "0xd2ac0145a8eb72be37696f1b4933672e04a53914c8c10dcf159114a9f08472a6",
70 | "blockNumber": "0x57bad5",
71 | "transactionHash": "0x4aeea6eb0c6d20b897396afbb2c44a198153fd0a00a04d96b3fb99c2366cd167",
72 | "transactionIndex": "0x1",
73 | "logIndex": "0x0",
74 | "removed": false
75 | },
76 | {
77 | "address": "0x64d265155642a2629569B196e6Df4067891F461E",
78 | "topics": [
79 | "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
80 | "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c",
81 | "0x0000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7"
82 | ],
83 | "data": "0x",
84 | "blockHash": "0xd2ac0145a8eb72be37696f1b4933672e04a53914c8c10dcf159114a9f08472a6",
85 | "blockNumber": "0x57bad5",
86 | "transactionHash": "0x4aeea6eb0c6d20b897396afbb2c44a198153fd0a00a04d96b3fb99c2366cd167",
87 | "transactionIndex": "0x1",
88 | "logIndex": "0x1",
89 | "removed": false
90 | }
91 | ],
92 | "status": "0x1",
93 | "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000003000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000020000000001000000100000000010000000000000001000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000080000000000000000000000000000000",
94 | "type": "0x2",
95 | "effectiveGasPrice": "0xb2d05efe"
96 | },
97 | {
98 | "transactionHash": "0xe2271b99aa90b48eea6761a77e4eec43d3e0f8bb93707ced53d95a0c6dd0f2eb",
99 | "transactionIndex": "0x2",
100 | "blockHash": "0xd2ac0145a8eb72be37696f1b4933672e04a53914c8c10dcf159114a9f08472a6",
101 | "blockNumber": "0x57bad5",
102 | "from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
103 | "to": "0x64d265155642a2629569B196e6Df4067891F461E",
104 | "cumulativeGasUsed": "0x14036c",
105 | "gasUsed": "0xb430",
106 | "contractAddress": null,
107 | "logs": [],
108 | "status": "0x1",
109 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
110 | "type": "0x2",
111 | "effectiveGasPrice": "0xb2d05efe"
112 | }
113 | ],
114 | "libraries": [],
115 | "pending": [],
116 | "returns": {},
117 | "timestamp": 1707267232,
118 | "chain": 84532,
119 | "multi": false,
120 | "commit": "9c47922"
121 | }
--------------------------------------------------------------------------------
/ts/generated.ts:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // BundleBulker
3 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4 |
5 | export const bundleBulkerABI = [
6 | { stateMutability: 'nonpayable', type: 'fallback' },
7 | {
8 | stateMutability: 'view',
9 | type: 'function',
10 | inputs: [],
11 | name: 'ENTRY_POINT',
12 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
13 | },
14 | {
15 | stateMutability: 'view',
16 | type: 'function',
17 | inputs: [{ name: '', internalType: 'uint32', type: 'uint32' }],
18 | name: 'idToInflator',
19 | outputs: [
20 | { name: '', internalType: 'contract IInflator', type: 'address' },
21 | ],
22 | },
23 | {
24 | stateMutability: 'view',
25 | type: 'function',
26 | inputs: [{ name: 'compressed', internalType: 'bytes', type: 'bytes' }],
27 | name: 'inflate',
28 | outputs: [
29 | {
30 | name: 'ops',
31 | internalType: 'struct UserOperation[]',
32 | type: 'tuple[]',
33 | components: [
34 | { name: 'sender', internalType: 'address', type: 'address' },
35 | { name: 'nonce', internalType: 'uint256', type: 'uint256' },
36 | { name: 'initCode', internalType: 'bytes', type: 'bytes' },
37 | { name: 'callData', internalType: 'bytes', type: 'bytes' },
38 | { name: 'callGasLimit', internalType: 'uint256', type: 'uint256' },
39 | {
40 | name: 'verificationGasLimit',
41 | internalType: 'uint256',
42 | type: 'uint256',
43 | },
44 | {
45 | name: 'preVerificationGas',
46 | internalType: 'uint256',
47 | type: 'uint256',
48 | },
49 | { name: 'maxFeePerGas', internalType: 'uint256', type: 'uint256' },
50 | {
51 | name: 'maxPriorityFeePerGas',
52 | internalType: 'uint256',
53 | type: 'uint256',
54 | },
55 | { name: 'paymasterAndData', internalType: 'bytes', type: 'bytes' },
56 | { name: 'signature', internalType: 'bytes', type: 'bytes' },
57 | ],
58 | },
59 | { name: 'beneficiary', internalType: 'address payable', type: 'address' },
60 | ],
61 | },
62 | {
63 | stateMutability: 'view',
64 | type: 'function',
65 | inputs: [{ name: '', internalType: 'contract IInflator', type: 'address' }],
66 | name: 'inflatorToID',
67 | outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }],
68 | },
69 | {
70 | stateMutability: 'nonpayable',
71 | type: 'function',
72 | inputs: [
73 | { name: 'inflatorId', internalType: 'uint32', type: 'uint32' },
74 | { name: 'inflator', internalType: 'contract IInflator', type: 'address' },
75 | ],
76 | name: 'registerInflator',
77 | outputs: [],
78 | },
79 | {
80 | type: 'event',
81 | anonymous: false,
82 | inputs: [
83 | { name: 'id', internalType: 'uint32', type: 'uint32', indexed: false },
84 | {
85 | name: 'inflator',
86 | internalType: 'contract IInflator',
87 | type: 'address',
88 | indexed: false,
89 | },
90 | ],
91 | name: 'InflatorRegistered',
92 | },
93 | ] as const
94 |
95 | export const bundleBulkerAddress =
96 | '0x000000000091A1F34f51CE866bEd8983dB51a97E' as const
97 |
98 | export const bundleBulkerConfig = {
99 | address: bundleBulkerAddress,
100 | abi: bundleBulkerABI,
101 | } as const
102 |
103 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
104 | // DaimoOpInflator
105 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
106 |
107 | export const daimoOpInflatorABI = [
108 | {
109 | stateMutability: 'nonpayable',
110 | type: 'constructor',
111 | inputs: [
112 | { name: '_coinAddr', internalType: 'address', type: 'address' },
113 | { name: '_owner', internalType: 'address', type: 'address' },
114 | ],
115 | },
116 | {
117 | stateMutability: 'view',
118 | type: 'function',
119 | inputs: [],
120 | name: 'coinAddr',
121 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
122 | },
123 | {
124 | stateMutability: 'view',
125 | type: 'function',
126 | inputs: [],
127 | name: 'entryPoint',
128 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
129 | },
130 | {
131 | stateMutability: 'view',
132 | type: 'function',
133 | inputs: [{ name: 'compressed', internalType: 'bytes', type: 'bytes' }],
134 | name: 'inflate',
135 | outputs: [
136 | {
137 | name: 'op',
138 | internalType: 'struct UserOperation',
139 | type: 'tuple',
140 | components: [
141 | { name: 'sender', internalType: 'address', type: 'address' },
142 | { name: 'nonce', internalType: 'uint256', type: 'uint256' },
143 | { name: 'initCode', internalType: 'bytes', type: 'bytes' },
144 | { name: 'callData', internalType: 'bytes', type: 'bytes' },
145 | { name: 'callGasLimit', internalType: 'uint256', type: 'uint256' },
146 | {
147 | name: 'verificationGasLimit',
148 | internalType: 'uint256',
149 | type: 'uint256',
150 | },
151 | {
152 | name: 'preVerificationGas',
153 | internalType: 'uint256',
154 | type: 'uint256',
155 | },
156 | { name: 'maxFeePerGas', internalType: 'uint256', type: 'uint256' },
157 | {
158 | name: 'maxPriorityFeePerGas',
159 | internalType: 'uint256',
160 | type: 'uint256',
161 | },
162 | { name: 'paymasterAndData', internalType: 'bytes', type: 'bytes' },
163 | { name: 'signature', internalType: 'bytes', type: 'bytes' },
164 | ],
165 | },
166 | ],
167 | },
168 | {
169 | stateMutability: 'view',
170 | type: 'function',
171 | inputs: [],
172 | name: 'nameReg',
173 | outputs: [{ name: '', internalType: 'contract INameReg', type: 'address' }],
174 | },
175 | {
176 | stateMutability: 'view',
177 | type: 'function',
178 | inputs: [],
179 | name: 'owner',
180 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
181 | },
182 | {
183 | stateMutability: 'view',
184 | type: 'function',
185 | inputs: [],
186 | name: 'paymaster',
187 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
188 | },
189 | {
190 | stateMutability: 'nonpayable',
191 | type: 'function',
192 | inputs: [],
193 | name: 'renounceOwnership',
194 | outputs: [],
195 | },
196 | {
197 | stateMutability: 'nonpayable',
198 | type: 'function',
199 | inputs: [{ name: '_paymaster', internalType: 'address', type: 'address' }],
200 | name: 'setPaymaster',
201 | outputs: [],
202 | },
203 | {
204 | stateMutability: 'nonpayable',
205 | type: 'function',
206 | inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
207 | name: 'transferOwnership',
208 | outputs: [],
209 | },
210 | {
211 | type: 'event',
212 | anonymous: false,
213 | inputs: [
214 | {
215 | name: 'previousOwner',
216 | internalType: 'address',
217 | type: 'address',
218 | indexed: true,
219 | },
220 | {
221 | name: 'newOwner',
222 | internalType: 'address',
223 | type: 'address',
224 | indexed: true,
225 | },
226 | ],
227 | name: 'OwnershipTransferred',
228 | },
229 | ] as const
230 |
231 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
232 | // DaimoTransferInflator
233 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
234 |
235 | export const daimoTransferInflatorABI = [
236 | {
237 | stateMutability: 'nonpayable',
238 | type: 'constructor',
239 | inputs: [
240 | { name: '_coinAddr', internalType: 'address', type: 'address' },
241 | { name: '_owner', internalType: 'address', type: 'address' },
242 | ],
243 | },
244 | {
245 | stateMutability: 'view',
246 | type: 'function',
247 | inputs: [],
248 | name: 'beneficiary',
249 | outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
250 | },
251 | {
252 | stateMutability: 'view',
253 | type: 'function',
254 | inputs: [],
255 | name: 'coinAddr',
256 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
257 | },
258 | {
259 | stateMutability: 'view',
260 | type: 'function',
261 | inputs: [{ name: 'compressed', internalType: 'bytes', type: 'bytes' }],
262 | name: 'inflate',
263 | outputs: [
264 | {
265 | name: '',
266 | internalType: 'struct UserOperation[]',
267 | type: 'tuple[]',
268 | components: [
269 | { name: 'sender', internalType: 'address', type: 'address' },
270 | { name: 'nonce', internalType: 'uint256', type: 'uint256' },
271 | { name: 'initCode', internalType: 'bytes', type: 'bytes' },
272 | { name: 'callData', internalType: 'bytes', type: 'bytes' },
273 | { name: 'callGasLimit', internalType: 'uint256', type: 'uint256' },
274 | {
275 | name: 'verificationGasLimit',
276 | internalType: 'uint256',
277 | type: 'uint256',
278 | },
279 | {
280 | name: 'preVerificationGas',
281 | internalType: 'uint256',
282 | type: 'uint256',
283 | },
284 | { name: 'maxFeePerGas', internalType: 'uint256', type: 'uint256' },
285 | {
286 | name: 'maxPriorityFeePerGas',
287 | internalType: 'uint256',
288 | type: 'uint256',
289 | },
290 | { name: 'paymasterAndData', internalType: 'bytes', type: 'bytes' },
291 | { name: 'signature', internalType: 'bytes', type: 'bytes' },
292 | ],
293 | },
294 | { name: '', internalType: 'address payable', type: 'address' },
295 | ],
296 | },
297 | {
298 | stateMutability: 'view',
299 | type: 'function',
300 | inputs: [],
301 | name: 'owner',
302 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
303 | },
304 | {
305 | stateMutability: 'view',
306 | type: 'function',
307 | inputs: [],
308 | name: 'paymaster',
309 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
310 | },
311 | {
312 | stateMutability: 'nonpayable',
313 | type: 'function',
314 | inputs: [],
315 | name: 'renounceOwnership',
316 | outputs: [],
317 | },
318 | {
319 | stateMutability: 'nonpayable',
320 | type: 'function',
321 | inputs: [
322 | {
323 | name: '_beneficiary',
324 | internalType: 'address payable',
325 | type: 'address',
326 | },
327 | ],
328 | name: 'setBeneficiary',
329 | outputs: [],
330 | },
331 | {
332 | stateMutability: 'nonpayable',
333 | type: 'function',
334 | inputs: [{ name: '_paymaster', internalType: 'address', type: 'address' }],
335 | name: 'setPaymaster',
336 | outputs: [],
337 | },
338 | {
339 | stateMutability: 'nonpayable',
340 | type: 'function',
341 | inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
342 | name: 'transferOwnership',
343 | outputs: [],
344 | },
345 | {
346 | type: 'event',
347 | anonymous: false,
348 | inputs: [
349 | {
350 | name: 'previousOwner',
351 | internalType: 'address',
352 | type: 'address',
353 | indexed: true,
354 | },
355 | {
356 | name: 'newOwner',
357 | internalType: 'address',
358 | type: 'address',
359 | indexed: true,
360 | },
361 | ],
362 | name: 'OwnershipTransferred',
363 | },
364 | ] as const
365 |
366 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
367 | // INameReg
368 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
369 |
370 | export const iNameRegABI = [
371 | {
372 | stateMutability: 'view',
373 | type: 'function',
374 | inputs: [{ name: 'name', internalType: 'bytes32', type: 'bytes32' }],
375 | name: 'resolveAddr',
376 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
377 | },
378 | ] as const
379 |
380 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
381 | // PerOpInflator
382 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
383 |
384 | export const perOpInflatorABI = [
385 | {
386 | stateMutability: 'nonpayable',
387 | type: 'constructor',
388 | inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
389 | },
390 | {
391 | stateMutability: 'view',
392 | type: 'function',
393 | inputs: [],
394 | name: 'beneficiary',
395 | outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
396 | },
397 | {
398 | stateMutability: 'view',
399 | type: 'function',
400 | inputs: [{ name: '', internalType: 'uint32', type: 'uint32' }],
401 | name: 'idToInflator',
402 | outputs: [
403 | { name: '', internalType: 'contract IOpInflator', type: 'address' },
404 | ],
405 | },
406 | {
407 | stateMutability: 'view',
408 | type: 'function',
409 | inputs: [{ name: 'compressed', internalType: 'bytes', type: 'bytes' }],
410 | name: 'inflate',
411 | outputs: [
412 | {
413 | name: '',
414 | internalType: 'struct UserOperation[]',
415 | type: 'tuple[]',
416 | components: [
417 | { name: 'sender', internalType: 'address', type: 'address' },
418 | { name: 'nonce', internalType: 'uint256', type: 'uint256' },
419 | { name: 'initCode', internalType: 'bytes', type: 'bytes' },
420 | { name: 'callData', internalType: 'bytes', type: 'bytes' },
421 | { name: 'callGasLimit', internalType: 'uint256', type: 'uint256' },
422 | {
423 | name: 'verificationGasLimit',
424 | internalType: 'uint256',
425 | type: 'uint256',
426 | },
427 | {
428 | name: 'preVerificationGas',
429 | internalType: 'uint256',
430 | type: 'uint256',
431 | },
432 | { name: 'maxFeePerGas', internalType: 'uint256', type: 'uint256' },
433 | {
434 | name: 'maxPriorityFeePerGas',
435 | internalType: 'uint256',
436 | type: 'uint256',
437 | },
438 | { name: 'paymasterAndData', internalType: 'bytes', type: 'bytes' },
439 | { name: 'signature', internalType: 'bytes', type: 'bytes' },
440 | ],
441 | },
442 | { name: '', internalType: 'address payable', type: 'address' },
443 | ],
444 | },
445 | {
446 | stateMutability: 'view',
447 | type: 'function',
448 | inputs: [
449 | { name: '', internalType: 'contract IOpInflator', type: 'address' },
450 | ],
451 | name: 'inflatorToID',
452 | outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }],
453 | },
454 | {
455 | stateMutability: 'view',
456 | type: 'function',
457 | inputs: [],
458 | name: 'owner',
459 | outputs: [{ name: '', internalType: 'address', type: 'address' }],
460 | },
461 | {
462 | stateMutability: 'nonpayable',
463 | type: 'function',
464 | inputs: [
465 | { name: 'inflatorId', internalType: 'uint32', type: 'uint32' },
466 | {
467 | name: 'inflator',
468 | internalType: 'contract IOpInflator',
469 | type: 'address',
470 | },
471 | ],
472 | name: 'registerOpInflator',
473 | outputs: [],
474 | },
475 | {
476 | stateMutability: 'nonpayable',
477 | type: 'function',
478 | inputs: [],
479 | name: 'renounceOwnership',
480 | outputs: [],
481 | },
482 | {
483 | stateMutability: 'nonpayable',
484 | type: 'function',
485 | inputs: [
486 | {
487 | name: '_beneficiary',
488 | internalType: 'address payable',
489 | type: 'address',
490 | },
491 | ],
492 | name: 'setBeneficiary',
493 | outputs: [],
494 | },
495 | {
496 | stateMutability: 'nonpayable',
497 | type: 'function',
498 | inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
499 | name: 'transferOwnership',
500 | outputs: [],
501 | },
502 | {
503 | type: 'event',
504 | anonymous: false,
505 | inputs: [
506 | { name: 'id', internalType: 'uint32', type: 'uint32', indexed: false },
507 | {
508 | name: 'inflator',
509 | internalType: 'contract IOpInflator',
510 | type: 'address',
511 | indexed: false,
512 | },
513 | ],
514 | name: 'OpInflatorRegistered',
515 | },
516 | {
517 | type: 'event',
518 | anonymous: false,
519 | inputs: [
520 | {
521 | name: 'previousOwner',
522 | internalType: 'address',
523 | type: 'address',
524 | indexed: true,
525 | },
526 | {
527 | name: 'newOwner',
528 | internalType: 'address',
529 | type: 'address',
530 | indexed: true,
531 | },
532 | ],
533 | name: 'OwnershipTransferred',
534 | },
535 | ] as const
536 |
537 | export const perOpInflatorAddress =
538 | '0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511' as const
539 |
540 | export const perOpInflatorConfig = {
541 | address: perOpInflatorAddress,
542 | abi: perOpInflatorABI,
543 | } as const
544 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------