From 972bc07ce85a9696e231452736a1a77f0eddf033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Thu, 14 Aug 2025 01:34:00 +0000 Subject: [PATCH 1/9] Add eip7730 provider --- src/Cargo.lock | 74 +- .../visualsign-ethereum/Cargo.toml | 10 + .../visualsign-ethereum/build.rs | 207 +++ .../visualsign-ethereum/src/lib.rs | 2 + .../src/provider/eip7730.rs | 30 + .../visualsign-ethereum/src/provider/mod.rs | 2 + .../visualsign-ethereum/src/registry.rs | 179 +++ .../static/eip7730/.gitattributes | 2 + .../eip7730/ercs/calldata-erc20-tokens.json | 65 + .../eip7730/ercs/calldata-erc4626-vaults.json | 80 ++ .../eip7730/ercs/calldata-erc721-nfts.json | 79 ++ .../eip7730/ercs/eip712-erc2612-permit.json | 42 + .../1inch/calldata-AggregationRouterV3.json | 78 ++ .../calldata-AggregationRouterV4-eth.json | 46 + .../1inch/calldata-AggregationRouterV4.json | 14 + .../1inch/calldata-AggregationRouterV5.json | 166 +++ .../calldata-AggregationRouterV6-zksync.json | 11 + .../1inch/calldata-AggregationRouterV6.json | 51 + .../1inch/common-AggregationRouterV4.json | 178 +++ .../1inch/common-AggregationRouterV6.json | 212 ++++ .../1inch/eip712-1inch-limit-order.json | 76 ++ .../1inch/eip712-AggregationRouterV6.json | 60 + .../eip7730/registry/aave/calldata-lpv2.json | 127 ++ .../eip7730/registry/aave/calldata-lpv3.json | 167 +++ .../corestake/calldata-corestake.json | 51 + .../registry/degate/eip712-degate.json | 122 ++ .../registry/dispatch/eip712-dispatch.json | 42 + .../registry/ethena/calldata-ethena.json | 102 ++ .../fellow-fund/calldata-fellow-fund.json | 74 ++ ...lldata-DistributionToDelegators-Flare.json | 858 +++++++++++++ .../calldata-PollingFoundation-Flare.json | 863 +++++++++++++ .../calldata-PollingFoundation-Songbird.json | 863 +++++++++++++ .../flare/calldata-RewardManager-Flare.json | 1110 ++++++++++++++++ .../calldata-RewardManager-Songbird.json | 1111 +++++++++++++++++ ...calldata-ValidatorRewardManager-Flare.json | 649 ++++++++++ .../calldata-Vault-USDC-AAVE-Arbitrum.json | 8 + .../registry/kiln/common-KilnVaults.json | 9 + .../ledgerquest/eip712-ledgerquest.json | 40 + .../registry/lens/eip712-lens-lenshub.json | 666 ++++++++++ .../eip712-lens-token-handle-registry.json | 66 + .../lido/calldata-WithdrawalQueueERC721.json | 188 +++ .../eip7730/registry/lido/calldata-stETH.json | 63 + .../registry/lido/calldata-wstETH.json | 86 ++ .../lombard/calldata-lbtc-redeem-holesky.json | 44 + .../lombard/calldata-lbtc-redeem-mainnet.json | 44 + ...712-network-fee-authorization-holesky.json | 41 + ...712-network-fee-authorization-mainnet.json | 41 + .../registry/makerdao/eip712-permit-DAI.json | 20 + .../eip712-permit-DAI/permit-DAI-sample1.json | 58 + .../morpho/calldata-9summits-9SETHc.json | 10 + .../morpho/calldata-9summits-9SETHcore.json | 10 + .../calldata-9summits-9SUSDC11Core.json | 14 + .../morpho/calldata-9summits-9SUSDCcore.json | 10 + .../morpho/calldata-9summits-9SUSR.json | 10 + .../registry/morpho/calldata-MorphoBlue.json | 1056 ++++++++++++++++ .../morpho/calldata-apostro-aprUSDC.json | 10 + .../morpho/calldata-apostro-aprUSR.json | 10 + .../morpho/calldata-b_protocol-reETH.json | 10 + .../morpho/calldata-b_protocol-reGOLD.json | 10 + .../morpho/calldata-b_protocol-reUSDC.json | 10 + .../morpho/calldata-b_protocol-recbBTC.json | 10 + .../calldata-block_analitica-bbETH.json | 10 + .../calldata-block_analitica-bbUSDC.json | 10 + .../calldata-block_analitica-bbUSDT.json | 10 + .../calldata-block_analitica-mwETH.json | 10 + .../calldata-block_analitica-mwEURC.json | 10 + .../calldata-block_analitica-mwUSDC.json | 10 + .../calldata-block_analitica-mwcbBTC.json | 10 + .../registry/morpho/calldata-fence-ERY.json | 10 + .../morpho/calldata-gauntlet-elixirUSDC.json | 10 + .../morpho/calldata-gauntlet-gtAUSDc.json | 10 + .../morpho/calldata-gauntlet-gtDAIcore.json | 10 + .../morpho/calldata-gauntlet-gtEURCc.json | 10 + .../morpho/calldata-gauntlet-gtLBTCc.json | 10 + .../morpho/calldata-gauntlet-gtLRTcore.json | 10 + .../morpho/calldata-gauntlet-gtUSDAcore.json | 10 + .../morpho/calldata-gauntlet-gtUSDC.json | 10 + .../morpho/calldata-gauntlet-gtUSDCc.json | 10 + .../morpho/calldata-gauntlet-gtUSDCcore.json | 10 + .../morpho/calldata-gauntlet-gtUSDCmkr.json | 10 + .../morpho/calldata-gauntlet-gtUSDCp.json | 10 + .../morpho/calldata-gauntlet-gtUSDT.json | 10 + .../morpho/calldata-gauntlet-gtWBTCc.json | 10 + .../morpho/calldata-gauntlet-gtWETH.json | 10 + .../morpho/calldata-gauntlet-gtWETHc.json | 10 + .../morpho/calldata-gauntlet-gtWETHe.json | 10 + .../morpho/calldata-gauntlet-gtcbBTCc.json | 10 + .../morpho/calldata-gauntlet-gteUSDc.json | 10 + .../morpho/calldata-gauntlet-gtmsETHc.json | 10 + .../morpho/calldata-gauntlet-gtmsUSDc.json | 10 + .../morpho/calldata-gauntlet-gtusdcf.json | 10 + .../morpho/calldata-gauntlet-ionicUSDC.json | 10 + .../morpho/calldata-gauntlet-ionicWETH.json | 10 + .../morpho/calldata-gauntlet-mhyETH.json | 10 + .../morpho/calldata-gauntlet-midasUSDC.json | 10 + .../morpho/calldata-gauntlet-msolvbtcbbn.json | 14 + .../morpho/calldata-gauntlet-resolvUSDC.json | 10 + .../calldata-gauntlet-sbMorphoUSDC.json | 14 + .../calldata-gauntlet-sbMorphotBTC.json | 14 + .../morpho/calldata-gauntlet-smUSDC.json | 10 + .../morpho/calldata-gauntlet-smWETH.json | 10 + .../morpho/calldata-gauntlet-smcbBTC.json | 10 + .../morpho/calldata-hakutora-hUSDC.json | 10 + .../morpho/calldata-leadblock-USDC-RWA.json | 10 + .../calldata-llamarisk-llama-crvUSD.json | 14 + .../morpho/calldata-mev_capital-MC-USR.json | 10 + .../morpho/calldata-mev_capital-MC.eUSDC.json | 10 + .../morpho/calldata-mev_capital-MC_USD0.json | 10 + .../morpho/calldata-mev_capital-MCcbBTC.json | 10 + .../morpho/calldata-mev_capital-MCwBTC.json | 10 + .../morpho/calldata-mev_capital-MCwETH.json | 10 + .../calldata-mev_capital-USUALUSDC+.json | 10 + .../morpho/calldata-mev_capital-pWBTC.json | 10 + .../morpho/calldata-re7_labs-Re7FRAX.json | 10 + .../morpho/calldata-re7_labs-Re7RWA.json | 10 + .../morpho/calldata-re7_labs-Re7USDA.json | 10 + .../morpho/calldata-re7_labs-Re7USDC.json | 10 + .../morpho/calldata-re7_labs-Re7USDT.json | 10 + .../morpho/calldata-re7_labs-Re7WBTC.json | 10 + .../morpho/calldata-re7_labs-Re7WETH.json | 10 + .../morpho/calldata-re7_labs-Re7cbBTC.json | 10 + .../calldata-re7_labs-Re7cdxUSD1.1.json | 14 + .../morpho/calldata-re7_labs-Re7wstETH.json | 14 + .../morpho/calldata-re7_labs-degenUSDC.json | 10 + .../morpho/calldata-re7_labs-fxUSDC.json | 10 + .../morpho/calldata-re7_labs-mDEGEN.json | 10 + .../morpho/calldata-re7_labs-mMAI.json | 10 + .../morpho/calldata-re7_labs-meUSD.json | 10 + .../morpho/calldata-re7_labs-pythETH.json | 10 + .../morpho/calldata-re7_labs-pythUSDC.json | 10 + .../morpho/calldata-re7_labs-uUSDC.json | 10 + .../morpho/calldata-sparkdao-spDAI.json | 10 + .../morpho/calldata-sparkdao-sparkUSDC.json | 10 + .../calldata-steakhouse_financial-bbqDAI.json | 10 + ...calldata-steakhouse_financial-bbqUSDC.json | 10 + ...calldata-steakhouse_financial-bbqUSDT.json | 10 + ...lldata-steakhouse_financial-bbqWSTETH.json | 14 + .../calldata-steakhouse_financial-csUSDC.json | 10 + .../calldata-steakhouse_financial-csUSDL.json | 10 + ...alldata-steakhouse_financial-steakETH.json | 10 + ...lldata-steakhouse_financial-steakEURA.json | 10 + ...lldata-steakhouse_financial-steakEURC.json | 10 + ...lldata-steakhouse_financial-steakPAXG.json | 10 + ...ldata-steakhouse_financial-steakPYUSD.json | 14 + ...lldata-steakhouse_financial-steakRUSD.json | 10 + ...ldata-steakhouse_financial-steakSUSDS.json | 14 + ...lldata-steakhouse_financial-steakUSDA.json | 10 + ...lldata-steakhouse_financial-steakUSDC.json | 10 + ...ata-steakhouse_financial-steakUSDCrwa.json | 14 + ...lldata-steakhouse_financial-steakUSDM.json | 10 + ...lldata-steakhouse_financial-steakUSDQ.json | 10 + ...lldata-steakhouse_financial-steakUSDR.json | 10 + ...lldata-steakhouse_financial-steakUSDT.json | 10 + ...ta-steakhouse_financial-steakUSDTlite.json | 14 + ...lldata-steakhouse_financial-steakWBTC.json | 10 + .../registry/opensea/eip712-opensea.json | 83 ++ .../paraswap/calldata-AugustusSwapper-v5.json | 200 +++ .../registry/paraswap/eip712-paraswap.json | 94 ++ .../permit/eip712-permit-arbitrum-arb.json | 10 + .../eip712-permit-arbitrum-bridged-usdc.json | 10 + ...712-permit-avalanche_c_chain-pangolin.json | 10 + ...712-permit-avalanche_c_chain-yetiswap.json | 10 + .../permit/eip712-permit-bsc-1inch-token.json | 10 + .../eip712-permit-bsc-polkastarter-token.json | 10 + .../permit/eip712-permit-ethereum-aave.json | 10 + .../permit/eip712-permit-ethereum-dai.json | 10 + .../eip712-permit-ethereum-lido-steth.json | 10 + .../eip712-permit-ethereum-lido-wsteth.json | 10 + .../permit/eip712-permit-ethereum-usdc.json | 10 + .../permit/eip712-permit-fantom-mimatic.json | 10 + .../permit/eip712-permit-fantom-wootrade.json | 10 + .../permit/eip712-permit-optimism-bob.json | 10 + .../permit/eip712-permit-optimism-op.json | 10 + .../eip712-permit-polygon-aave-dai.json | 10 + .../eip712-permit-polygon-aave-weth.json | 10 + .../registry/poap/calldata-PoapBridge.json | 246 ++++ .../quickswap/calldata-QuickSwap.json | 183 +++ .../rarible/eip712-rarible-erc-1155.json | 41 + .../rarible/eip712-rarible-erc-721.json | 39 + .../rarible/eip712-rarible-exchange-v2.json | 87 ++ .../eip712-rarible-exchange-wrapper.json | 60 + .../smartcredit/eip712-smartcredit.json | 48 + .../starkgate/calldata-StarkGate-STRK.json | 28 + .../registry/swell/calldata-swell.json | 343 +++++ .../calldata-ChsbToBorgMigrator.json | 265 ++++ .../swissborg/calldata-NttManager.json | 775 ++++++++++++ .../calldata-WormholeTransceiver.json | 515 ++++++++ .../eip712-tally-arbitrum-arb-token.json | 36 + .../eip712-tally-arbitrum-core-governor.json | 35 + ...p712-tally-arbitrum-treasury-governor.json | 35 + ...ip712-tally-ethereum-bitcoin-governor.json | 34 + .../eip712-tally-ethereum-bravo-governor.json | 34 + .../eip712-tally-ethereum-ens-governor.json | 35 + .../eip712-tally-ethereum-ens-token.json | 36 + .../eip712-tally-ethereum-gtk-token.json | 35 + .../eip712-tally-ethereum-hop-governor.json | 34 + .../eip712-tally-ethereum-hop-token.json | 35 + .../eip712-tally-ethereum-pool-token.json | 35 + ...-tally-ethereum-pooltogether-governor.json | 34 + .../eip712-tally-ethereum-uni-token.json | 35 + .../registry/tether/calldata-usdt.json | 13 + .../uniswap/calldata-UniswapV3Router02.json | 135 ++ .../uniswap/eip712-UniswapX-DutchOrder.json | 89 ++ .../eip712-UniswapX-ExclusiveDutchOrder.json | 93 ++ .../uniswap/eip712-UniswapX-LimitOrder.json | 69 + .../uniswap/eip712-uniswap-V2DutchOrder.json | 81 ++ .../uniswap/eip712-uniswap-permit2.json | 85 ++ .../uniswap/uniswap-common-eip712.json | 78 ++ .../walletconnect/calldata-stakeweight.json | 185 +++ .../registry/walletconnect/calldata-wct.json | 17 + .../calldata-yieldxyz-usde-vault.json | 10 + 211 files changed, 15810 insertions(+), 6 deletions(-) create mode 100644 src/chain_parsers/visualsign-ethereum/build.rs create mode 100644 src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs create mode 100644 src/chain_parsers/visualsign-ethereum/src/provider/mod.rs create mode 100644 src/chain_parsers/visualsign-ethereum/src/registry.rs create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json diff --git a/src/Cargo.lock b/src/Cargo.lock index c774f570..dbd339d0 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -3715,6 +3715,25 @@ dependencies = [ "syn 2.0.104", ] +[[package]] +name = "include_dir" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" +dependencies = [ + "include_dir_macros", +] + +[[package]] +name = "include_dir_macros" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" +dependencies = [ + "proc-macro2", + "quote", +] + [[package]] name = "indenter" version = "0.3.3" @@ -5299,7 +5318,7 @@ dependencies = [ "serde", "serde_json", "sha2 0.10.9", - "visualsign", + "visualsign 0.1.0", "visualsign-ethereum", "visualsign-solana", "visualsign-sui", @@ -5319,7 +5338,7 @@ dependencies = [ "serde", "serde_json", "sha2 0.10.9", - "visualsign", + "visualsign 0.1.0", "visualsign-solana", "visualsign-unspecified", ] @@ -5468,6 +5487,16 @@ dependencies = [ "phf_shared", ] +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator", + "phf_shared", +] + [[package]] name = "phf_generator" version = "0.11.3" @@ -10777,6 +10806,34 @@ dependencies = [ "thiserror 2.0.12", ] +[[package]] +name = "visualsign" +version = "0.1.0" +source = "git+ssh://git@github.com/anchorageoss/visualsign-parser.git?branch=main#db12a545d43535a491ac06db37e009ca6344300b" +dependencies = [ + "base64 0.22.1", + "pretty_assertions", + "serde", + "serde_json", + "thiserror 2.0.12", +] + +[[package]] +name = "visualsign-erc7730-adapter" +version = "0.1.0" +source = "git+ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git?branch=alloy-version-bump-1.0.20#26d328f3f456b37672dc8e80e32f518397874413" +dependencies = [ + "alloy-consensus", + "alloy-primitives", + "alloy-rlp", + "anyhow", + "clap", + "hex", + "serde", + "serde_json", + "visualsign 0.1.0 (git+ssh://git@github.com/anchorageoss/visualsign-parser.git?branch=main)", +] + [[package]] name = "visualsign-ethereum" version = "0.1.0" @@ -10787,11 +10844,16 @@ dependencies = [ "alloy-rlp", "base64 0.22.1", "hex", + "include_dir", "log", + "once_cell", + "phf", + "phf_codegen", "serde", "serde_json", "thiserror 2.0.12", - "visualsign", + "visualsign 0.1.0", + "visualsign-erc7730-adapter", ] [[package]] @@ -10810,7 +10872,7 @@ dependencies = [ "spl-associated-token-account 6.0.0", "spl-stake-pool", "spl-token 7.0.0", - "visualsign", + "visualsign 0.1.0", ] [[package]] @@ -10826,14 +10888,14 @@ dependencies = [ "sui-json", "sui-json-rpc-types", "sui-types", - "visualsign", + "visualsign 0.1.0", ] [[package]] name = "visualsign-unspecified" version = "0.1.0" dependencies = [ - "visualsign", + "visualsign 0.1.0", ] [[package]] diff --git a/src/chain_parsers/visualsign-ethereum/Cargo.toml b/src/chain_parsers/visualsign-ethereum/Cargo.toml index 5a9e57b9..d34656d9 100644 --- a/src/chain_parsers/visualsign-ethereum/Cargo.toml +++ b/src/chain_parsers/visualsign-ethereum/Cargo.toml @@ -15,3 +15,13 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" thiserror = "2.0.12" visualsign = { workspace = true } +visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "alloy-version-bump-1.0.20" } +once_cell = "1" +include_dir = "0.7" # retained temporarily (can be removed if no longer used) +phf = { version = "0.11", features = ["macros"] } + +[build-dependencies] +phf_codegen = "0.11" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "alloy-version-bump-1.0.20" } diff --git a/src/chain_parsers/visualsign-ethereum/build.rs b/src/chain_parsers/visualsign-ethereum/build.rs new file mode 100644 index 00000000..897ea976 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/build.rs @@ -0,0 +1,207 @@ +use serde::Deserialize; +use std::collections::HashMap; +use std::{env, fs, io::Write, path::PathBuf}; + +fn main() { + // Directory containing the JSON registry specs + let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); + let registry_dir = manifest_dir.join("static/eip7730/registry"); + println!("cargo:rerun-if-changed={}", registry_dir.display()); + + let mut entries: Vec = Vec::new(); + + visit_dir(®istry_dir, &mut |path, contents| { + if let Some(ext) = path.extension().and_then(|e| e.to_str()) { + if ext != "json" { + return; + } + } else { + return; + } + // Primary parse via adapter + let mut parsed_any = false; + if let Ok(spec) = visualsign_erc7730_adapter::types::ERC7730::from_json(contents) { + if let Some(display) = spec.display { + for (selector, format) in display.formats.into_iter() { + if selector.len() == 10 && selector.starts_with("0x") { + let fields: Vec<_> = format + .fields + .into_iter() + .map(|f| SimpleField { + label: f.label, + path: f.path, + }) + .collect(); + entries.push(RegistryEntry { + selector, + format_id: format.id, + source_file: path + .strip_prefix(®istry_dir) + .unwrap() + .to_string_lossy() + .to_string(), + fields, + }); + parsed_any = true; + } + } + } + } + if !parsed_any { + // Fallback lightweight parse of display.formats[*].fields + #[derive(Deserialize)] + struct FbField { + label: Option, + path: Option, + } + #[derive(Deserialize)] + struct FbFormat { + #[serde(rename = "$id")] + id: Option, + fields: Option>, + } + #[derive(Deserialize)] + struct FbDisplay { + formats: HashMap, + } + #[derive(Deserialize)] + struct FbSpec { + display: Option, + } + if let Ok(fb) = serde_json::from_str::(contents) { + if let Some(display) = fb.display { + for (selector, fmt) in display.formats.into_iter() { + if selector.len() == 10 && selector.starts_with("0x") { + let fields: Vec<_> = fmt + .fields + .unwrap_or_default() + .into_iter() + .map(|f| SimpleField { + label: f.label.unwrap_or_default(), + path: f.path.unwrap_or_default(), + }) + .collect(); + entries.push(RegistryEntry { + selector, + format_id: fmt.id, + source_file: path + .strip_prefix(®istry_dir) + .unwrap() + .to_string_lossy() + .to_string(), + fields, + }); + } + } + } + } + } + }); + + // Generate Rust code + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let dest_path = out_dir.join("erc7730_registry_gen.rs"); + let mut file = fs::File::create(&dest_path).unwrap(); + + // De-duplicate selectors grouping indexes + let mut selector_map: HashMap> = HashMap::new(); + for (idx, e) in entries.iter().enumerate() { + selector_map + .entry(e.selector.clone()) + .or_default() + .push(idx); + } + + writeln!( + file, + "// @generated automatically by build.rs; DO NOT EDIT\n" + ) + .unwrap(); + writeln!( + file, + "#[derive(Debug)] pub struct GenField {{ pub label: &'static str, pub path: &'static str }}" + ) + .unwrap(); + writeln!(file, "#[derive(Debug)] pub struct GenFormat {{ pub source_file: &'static str, pub selector: &'static str, pub format_id: Option<&'static str>, pub fields: &'static [GenField] }}").unwrap(); + + // Emit fields and formats as separate static arrays for reuse + for (i, entry) in entries.iter().enumerate() { + write!( + file, + "static FIELDS_{i}: [GenField; {}] = [", + entry.fields.len() + ) + .unwrap(); + for f in &entry.fields { + write!( + file, + "GenField {{ label: \"{}\", path: \"{}\" }},", + escape(&f.label), + escape(&f.path) + ) + .unwrap(); + } + writeln!(file, "];\n").unwrap(); + let format_id = entry + .format_id + .as_ref() + .map(|s| format!("Some(\"{}\")", escape(s))) + .unwrap_or_else(|| "None".to_string()); + writeln!(file, "static FORMAT_{i}: GenFormat = GenFormat {{ source_file: \"{}\", selector: \"{}\", format_id: {format_id}, fields: &FIELDS_{i} }};\n", escape(&entry.source_file), escape(&entry.selector)).unwrap(); + } + + // Build per-selector format slices + let mut grouped: Vec<(&String, &Vec)> = selector_map.iter().collect(); + grouped.sort_by(|a, b| a.0.cmp(b.0)); + for (idx, (_sel, list)) in grouped.iter().enumerate() { + write!( + file, + "static FORMATS_FOR_{idx}: [&GenFormat; {}] = [", + list.len() + ) + .unwrap(); + for fi in *list { + write!(file, "&FORMAT_{fi},").unwrap(); + } + writeln!(file, "];\n").unwrap(); + } + + // phf map: selector -> slice of &GenFormat + writeln!(file, "pub static SELECTOR_MAP: phf::Map<&'static str, &'static [&'static GenFormat]> = phf::phf_map! {{").unwrap(); + for (idx, (sel, _)) in grouped.iter().enumerate() { + writeln!(file, " \"{}\" => &FORMATS_FOR_{idx},", escape(sel)).unwrap(); + } + writeln!(file, "}};\n").unwrap(); +} + +#[derive(Debug)] +struct RegistryEntry { + selector: String, + format_id: Option, + source_file: String, + fields: Vec, +} +#[derive(Debug)] +struct SimpleField { + label: String, + path: String, +} + +fn visit_dir(dir: &std::path::Path, cb: &mut F) { + if let Ok(read_dir) = std::fs::read_dir(dir) { + for entry in read_dir.flatten() { + let path = entry.path(); + if path.is_dir() { + visit_dir(&path, cb); + } else if let Ok(bytes) = std::fs::read(&path) { + if let Ok(s) = String::from_utf8(bytes) { + cb(&path, &s); + } + } + } + } +} + +fn escape(s: &str) -> String { + s.replace('"', "\\\"") +} diff --git a/src/chain_parsers/visualsign-ethereum/src/lib.rs b/src/chain_parsers/visualsign-ethereum/src/lib.rs index ba627e60..93519993 100644 --- a/src/chain_parsers/visualsign-ethereum/src/lib.rs +++ b/src/chain_parsers/visualsign-ethereum/src/lib.rs @@ -12,6 +12,8 @@ use visualsign::{ }; pub mod chains; +pub mod provider; +pub mod registry; #[derive(Debug, Eq, PartialEq, thiserror::Error)] pub enum EthereumParserError { diff --git a/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs b/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs new file mode 100644 index 00000000..e471bc61 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs @@ -0,0 +1,30 @@ +use crate::registry; +use visualsign::{SignablePayload, SignablePayloadField}; +use crate::decode_transaction_bytes; // reuse low-level decoder +use alloy_consensus::Transaction as _; // bring trait into scope for .input() + +/// Decode a raw Ethereum transaction (RLP bytes) into SignablePayloadFields using the +/// embedded ERC-7730 registry. Returns None if decoding fails or no registry match. +pub fn decode_raw_transaction_to_fields(raw: &[u8]) -> Option> { + let tx = decode_transaction_bytes(raw).ok()?; + // Only legacy and EIP-1559 currently supported for calldata extraction here + let input: Vec = match &tx { + alloy_consensus::TypedTransaction::Legacy(t) => t.input().to_vec(), + alloy_consensus::TypedTransaction::Eip1559(t) => t.input().to_vec(), + _ => return None, + }; + if input.is_empty() { return None; } + registry::decode_calldata(&input) +} + +/// Convenience function building a SignablePayload with fields derived from registry. +pub fn decode_raw_transaction_to_payload(raw: &[u8]) -> Option { + let fields = decode_raw_transaction_to_fields(raw)?; + Some(SignablePayload { + fields, + payload_type: "ethereum_tx".to_string(), + subtitle: None, + title: "Ethereum Transaction".to_string(), + version: "1".to_string(), + }) +} diff --git a/src/chain_parsers/visualsign-ethereum/src/provider/mod.rs b/src/chain_parsers/visualsign-ethereum/src/provider/mod.rs new file mode 100644 index 00000000..34706124 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/src/provider/mod.rs @@ -0,0 +1,2 @@ +pub mod eip7730; + diff --git a/src/chain_parsers/visualsign-ethereum/src/registry.rs b/src/chain_parsers/visualsign-ethereum/src/registry.rs new file mode 100644 index 00000000..4d97ab23 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/src/registry.rs @@ -0,0 +1,179 @@ +// Generated compile-time data (GenField, GenFormat, SELECTOR_MAP) +include!(concat!(env!("OUT_DIR"), "/erc7730_registry_gen.rs")); +use visualsign::{SignablePayloadField, SignablePayloadFieldCommon, SignablePayloadFieldTextV2}; + +/// Given calldata bytes, attempt to produce SignablePayloadFields using the registry. +/// Current implementation is heuristic and does not ABI-decode parameters; it surfaces field +/// labels and paths as plain text fields. Future improvements can plug proper ABI decoding. +pub fn decode_calldata(calldata: &[u8]) -> Option> { + if calldata.len() < 4 { + return None; + } + let selector_hex = format!( + "0x{:08x}", + u32::from_be_bytes([calldata[0], calldata[1], calldata[2], calldata[3]]) + ); + let formats = SELECTOR_MAP.get(&*selector_hex)?; + let format = formats.first()?; + let mut fields = Vec::new(); + for f in format.fields.iter() { + let label = f.label.to_string(); + let text_content = f.path.to_string(); + fields.push(SignablePayloadField::TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: text_content.clone(), + label, + }, + text_v2: SignablePayloadFieldTextV2 { text: text_content }, + }); + } + if fields.is_empty() { + // Provide at least a raw calldata field if nothing matched + fields.push(SignablePayloadField::TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: selector_hex.clone(), + label: "Function Selector".into(), + }, + text_v2: SignablePayloadFieldTextV2 { text: selector_hex }, + }); + } + Some(fields) +} + +#[cfg(test)] +mod tests { + use super::*; + use hex::FromHex; + + // Helper to build calldata from selector hex string like "0x04e45aaf" + fn calldata_from_selector(selector: &str) -> Vec { + let clean = selector.trim_start_matches("0x"); + let bytes = <[u8; 4]>::from_hex(clean).unwrap(); + bytes.to_vec() // no args appended for these tests + } + + #[test] + fn registry_is_populated() { + assert!( + SELECTOR_MAP.entries().len() > 0, + "Registry map should not be empty" + ); + } + + #[test] + fn known_uniswap_selector_present() { + // From calldata-UniswapV3Router02.json: selector 0x04e45aaf (exactInputSingle) + let selector = "0x04e45aaf"; + let formats = SELECTOR_MAP.get(selector).expect("selector present"); + assert!( + !formats.is_empty(), + "Registered formats list should not be empty" + ); + let first = formats[0]; + assert!( + first.fields.iter().any(|f| f.label == "Send"), + "Expected a field with label 'Send'" + ); + } + + #[test] + fn decode_calldata_returns_fields_for_known_selector() { + let selector = "0x04e45aaf"; // exactInputSingle + let calldata = calldata_from_selector(selector); + let fields = decode_calldata(&calldata).expect("Should decode fields"); + // Expect at least the number of fields defined in spec (we know some exist) + assert!( + fields.len() >= 3, + "Expected at least 3 fields, got {}", + fields.len() + ); + // Ensure labels preserved + let labels: Vec<_> = fields.iter().map(|f| f.label().clone()).collect(); + assert!( + labels.iter().any(|l| l == "Send"), + "Missing 'Send' label in decoded fields: {:?}", + labels + ); + } + + #[test] + fn decode_calldata_unknown_selector_returns_none() { + // Random selector unlikely to exist + let calldata = calldata_from_selector("0xdeadbeef"); + assert!(decode_calldata(&calldata).is_none()); + } + + #[test] + fn decode_calldata_short_input_returns_none() { + assert!(decode_calldata(&[0x01, 0x02, 0x03]).is_none()); + } + + #[test] + fn decode_calldata_with_additional_arguments() { + // Use known selector and append arbitrary bytes simulating encoded params + let selector = "0x04e45aaf"; // exactInputSingle + let mut calldata = calldata_from_selector(selector); + // Append 32 bytes (typical ABI word) of zeros + calldata.extend_from_slice(&[0u8; 32]); + let fields = decode_calldata(&calldata).expect("Should decode with extra args"); + assert!( + fields.len() >= 3, + "Expected at least 3 fields with args present" + ); + } + + #[test] + fn decode_calldata_is_deterministic() { + let selector = "0x04e45aaf"; + let calldata = calldata_from_selector(selector); + let a = decode_calldata(&calldata).unwrap(); + let b = decode_calldata(&calldata).unwrap(); + assert_eq!(a, b, "Decoding same calldata should be deterministic"); + } + + #[test] + fn first_format_field_count_matches_decoded_count_for_all_selectors() { + // For every selector ensure decode returns exactly the number of fields in the first format + // (current implementation uses the first format only) + for (selector, formats) in SELECTOR_MAP.entries() { + if formats.is_empty() { + continue; + } + let first = formats[0]; + // Build calldata bytes + let mut raw = Vec::new(); + let hex = selector.trim_start_matches("0x"); + let bytes = <[u8; 4]>::from_hex(hex).expect("valid selector hex"); + raw.extend_from_slice(&bytes); + let decoded = decode_calldata(&raw).expect("should decode"); + assert_eq!( + decoded.len(), + first.fields.len(), + "selector {selector} field count mismatch" + ); + } + } + + #[test] + fn decoded_fields_have_non_empty_labels_and_fallback_text() { + // Sample up to first 25 selectors to keep test lean + for (i, (selector, _)) in SELECTOR_MAP.entries().enumerate() { + if i >= 25 { + break; + } + let mut raw = Vec::new(); + let hex = selector.trim_start_matches("0x"); + let bytes = <[u8; 4]>::from_hex(hex).expect("valid selector hex"); + raw.extend_from_slice(&bytes); + let decoded = decode_calldata(&raw).expect("decode"); + for f in decoded { + let label_empty = f.label().is_empty(); + let fb_empty = f.fallback_text().is_empty(); + assert!( + !(label_empty && fb_empty), + "selector {selector} has both empty label and fallback_text" + ); + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes b/src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes new file mode 100644 index 00000000..459bdd16 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes @@ -0,0 +1,2 @@ +ercs/**/*.json linguist-generated +registry/**/*.json linguist-generated diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json new file mode 100644 index 00000000..f18f120f --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json @@ -0,0 +1,65 @@ +{ + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "abi": [ + { + "constant": false, + "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], + "name": "approve", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], + "name": "transfer", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + } + ] + } + }, + "display": { + "formats": { + "transfer(address,uint256)": { + "intent": "Send", + "fields": [ + { "path": "_to", "label": "To", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { + "path": "_value", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "$.context.contract.deployments.[0].address" } + } + ], + "required": ["_to", "_value"] + }, + "approve(address,uint256)": { + "intent": "Approve", + "fields": [ + { + "path": "_spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + }, + { + "path": "_value", + "label": "Amount", + "format": "tokenAmount", + "params": { + "token": "$.context.contract.deployments.[0].address", + "threshold": "0x8000000000000000000000000000000000000000000000000000000000000000" + } + } + ], + "required": ["_spender", "_value"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json new file mode 100644 index 00000000..675de030 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json @@ -0,0 +1,80 @@ +{ + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "abi": [ + { + "inputs": [{ "name": "assets", "type": "uint256" }, { "name": "receiver", "type": "address" }], + "name": "deposit", + "type": "function" + }, + { + "inputs": [{ "name": "shares", "type": "uint256" }, { "name": "receiver", "type": "address" }], + "name": "mint", + "type": "function" + }, + { + "inputs": [{ "name": "assets", "type": "uint256" }, { "name": "receiver", "type": "address" }, { "name": "owner", "type": "address" }], + "name": "withdraw", + "type": "function" + }, + { + "inputs": [{ "name": "shares", "type": "uint256" }, { "name": "receiver", "type": "address" }, { "name": "owner", "type": "address" }], + "name": "redeem", + "type": "function" + } + ] + } + }, + "metadata": { "constants": { "underlyingToken": "0x0" } }, + "display": { + "formats": { + "deposit(uint256 assets, address receiver)": { + "intent": "Deposit", + "fields": [ + { + "path": "assets", + "label": "Deposit asset", + "format": "tokenAmount", + "params": { "token": "$.metadata.constants.underlyingToken" } + }, + { "label": "Receive shares", "format": "raw", "value": "$.metadata.constants.vaultTicker" }, + { "path": "receiver", "label": "Send shares to", "format": "addressName", "params": { "types": ["eoa", "contract"] } } + ], + "required": ["assets", "receiver"] + }, + "mint(uint256 shares, address receiver)": { + "intent": "Mint", + "fields": [ + { "label": "Deposit asset", "format": "raw", "value": "$.metadata.constants.underlyingTicker" }, + { "path": "shares", "label": "Minted shares", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, + { "path": "receiver", "label": "Mint shares to", "format": "addressName", "params": { "types": ["eoa", "contract"] } } + ], + "required": ["assets", "receiver"] + }, + "withdraw(uint256 assets,address receiver,address owner)": { + "intent": "Withdraw", + "fields": [ + { + "path": "assets", + "label": "Withdraw exactly", + "format": "tokenAmount", + "params": { "token": "$.metadata.constants.underlyingToken" } + }, + { "path": "receiver", "label": "To", "format": "addressName", "params": { "types": ["eoa", "contract"] } }, + { "path": "owner", "label": "Owner", "format": "addressName", "params": { "types": ["eoa", "contract"] } } + ], + "required": ["assets", "receiver", "owner"] + }, + "redeem(uint256 shares,address receiver,address owner)": { + "intent": "Redeem", + "fields": [ + { "path": "shares", "label": "Redeem exactly", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, + { "path": "receiver", "label": "To", "format": "addressName", "params": { "types": ["eoa", "contract"] } }, + { "path": "owner", "label": "Owner", "format": "addressName", "params": { "types": ["eoa", "contract"] } } + ], + "required": ["assets", "receiver", "owner"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json new file mode 100644 index 00000000..3e741913 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json @@ -0,0 +1,79 @@ +{ + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "abi": [ + { + "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], + "name": "transferFrom", + "type": "function" + }, + { + "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], + "name": "safeTransferFrom", + "type": "function" + }, + { + "inputs": [{ "name": "_approved", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], + "name": "approve", + "type": "function" + }, + { + "inputs": [{ "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" }], + "name": "setApprovalForAll", + "type": "function" + } + ] + } + }, + "metadata": { "enums": { "rights": { "True": "Grant all", "False": "Deny all" } } }, + "display": { + "definitions": { + "from": { "label": "From", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + "to": { "label": "To", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + "operator": { "label": "Operator", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } }, + "tokenId": { "label": "NFT", "format": "nftName", "params": { "collectionPath": "@.to" } } + }, + "formats": { + "transferFrom(address,address,uint256)": { + "intent": "Send NFT", + "fields": [ + { "path": "_from", "$ref": "$.display.definitions.from" }, + { "path": "_to", "$ref": "$.display.definitions.to" }, + { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } + ], + "required": ["_to", "_tokenId"] + }, + "safeTransferFrom(address,address,uint256)": { + "intent": "Send NFT", + "fields": [ + { "path": "_from", "$ref": "$.display.definitions.from" }, + { "path": "_to", "$ref": "$.display.definitions.to" }, + { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } + ], + "required": ["_spender", "_value"] + }, + "approve(address,uint256)": { + "intent": "Approve operator for NFT", + "fields": [ + { "path": "_approved", "$ref": "$.display.definitions.operator" }, + { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } + ] + }, + "setApprovalForAll(address,bool)": { + "$id": "setApprovalForAll", + "intent": "Manage operator rights for", + "fields": [ + { + "path": "@.to", + "label": "Collection", + "format": "addressName", + "params": { "types": ["collection"], "sources": ["local", "ens"] } + }, + { "path": "_operator", "$ref": "$.display.definitions.operator" }, + { "path": "_approved", "label": "Access rights", "format": "enum", "params": { "$ref": "$.metadata.enums.rights" } } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json new file mode 100644 index 00000000..80a55cdd --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json @@ -0,0 +1,42 @@ +{ + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Permit": [ + { "name": "owner", "type": "address" }, + { "name": "spender", "type": "address" }, + { "name": "value", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + }, + "primaryType": "Permit" + } + ] + } + }, + "display": { + "formats": { + "Permit": { + "intent": "Authorize spending of tokens", + "fields": [ + { "path": "spender", "label": "Spender", "format": "raw" }, + { "path": "value", "label": "Max spending amount", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, + { "path": "deadline", "label": "Valid until", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["spender", "value"], + "excluded": ["owner", "nonce"], + "screens": {} + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json new file mode 100644 index 00000000..bf6197fd --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json @@ -0,0 +1,78 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "AggregationRouterV3", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x11111112542d85b3ef69ae05771c2dccff4faa26", + "deployments": [ + { "chainId": 1, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" }, + { "chainId": 56, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" }, + { "chainId": 137, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" } + ] + } + }, + "metadata": { + "owner": "1inch", + "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "deploymentDate": "2021-03-14T20:28:50Z" }, + "constants": { + "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + "addressAsNull": "0x0000000000000000000000000000000000000000" + } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, + "beneficiary": { "label": "Beneficiary", "format": "addressName" } + }, + "formats": { + "swap(address caller, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)": { + "$id": "swap", + "intent": "Swap", + "fields": [ + { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, + { + "path": "desc.minReturnAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "desc.dstToken" } + }, + { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], + "excluded": ["caller", "desc.srcReceiver", "desc.flags", "desc.permit", "data"] + }, + "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)": { + "$id": "unoswap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"], + "excluded": ["pools"] + }, + "unoswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit)": { + "$id": "unoswapWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "pools"], + "excluded": ["permit"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json new file mode 100644 index 00000000..11c119dd --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json @@ -0,0 +1,46 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-AggregationRouterV4.json", + "context": { + "$id": "AggregationRouterV4", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254fb6c44bac0bed2854e76f90643097d", + "deployments": [{ "chainId": 1, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }] + } + }, + "display": { + "formats": { + "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)": { + "$id": "clipperSwap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"] + }, + "clipperSwapTo(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn)": { + "$id": "clipperSwapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"] + }, + "clipperSwapToWithPermit(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn, bytes permit)": { + "$id": "clipperSwapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"], + "excluded": ["permit"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json new file mode 100644 index 00000000..40605342 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-AggregationRouterV4.json", + "context": { + "$id": "AggregationRouterV4", + "contract": { + "abi": "https://api.etherscan.io/v2/api?module=contract&action=getabi&chainid=56&address=0x1111111254fb6c44bac0bed2854e76f90643097d", + "deployments": [ + { "chainId": 56, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }, + { "chainId": 137, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" } + ] + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json new file mode 100644 index 00000000..9416c975 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json @@ -0,0 +1,166 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "AggregationRouterV5", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254eeb25477b68fb85ed929f73a960582", + "deployments": [ + { "chainId": 1, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 10, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 56, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 137, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 42161, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" } + ] + } + }, + "metadata": { + "owner": "1inch", + "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "deploymentDate": "2022-11-04T06:04:59Z" }, + "constants": { + "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + "addressAsNull": "0x0000000000000000000000000000000000000000" + } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, + "beneficiary": { "label": "Beneficiary", "format": "addressName" }, + "expirationTime": { "label": "Expiration time", "format": "date", "params": { "encoding": "timestamp" } } + }, + "formats": { + "swap(address executor, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags) desc, bytes permit, bytes data)": { + "$id": "swap", + "intent": "Swap", + "fields": [ + { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, + { + "path": "desc.minReturnAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "desc.dstToken" } + }, + { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], + "excluded": ["executor", "desc.srcReceiver", "desc.flags", "permit", "data"] + }, + "unoswap(address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "unoswap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "pools"], + "excluded": [] + }, + "unoswapTo(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "unoswapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "recipient", "pools"], + "excluded": [] + }, + "unoswapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)": { + "$id": "unoswapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "recipient", "pools"], + "excluded": ["permit"] + }, + "uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "uniswapV3Swap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount" }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "pools"], + "excluded": [] + }, + "uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "uniswapV3SwapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount" }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "recipient", "pools"], + "excluded": [] + }, + "uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)": { + "$id": "uniswapV3SwapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "recipient", "pools"], + "excluded": ["permit"] + }, + "clipperSwap(address clipperExchange, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { + "$id": "clipperSwap", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["inputAmount", "outputAmount", "@.from", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs"] + }, + "clipperSwapTo(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { + "$id": "clipperSwapTo", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs"] + }, + "clipperSwapToWithPermit(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs, bytes permit)": { + "$id": "clipperSwapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs", "permit"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json new file mode 100644 index 00000000..6f434e1a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json @@ -0,0 +1,11 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-AggregationRouterV6.json", + "context": { + "$id": "AggregationRouterV6", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x111111125421cA6dc452d289314280a0f8842A65", + "deployments": [{ "chainId": 324, "address": "0x6fd4383cB451173D5f9304F041C7BCBf27d561fF" }] + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json new file mode 100644 index 00000000..08efb6cc --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json @@ -0,0 +1,51 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-AggregationRouterV6.json", + "context": { + "$id": "AggregationRouterV6", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x111111125421cA6dc452d289314280a0f8842A65", + "deployments": [ + { "chainId": 1, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 10, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 56, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 100, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 137, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 250, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 8217, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 8453, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 42161, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 43114, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 1313161554, "address": "0x111111125421cA6dc452d289314280a0f8842A65" } + ] + } + }, + "display": { + "formats": { + "clipperSwap(address clipperExchange, uint256 srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { + "$id": "clipperSwap", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken.[-20:]" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["srcToken", "dstToken", "inputAmount", "outputAmount", "@.from", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs"] + }, + "clipperSwapTo(address clipperExchange, address recipient, uint256 srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { + "$id": "clipperSwapTo", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken.[-20:]" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["srcToken", "dstToken", "inputAmount", "outputAmount", "recipient", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json new file mode 100644 index 00000000..a2206ae9 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json @@ -0,0 +1,178 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + + "metadata": { + "owner": "1inch", + "info": { + "url": "https://1inch.io/", + "legalName": "1inch Network", + "deploymentDate": "2021-11-05T10:18:09Z" + }, + "constants": { + "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + "addressAsNull": "0x0000000000000000000000000000000000000000" + } + }, + + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { + "nativeCurrencyAddress": [ + "$.metadata.constants.addressAsEth", + "$.metadata.constants.addressAsNull" + ] + } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { + "nativeCurrencyAddress": [ + "$.metadata.constants.addressAsEth", + "$.metadata.constants.addressAsNull" + ] + } + }, + "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, + "beneficiary": { + "label": "Beneficiary", + "format": "addressName" + } + }, + "formats": { + "swap(address caller, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)" : { + "$id": "swap", + "intent": "Swap", + "fields": [ + { + "path": "desc.amount", + "$ref": "$.display.definitions.sendAmount", + "params": { "tokenPath": "desc.srcToken" } + }, + { + "path": "desc.minReturnAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "desc.dstToken" } + }, + { + "path": "desc.dstReceiver", + "$ref": "$.display.definitions.beneficiary" + } + ], + "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], + "excluded": ["caller", "desc.srcReceiver", "desc.flags", "desc.permit", "data"] + }, + "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)" : { + "$id": "unoswap", + "intent": "Swap", + "fields": [ + { + "path": "amount", + "$ref": "$.display.definitions.sendAmount", + "params": { "tokenPath": "srcToken" } + }, + { + "path": "minReturn", + "$ref": "$.display.definitions.minReceiveAmount" + }, + { + "path": "@.from", + "$ref": "$.display.definitions.beneficiary" + }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "pools"], + "excluded": [] + }, + "unoswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit)" : { + "$id": "unoswapWithPermit", + "intent": "Swap", + "fields": [ + { + "path": "amount", + "$ref": "$.display.definitions.sendAmount", + "params": { "tokenPath": "srcToken" } + }, + { + "path": "minReturn", + "$ref": "$.display.definitions.minReceiveAmount" + }, + { + "path": "@.from", + "$ref": "$.display.definitions.beneficiary" + }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "pools"], + "excluded": ["permit"] + }, + "uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools)" : { + "$id": "uniswapV3Swap", + "intent": "Swap", + "fields": [ + { + "path": "amount", + "$ref": "$.display.definitions.sendAmount" + }, + { + "path": "minReturn", + "$ref": "$.display.definitions.minReceiveAmount" + }, + { + "path": "@.from", + "$ref": "$.display.definitions.beneficiary" + }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "pools"], + "excluded": [] + }, + "uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools)" : { + "$id": "uniswapV3SwapTo", + "intent": "Swap", + "fields": [ + { + "path": "amount", + "$ref": "$.display.definitions.sendAmount" + }, + { + "path": "minReturn", + "$ref": "$.display.definitions.minReceiveAmount" + }, + { + "path": "recipient", + "$ref": "$.display.definitions.beneficiary" + }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "recipient", "pools"], + "excluded": [] + }, + "uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)" : { + "$id": "uniswapV3SwapToWithPermit", + "intent": "Swap", + "fields": [ + { + "path": "amount", + "$ref": "$.display.definitions.sendAmount", + "params": { "tokenPath": "srcToken" } + }, + { + "path": "minReturn", + "$ref": "$.display.definitions.minReceiveAmount" + }, + { + "path": "recipient", + "$ref": "$.display.definitions.beneficiary" + }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "recipient", "pools"], + "excluded": ["permit"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json new file mode 100644 index 00000000..c7d1bdd5 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json @@ -0,0 +1,212 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "metadata": { + "owner": "1inch", + "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "deploymentDate": "2024-02-12T03:44:35Z" }, + "constants": { + "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + "addressAsNull": "0x0000000000000000000000000000000000000000" + } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "beneficiary": { "label": "Beneficiary", "format": "addressName" }, + "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, + "expirationTime": { "label": "Expiration time", "format": "date", "params": { "encoding": "timestamp" } } + }, + "formats": { + "swap(address executor, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags) desc, bytes data)": { + "$id": "swap", + "intent": "Swap", + "fields": [ + { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, + { + "path": "desc.minReturnAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "desc.dstToken" } + }, + { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], + "excluded": ["executor", "desc.srcReceiver", "desc.flags", "data"] + }, + "unoswap(uint256 token, uint256 amount, uint256 minReturn, uint256 dex)": { + "$id": "unoswap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "dex"] + }, + "unoswap2(uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2)": { + "$id": "unoswap2", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "dex2"], + "excluded": ["dex"] + }, + "unoswap3(uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)": { + "$id": "unoswap3", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "@.from", "dex3"], + "excluded": ["dex", "dex2"] + }, + "unoswapTo(uint256 to, uint256 token, uint256 amount, uint256 minReturn, uint256 dex)": { + "$id": "unoswapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "to", "dex"] + }, + "unoswapTo2(uint256 to, uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2)": { + "$id": "unoswapTo2", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "to", "dex2"], + "excluded": ["dex"] + }, + "unoswapTo3(uint256 to, uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)": { + "$id": "unoswapTo3", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amount", "minReturn", "to", "dex3"], + "excluded": ["dex", "dex2"] + }, + "ethUnoswap(uint256 minReturn, uint256 dex)" : { + "$id": "ethUnoswap", + "intent": "Swap", + "fields": [ + { "path": "@.value", "label": "Amount to Send", "format": "amount" }, + { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["minReturn", "@.value", "@.from", "dex"] + }, + "ethUnoswap2(uint256 minReturn, uint256 dex, uint256 dex2)" : { + "$id": "ethUnoswap2", + "intent": "Swap", + "fields": [ + { "path": "@.value", "label": "Amount to Send", "format": "amount" }, + { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["minReturn", "@.value", "@.from", "dex2"], + "excluded": ["dex"] + }, + "ethUnoswap3(uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)" : { + "$id": "ethUnoswap3", + "intent": "Swap", + "fields": [ + { "path": "@.value", "label": "Amount to Send", "format": "amount" }, + { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["minReturn", "@.value", "@.from", "dex3"], + "excluded": ["dex", "dex2"] + }, + "ethUnoswapTo(uint256 to, uint256 minReturn, uint256 dex)" : { + "$id": "ethUnoswapTo", + "intent": "Swap", + "fields": [ + { "path": "@.value", "label": "Amount to Send", "format": "amount" }, + { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["minReturn", "to", "@.value", "dex"] + }, + "ethUnoswapTo2(uint256 to, uint256 minReturn, uint256 dex, uint256 dex2)" : { + "$id": "ethUnoswapTo2", + "intent": "Swap", + "fields": [ + { "path": "@.value", "label": "Amount to Send", "format": "amount" }, + { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["minReturn", "to", "@.value", "dex2"], + "excluded": ["dex"] + }, + "ethUnoswapTo3(uint256 to, uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)" : { + "$id": "ethUnoswapTo3", + "intent": "Swap", + "fields": [ + { "path": "@.value", "label": "Amount to Send", "format": "amount" }, + { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, + { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["minReturn", "to", "@.value", "dex3"], + "excluded": ["dex", "dex2"] + }, + "cancelOrder(uint256 makerTraits, bytes32 orderHash)" : { + "$id": "cancelOrder", + "intent": "Cancel limit order", + "fields": [ + { "path": "orderHash", "label": "Order", "format": "raw" } + ], + "required": ["orderHash"], + "excluded": ["makerTraits"] + }, + "cancelOrders(uint256[] makerTraits, bytes32[] orderHashes)" : { + "$id": "cancelOrders", + "intent": "Cancel limit orders", + "fields": [ + { "path": "orderHashes.[]", "label": "Order", "format": "raw" } + ], + "required": ["orderHashes"], + "excluded": ["makerTraits"] + }, + "increaseEpoch(uint96 series)" : { + "$id": "increaseEpoch", + "intent": "Cancel all limit orders", + "fields": [ + { "path": "@.from", "label": "Orders maker", "format": "raw" } + ], + "required": ["@.from"], + "excluded": ["series"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json new file mode 100644 index 00000000..6a62311a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json @@ -0,0 +1,76 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [ + { "chainId": 1, "address": "0x119c71d3bbac22029622cbaec24854d3d32d2828" }, + { "chainId": 10, "address": "0x11431a89893025d2a48dca4eddc396f8c8117187" }, + { "chainId": 56, "address": "0x1e38eff998df9d3669e32f4ff400031385bf6362" }, + { "chainId": 137, "address": "0x94bc2a1c732bcad7343b25af48385fe76e08734f" }, + { "chainId": 42161, "address": "0x7f069df72b7a39bce9806e3afaf579e54d8cf2b9" } + ], + "domain": { "name": "Permit2" }, + "schemas": [ + { + "primaryType": "OrderStructure", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "OrderStructure": [ + { "name": "salt", "type": "uint256" }, + { "name": "maker", "type": "address" }, + { "name": "receiver", "type": "address" }, + { "name": "makerAsset", "type": "address" }, + { "name": "takerAsset", "type": "address" }, + { "name": "makingAmount", "type": "uint256" }, + { "name": "takingAmount", "type": "uint256" }, + { "name": "makerTraits", "type": "uint256" } + ] + } + }, + { + "primaryType": "OrderStructure", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "OrderStructure": [ + { "name": "salt", "type": "uint256" }, + { "name": "makerAsset", "type": "address" }, + { "name": "takerAsset", "type": "address" }, + { "name": "maker", "type": "address" }, + { "name": "receiver", "type": "address" }, + { "name": "allowedSender", "type": "address" }, + { "name": "makingAmount", "type": "uint256" }, + { "name": "takingAmount", "type": "uint256" }, + { "name": "offsets", "type": "uint256" }, + { "name": "interactions", "type": "bytes" } + ] + } + } + ] + } + }, + "metadata": { "owner": "1inch Limit Order Protocol" }, + "display": { + "formats": { + "OrderStructure": { + "intent": "1inch Order", + "fields": [ + { "path": "maker", "label": "From", "format": "raw" }, + { "path": "makingAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "makerAsset" } }, + { "path": "takingAmount", "label": "Receive minimum", "format": "tokenAmount", "params": { "tokenPath": "takerAsset" } }, + { "path": "receiver", "label": "To", "format": "raw" } + ], + "excluded": ["salt", "makerTraits", "interactions", "allowedSender", "offsets"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json new file mode 100644 index 00000000..22e3a099 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json @@ -0,0 +1,60 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [ + { "chainId": 1, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 10, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 56, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 100, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 137, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 250, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 324, "address": "0x6fd4383cB451173D5f9304F041C7BCBf27d561fF" }, + { "chainId": 8217, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 8453, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 42161, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 43114, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, + { "chainId": 1313161554, "address": "0x111111125421cA6dc452d289314280a0f8842A65" } + ], + "domain": { "name": "Permit2" }, + "schemas": [ + { + "primaryType": "Order", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Order": [ + { "name": "salt", "type": "uint256" }, + { "name": "maker", "type": "address" }, + { "name": "receiver", "type": "address" }, + { "name": "makerAsset", "type": "address" }, + { "name": "takerAsset", "type": "address" }, + { "name": "makingAmount", "type": "uint256" }, + { "name": "takingAmount", "type": "uint256" }, + { "name": "makerTraits", "type": "uint256" } + ] + } + } + ] + } + }, + "metadata": { "owner": "1inch AggregationRouterV6" }, + "display": { + "formats": { + "Order": { + "intent": "1inch Order", + "fields": [ + { "path": "maker", "label": "From", "format": "raw" }, + { "path": "makingAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "makerAsset" } }, + { "path": "takingAmount", "label": "Receive minimum", "format": "tokenAmount", "params": { "tokenPath": "takerAsset" } }, + { "path": "receiver", "label": "To", "format": "raw" } + ], + "excluded": ["salt", "makerTraits"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json new file mode 100644 index 00000000..e42ad4b1 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json @@ -0,0 +1,127 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Lending Pool v2", + "contract": { + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/aave/abis/0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9.abi.json", + "deployments": [{ "chainId": 1, "address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9" }] + } + }, + "metadata": { + "owner": "Aave", + "info": { "url": "https://aave.com", "legalName": "Aave DAO", "deploymentDate": "2020-11-30T09:25:48Z" }, + "enums": { "interestRateMode": { "1": "stable", "2": "variable" } }, + "constants": { "max": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } + }, + "display": { + "formats": { + "repay(address,uint256,uint256,address)": { + "$id": "repay", + "intent": "Repay loan", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to repay", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } + }, + { + "path": "rateMode", + "format": "enum", + "label": "Interest rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "For debt holder", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "rateMode", "onBehalfOf"] + }, + "setUserUseReserveAsCollateral(address,bool)": { + "intent": "Manage collateral", + "fields": [ + { + "path": "asset", + "format": "addressName", + "label": "For asset", + "params": { "types": ["token"], "sources": ["local", "ens"] } + }, + { "path": "useAsCollateral", "format": "raw", "label": "Enable use as collateral" } + ], + "required": ["asset", "useAsCollateral"] + }, + "withdraw(address,uint256,address)": { + "intent": "Withdraw", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to withdraw", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "Max" } + }, + { + "path": "to", + "format": "addressName", + "label": "To recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "to"] + }, + "swapBorrowRateMode(address,uint256)": { + "intent": "Swap interest rate mode", + "fields": [ + { + "path": "asset", + "format": "addressName", + "label": "For asset", + "params": { "types": ["token"], "sources": ["local", "ens"] } + }, + { + "path": "rateMode", + "format": "enum", + "label": "Set interest rate mode to", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + } + ], + "required": ["asset", "rateMode"] + }, + "borrow(address,uint256,uint256,uint16,address)": { + "intent": "Borrow", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to borrow", "params": { "tokenPath": "asset" } }, + { + "path": "interestRateMode", + "format": "enum", + "label": "Interest Rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Debtor", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf", "interestRateMode"] + }, + "deposit(address,uint256,address,uint16)": { + "$id": "deposit", + "intent": "Supply", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Collateral recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json new file mode 100644 index 00000000..5f004971 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json @@ -0,0 +1,167 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "PoolInstance", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0xef434e4573b90b6ecd4a00f4888381e4d0cc5ccd", + "deployments": [{ "chainId": 1, "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2" }] + } + }, + "metadata": { + "owner": "Aave", + "info": { "url": "https://aave.com", "legalName": "Aave DAO", "deploymentDate": "2024-10-09T21:46:47Z" }, + "enums": { "interestRateMode": { "1": "stable", "2": "variable" } }, + "constants": { "max": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } + }, + "display": { + "formats": { + "repay(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf)": { + "$id": "repay", + "intent": "Repay loan", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to repay", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } + }, + { + "path": "interestRateMode", + "format": "enum", + "label": "Interest rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "For debt holder", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "interestRateMode", "onBehalfOf"] + }, + "repayWithPermit(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS)": { + "$id": "repayWithPermit", + "intent": "Repay loan", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to repay", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } + }, + { + "path": "interestRateMode", + "format": "enum", + "label": "Interest rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "For debt holder", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "interestRateMode", "onBehalfOf"], + "excluded": ["deadline", "permitV", "permitR", "permitS"] + }, + "setUserUseReserveAsCollateral(address asset, bool useAsCollateral)": { + "intent": "Manage collateral", + "fields": [ + { + "path": "asset", + "format": "addressName", + "label": "For asset", + "params": { "types": ["token"], "sources": ["local", "ens"] } + }, + { "path": "useAsCollateral", "format": "raw", "label": "Enable use as collateral" } + ], + "required": ["asset", "useAsCollateral"] + }, + "withdraw(address asset, uint256 amount, address to)": { + "intent": "Withdraw", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to withdraw", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "Max" } + }, + { + "path": "to", + "format": "addressName", + "label": "To recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "to"] + }, + "borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf)": { + "intent": "Borrow", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to borrow", "params": { "tokenPath": "asset" } }, + { + "path": "interestRateMode", + "format": "enum", + "label": "Interest Rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Debtor", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf", "interestRateMode"], + "excluded": ["referralCode"] + }, + "deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode)": { + "$id": "deposit", + "intent": "Supply", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Collateral recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf"], + "excluded": ["referralCode"] + }, + "supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode)": { + "$id": "supply", + "intent": "Supply", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Collateral recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf"], + "excluded": ["referralCode"] + }, + "supplyWithPermit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS)": { + "$id": "supplyWithPermit", + "intent": "Supply", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Collateral recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf"], + "excluded": ["referralCode", "deadline", "permitV", "permitR", "permitS"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json new file mode 100644 index 00000000..e10cf639 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json @@ -0,0 +1,51 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "abi": [ + { + "outputs": [], + "inputs": [{ "name": "_validator", "internalType": "address", "type": "address" }], + "name": "mint", + "stateMutability": "payable", + "type": "function" + }, + { + "outputs": [], + "inputs": [{ "name": "stCore", "internalType": "uint256", "type": "uint256" }], + "name": "redeem", + "stateMutability": "nonpayable", + "type": "function" + }, + { "outputs": [], "inputs": [], "name": "withdraw", "stateMutability": "nonpayable", "type": "function" } + ], + "deployments": [{ "chainId": 1116, "address": "0xf5fA1728bABc3f8D2a617397faC2696c958C3409" }] + } + }, + "metadata": { + "owner": "CoreDAO", + "info": { "legalName": "CoreDAO Earn Contract", "url": "https://coredao.org/", "deploymentDate": "2025-02-24T02:55:15Z" } + }, + "display": { + "formats": { + "mint(address)": { + "intent": "Stake CORE tokens to a validator", + "fields": [{ "path": "_validator", "label": "Validator Address", "format": "raw" }], + "required": ["_validator"] + }, + "redeem(uint256)": { + "intent": "Unstake CORE by redeeming staked tokens (stCORE)", + "fields": [ + { + "path": "stCore", + "label": "Amount to Redeem (in stCORE)", + "format": "tokenAmount", + "params": { "token": "0xb3A8F0f0da9ffC65318aA39E55079796093029AD" } + } + ], + "required": ["stCore"] + }, + "withdraw()": { "intent": "Withdraw previously unstaked CORE tokens", "fields": [] } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json new file mode 100644 index 00000000..6a0317c9 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json @@ -0,0 +1,122 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" }], + "domain": { "name": "DeGate", "chainId": 1, "verifyingContract": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" }, + "schemas": [ + { + "primaryType": "AccountUpdate", + "types": { + "AccountUpdate": [ + { "name": "owner", "type": "address" }, + { "name": "accountID", "type": "uint32" }, + { "name": "feeTokenID", "type": "uint32" }, + { "name": "maxFee", "type": "uint96" }, + { "name": "publicKey", "type": "uint256" }, + { "name": "validUntil", "type": "uint32" }, + { "name": "nonce", "type": "uint32" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ] + } + }, + { + "primaryType": "Withdrawal", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Withdrawal": [ + { "name": "owner", "type": "address" }, + { "name": "accountID", "type": "uint32" }, + { "name": "tokenID", "type": "uint32" }, + { "name": "amount", "type": "uint248" }, + { "name": "feeTokenID", "type": "uint32" }, + { "name": "maxFee", "type": "uint96" }, + { "name": "to", "type": "address" }, + { "name": "minGas", "type": "uint248" }, + { "name": "validUntil", "type": "uint32" }, + { "name": "storageID", "type": "uint32" } + ] + } + }, + { + "primaryType": "Transfer", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Transfer": [ + { "name": "owner", "type": "address" }, + { "name": "accountID", "type": "uint32" }, + { "name": "tokenID", "type": "uint32" }, + { "name": "amount", "type": "uint248" }, + { "name": "feeTokenID", "type": "uint32" }, + { "name": "maxFee", "type": "uint96" }, + { "name": "to", "type": "address" }, + { "name": "validUntil", "type": "uint32" }, + { "name": "storageID", "type": "uint32" } + ] + } + } + ] + } + }, + "metadata": { "owner": "DeGate Exchange Contract" }, + "display": { + "formats": { + "AccountUpdate": { + "intent": "DeGate AccountUpdate", + "fields": [ + { "path": "owner", "label": "Owner", "format": "raw" }, + { "path": "accountID", "label": "AccountID", "format": "raw" }, + { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, + { "path": "maxFee", "label": "MaxFee", "format": "raw" }, + { "path": "publicKey", "label": "PublicKey", "format": "raw" }, + { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" } + ] + }, + "Withdrawal": { + "intent": "DeGate Withdrawal", + "fields": [ + { "path": "owner", "label": "Owner", "format": "raw" }, + { "path": "accountID", "label": "AccountID", "format": "raw" }, + { "path": "tokenID", "label": "TokenID", "format": "raw" }, + { "path": "amount", "label": "Amount", "format": "raw" }, + { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, + { "path": "maxFee", "label": "MaxFee", "format": "raw" }, + { "path": "to", "label": "To", "format": "raw" }, + { "path": "minGas", "label": "MinGas", "format": "raw" }, + { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, + { "path": "storageID", "label": "StorageID", "format": "raw" } + ] + }, + "Transfer": { + "intent": "DeGate Transfer", + "fields": [ + { "path": "owner", "label": "Owner", "format": "raw" }, + { "path": "accountID", "label": "AccountID", "format": "raw" }, + { "path": "tokenID", "label": "TokenID", "format": "raw" }, + { "path": "amount", "label": "Amount", "format": "raw" }, + { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, + { "path": "maxFee", "label": "MaxFee", "format": "raw" }, + { "path": "to", "label": "To", "format": "raw" }, + { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, + { "path": "storageID", "label": "StorageID", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json new file mode 100644 index 00000000..690ebf05 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json @@ -0,0 +1,42 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 137, "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }], + "domain": { "name": "Dispatch", "chainId": 137, "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }, + "schemas": [ + { + "primaryType": "FollowWithSig", + "types": { + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ], + "FollowWithSig": [ + { "name": "datas", "type": "bytes[]" }, + { "name": "deadline", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "profileIds", "type": "uint256[]" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Dispatch.xyz" }, + "display": { + "formats": { + "FollowWithSig": { + "intent": "Dispatch.xyz Follow Profile", + "fields": [ + { "path": "profileIds.[]", "label": "Profile Ids", "format": "raw" }, + { "path": "datas.[]", "label": "Data", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "deadline", "label": "Expiration Date", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json new file mode 100644 index 00000000..5882545c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json @@ -0,0 +1,102 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Staked USDe", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497" }], + "abi": [ + { + "type": "function", + "name": "cooldownAssets", + "inputs": [{ "name": "assets", "type": "uint256", "internalType": "uint256" }], + "outputs": [{ "name": "shares", "type": "uint256", "internalType": "uint256" }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cooldownShares", + "inputs": [{ "name": "shares", "type": "uint256", "internalType": "uint256" }], + "outputs": [{ "name": "assets", "type": "uint256", "internalType": "uint256" }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "unstake", + "inputs": [{ "name": "receiver", "type": "address", "internalType": "address" }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Ethena", "info": { "legalName": "Ethena", "url": "https://ethena.fi/" } }, + "display": { + "formats": { + "cooldownShares(uint256)": { + "$id": null, + "intent": "Cooldown Shares", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497" }, + "path": "#.shares", + "value": null + } + ], + "required": ["#.shares"], + "excluded": null + }, + "cooldownAssets(uint256)": { + "$id": null, + "intent": "Cooldown Assets", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3" }, + "path": "#.assets", + "value": null + } + ], + "required": ["#.assets"], + "excluded": null + }, + "unstake(address)": { + "$id": null, + "intent": "Unstake", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Receiver", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#.receiver", + "value": null + } + ], + "required": ["#.receiver"], + "excluded": null + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json new file mode 100644 index 00000000..c6fd872b --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json @@ -0,0 +1,74 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "FellowFund", + "contract": { + "abi": [ + { + "inputs": [ + { "name": "_metadata", "type": "string" }, + { "name": "_funds", "type": "uint256" }, + { "name": "_applicationDeadline", "type": "uint256" }, + { "name": "_marketDeadline", "type": "uint256" }, + { "name": "_epochDeadline", "type": "uint256" } + ], + "name": "createFellowship", + "type": "function" + }, + { + "inputs": [{ "name": "fellowshipId", "type": "uint256" }, { "name": "metadata", "type": "string" }], + "name": "applyToFellowship", + "type": "function" + }, + { + "inputs": [ + { "name": "fellowshipId", "type": "uint256" }, + { "name": "applicationId", "type": "uint256" }, + { "name": "achieved", "type": "bool" }, + { "name": "proof", "type": "bytes" } + ], + "name": "setApplicantImpact", + "type": "function" + } + ], + "deployments": [{ "chainId": 1, "address": "0x25d598CBB74fa73290e74697616DE2740d280745" }] + } + }, + "metadata": { + "owner": "FellowFund", + "info": { "legalName": "FellowFund", "url": "https://fellow-fund.vercel.app", "deploymentDate": "2024-03-14T00:00:00Z" } + }, + "display": { + "formats": { + "createFellowship(string _metadata,uint256 _funds,uint256 _applicationDeadline,uint256 _marketDeadline,uint256 _epochDeadline)": { + "intent": "Create Fellowship Program", + "fields": [ + { "path": "_metadata", "label": "Program Details", "format": "raw" }, + { "path": "_funds", "label": "Total Funding", "format": "amount" }, + { "path": "_applicationDeadline", "label": "Application Deadline", "format": "date", "params": { "encoding": "timestamp" } }, + { "path": "_marketDeadline", "label": "Market Phase Deadline", "format": "date", "params": { "encoding": "timestamp" } }, + { "path": "_epochDeadline", "label": "Program End Date", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["_metadata", "_funds", "_applicationDeadline", "_marketDeadline", "_epochDeadline"] + }, + "applyToFellowship(uint256 fellowshipId,string metadata)": { + "intent": "Apply to Fellowship Program", + "fields": [ + { "path": "fellowshipId", "label": "Fellowship Program ID", "format": "raw" }, + { "path": "metadata", "label": "Application Details", "format": "raw" } + ], + "required": ["fellowshipId", "metadata"] + }, + "setApplicantImpact(uint256 fellowshipId,uint256 applicationId,bool achieved,bytes proof)": { + "intent": "Verify Fellowship Impact", + "fields": [ + { "path": "fellowshipId", "label": "Fellowship Program ID", "format": "raw" }, + { "path": "applicationId", "label": "Application ID", "format": "raw" }, + { "path": "achieved", "label": "Impact Achieved", "format": "raw" }, + { "path": "proof", "label": "Verification Proof", "format": "raw" } + ], + "required": ["fellowshipId", "applicationId", "achieved", "proof"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json new file mode 100644 index 00000000..ef647514 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json @@ -0,0 +1,858 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "DistributionToDelegators-Flare", + "contract": { + "deployments": [{ "chainId": 14, "address": "0x9c7A4C83842B29bB4A082b0E689CB9474BD938d0" }], + "abi": [ + { + "type": "function", + "name": "autoClaim", + "inputs": [ + { + "name": "_rewardOwners", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claim", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_recipient", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "_rewardAmount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claimSetupManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ClaimSetupManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "combinedNat", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IICombinedNatBalance", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "confirmOptOutOfAirdrop", + "inputs": [ + { + "name": "_optOutAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "daemonize", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "endBlockNumber", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "entitlementStartTs", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareDaemon", + "inputs": [], + "outputs": [ + { "name": "", "type": "address", "internalType": "contract FlareDaemon", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getAddressUpdater", + "inputs": [], + "outputs": [ + { + "name": "_addressUpdater", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getClaimableAmount", + "inputs": [{ "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "_amountWei", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getClaimableAmountOf", + "inputs": [ + { "name": "_account", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "_amountWei", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getClaimableMonths", + "inputs": [], + "outputs": [ + { "name": "_startMonth", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_endMonth", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getContractName", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getCurrentMonth", + "inputs": [], + "outputs": [ + { "name": "_currentMonth", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getMonthToExpireNext", + "inputs": [], + "outputs": [ + { + "name": "_monthToExpireNext", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTokenPoolSupplyData", + "inputs": [], + "outputs": [ + { + "name": "_lockedFundsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationAuthorizedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governance", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceSettings", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialise", + "inputs": [ + { + "name": "_initialGovernance", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "latestEntitlementStartTs", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "maxWaitForGoodRandomSeconds", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "nextClaimableMonth", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "optOut", + "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "optOutAddresses", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "optOutCandidate", + "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "optOutOfAirdrop", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "priceSubmitter", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIRandomProvider", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "productionMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "sendFundsBackToTreasury", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setEntitlementStart", + "inputs": [ + { + "name": "_entitlementStartTs", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setUseGoodRandom", + "inputs": [ + { "name": "_useGoodRandom", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_maxWaitForGoodRandomSeconds", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "startBlockNumber", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "stop", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "stopped", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToFallbackMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToProductionMode", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "timelockedCalls", + "inputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "allowedAfterTimestamp", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalAvailableAmount", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalBurnedWei", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalClaimedWei", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalDistributableAmount", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalEntitlementWei", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalUnclaimedAmount", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalUnclaimedWeight", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "treasury", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract DistributionTreasury", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateContractAddresses", + "inputs": [ + { + "name": "_contractNameHashes", + "type": "bytes32[]", + "internalType": "bytes32[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_contractAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateTotalEntitlementWei", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "useGoodRandom", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "votePowerBlockNumbers", + "inputs": [ + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "wNat", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract WNat", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "waitingForGoodRandomSinceTs", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, + "display": { + "formats": { + "claim(address,address,uint256,bool)": { + "$id": null, + "intent": "claim rewards", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Reward Owner", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._rewardOwner", + "value": null + }, + { + "$id": null, + "label": "Recipient", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._recipient", + "value": null + }, + { "$id": null, "label": "Month", "format": "raw", "params": null, "path": "#._month", "value": null }, + { "$id": null, "label": "Wrap", "format": "raw", "params": null, "path": "#._wrap", "value": null } + ], + "required": ["#._rewardOwner", "#._recipient", "#._month", "#._wrap"], + "excluded": null + }, + "autoClaim(address[],uint256)": { + "$id": null, + "intent": "batch claims rewards", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Reward Owner", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._rewardOwners.[]", + "value": null + }, + { "$id": null, "label": "Month", "format": "raw", "params": null, "path": "#._month", "value": null } + ], + "required": ["#._rewardOwners.[]", "#._month"], + "excluded": null + }, + "confirmOptOutOfAirdrop(address[])": { + "$id": null, + "intent": "opt out of airdrop", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Opt Out Address", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#._optOutAddresses.[]", + "value": null + } + ], + "required": ["#._optOutAddresses.[]"], + "excluded": null + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json new file mode 100644 index 00000000..8edda041 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json @@ -0,0 +1,863 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "PollingFoundation-Flare", + "contract": { + "deployments": [{ "chainId": 14, "address": "0xc8294a2335C6c45de827121090ce4Ba9977907D2" }], + "abi": [ + { + "type": "function", + "name": "BALLOT_TYPEHASH", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancel", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "castVote", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "castVoteBySig", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "_v", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "_r", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "_s", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "castVoteWithReason", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "_reason", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "chainId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "changeProposers", + "inputs": [ + { + "name": "_proposersToAdd", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_proposersToRemove", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "eip712Domain", + "inputs": [], + "outputs": [ + { "name": "fields", "type": "bytes1", "internalType": "bytes1", "components": null, "indexed": null, "unit": null }, + { "name": "name", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { "name": "version", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { "name": "chainId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "verifyingContract", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "salt", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { + "name": "extensions", + "type": "uint256[]", + "internalType": "uint256[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "execute", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, + { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "execute", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareSystemsManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIFlareSystemsManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getAddressUpdater", + "inputs": [], + "outputs": [ + { + "name": "_addressUpdater", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalId", + "inputs": [ + { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, + { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalIds", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalInfo", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { "name": "_proposer", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_accept", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_votePowerBlock", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_voteStartTime", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_voteEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "_execStartTime", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_execEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "_thresholdConditionBIPS", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_majorityConditionBIPS", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_circulatingSupply", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalVotes", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { "name": "_for", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_against", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getVotes", + "inputs": [ + { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_blockNumber", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governance", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceSettings", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceVotePower", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIGovernanceVotePower", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "hasVoted", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialise", + "inputs": [ + { + "name": "_governanceSettings", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_initialGovernance", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isExecutor", + "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isProposer", + "inputs": [{ "name": "_account", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "productionMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "proposalIds", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "propose", + "inputs": [ + { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, + { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { + "name": "_settings", + "type": "tuple", + "internalType": "struct IGovernor.GovernorSettings", + "components": [ + { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, + { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "executionDelaySeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "executionPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "propose", + "inputs": [ + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { + "name": "_settings", + "type": "tuple", + "internalType": "struct IIPollingFoundation.GovernorSettingsWithoutExecParams", + "components": [ + { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, + { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "state", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "enum IGovernor.ProposalState", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "submission", + "inputs": [], + "outputs": [ + { "name": "", "type": "address", "internalType": "contract ISubmission", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "supply", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract IISupply", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToProductionMode", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "timelockedCalls", + "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "allowedAfterTimestamp", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateContractAddresses", + "inputs": [ + { + "name": "_contractNameHashes", + "type": "bytes32[]", + "internalType": "bytes32[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_contractAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "version", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, + "display": { + "formats": { + "castVote(uint256,uint8)": { + "$id": null, + "intent": "cast vote", + "screens": null, + "fields": [ + { "$id": null, "label": "Proposal Id", "format": "raw", "params": null, "path": "#._proposalId", "value": null }, + { "$id": null, "label": "Support", "format": "raw", "params": null, "path": "#._support", "value": null } + ], + "required": ["#._proposalId", "#._support"], + "excluded": null + }, + "propose(address[],uint256[],bytes[],string,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))": { + "$id": null, + "intent": "create proposal", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Targets", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#._targets.[]", + "value": null + }, + { "$id": null, "label": "Values", "format": "amount", "params": null, "path": "#._values.[]", "value": null }, + { "$id": null, "label": "Calldatas", "format": "raw", "params": null, "path": "#._calldatas.[]", "value": null }, + { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, + { + "path": "#._settings", + "value": null, + "fields": [ + { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, + { + "$id": null, + "label": "Voting Start Ts", + "format": "date", + "params": { "encoding": "timestamp" }, + "path": "votingStartTs", + "value": null + }, + { + "$id": null, + "label": "Voting Period Seconds", + "format": "raw", + "params": null, + "path": "votingPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Vp Block Period Seconds", + "format": "raw", + "params": null, + "path": "vpBlockPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Threshold Condition BIPS", + "format": "raw", + "params": null, + "path": "thresholdConditionBIPS", + "value": null + }, + { + "$id": null, + "label": "Majority Condition BIPS", + "format": "raw", + "params": null, + "path": "majorityConditionBIPS", + "value": null + }, + { + "$id": null, + "label": "Execution Delay Seconds", + "format": "raw", + "params": null, + "path": "executionDelaySeconds", + "value": null + }, + { + "$id": null, + "label": "Execution Period Seconds", + "format": "raw", + "params": null, + "path": "executionPeriodSeconds", + "value": null + } + ] + } + ], + "required": [ + "#._targets.[]", + "#._values.[]", + "#._calldatas.[]", + "#._description", + "#._settingsaccept", + "#._settingsvotingStartTs", + "#._settingsvotingPeriodSeconds", + "#._settingsvpBlockPeriodSeconds", + "#._settingsthresholdConditionBIPS", + "#._settingsmajorityConditionBIPS", + "#._settingsexecutionDelaySeconds", + "#._settingsexecutionPeriodSeconds" + ], + "excluded": null + }, + "propose(string,(bool,uint256,uint256,uint256,uint256,uint256))": { + "$id": null, + "intent": "create proposal", + "screens": null, + "fields": [ + { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, + { + "path": "#._settings", + "value": null, + "fields": [ + { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, + { + "$id": null, + "label": "Voting Start Ts", + "format": "date", + "params": { "encoding": "timestamp" }, + "path": "votingStartTs", + "value": null + }, + { + "$id": null, + "label": "Voting Period Seconds", + "format": "raw", + "params": null, + "path": "votingPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Vp Block Period Seconds", + "format": "raw", + "params": null, + "path": "vpBlockPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Threshold Condition BIPS", + "format": "raw", + "params": null, + "path": "thresholdConditionBIPS", + "value": null + }, + { + "$id": null, + "label": "Majority Condition BIPS", + "format": "raw", + "params": null, + "path": "majorityConditionBIPS", + "value": null + } + ] + } + ], + "required": [ + "#._description", + "#._settingsaccept", + "#._settingsvotingStartTs", + "#._settingsvotingPeriodSeconds", + "#._settingsvpBlockPeriodSeconds", + "#._settingsthresholdConditionBIPS", + "#._settingsmajorityConditionBIPS" + ], + "excluded": null + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json new file mode 100644 index 00000000..19ab27ac --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json @@ -0,0 +1,863 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "PollingFoundation-Songbird", + "contract": { + "deployments": [{ "chainId": 19, "address": "0x79Df47237292Dbd1477502CFF3F61cD535B0FAce" }], + "abi": [ + { + "type": "function", + "name": "BALLOT_TYPEHASH", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancel", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "castVote", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "castVoteBySig", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "_v", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "_r", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "_s", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "castVoteWithReason", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "_reason", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "chainId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "changeProposers", + "inputs": [ + { + "name": "_proposersToAdd", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_proposersToRemove", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "eip712Domain", + "inputs": [], + "outputs": [ + { "name": "fields", "type": "bytes1", "internalType": "bytes1", "components": null, "indexed": null, "unit": null }, + { "name": "name", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { "name": "version", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { "name": "chainId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "verifyingContract", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "salt", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { + "name": "extensions", + "type": "uint256[]", + "internalType": "uint256[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "execute", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, + { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "execute", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareSystemsManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIFlareSystemsManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getAddressUpdater", + "inputs": [], + "outputs": [ + { + "name": "_addressUpdater", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalId", + "inputs": [ + { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, + { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalIds", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalInfo", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { "name": "_proposer", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_accept", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_votePowerBlock", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_voteStartTime", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_voteEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "_execStartTime", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_execEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "_thresholdConditionBIPS", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_majorityConditionBIPS", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_circulatingSupply", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getProposalVotes", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { "name": "_for", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_against", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getVotes", + "inputs": [ + { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_blockNumber", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governance", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceSettings", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceVotePower", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIGovernanceVotePower", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "hasVoted", + "inputs": [ + { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialise", + "inputs": [ + { + "name": "_governanceSettings", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_initialGovernance", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isExecutor", + "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isProposer", + "inputs": [{ "name": "_account", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "productionMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "proposalIds", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "propose", + "inputs": [ + { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, + { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { + "name": "_settings", + "type": "tuple", + "internalType": "struct IGovernor.GovernorSettings", + "components": [ + { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, + { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "executionDelaySeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "executionPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "propose", + "inputs": [ + { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, + { + "name": "_settings", + "type": "tuple", + "internalType": "struct IIPollingFoundation.GovernorSettingsWithoutExecParams", + "components": [ + { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, + { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "state", + "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "enum IGovernor.ProposalState", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "submission", + "inputs": [], + "outputs": [ + { "name": "", "type": "address", "internalType": "contract ISubmission", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "supply", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract IISupply", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToProductionMode", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "timelockedCalls", + "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "allowedAfterTimestamp", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateContractAddresses", + "inputs": [ + { + "name": "_contractNameHashes", + "type": "bytes32[]", + "internalType": "bytes32[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_contractAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "version", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, + "display": { + "formats": { + "castVote(uint256,uint8)": { + "$id": null, + "intent": "cast vote", + "screens": null, + "fields": [ + { "$id": null, "label": "Proposal Id", "format": "raw", "params": null, "path": "#._proposalId", "value": null }, + { "$id": null, "label": "Support", "format": "raw", "params": null, "path": "#._support", "value": null } + ], + "required": ["#._proposalId", "#._support"], + "excluded": null + }, + "propose(address[],uint256[],bytes[],string,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))": { + "$id": null, + "intent": "create proposal", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Targets", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#._targets.[]", + "value": null + }, + { "$id": null, "label": "Values", "format": "amount", "params": null, "path": "#._values.[]", "value": null }, + { "$id": null, "label": "Calldatas", "format": "raw", "params": null, "path": "#._calldatas.[]", "value": null }, + { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, + { + "path": "#._settings", + "value": null, + "fields": [ + { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, + { + "$id": null, + "label": "Voting Start Ts", + "format": "date", + "params": { "encoding": "timestamp" }, + "path": "votingStartTs", + "value": null + }, + { + "$id": null, + "label": "Voting Period Seconds", + "format": "raw", + "params": null, + "path": "votingPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Vp Block Period Seconds", + "format": "raw", + "params": null, + "path": "vpBlockPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Threshold Condition BIPS", + "format": "raw", + "params": null, + "path": "thresholdConditionBIPS", + "value": null + }, + { + "$id": null, + "label": "Majority Condition BIPS", + "format": "raw", + "params": null, + "path": "majorityConditionBIPS", + "value": null + }, + { + "$id": null, + "label": "Execution Delay Seconds", + "format": "raw", + "params": null, + "path": "executionDelaySeconds", + "value": null + }, + { + "$id": null, + "label": "Execution Period Seconds", + "format": "raw", + "params": null, + "path": "executionPeriodSeconds", + "value": null + } + ] + } + ], + "required": [ + "#._targets.[]", + "#._values.[]", + "#._calldatas.[]", + "#._description", + "#._settingsaccept", + "#._settingsvotingStartTs", + "#._settingsvotingPeriodSeconds", + "#._settingsvpBlockPeriodSeconds", + "#._settingsthresholdConditionBIPS", + "#._settingsmajorityConditionBIPS", + "#._settingsexecutionDelaySeconds", + "#._settingsexecutionPeriodSeconds" + ], + "excluded": null + }, + "propose(string,(bool,uint256,uint256,uint256,uint256,uint256))": { + "$id": null, + "intent": "create proposal", + "screens": null, + "fields": [ + { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, + { + "path": "#._settings", + "value": null, + "fields": [ + { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, + { + "$id": null, + "label": "Voting Start Ts", + "format": "date", + "params": { "encoding": "timestamp" }, + "path": "votingStartTs", + "value": null + }, + { + "$id": null, + "label": "Voting Period Seconds", + "format": "raw", + "params": null, + "path": "votingPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Vp Block Period Seconds", + "format": "raw", + "params": null, + "path": "vpBlockPeriodSeconds", + "value": null + }, + { + "$id": null, + "label": "Threshold Condition BIPS", + "format": "raw", + "params": null, + "path": "thresholdConditionBIPS", + "value": null + }, + { + "$id": null, + "label": "Majority Condition BIPS", + "format": "raw", + "params": null, + "path": "majorityConditionBIPS", + "value": null + } + ] + } + ], + "required": [ + "#._description", + "#._settingsaccept", + "#._settingsvotingStartTs", + "#._settingsvotingPeriodSeconds", + "#._settingsvpBlockPeriodSeconds", + "#._settingsthresholdConditionBIPS", + "#._settingsmajorityConditionBIPS" + ], + "excluded": null + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json new file mode 100644 index 00000000..49af9c6d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json @@ -0,0 +1,1110 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "RewardManager-Flare", + "contract": { + "deployments": [{ "chainId": 14, "address": "0xC8f55c5aA2C752eE285Bd872855C749f4ee6239B" }], + "abi": [ + { + "type": "function", + "name": "activate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "active", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "autoClaim", + "inputs": [ + { + "name": "_rewardOwners", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cChainStake", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ICChainStake", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cChainStakeEnabled", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claim", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "_recipient", + "type": "address", + "internalType": "address payable", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [ + { + "name": "_rewardAmountWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claimProxy", + "inputs": [ + { "name": "_msgSender", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "_recipient", + "type": "address", + "internalType": "address payable", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [ + { + "name": "_rewardAmountWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claimSetupManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIClaimSetupManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cleanupBlockNumber", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "closeExpiredRewardEpoch", + "inputs": [ + { + "name": "_rewardEpochId", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "deactivate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enableCChainStake", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enableClaims", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enablePChainStakeMirror", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "firstClaimableRewardEpochId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareSystemsCalculator", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIFlareSystemsCalculator", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareSystemsManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIFlareSystemsManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "ftsoRewardManagerProxy", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getAddressUpdater", + "inputs": [], + "outputs": [ + { + "name": "_addressUpdater", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getCurrentRewardEpochId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getExpectedBalance", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getInitialRewardEpochId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getNextClaimableRewardEpochId", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardEpochIdToExpireNext", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardEpochIdsWithClaimableRewards", + "inputs": [], + "outputs": [ + { "name": "_startEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_endEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardEpochTotals", + "inputs": [ + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { + "name": "_totalRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_initialisedRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_claimedRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_burnedRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardOffersManagerList", + "inputs": [], + "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getStateOfRewards", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { + "name": "_rewardStates", + "type": "tuple[][]", + "internalType": "struct RewardsV2Interface.RewardState[][]", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, + { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getStateOfRewardsAt", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { + "name": "_rewardStates", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardState[]", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, + { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTokenPoolSupplyData", + "inputs": [], + "outputs": [ + { + "name": "_lockedFundsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationAuthorizedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTotals", + "inputs": [], + "outputs": [ + { + "name": "_totalRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalBurnedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getUnclaimedRewardState", + "inputs": [ + { "name": "_beneficiary", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { + "name": "_claimType", + "type": "uint8", + "internalType": "enum RewardsV2Interface.ClaimType", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [ + { + "name": "_state", + "type": "tuple", + "internalType": "struct IRewardManager.UnclaimedRewardState", + "components": [ + { "name": "initialised", "type": "bool", "internalType": "bool", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "weight", "type": "uint128", "internalType": "uint128", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governance", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceSettings", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialise", + "inputs": [ + { + "name": "_governanceSettings", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_initialGovernance", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialiseWeightBasedClaims", + "inputs": [ + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isExecutor", + "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "newRewardManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "noOfInitialisedWeightBasedClaims", + "inputs": [ + { "name": "rewardEpochId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "oldRewardManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pChainStakeMirror", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IPChainStakeMirror", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pChainStakeMirrorEnabled", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "productionMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "receiveRewards", + "inputs": [ + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_inflation", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "rewardManagerId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setInitialRewardData", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setNewRewardManager", + "inputs": [ + { + "name": "_newRewardManager", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setRewardOffersManagerList", + "inputs": [ + { + "name": "_rewardOffersManagerList", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToProductionMode", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "timelockedCalls", + "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "allowedAfterTimestamp", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateContractAddresses", + "inputs": [ + { + "name": "_contractNameHashes", + "type": "bytes32[]", + "internalType": "bytes32[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_contractAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "wNat", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract IWNat", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, + "display": { + "formats": { + "0x15f253fb": { + "$id": null, + "intent": "claim rewards", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Reward Owner", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._rewardOwners.[]", + "value": null + }, + { + "path": "#._proofs.[]", + "value": null, + "fields": [ + { + "path": "body", + "value": null, + "fields": [ + { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, + { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, + { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } + ] + } + ] + } + ], + "required": ["#._rewardOwners.[]", "#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], + "excluded": ["#._proofs.[].merkleProof.[]", "#._rewardEpochId", "#._proofs.[].body.rewardEpochId"] + }, + "0x3ce7522a": { + "$id": null, + "intent": "initialise claims", + "screens": null, + "fields": [ + { + "path": "#._proofs.[]", + "value": null, + "fields": [ + { + "path": "body", + "value": null, + "fields": [ + { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, + { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, + { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } + ] + } + ] + } + ], + "required": ["#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], + "excluded": ["#._proofs.[].merkleProof.[]", "#._proofs.[].body.rewardEpochId"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json new file mode 100644 index 00000000..d3c87949 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json @@ -0,0 +1,1111 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "RewardManager-Songbird", + "contract": { + "deployments": [{ "chainId": 19, "address": "0xE26AD68b17224951b5740F33926Cc438764eB9a7" }], + "abi": [ + { + "type": "function", + "name": "activate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "active", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "autoClaim", + "inputs": [ + { + "name": "_rewardOwners", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cChainStake", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ICChainStake", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cChainStakeEnabled", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claim", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "_recipient", + "type": "address", + "internalType": "address payable", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [ + { + "name": "_rewardAmountWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claimProxy", + "inputs": [ + { "name": "_msgSender", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "_recipient", + "type": "address", + "internalType": "address payable", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [ + { + "name": "_rewardAmountWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claimSetupManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIClaimSetupManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cleanupBlockNumber", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "closeExpiredRewardEpoch", + "inputs": [ + { + "name": "_rewardEpochId", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "deactivate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enableCChainStake", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enableClaims", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enablePChainStakeMirror", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "firstClaimableRewardEpochId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareSystemsCalculator", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIFlareSystemsCalculator", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flareSystemsManager", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IIFlareSystemsManager", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "ftsoRewardManagerProxy", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getAddressUpdater", + "inputs": [], + "outputs": [ + { + "name": "_addressUpdater", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getCurrentRewardEpochId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getExpectedBalance", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getInitialRewardEpochId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getNextClaimableRewardEpochId", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardEpochIdToExpireNext", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardEpochIdsWithClaimableRewards", + "inputs": [], + "outputs": [ + { "name": "_startEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_endEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardEpochTotals", + "inputs": [ + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { + "name": "_totalRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_initialisedRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_claimedRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_burnedRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getRewardOffersManagerList", + "inputs": [], + "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getStateOfRewards", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { + "name": "_rewardStates", + "type": "tuple[][]", + "internalType": "struct RewardsV2Interface.RewardState[][]", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, + { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getStateOfRewardsAt", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { + "name": "_rewardStates", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardState[]", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, + { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTokenPoolSupplyData", + "inputs": [], + "outputs": [ + { + "name": "_lockedFundsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationAuthorizedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTotals", + "inputs": [], + "outputs": [ + { + "name": "_totalRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationRewardsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalBurnedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getUnclaimedRewardState", + "inputs": [ + { "name": "_beneficiary", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { + "name": "_claimType", + "type": "uint8", + "internalType": "enum RewardsV2Interface.ClaimType", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [ + { + "name": "_state", + "type": "tuple", + "internalType": "struct IRewardManager.UnclaimedRewardState", + "components": [ + { "name": "initialised", "type": "bool", "internalType": "bool", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "weight", "type": "uint128", "internalType": "uint128", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governance", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceSettings", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialise", + "inputs": [ + { + "name": "_governanceSettings", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_initialGovernance", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialiseWeightBasedClaims", + "inputs": [ + { + "name": "_proofs", + "type": "tuple[]", + "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", + "components": [ + { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, + { + "name": "body", + "type": "tuple", + "internalType": "struct RewardsV2Interface.RewardClaim", + "components": [ + { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, + { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, + { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, + { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } + ] + } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isExecutor", + "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "newRewardManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "noOfInitialisedWeightBasedClaims", + "inputs": [ + { "name": "rewardEpochId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "oldRewardManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pChainStakeMirror", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IPChainStakeMirror", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pChainStakeMirrorEnabled", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "productionMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "receiveRewards", + "inputs": [ + { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, + { "name": "_inflation", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "rewardManagerId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setInitialRewardData", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setNewRewardManager", + "inputs": [ + { + "name": "_newRewardManager", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setRewardOffersManagerList", + "inputs": [ + { + "name": "_rewardOffersManagerList", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToProductionMode", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "timelockedCalls", + "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "allowedAfterTimestamp", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateContractAddresses", + "inputs": [ + { + "name": "_contractNameHashes", + "type": "bytes32[]", + "internalType": "bytes32[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_contractAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "wNat", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract IWNat", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, + "display": { + "formats": { + "0x3ce7522a": { + "$id": null, + "intent": "initialise claims", + "screens": null, + "fields": [ + { + "path": "#._proofs.[]", + "value": null, + "fields": [ + { + "path": "body", + "value": null, + "fields": [ + { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, + { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, + { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } + ] + } + ] + } + ], + "required": ["#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], + "excluded": ["#._proofs.[].merkleProof.[]", "#._proofs.[].body.rewardEpochId"] + }, + "0x15f253fb": { + "$id": null, + "intent": "claim rewards", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Reward Owner", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._rewardOwners.[]", + "value": null + }, + { "$id": null, "label": "Reward Epoch Id", "format": "raw", "params": null, "path": "#._rewardEpochId", "value": null }, + { + "path": "#._proofs.[]", + "value": null, + "fields": [ + { + "path": "body", + "value": null, + "fields": [ + { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, + { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, + { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } + ] + } + ] + } + ], + "required": ["#._rewardOwners.[]", "#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], + "excluded": ["#._rewardEpochId", "#._proofs.[].merkleProof.[]", "#._proofs.[].body.rewardEpochId"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json new file mode 100644 index 00000000..725046fe --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json @@ -0,0 +1,649 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "ValidatorRewardManager-Flare", + "contract": { + "deployments": [{ "chainId": 14, "address": "0xc0CF3Aaf93bd978C5BC662564Aa73E331f2eC0B5" }], + "abi": [ + { + "type": "function", + "name": "activate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "active", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "allowedClaimRecipients", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claim", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "_recipient", + "type": "address", + "internalType": "address payable", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "_rewardAmount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "claimExecutors", + "inputs": [ + { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "deactivate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "distributeRewards", + "inputs": [ + { + "name": "_addresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_rewardAmounts", + "type": "uint256[]", + "internalType": "uint256[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeGovernanceCall", + "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getAddressUpdater", + "inputs": [], + "outputs": [ + { + "name": "_addressUpdater", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getContractName", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getInflationAddress", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getStateOfRewards", + "inputs": [ + { "name": "_beneficiary", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "_totalReward", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { + "name": "_claimedReward", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTokenPoolSupplyData", + "inputs": [], + "outputs": [ + { + "name": "_lockedFundsWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationAuthorizedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTotals", + "inputs": [], + "outputs": [ + { + "name": "_totalAwardedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalClaimedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationAuthorizedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_totalInflationReceivedWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_lastInflationAuthorizationReceivedTs", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_dailyAuthorizedInflation", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governance", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "governanceSettings", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IGovernanceSettings", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialise", + "inputs": [ + { + "name": "_initialGovernance", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "newRewardManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "oldRewardManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "productionMode", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "receiveInflation", + "inputs": [], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "rewardDistributor", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setAllowedClaimRecipients", + "inputs": [ + { + "name": "_recipients", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setClaimExecutors", + "inputs": [ + { + "name": "_executors", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setDailyAuthorizedInflation", + "inputs": [ + { + "name": "_toAuthorizeWei", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setNewRewardManager", + "inputs": [ + { + "name": "_newRewardManager", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setRewardDistributor", + "inputs": [ + { + "name": "_rewardDistributor", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "switchToProductionMode", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "timelockedCalls", + "inputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "allowedAfterTimestamp", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "updateContractAddresses", + "inputs": [ + { + "name": "_contractNameHashes", + "type": "bytes32[]", + "internalType": "bytes32[]", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "_contractAddresses", + "type": "address[]", + "internalType": "address[]", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "wNat", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract WNat", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, + "display": { + "formats": { + "claim(address,address,uint256,bool)": { + "$id": null, + "intent": "claim or wrap a reward amount", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Reward Owner", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._rewardOwner", + "value": null + }, + { + "$id": null, + "label": "Recipient", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._recipient", + "value": null + }, + { "$id": null, "label": "Reward Amount", "format": "amount", "params": null, "path": "#._rewardAmount", "value": null }, + { "$id": null, "label": "Wrap", "format": "raw", "params": null, "path": "#._wrap", "value": null } + ], + "required": ["#._rewardOwner", "#._recipient", "#._rewardAmount", "#._wrap"], + "excluded": null + }, + "setClaimExecutors(address[])": { + "$id": null, + "intent": "set executors", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Executor", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._executors.[]", + "value": null + } + ], + "required": ["#._executors.[]"], + "excluded": null + }, + "setAllowedClaimRecipients(address[])": { + "$id": null, + "intent": "set recipients", + "screens": null, + "fields": [ + { + "$id": null, + "label": "Recipient", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#._recipients.[]", + "value": null + } + ], + "required": ["#._recipients.[]"], + "excluded": null + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json new file mode 100644 index 00000000..34182ad2 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json @@ -0,0 +1,8 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-KilnVaults.json", + "context": { "contract": { "deployments": [{ "chainId": 42161, "address": "0xFf131917E1D6751e4d1B17612751Db521b1403c5" }] } }, + "metadata": { + "constants": { "underlyingToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "underlyingTicker": "USDC", "vaultTicker": "skUSDC" } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json new file mode 100644 index 00000000..5b1cbdc4 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + + "metadata": { + "owner": "Kiln", + "info": { "legalName": "Kiln", "url": "https://kiln.fi/" } + } +} \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json new file mode 100644 index 00000000..ddcc69af --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 137, "address": "0x33c6eec1723b12c46732f7ab41398de45641fa42" }], + "domain": { "name": "LedgerQuest", "chainId": 137, "verifyingContract": "0x33c6eec1723b12c46732f7ab41398de45641fa42" }, + "schemas": [ + { + "primaryType": "mint", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "mint": [ + { "name": "receiver", "type": "address" }, + { "name": "categoryId", "type": "uint256" }, + { "name": "collectionId", "type": "uint256" } + ] + } + } + ] + } + }, + "metadata": { "owner": "LedgerQuest" }, + "display": { + "formats": { + "mint": { + "intent": "Mint", + "fields": [ + { "path": "receiver", "label": "Receiver", "format": "raw" }, + { "path": "categoryId", "label": "Quest Type", "format": "raw" }, + { "path": "collectionId", "label": "Collection", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json new file mode 100644 index 00000000..d2d89193 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json @@ -0,0 +1,666 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 137, "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }], + "domain": { "name": "LensHub", "chainId": 137, "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }, + "schemas": [ + { + "primaryType": "act", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "act": [ + { "name": "publicationActedProfileId", "type": "uint256" }, + { "name": "publicationActedId", "type": "uint256" }, + { "name": "actorProfileId", "type": "uint256" }, + { "name": "referrerProfileIds", "type": "uint256[]" }, + { "name": "referrerPubIds", "type": "uint256[]" }, + { "name": "actionModuleAddress", "type": "address" }, + { "name": "actionModuleData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "burn", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "burn": [{ "name": "tokenId", "type": "uint256" }] + } + }, + { + "primaryType": "ChangeDelegatedExecutorsConfig", + "types": { + "ChangeDelegatedExecutorsConfig": [ + { "name": "delegatorProfileId", "type": "uint256" }, + { "name": "delegatedExecutors", "type": "address[]" }, + { "name": "approvals", "type": "bool[]" }, + { "name": "configNumber", "type": "uint64" }, + { "name": "switchToGivenConfig", "type": "bool" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ] + } + }, + { + "primaryType": "collect", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "collect": [ + { "name": "publicationCollectedProfileId", "type": "uint256" }, + { "name": "publicationCollectedId", "type": "uint256" }, + { "name": "collectorProfileId", "type": "uint256" } + ] + } + }, + { + "primaryType": "collect_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "collect_with_sign": [ + { "name": "publicationCollectedProfileId", "type": "uint256" }, + { "name": "publicationCollectedId", "type": "uint256" }, + { "name": "collectorProfileId", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "Comment", + "types": { + "Comment": [ + { "name": "profileId", "type": "uint256" }, + { "name": "contentURI", "type": "string" }, + { "name": "pointedProfileId", "type": "uint256" }, + { "name": "pointedPubId", "type": "uint256" }, + { "name": "referrerProfileIds", "type": "uint256[]" }, + { "name": "referrerPubIds", "type": "uint256[]" }, + { "name": "referenceModuleData", "type": "bytes" }, + { "name": "actionModules", "type": "address[]" }, + { "name": "actionModulesInitDatas", "type": "bytes[]" }, + { "name": "referenceModule", "type": "address" }, + { "name": "referenceModuleInitData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ] + } + }, + { + "primaryType": "comment_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "comment_with_sign": [ + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "create_profile", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "create_profile": [{ "name": "to", "type": "address" }, { "name": "followModule", "type": "address" }] + } + }, + { + "primaryType": "Follow", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Follow": [ + { "name": "followerProfileId", "type": "uint256" }, + { "name": "idsOfProfilesToFollow", "type": "uint256[]" }, + { "name": "followTokenIds", "type": "uint256[]" }, + { "name": "datas", "type": "bytes[]" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "follow_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "follow_with_sign": [{ "name": "followerProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] + } + }, + { + "primaryType": "link", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "link": [{ "name": "handle_id", "type": "uint256" }, { "name": "profile_id", "type": "uint256" }] + } + }, + { + "primaryType": "link_with_sig", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "link_with_sig": [ + { "name": "handle_id", "type": "uint256" }, + { "name": "profile_id", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "mint", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "mint": [ + { "name": "to", "type": "uint256" }, + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" } + ] + } + }, + { + "primaryType": "Mirror", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Mirror": [ + { "name": "profileId", "type": "uint256" }, + { "name": "metadataURI", "type": "string" }, + { "name": "pointedProfileId", "type": "uint256" }, + { "name": "pointedPubId", "type": "uint256" }, + { "name": "referrerProfileIds", "type": "uint256[]" }, + { "name": "referrerPubIds", "type": "uint256[]" }, + { "name": "referenceModuleData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "mirror_with_sig", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "mirror_with_sig": [ + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "Post", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Post": [ + { "name": "profileId", "type": "uint256" }, + { "name": "contentURI", "type": "string" }, + { "name": "actionModules", "type": "address[]" }, + { "name": "actionModulesInitDatas", "type": "bytes[]" }, + { "name": "referenceModule", "type": "address" }, + { "name": "referenceModuleInitData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "post_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "post_with_sign": [{ "name": "profile_id", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] + } + }, + { + "primaryType": "Quote", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Quote": [ + { "name": "profileId", "type": "uint256" }, + { "name": "contentURI", "type": "string" }, + { "name": "pointedProfileId", "type": "uint256" }, + { "name": "pointedPubId", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "quote_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "quote_with_sign": [ + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "set_block_status", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "set_block_status": [{ "name": "byProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] + } + }, + { + "primaryType": "SetProfileMetadataURI", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "SetProfileMetadataURI": [ + { "name": "profileId", "type": "uint256" }, + { "name": "metadataURI", "type": "string" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "set_block_status_with_sig", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "set_block_status_with_sig": [{ "name": "byProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] + } + }, + { + "primaryType": "SetFollowModule", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "SetFollowModule": [ + { "name": "profileId", "type": "uint256" }, + { "name": "followModule", "type": "address" }, + { "name": "followModuleInitData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "set_profile_metadata_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "set_profile_metadata_with_sign": [{ "name": "profileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] + } + }, + { + "primaryType": "Unfollow", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Unfollow": [ + { "name": "unfollowerProfileId", "type": "uint256" }, + { "name": "idsOfProfilesToUnfollow", "type": "uint256[]" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "unfollow_with_sign", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "unfollow_with_sign": [{ "name": "unfollowerProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] + } + } + ] + } + }, + "metadata": { "owner": "LensHub" }, + "display": { + "formats": { + "act": { + "intent": "act", + "fields": [ + { "path": "actorProfileId", "label": "actorProfileId", "format": "raw" }, + { "path": "publicationActedId", "label": "publicationActedId", "format": "raw" }, + { "path": "publicationActedProfileId", "label": "publicationActedProfileId", "format": "raw" } + ], + "excluded": ["deadline", "actionModuleAddress", "referrerProfileIds.[]", "actionModuleData", "referrerPubIds.[]"] + }, + "burn": { "intent": "burn", "fields": [{ "path": "tokenId", "label": "tokenId", "format": "raw" }] }, + "ChangeDelegatedExecutorsConfig": { + "intent": "ChangeDelegatedExecutorsConfig", + "fields": [ + { "path": "delegatorProfileId", "label": "Delegator ProfileId", "format": "raw" }, + { "path": "delegatedExecutors.[]", "label": "Delegated Executors", "format": "raw" }, + { "path": "approvals.[]", "label": "Approvals", "format": "raw" }, + { "path": "configNumber", "label": "configNumber", "format": "raw" }, + { "path": "switchToGivenConfig", "label": "switchToGivenConfig", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["deadline"] + }, + "collect": { + "intent": "collect", + "fields": [ + { "path": "publicationCollectedProfileId", "label": "Publication Collected ProfileId", "format": "raw" }, + { "path": "publicationCollectedId", "label": "Publication CollectedId", "format": "raw" }, + { "path": "collectorProfileId", "label": "collector ProfileId", "format": "raw" } + ] + }, + "collect_with_sign": { + "intent": "collect_with_sign", + "fields": [ + { "path": "publicationCollectedProfileId", "label": "publicationCollectedProfileId", "format": "raw" }, + { "path": "publicationCollectedId", "label": "publicationCollectedId", "format": "raw" }, + { "path": "collectorProfileId", "label": "collectorProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "Comment": { + "intent": "Comment", + "fields": [ + { "path": "profileId", "label": "Profile Id", "format": "raw" }, + { "path": "contentURI", "label": "content URI", "format": "raw" }, + { "path": "pointedProfileId", "label": "Pointed Profile Id", "format": "raw" }, + { "path": "pointedPubId", "label": "Pointed Pub Id", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": [ + "referenceModuleInitData", + "referenceModuleData", + "actionModules", + "deadline", + "referrerProfileIds", + "referenceModule", + "actionModulesInitDatas", + "referrerPubIds" + ] + }, + "comment_with_sign": { + "intent": "comment_with_sign", + "fields": [ + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "create_profile": { + "intent": "create_profile", + "fields": [{ "path": "to", "label": "to", "format": "raw" }, { "path": "followModule", "label": "followModule", "format": "raw" }] + }, + "Follow": { + "intent": "Follow", + "fields": [ + { "path": "followerProfileId", "label": "follower ProfileId", "format": "raw" }, + { "path": "idsOfProfilesToFollow.[]", "label": "ids Of Profiles To Follow", "format": "raw" }, + { "path": "followTokenIds.[]", "label": "follow TokenIds", "format": "raw" }, + { "path": "datas.[]", "label": "datas", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["deadline"] + }, + "follow_with_sign": { + "intent": "follow_with_sign", + "fields": [ + { "path": "followerProfileId", "label": "followerProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "link": { + "intent": "link", + "fields": [ + { "path": "handle_id", "label": "handle_id", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" } + ] + }, + "link_with_sig": { + "intent": "link_with_sig", + "fields": [ + { "path": "handle_id", "label": "handle_id", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "mint": { + "intent": "mint", + "fields": [ + { "path": "to", "label": "to", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" } + ] + }, + "Mirror": { + "intent": "mirror", + "fields": [ + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "metadataURI", "label": "metadataURI", "format": "raw" }, + { "path": "pointedProfileId", "label": "pointedProfileId", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["deadline", "pointedPubId", "referenceModuleData", "referrerProfileIds", "referrerPubIds"] + }, + "mirror_with_sig": { + "intent": "mirror_with_sig", + "fields": [ + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "Post": { + "intent": "Post", + "fields": [ + { "path": "profileId", "label": "Profile Id", "format": "raw" }, + { "path": "contentURI", "label": "Post URI", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["referenceModuleInitData", "actionModules", "deadline", "referenceModule", "actionModulesInitDatas"] + }, + "post_with_sign": { + "intent": "post_with_sign", + "fields": [ + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "Quote": { + "intent": "Quote", + "fields": [ + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "contentURI", "label": "contentURI", "format": "raw" }, + { "path": "pointedProfileId", "label": "pointedProfileId", "format": "raw" }, + { "path": "pointedPubId", "label": "pointedPubId", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" }, + { "path": "deadline", "label": "deadline", "format": "raw" } + ] + }, + "quote_with_sign": { + "intent": "quote_with_sign", + "fields": [ + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "set_block_status": { + "intent": "set_block_status", + "fields": [ + { "path": "byProfileId", "label": "byProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "SetProfileMetadataURI": { + "intent": "SetProfileMetadataURI", + "fields": [ + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "metadataURI", "label": "metadataURI", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["deadline"] + }, + "set_block_status_with_sig": { + "intent": "set_block_status_with_sig", + "fields": [ + { "path": "byProfileId", "label": "byProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "SetFollowModule": { + "intent": "Set Follow Module", + "fields": [ + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "followModule", "label": "followModule", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["deadline", "followModuleInitData"] + }, + "set_profile_metadata_with_sign": { + "intent": "set_profile_metadata_with_sign", + "fields": [ + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "Unfollow": { + "intent": "Unfollow", + "fields": [ + { "path": "unfollowerProfileId", "label": "Unfollower ProfileId", "format": "raw" }, + { "path": "idsOfProfilesToUnfollow.[]", "label": "ids Of Profiles To Unfollow", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" }, + { "path": "deadline", "label": "deadline", "format": "raw" } + ] + }, + "unfollow_with_sign": { + "intent": "unfollow_with_sign", + "fields": [ + { "path": "unfollowerProfileId", "label": "unfollowerProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json new file mode 100644 index 00000000..353839ee --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json @@ -0,0 +1,66 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 137, "address": "0xd4f2f33680fccb36748fa9831851643781608844" }], + "domain": { "name": "LensHub", "chainId": 137, "verifyingContract": "0xd4f2f33680fccb36748fa9831851643781608844" }, + "schemas": [ + { + "primaryType": "unlink_with_sig", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "unlink_with_sig": [ + { "name": "handle_id", "type": "uint256" }, + { "name": "profile_id", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } + ] + } + }, + { + "primaryType": "unlink", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "unlink": [ + { "name": "handleId", "type": "uint256" }, + { "name": "profileId", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } + ] + } + } + ] + } + }, + "metadata": { "owner": "TokenHandleRegistry" }, + "display": { + "formats": { + "unlink_with_sig": { + "intent": "unlink_with_sig", + "fields": [ + { "path": "handle_id", "label": "handle_id", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } + ] + }, + "unlink": { + "intent": "unlink", + "fields": [ + { "path": "handleId", "label": "handleId", "format": "raw" }, + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } + ], + "excluded": ["deadline"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json new file mode 100644 index 00000000..45ccab2f --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json @@ -0,0 +1,188 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "WithdrawalQueueERC721", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/2eb3482cb1311f828a88e417c5095b9bbbc43fee/ethereum/lido/abis/0x889edc2edab5f40e902b864ad4d7ade8e412f9b1.abi.json" + } + }, + "metadata": { + "owner": "Lido DAO", + "info": { "legalName": "Lido DAO", "url": "https://lido.fi" }, + "constants": { + "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", + "wstETHaddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" + } + }, + "display": { + "formats": { + "requestWithdrawals(uint256[],address)": { + "intent": "request stETH withdrawal", + "fields": [ + { + "label": "Amount to withdraw", + "format": "tokenAmount", + "path": "#._amounts.[]", + "params": { "token": "$.metadata.constants.stETHaddress" } + }, + { + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._owner" + } + ], + "required": ["#._amounts.[]", "#._owner"], + "excluded": [] + }, + "requestWithdrawalsWithPermit(uint256[],address,(uint256,uint256,uint8,bytes32,bytes32))": { + "intent": "request stETH withdrawal", + "fields": [ + { + "label": "Amount to withdraw", + "format": "tokenAmount", + "path": "#._amounts.[]", + "params": { "token": "$.metadata.constants.stETHaddress" } + }, + { + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._owner" + } + ], + "required": ["#._amounts.[]", "#._owner"], + "excluded": ["#._permit.value", "#._permit.deadline", "#._permit.v", "#._permit.r", "#._permit.s"] + }, + "requestWithdrawalsWstETH(uint256[],address)": { + "intent": "request wstETH withdrawal", + "fields": [ + { + "label": "Amount to withdraw", + "format": "tokenAmount", + "path": "#._amounts.[]", + "params": { "token": "$.metadata.constants.wstETHaddress" } + }, + { + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._owner" + } + ], + "required": ["#._amounts.[]", "#._owner"], + "excluded": [] + }, + "requestWithdrawalsWstETHWithPermit(uint256[],address,(uint256,uint256,uint8,bytes32,bytes32))": { + "intent": "request wstETH withdrawal", + "fields": [ + { + "label": "Amount to withdraw", + "format": "tokenAmount", + "path": "#._amounts.[]", + "params": { "token": "$.metadata.constants.wstETHaddress" } + }, + { + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._owner" + } + ], + "required": ["#._amounts.[]", "#._owner"], + "excluded": ["#._permit"] + }, + "claimWithdrawal(uint256)": { + "intent": "claim withdrawal request", + "fields": [{ "label": "Request ID", "format": "raw", "path": "#._requestId" }], + "required": ["#._requestId"], + "excluded": [] + }, + "claimWithdrawals(uint256[],uint256[])": { + "intent": "claim withdrawal requests", + "fields": [{ "label": "Request ID", "format": "raw", "path": "#._requestIds.[]" }], + "required": ["#._requestIds.[]"], + "excluded": ["#._hints.[]"] + }, + "claimWithdrawalsTo(uint256[],uint256[],address)": { + "intent": "claim withdrawal requests", + "fields": [ + { "label": "Request IDs", "format": "raw", "path": "#._requestIds.[]" }, + { + "label": "ETH recipient", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._recipient" + } + ], + "required": ["#._requestIds.[]", "#._recipient"], + "excluded": ["#._hints.[]"] + }, + "approve(address,uint256)": { + "intent": "allow unstETH NFT transfer", + "fields": [ + { + "label": "Operator address", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local"] }, + "path": "#._to" + }, + { "label": "Request ID", "format": "raw", "path": "#._requestId" } + ] + }, + "safeTransferFrom(address,address,uint256)": { + "intent": "transfer unstETH NFT", + "fields": [ + { + "label": "From", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._from" + }, + { + "label": "To", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._to" + } + ], + "required": ["#._from", "#._to"], + "excluded": ["#._requestId"] + }, + "transferFrom(address,address,uint256)": { + "intent": "transfer unstETH NFT", + "fields": [ + { + "label": "From", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._from" + }, + { + "label": "To", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._to" + } + ], + "required": ["#._from", "#._to"], + "excluded": ["#._requestId"] + }, + "setApprovalForAll(address, bool)": { + "intent": "approve all unstETH tokens", + "fields": [ + { + "label": "Operator", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._operator" + }, + { "label": "Approved", "format": "raw", "path": "#._approved" } + ], + "required": ["#._operator", "#._approved"], + "excluded": [] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json new file mode 100644 index 00000000..73577837 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json @@ -0,0 +1,63 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "stETH", + "contract": { + "deployments": [{ "chainId": 1, "address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0xae7ab96520de3a18e5e111b5eaab095312d7fe84.abi.json" + } + }, + "metadata": { + "owner": "Lido DAO", + "info": { "legalName": "Lido DAO", "url": "https://lido.fi" }, + "constants": { "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" } + }, + "display": { + "formats": { + "approve(address,uint256)": { + "intent": "authorize stETH spending", + "fields": [ + { + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local"] }, + "path": "#._spender" + }, + { + "label": "Amount", + "format": "tokenAmount", + "path": "#._amount", + "params": { "token": "$.metadata.constants.stETHaddress" } + } + ], + "required": ["#._spender", "#._amount"], + "excluded": [] + }, + "submit(address)": { + "intent": "stake ETH", + "fields": [{ "label": "Amount to stake", "format": "amount", "path": "@.value" }], + "required": [], + "excluded": ["#._referral"] + }, + "transfer(address,uint256)": { + "intent": "transfer stETH", + "fields": [ + { + "label": "Recipient", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#._recipient" + }, + { + "label": "Amount", + "format": "tokenAmount", + "path": "#._amount", + "params": { "token": "$.metadata.constants.stETHaddress" } + } + ], + "required": ["#._recipient", "#._amount"], + "excluded": [] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json new file mode 100644 index 00000000..33db5ef7 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json @@ -0,0 +1,86 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "wstETH", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0.abi.json" + } + }, + "metadata": { + "owner": "Lido DAO", + "info": { "legalName": "Lido DAO", "url": "https://lido.fi" }, + "constants": { + "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", + "wstETHaddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" + } + }, + "display": { + "formats": { + "approve(address,uint256)": { + "intent": "authorize wstETH spending", + "fields": [ + { + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local"] }, + "path": "#.spender" + }, + { + "label": "Amount", + "format": "tokenAmount", + "path": "#.amount", + "params": { "token": "$.metadata.constants.wstETHaddress" } + } + ], + "required": ["#.spender", "#.amount"], + "excluded": [] + }, + "wrap(uint256)": { + "intent": "wrap stETH to wstETH", + "fields": [ + { + "label": "stETH amount", + "format": "tokenAmount", + "path": "#._stETHAmount", + "params": { "token": "$.metadata.constants.stETHaddress" } + } + ], + "required": ["#._stETHAmount"], + "excluded": [] + }, + "unwrap(uint256)": { + "intent": "unwrap wstETH to stETH", + "fields": [ + { + "label": "wstETH amount", + "format": "tokenAmount", + "path": "#._wstETHAmount", + "params": { "token": "$.metadata.constants.wstETHaddress" } + } + ], + "required": ["#._wstETHAmount"], + "excluded": [] + }, + "transfer(address,uint256)": { + "intent": "transfer wstETH", + "fields": [ + { + "label": "Recipient", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, + "path": "#.recipient" + }, + { + "label": "Amount", + "format": "tokenAmount", + "path": "#.amount", + "params": { "token": "$.metadata.constants.wstETHaddress" } + } + ], + "required": ["#.recipient", "#.amount"], + "excluded": [] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json new file mode 100644 index 00000000..abaced24 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json @@ -0,0 +1,44 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "LBTC", + "contract": { + "deployments": [{ "chainId": 17000, "address": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" }], + "abi": [ + { + "type": "function", + "name": "redeem", + "inputs": [ + { "name": "scriptPubkey", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, + { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ] + } + }, + "metadata": { "owner": "Lombard", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, + "display": { + "formats": { + "redeem(bytes,uint256)": { + "intent": "Redeem LBTC", + "fields": [ + { "label": "Script Pubkey", "format": "raw", "path": "#.scriptPubkey" }, + { + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" }, + "path": "#.amount" + } + ], + "required": ["#.scriptPubkey", "#.amount"], + "excluded": ["#.scriptPubkey.[]"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json new file mode 100644 index 00000000..b0c43c58 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json @@ -0,0 +1,44 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "LBTC", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x8236a87084f8B84306f72007F36F2618A5634494" }], + "abi": [ + { + "type": "function", + "name": "redeem", + "inputs": [ + { "name": "scriptPubkey", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, + { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ] + } + }, + "metadata": { "owner": "Lombard", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, + "display": { + "formats": { + "redeem(bytes,uint256)": { + "intent": "Redeem LBTC", + "fields": [ + { "label": "Script Pubkey", "format": "raw", "path": "#.scriptPubkey" }, + { + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0x8236a87084f8B84306f72007F36F2618A5634494" }, + "path": "#.amount" + } + ], + "required": ["#.scriptPubkey", "#.amount"], + "excluded": ["#.scriptPubkey.[]"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json new file mode 100644 index 00000000..17a88d56 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json @@ -0,0 +1,41 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 17000, "address": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" }], + "domain": { + "name": "Lombard Staked Bitcoin", + "version": "1", + "chainId": 17000, + "verifyingContract": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" + }, + "schemas": [ + { + "primaryType": "feeApproval", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "feeApproval": [{ "name": "chainId", "type": "uint256" }, { "name": "fee", "type": "uint256" }, { "name": "expiry", "type": "uint256" }] + } + } + ] + } + }, + "metadata": { "owner": "Lombard Finance", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, + "display": { + "formats": { + "feeApproval": { + "intent": "Lombard Network Fee Authorization", + "fields": [ + { "path": "chainId", "label": "Chain ID", "format": "raw" }, + { "path": "fee", "label": "Network Fee", "format": "amount" }, + { "path": "expiry", "label": "Expiry", "format": "date", "params": { "encoding": "timestamp" } } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json new file mode 100644 index 00000000..cab8e248 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json @@ -0,0 +1,41 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x8236a87084f8B84306f72007F36F2618A5634494" }], + "domain": { + "name": "Lombard Staked Bitcoin", + "version": "1", + "chainId": 1, + "verifyingContract": "0x8236a87084f8B84306f72007F36F2618A5634494" + }, + "schemas": [ + { + "primaryType": "feeApproval", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "feeApproval": [{ "name": "chainId", "type": "uint256" }, { "name": "fee", "type": "uint256" }, { "name": "expiry", "type": "uint256" }] + } + } + ] + } + }, + "metadata": { "owner": "Lombard Finance", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, + "display": { + "formats": { + "feeApproval": { + "intent": "Lombard Network Fee Authorization", + "fields": [ + { "path": "chainId", "label": "Chain ID", "format": "raw" }, + { "path": "fee", "label": "Network Fee", "format": "amount" }, + { "path": "expiry", "label": "Expiry", "format": "date", "params": { "encoding": "timestamp" } } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json new file mode 100644 index 00000000..4b71ffb1 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json @@ -0,0 +1,20 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "domain": { "name": "Dai Stablecoin", "version": "1" }, + "deployments": [{ "chainId": 42, "address": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa" }] + } + }, + "includes": "../../ercs/eip712-erc2612-permit.json", + "metadata": { + "owner": "MakerDAO", + "info": { "legalName": "Maker Foundation", "url": "https://makerdao.com/", "deploymentDate": "2017-12-18T00:00:00Z" }, + "token": { "name": "Dai Stablecoin", "ticker": "DAI", "decimals": 18 } + }, + "display": { + "formats": { + "Permit": { "screens": { "stax": [{ "type": "propertyPage", "label": "DAI Permit", "content": ["spender", "value", "deadline"] }] } } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json new file mode 100644 index 00000000..d8120f68 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json @@ -0,0 +1,58 @@ +{ + "types": { + "EIP712Domain": [ + { + "name": "name", + "type": "string" + }, + { + "name": "version", + "type": "string" + }, + { + "name": "chainId", + "type": "uint256" + }, + { + "name": "verifyingContract", + "type": "address" + } + ], + "Permit": [ + { + "name": "owner", + "type": "address" + }, + { + "name": "spender", + "type": "address" + }, + { + "name": "value", + "type": "uint256" + }, + { + "name": "nonce", + "type": "uint256" + }, + { + "name": "deadline", + "type": "uint256" + } + ] + }, + "primaryType": "Permit", + "domain": { + "name": "Dai Stablecoin", + "version": "1", + "chainId": 42, + "verifyingContract": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa" + }, + "message": { + "owner": "$owner", + "spender": "$spender", + "value": "$value", + "nonce": "$nonce", + "deadline": "$deadline" + } +} \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json new file mode 100644 index 00000000..85707569 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "9Summits", + "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "9SETHc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xF540D790413FCFAedAC93518Ae99EdDacE82cb78" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json new file mode 100644 index 00000000..85de33dc --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "9Summits", + "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "9SETHcore" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x5496b42ad0deCebFab0db944D83260e60D54f667" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json new file mode 100644 index 00000000..d093bdc8 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "9Summits", + "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, + "constants": { + "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "underlyingTicker": "USDC", + "vaultTicker": "9SUSDC11Core" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1E2aAaDcF528b9cC08F43d4fd7db488cE89F5741" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json new file mode 100644 index 00000000..773ffebb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "9Summits", + "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "9SUSDCcore" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xD5Ac156319f2491d4ad1Ec4aA5ed0ED48C0fa173" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json new file mode 100644 index 00000000..89d9db82 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "9Summits", + "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, + "constants": { "underlyingToken": "0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110", "underlyingTicker": "USR", "vaultTicker": "9SUSR" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x00B6f2C15E4439749f192D10c70f65354848Cf4b" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json new file mode 100644 index 00000000..48185ccb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json @@ -0,0 +1,1056 @@ +{ + "$schema": null, + "context": { + "$id": null, + "contract": { + "deployments": [ + { "chainId": 1, "address": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb" }, + { "chainId": 8453, "address": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb" } + ], + "abi": [ + { + "type": "function", + "name": "DOMAIN_SEPARATOR", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "accrueInterest", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "borrow", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "createMarket", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enableIrm", + "inputs": [{ "name": "irm", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "enableLltv", + "inputs": [{ "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "extSloads", + "inputs": [{ "name": "slots", "type": "bytes32[]", "internalType": "bytes32[]", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "res", "type": "bytes32[]", "internalType": "bytes32[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "feeRecipient", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "flashLoan", + "inputs": [ + { "name": "token", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "idToMarketParams", + "inputs": [{ "name": "", "type": "bytes32", "internalType": "Id", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "collateralToken", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isAuthorized", + "inputs": [ + { "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isIrmEnabled", + "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isLltvEnabled", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "liquidate", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "borrower", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "seizedAssets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "repaidShares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "market", + "inputs": [{ "name": "", "type": "bytes32", "internalType": "Id", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "totalSupplyAssets", + "type": "uint128", + "internalType": "uint128", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "totalSupplyShares", + "type": "uint128", + "internalType": "uint128", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "totalBorrowAssets", + "type": "uint128", + "internalType": "uint128", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "totalBorrowShares", + "type": "uint128", + "internalType": "uint128", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "lastUpdate", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null }, + { "name": "fee", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "nonce", + "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "position", + "inputs": [ + { "name": "", "type": "bytes32", "internalType": "Id", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "supplyShares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "borrowShares", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null }, + { "name": "collateral", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "repay", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setAuthorization", + "inputs": [ + { "name": "authorized", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "newIsAuthorized", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setAuthorizationWithSig", + "inputs": [ + { + "name": "authorization", + "type": "tuple", + "internalType": "struct Authorization", + "components": [ + { "name": "authorizer", "type": "address", "internalType": "address", "components": null }, + { "name": "authorized", "type": "address", "internalType": "address", "components": null }, + { "name": "isAuthorized", "type": "bool", "internalType": "bool", "components": null }, + { "name": "nonce", "type": "uint256", "internalType": "uint256", "components": null }, + { "name": "deadline", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { + "name": "signature", + "type": "tuple", + "internalType": "struct Signature", + "components": [ + { "name": "v", "type": "uint8", "internalType": "uint8", "components": null }, + { "name": "r", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "s", "type": "bytes32", "internalType": "bytes32", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setFee", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "newFee", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setFeeRecipient", + "inputs": [ + { + "name": "newFeeRecipient", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setOwner", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "supply", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "supplyCollateral", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "withdraw", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [ + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "withdrawCollateral", + "inputs": [ + { + "name": "marketParams", + "type": "tuple", + "internalType": "struct MarketParams", + "components": [ + { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, + { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, + { "name": "oracle", "type": "address", "internalType": "address", "components": null }, + { "name": "irm", "type": "address", "internalType": "address", "components": null }, + { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { + "owner": "Morpho DAO", + "info": { "legalName": "Morpho DAO", "url": "https://docs.morpho.org/governance/organization/multisigs-and-addresses" } + }, + "display": { + "formats": { + "borrow((address,address,address,address,uint256),uint256,uint256,address,address)": { + "$id": null, + "intent": "Borrow from Morpho Market", + "screens": null, + "fields": [ + { + "path": "#.marketParams", + "value": null, + "fields": [ + { + "$id": null, + "label": "Loan Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "loanToken", + "value": null + }, + { + "$id": null, + "label": "Collateral Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "collateralToken", + "value": null + }, + { + "$id": null, + "label": "Oracle", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "oracle", + "value": null + }, + { + "$id": null, + "label": "Irm", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "irm", + "value": null + }, + { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } + ] + }, + { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, + { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, + { + "$id": null, + "label": "On Behalf", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#.onBehalf", + "value": null + }, + { + "$id": null, + "label": "Receiver", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#.receiver", + "value": null + } + ], + "required": [ + "#.marketParamsloanToken", + "#.marketParamscollateralToken", + "#.marketParamsoracle", + "#.marketParamsirm", + "#.marketParamslltv", + "#.assets", + "#.shares", + "#.onBehalf", + "#.receiver" + ], + "excluded": null + }, + "repay((address,address,address,address,uint256),uint256,uint256,address,bytes)": { + "$id": null, + "intent": "Repay on Morpho Market", + "screens": null, + "fields": [ + { + "path": "#.marketParams", + "value": null, + "fields": [ + { + "$id": null, + "label": "Loan Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "loanToken", + "value": null + }, + { + "$id": null, + "label": "Collateral Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "collateralToken", + "value": null + }, + { + "$id": null, + "label": "Oracle", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "oracle", + "value": null + }, + { + "$id": null, + "label": "Irm", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "irm", + "value": null + }, + { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } + ] + }, + { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, + { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, + { + "$id": null, + "label": "On Behalf", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#.onBehalf", + "value": null + }, + { "$id": null, "label": "Data", "format": "raw", "params": null, "path": "#.data", "value": null } + ], + "required": [ + "#.marketParamsloanToken", + "#.marketParamscollateralToken", + "#.marketParamsoracle", + "#.marketParamsirm", + "#.marketParamslltv", + "#.assets", + "#.shares", + "#.onBehalf", + "#.data" + ], + "excluded": null + }, + "supply((address,address,address,address,uint256),uint256,uint256,address,bytes)": { + "$id": null, + "intent": "Supply on Morpho Market", + "screens": null, + "fields": [ + { + "path": "#.marketParams", + "value": null, + "fields": [ + { + "$id": null, + "label": "Loan Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "loanToken", + "value": null + }, + { + "$id": null, + "label": "Collateral Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "collateralToken", + "value": null + }, + { + "$id": null, + "label": "Oracle", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "oracle", + "value": null + }, + { + "$id": null, + "label": "Irm", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "irm", + "value": null + }, + { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } + ] + }, + { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, + { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, + { + "$id": null, + "label": "On Behalf", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#.onBehalf", + "value": null + }, + { "$id": null, "label": "Data", "format": "raw", "params": null, "path": "#.data", "value": null } + ], + "required": [ + "#.marketParamsloanToken", + "#.marketParamscollateralToken", + "#.marketParamsoracle", + "#.marketParamsirm", + "#.marketParamslltv", + "#.assets", + "#.shares", + "#.onBehalf", + "#.data" + ], + "excluded": null + }, + "supplyCollateral((address,address,address,address,uint256),uint256,address,bytes)": { + "$id": null, + "intent": "Supply Collateral on Morpho Market", + "screens": null, + "fields": [ + { + "path": "#.marketParams", + "value": null, + "fields": [ + { + "$id": null, + "label": "Loan Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "loanToken", + "value": null + }, + { + "$id": null, + "label": "Collateral Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "collateralToken", + "value": null + }, + { + "$id": null, + "label": "Oracle", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "oracle", + "value": null + }, + { + "$id": null, + "label": "Irm", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "irm", + "value": null + }, + { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } + ] + }, + { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, + { + "$id": null, + "label": "On Behalf", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#.onBehalf", + "value": null + }, + { "$id": null, "label": "Data", "format": "raw", "params": null, "path": "#.data", "value": null } + ], + "required": [ + "#.marketParamsloanToken", + "#.marketParamscollateralToken", + "#.marketParamsoracle", + "#.marketParamsirm", + "#.marketParamslltv", + "#.assets", + "#.onBehalf", + "#.data" + ], + "excluded": null + }, + "withdraw((address,address,address,address,uint256),uint256,uint256,address,address)": { + "$id": null, + "intent": "Withdraw from Morpho Market", + "screens": null, + "fields": [ + { + "path": "#.marketParams", + "value": null, + "fields": [ + { + "$id": null, + "label": "Loan Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "loanToken", + "value": null + }, + { + "$id": null, + "label": "Collateral Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "collateralToken", + "value": null + }, + { + "$id": null, + "label": "Oracle", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "oracle", + "value": null + }, + { + "$id": null, + "label": "Irm", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "irm", + "value": null + }, + { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } + ] + }, + { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, + { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, + { + "$id": null, + "label": "On Behalf", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#.onBehalf", + "value": null + }, + { + "$id": null, + "label": "Receiver", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#.receiver", + "value": null + } + ], + "required": [ + "#.marketParamsloanToken", + "#.marketParamscollateralToken", + "#.marketParamsoracle", + "#.marketParamsirm", + "#.marketParamslltv", + "#.assets", + "#.shares", + "#.onBehalf", + "#.receiver" + ], + "excluded": null + }, + "withdrawCollateral((address,address,address,address,uint256),uint256,address,address)": { + "$id": null, + "intent": "Withdraw Collateral from Morpho Market", + "screens": null, + "fields": [ + { + "path": "#.marketParams", + "value": null, + "fields": [ + { + "$id": null, + "label": "Loan Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "loanToken", + "value": null + }, + { + "$id": null, + "label": "Collateral Token", + "format": "addressName", + "params": { "types": ["token"], "sources": null }, + "path": "collateralToken", + "value": null + }, + { + "$id": null, + "label": "Oracle", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "oracle", + "value": null + }, + { + "$id": null, + "label": "Irm", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "irm", + "value": null + }, + { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } + ] + }, + { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, + { + "$id": null, + "label": "On Behalf", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, + "path": "#.onBehalf", + "value": null + }, + { + "$id": null, + "label": "Receiver", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#.receiver", + "value": null + } + ], + "required": [ + "#.marketParamsloanToken", + "#.marketParamscollateralToken", + "#.marketParamsoracle", + "#.marketParamsirm", + "#.marketParamslltv", + "#.assets", + "#.onBehalf", + "#.receiver" + ], + "excluded": null + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json new file mode 100644 index 00000000..ab5752d0 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Apostro", + "info": { "legalName": "Apostro", "url": "https://apostro.xyz" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "aprUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xcdDCDd18A16ED441F6CB10c3909e5e7ec2B9e8f3" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json new file mode 100644 index 00000000..e9249466 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Apostro", + "info": { "legalName": "Apostro", "url": "https://apostro.xyz" }, + "constants": { "underlyingToken": "0x35E5dB674D8e93a03d814FA0ADa70731efe8a4b9", "underlyingTicker": "USR", "vaultTicker": "aprUSR" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xC484D83F667b779cc9907248101214235642258B" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json new file mode 100644 index 00000000..e15faf5b --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "B.Protocol", + "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "reETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x70F796946eD919E4Bc6cD506F8dACC45E4539771" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json new file mode 100644 index 00000000..d1a8897c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "B.Protocol", + "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, + "constants": { "underlyingToken": "0x2103E845C5E135493Bb6c2A4f0B8651956eA8682", "underlyingTicker": "XAUM", "vaultTicker": "reGOLD" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x45c1875F1C48622b3D9740Af2D7dc62Bc9a72422" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json new file mode 100644 index 00000000..99fc65d6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "B.Protocol", + "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "reUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x0F359FD18BDa75e9c49bC027E7da59a4b01BF32a" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json new file mode 100644 index 00000000..4b61796d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "B.Protocol", + "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, + "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "recbBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xB9C9158aB81f90996cAD891fFbAdfBaad733c8C6" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json new file mode 100644 index 00000000..a69251b4 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "bbETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x38989BBA00BDF8181F4082995b3DEAe96163aC5D" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json new file mode 100644 index 00000000..a5e916f0 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "bbUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x186514400e52270cef3D80e1c6F8d10A75d47344" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json new file mode 100644 index 00000000..9ea490e8 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "bbUSDT" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2C25f6C25770fFEC5959D34B94Bf898865e5D6b1" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json new file mode 100644 index 00000000..987c388d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "mwETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xa0E430870c4604CcfC7B38Ca7845B1FF653D0ff1" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json new file mode 100644 index 00000000..8f418bca --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42", "underlyingTicker": "EURC", "vaultTicker": "mwEURC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xf24608E0CCb972b0b0f4A6446a0BBf58c701a026" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json new file mode 100644 index 00000000..a0121ce6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "mwUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json new file mode 100644 index 00000000..b8407336 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Block Analitica", + "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, + "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "mwcbBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x543257eF2161176D7C8cD90BA65C2d4CaEF5a796" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json new file mode 100644 index 00000000..045e9673 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Fence", + "info": { "legalName": "Fence", "url": "https://www.fence.finance/" }, + "constants": { "underlyingToken": "0x3231Cb76718CDeF2155FC47b5286d82e6eDA273f", "underlyingTicker": "EURe", "vaultTicker": "ERY" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xC21DB71648B18C5B9E038d88393C9b254cf8eaC8" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json new file mode 100644 index 00000000..c101ab28 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "elixirUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x0404fD1a77756EB029F06b5CDea88B2B2ddC2fEE" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json new file mode 100644 index 00000000..cd0c9eb3 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a", "underlyingTicker": "AUSD", "vaultTicker": "gtAUSDc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json new file mode 100644 index 00000000..98fa35aa --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "underlyingTicker": "DAI", "vaultTicker": "gtDAIcore" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x500331c9fF24D9d11aee6B07734Aa72343EA74a5" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json new file mode 100644 index 00000000..1398bc20 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42", "underlyingTicker": "EURC", "vaultTicker": "gtEURCc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x1c155be6bC51F2c37d472d4C2Eba7a637806e122" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json new file mode 100644 index 00000000..286edad0 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xecAc9C5F704e954931349Da37F60E39f515c11c1", "underlyingTicker": "LBTC", "vaultTicker": "gtLBTCc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x0D05e6ec0A10f9fFE9229EAA785c11606a1d13Fb" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json new file mode 100644 index 00000000..9cd95a98 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "gtLRTcore" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4881Ef0BF6d2365D3dd6499ccd7532bcdBCE0658" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json new file mode 100644 index 00000000..0f7958b2 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x0000206329b97DB379d5E1Bf586BbDB969C63274", "underlyingTicker": "USDA", "vaultTicker": "gtUSDAcore" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x125D41A6e5dbf455cD9Df8F80BCC6fd172D52Cc6" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json new file mode 100644 index 00000000..61ed74a1 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xdd0f28e19C1780eb6396170735D45153D261490d" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json new file mode 100644 index 00000000..e4dd75ed --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xc0c5689e6f4D256E861F65465b691aeEcC0dEb12" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json new file mode 100644 index 00000000..064af685 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCcore" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x8eB67A509616cd6A7c1B3c8C21D48FF57df3d458" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json new file mode 100644 index 00000000..c56189df --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCmkr" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xEbFA750279dEfa89b8D99bdd145a016F6292757b" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json new file mode 100644 index 00000000..9455559c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCp" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json new file mode 100644 index 00000000..f8ef2260 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "gtUSDT" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x8CB3649114051cA5119141a34C200D65dc0Faa73" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json new file mode 100644 index 00000000..2136af39 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "gtWBTCc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x443df5eEE3196e9b2Dd77CaBd3eA76C3dee8f9b2" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json new file mode 100644 index 00000000..7b465fe4 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "gtWETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2371e134e3455e0593363cBF89d3b6cf53740618" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json new file mode 100644 index 00000000..8c5bbc8c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "gtWETHc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x6b13c060F13Af1fdB319F52315BbbF3fb1D88844" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json new file mode 100644 index 00000000..9a655aef --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "gtWETHe" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1e6ffa4e9F63d10B8820A3ab52566Af881Dab53c" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json new file mode 100644 index 00000000..0988cb12 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "gtcbBTCc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xF587f2e8AfF7D76618d3B6B4626621860FbD54e3" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json new file mode 100644 index 00000000..b20ab412 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0d69E286B938e21CBf7E51D71F6A4c8918f482F", "underlyingTicker": "eUSD", "vaultTicker": "gteUSDc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xc080f56504e0278828A403269DB945F6c6D6E014" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json new file mode 100644 index 00000000..dbf71de5 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x64351fC9810aDAd17A690E4e1717Df5e7e085160", "underlyingTicker": "msETH", "vaultTicker": "gtmsETHc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x78B18E07dc43017fcEaabaD0751d6464c0F56b25" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json new file mode 100644 index 00000000..e7c8b12a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xab5eB14c09D416F0aC63661E57EDB7AEcDb9BEfA", "underlyingTicker": "msUSD", "vaultTicker": "gtmsUSDc" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x6859B34a9379122d25A9FA46f0882d434fee36c3" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json new file mode 100644 index 00000000..ec9c6298 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtusdcf" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xc582F04d8a82795aa2Ff9c8bb4c1c889fe7b754e" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json new file mode 100644 index 00000000..b0fca7fd --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "ionicUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xCd347c1e7d600a9A3e403497562eDd0A7Bc3Ef21" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json new file mode 100644 index 00000000..42785c5b --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "ionicWETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x9aB2d181E4b87ba57D5eD564D3eF652C4E710707" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json new file mode 100644 index 00000000..cd5bb3f3 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "mhyETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x701907283a57FF77E255C3f1aAD790466B8CE4ef" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json new file mode 100644 index 00000000..18070b36 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "midasUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA8875aaeBc4f830524e35d57F9772FfAcbdD6C45" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json new file mode 100644 index 00000000..427f5e7a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { + "underlyingToken": "0xd9D920AA40f578ab794426F5C90F6C731D159DEf", + "underlyingTicker": "SolvBTC.BBN", + "vaultTicker": "msolvbtcbbn" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xdBB316375B4dC992B2c8827D120c09dFB1d3455D" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json new file mode 100644 index 00000000..ebb0cb46 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "resolvUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x132E6C9C33A62D7727cd359b1f51e5B566E485Eb" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json new file mode 100644 index 00000000..93f3f692 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { + "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "underlyingTicker": "USDC", + "vaultTicker": "sbMorphoUSDC" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4Ff4186188f8406917293A9e01A1ca16d3cf9E59" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json new file mode 100644 index 00000000..526fe8cb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { + "underlyingToken": "0x18084fbA666a33d37592fA2633fD49a74DD93a88", + "underlyingTicker": "tBTC", + "vaultTicker": "sbMorphotBTC" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x059Fc6723b9bF77DbF4283C8d7C90eA8Af44EF10" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json new file mode 100644 index 00000000..b7e355da --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "smUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x616a4E1db48e22028f6bbf20444Cd3b8e3273738" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json new file mode 100644 index 00000000..921016a7 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "smWETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x27D8c7273fd3fcC6956a0B370cE5Fd4A7fc65c18" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json new file mode 100644 index 00000000..7174054f --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Gauntlet", + "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, + "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "smcbBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x5a47C803488FE2BB0A0EAaf346b420e4dF22F3C7" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json new file mode 100644 index 00000000..227123e1 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Hakutora", + "info": { "legalName": "Hakutora", "url": "https://hakutora.xyz/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "hUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x974c8FBf4fd795F66B85B73ebC988A51F1A040a9" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json new file mode 100644 index 00000000..5823dd12 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "LeadBlock", + "info": { "legalName": "LeadBlock", "url": "https://leadblockpartners.com/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "USDC RWA" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4cA0E178c94f039d7F202E09d8d1a655Ed3fb6b6" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json new file mode 100644 index 00000000..6b74e04c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "LlamaRisk", + "info": { "legalName": "LlamaRisk", "url": "https://www.llamarisk.com/" }, + "constants": { + "underlyingToken": "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E", + "underlyingTicker": "crvUSD", + "vaultTicker": "llama-crvUSD" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x67315dd969B8Cd3a3520C245837Bf71f54579C75" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json new file mode 100644 index 00000000..bc1ec49d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110", "underlyingTicker": "USR", "vaultTicker": "MC-USR" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xD50DA5F859811A91fD1876C9461fD39c23C747Ad" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json new file mode 100644 index 00000000..4a84bdfa --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "MC.eUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1265a81d42d513Df40d0031f8f2e1346954d665a" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json new file mode 100644 index 00000000..f8e2509d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0x73A15FeD60Bf67631dC6cd7Bc5B6e8da8190aCF5", "underlyingTicker": "USD0", "vaultTicker": "MC_USD0" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x749794E985Af5a9A384B9cEe6D88DaB4CE1576A1" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json new file mode 100644 index 00000000..1846fb95 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "MCcbBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x98cF0B67Da0F16E1F8f1a1D23ad8Dc64c0c70E0b" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json new file mode 100644 index 00000000..7671f52d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "MCwBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1c530D6de70c05A81bF1670157b9d928e9699089" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json new file mode 100644 index 00000000..e3a0df83 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "MCwETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x9a8bC3B04b7f3D87cfC09ba407dCED575f2d61D8" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json new file mode 100644 index 00000000..7f2a8aec --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "USUALUSDC+" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xd63070114470f685b75B74D60EEc7c1113d33a3D" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json new file mode 100644 index 00000000..d340dc71 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "MEV Capital", + "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, + "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "pWBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2f1aBb81ed86Be95bcf8178bA62C8e72D6834775" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json new file mode 100644 index 00000000..89f5721a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x853d955aCEf822Db058eb8505911ED77F175b99e", "underlyingTicker": "FRAX", "vaultTicker": "Re7FRAX" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBE40491F3261Fd42724F1AEb465796eb11c06ddF" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json new file mode 100644 index 00000000..42d23016 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b", "underlyingTicker": "verUSDC", "vaultTicker": "Re7RWA" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x6e37C95b43566E538D8C278eb69B00FC717a001b" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json new file mode 100644 index 00000000..c9217341 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x0000206329b97DB379d5E1Bf586BbDB969C63274", "underlyingTicker": "USDA", "vaultTicker": "Re7USDA" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x89D80f5e9BC88d8021b352064ae73F0eAf79EBd8" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json new file mode 100644 index 00000000..4396c441 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "Re7USDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x60d715515d4411f7F43e4206dc5d4a3677f0eC78" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json new file mode 100644 index 00000000..bee57981 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "Re7USDT" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x95EeF579155cd2C5510F312c8fA39208c3Be01a8" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json new file mode 100644 index 00000000..ce4d0c15 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "Re7WBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xE0C98605f279e4D7946d25B75869c69802823763" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json new file mode 100644 index 00000000..46efcaea --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "Re7WETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xA2Cac0023a4797b4729Db94783405189a4203AFc" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json new file mode 100644 index 00000000..ac033085 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "Re7cbBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA02F5E93f783baF150Aa1F8b341Ae90fe0a772f7" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json new file mode 100644 index 00000000..5cddf847 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { + "underlyingToken": "0xC0D3700000987C99b3C9009069E4f8413fD22330", + "underlyingTicker": "cdxUSD", + "vaultTicker": "Re7cdxUSD1.1" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x74B6EA9BFee07C3756969b0139CFacBBa5845969" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json new file mode 100644 index 00000000..181b61a4 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { + "underlyingToken": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0", + "underlyingTicker": "wstETH", + "vaultTicker": "Re7wstETH" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xE87ed29896B91421ff43f69257ABF78300e40c7a" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json new file mode 100644 index 00000000..7f7bd19b --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "degenUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xdB90A4e973B7663ce0Ccc32B6FbD37ffb19BfA83" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json new file mode 100644 index 00000000..2608c0fb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "fxUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4F460bb11cf958606C69A963B4A17f9DaEEea8b6" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json new file mode 100644 index 00000000..6e8bd34d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed", "underlyingTicker": "DEGEN", "vaultTicker": "mDEGEN" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x8c3A6B12332a6354805Eb4b72ef619aEdd22BcdD" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json new file mode 100644 index 00000000..52f0c348 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0xbf1aeA8670D2528E08334083616dD9C5F3B087aE", "underlyingTicker": "MAI", "vaultTicker": "mMAI" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x30B8A2c8E7Fa41e77b54b8FaF45c610e7aD909E3" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json new file mode 100644 index 00000000..563354f3 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4", "underlyingTicker": "eUSD", "vaultTicker": "meUSD" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbb819D845b573B5D7C538F5b85057160cfb5f313" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json new file mode 100644 index 00000000..b0a63ea6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "pythETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x80D9964fEb4A507dD697b4437Fc5b25b618CE446" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json new file mode 100644 index 00000000..3c274fcf --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "pythUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x0FaBfEAcedf47e890c50C8120177fff69C6a1d9B" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json new file mode 100644 index 00000000..811700ac --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "RE7 Labs", + "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "uUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xB7890CEE6CF4792cdCC13489D36D9d42726ab863" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json new file mode 100644 index 00000000..e1941edf --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "SparkDAO", + "info": { "legalName": "SparkDAO", "url": "https://spark.fi/" }, + "constants": { "underlyingToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "underlyingTicker": "DAI", "vaultTicker": "spDAI" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x73e65DBD630f90604062f6E02fAb9138e713edD9" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json new file mode 100644 index 00000000..6d95e4dc --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "SparkDAO", + "info": { "legalName": "SparkDAO", "url": "https://spark.fi/" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "sparkUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json new file mode 100644 index 00000000..936d6bb0 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "underlyingTicker": "DAI", "vaultTicker": "bbqDAI" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbeeFfF68CC520D68f82641EFF84330C631E2490E" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json new file mode 100644 index 00000000..02845d37 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "bbqUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBEeFFF209270748ddd194831b3fa287a5386f5bC" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json new file mode 100644 index 00000000..f522e383 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "bbqUSDT" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA0804346780b4c2e3bE118ac957D1DB82F9d7484" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json new file mode 100644 index 00000000..2578f4db --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { + "underlyingToken": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0", + "underlyingTicker": "wstETH", + "vaultTicker": "bbqWSTETH" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x833AdaeF212c5cD3f78906B44bBfb18258F238F0" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json new file mode 100644 index 00000000..916f9698 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "csUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x7204B7Dbf9412567835633B6F00C3Edc3a8D6330" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json new file mode 100644 index 00000000..08dd75ca --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x7751E2F4b8ae93EF6B79d86419d42FE3295A4559", "underlyingTicker": "wUSDL", "vaultTicker": "csUSDL" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbEEFC01767ed5086f35deCb6C00e6C12bc7476C1" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json new file mode 100644 index 00000000..cede4896 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "steakETH" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbEEf050a7485865A7a8d8Ca0CC5f7536b7a3443e" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json new file mode 100644 index 00000000..8026fabb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0xA61BeB4A3d02decb01039e378237032B351125B4", "underlyingTicker": "EURA", "vaultTicker": "steakEURA" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xBEeFA28D5e56d41D35df760AB53B94D9FfD7051F" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json new file mode 100644 index 00000000..dd88fd93 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42", "underlyingTicker": "EURC", "vaultTicker": "steakEURC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xBeEF086b8807Dc5E5A1740C5E3a7C4c366eA6ab5" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json new file mode 100644 index 00000000..dfb5322a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x45804880De22913dAFE09f4980848ECE6EcbAf78", "underlyingTicker": "PAXG", "vaultTicker": "steakPAXG" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBeeF7959aE71D4e45e1863dae0B94C35244AF816" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json new file mode 100644 index 00000000..49552b6d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { + "underlyingToken": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8", + "underlyingTicker": "PYUSD", + "vaultTicker": "steakPYUSD" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbEEF02e5E13584ab96848af90261f0C8Ee04722a" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json new file mode 100644 index 00000000..a962f0a8 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x09D4214C03D01F49544C0448DBE3A27f768F2b34", "underlyingTicker": "rUSD", "vaultTicker": "steakRUSD" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBeEf11eCb698f4B5378685C05A210bdF71093521" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json new file mode 100644 index 00000000..ffa8ae7a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { + "underlyingToken": "0x5875eEE11Cf8398102FdAd704C9E96607675467a", + "underlyingTicker": "sUSDS", + "vaultTicker": "steakSUSDS" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xB17B070A56043e1a5a1AB7443AfAFDEbcc1168D7" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json new file mode 100644 index 00000000..676f58e4 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x0000206329b97DB379d5E1Bf586BbDB969C63274", "underlyingTicker": "USDA", "vaultTicker": "steakUSDA" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbEEfa1aBfEbE621DF50ceaEF9f54FdB73648c92C" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json new file mode 100644 index 00000000..4f6e6830 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "steakUSDC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbeeF010f9cb27031ad51e3333f9aF9C6B1228183" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json new file mode 100644 index 00000000..db33df86 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { + "underlyingToken": "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b", + "underlyingTicker": "verUSDC", + "vaultTicker": "steakUSDCrwa" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbEefc4aDBE58173FCa2C042097Fe33095E68C3D6" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json new file mode 100644 index 00000000..606709c5 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812", "underlyingTicker": "wUSDM", "vaultTicker": "steakUSDM" } + }, + "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xBEef03f0BF3cb2e348393008a826538AaDD7d183" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json new file mode 100644 index 00000000..fea21cb6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0xc83e27f270cce0A3A3A29521173a83F402c1768b", "underlyingTicker": "USDQ", "vaultTicker": "steakUSDQ" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA1b60d96e5C50dA627095B9381dc5a46AF1a9a42" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json new file mode 100644 index 00000000..3099b61c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x7B43E3875440B44613DC3bC08E7763e6Da63C8f8", "underlyingTicker": "USDR", "vaultTicker": "steakUSDR" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x30881Baa943777f92DC934d53D3bFdF33382cab3" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json new file mode 100644 index 00000000..7040b4bd --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "steakUSDT" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json new file mode 100644 index 00000000..579bda1f --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json @@ -0,0 +1,14 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { + "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", + "underlyingTicker": "USDT", + "vaultTicker": "steakUSDTlite" + } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x097FFEDb80d4b2Ca6105a07a4D90eB739C45A666" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json new file mode 100644 index 00000000..972d4ceb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Steakhouse Financial", + "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, + "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "steakWBTC" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbeEf094333AEdD535c130958c204E84f681FD9FA" }] } } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json new file mode 100644 index 00000000..6d327048 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json @@ -0,0 +1,83 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x7f268357a8c2552623316e2562d90e642bb538e5" }], + "domain": { "name": "OpenSea", "chainId": 1, "verifyingContract": "0x7f268357a8c2552623316e2562d90e642bb538e5" }, + "schemas": [ + { + "primaryType": "Order", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Order": [ + { "name": "exchange", "type": "address" }, + { "name": "maker", "type": "address" }, + { "name": "taker", "type": "address" }, + { "name": "makerRelayerFee", "type": "uint256" }, + { "name": "takerRelayerFee", "type": "uint256" }, + { "name": "makerProtocolFee", "type": "uint256" }, + { "name": "takerProtocolFee", "type": "uint256" }, + { "name": "feeRecipient", "type": "address" }, + { "name": "feeMethod", "type": "uint8" }, + { "name": "side", "type": "uint8" }, + { "name": "saleKind", "type": "uint8" }, + { "name": "target", "type": "address" }, + { "name": "howToCall", "type": "uint8" }, + { "name": "calldata", "type": "bytes" }, + { "name": "replacementPattern", "type": "bytes" }, + { "name": "staticTarget", "type": "address" }, + { "name": "staticExtradata", "type": "bytes" }, + { "name": "paymentToken", "type": "address" }, + { "name": "basePrice", "type": "uint256" }, + { "name": "extra", "type": "uint256" }, + { "name": "listingTime", "type": "uint256" }, + { "name": "expirationTime", "type": "uint256" }, + { "name": "salt", "type": "uint256" }, + { "name": "nonce", "type": "uint256" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Wyvern Exchange Contract" }, + "display": { + "formats": { + "Order": { + "intent": "OpenSea Listing", + "fields": [ + { "path": "exchange", "label": "Contract address", "format": "raw" }, + { "path": "basePrice", "label": "Price", "format": "raw" }, + { "path": "expirationTime", "label": "Offer expiration", "format": "raw" } + ], + "excluded": [ + "side", + "extra", + "saleKind", + "staticTarget", + "target", + "howToCall", + "makerRelayerFee", + "feeMethod", + "replacementPattern", + "takerRelayerFee", + "taker", + "listingTime", + "staticExtradata", + "makerProtocolFee", + "takerProtocolFee", + "paymentToken", + "calldata", + "salt", + "feeRecipient", + "maker" + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json new file mode 100644 index 00000000..74ec7e13 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json @@ -0,0 +1,200 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "AugustusSwapperV5", + "contract": { + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json", + "deployments": [ + { "chainId": 56, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" }, + { "chainId": 1, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" }, + { "chainId": 137, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" } + ] + } + }, + "metadata": { + "owner": "Velora", + "info": { "url": "https://www.paraswap.io/", "legalName": "Velora", "deploymentDate": "2021-08-18T12:42:05Z" }, + "constants": { "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "fromToken", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "toToken", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "maxSendAmount": { + "label": "Maximum to Send", + "format": "tokenAmount", + "params": { "tokenPath": "tokenIn", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "receiveAmount": { + "label": "Amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "tokenOut", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, + "beneficiary": { "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + "exchange": { "label": "Exchange", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } }, + "factory": { "label": "Uniswap Factory", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } } + }, + "formats": { + "0x2298207a": { + "$id": "simpleBuy", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x46c67b6d": { + "$id": "megaSwap", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { + "path": "data.toAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "data.path.[0].path.[-1].to" } + }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x54840d1a": { + "$id": "swapOnUniswap", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "path.[-1]" } } + ], + "required": ["amountIn", "amountOutMin"] + }, + "0xf5661034": { + "$id": "swapOnUniswapFork", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "path.[-1]" } }, + { "path": "factory", "$ref": "$.display.definitions.factory" } + ], + "required": ["amountIn", "amountOutMin"] + }, + "0x0b86a4c1": { + "$id": "swapOnUniswapV2Fork", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "raw" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amountIn", "amountOutMin", "pools"] + }, + "0x54e3f31b": { + "$id": "simpleSwap", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x64466805": { + "$id": "swapOnZeroXv4", + "intent": "Swap", + "fields": [ + { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromAmount", "amountOutMin"] + }, + "0x81033120": { + "$id": "swapOnZeroXv2", + "intent": "Swap", + "fields": [ + { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromAmount", "amountOutMin"] + }, + "0x935fb84b": { + "$id": "buyOnUniswap", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOut", "$ref": "$.display.definitions.receiveAmount", "params": { "tokenPath": "path.[-1]" } } + ], + "required": ["amountInMax", "amountOut"] + }, + "0xc03786b0": { + "$id": "buyOnUniswapFork", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOut", "$ref": "$.display.definitions.receiveAmount", "params": { "tokenPath": "path.[-1]" } }, + { "path": "factory", "$ref": "$.display.definitions.factory" } + ], + "required": ["amountInMax", "amountOut"] + }, + "0xb2f1e6db": { + "$id": "buyOnUniswapV2Fork", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOut", "label": "Amount to Receive", "format": "raw" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": ["amountInMax", "amountOut", "pools.[-1]"] + }, + "0x2941a712": { + "$id": "buyOnUniswapV2ForkWithPermit", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOut", "label": "Amount to Receive", "format": "raw" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ] + }, + "0xa94e78ef": { + "$id": "multiSwap", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.path.[-1].to" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x6b4109d3": { + "$id": "swapOnZeroXv4WithPermit", + "intent": "Swap", + "fields": [ + { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromAmount", "amountOutMin", "exchange"] + }, + "0x6e91538b": { + "$id": "swapOnUniswapV2ForkWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "raw" }, + { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } + ], + "required": [] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json new file mode 100644 index 00000000..d3665406 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json @@ -0,0 +1,94 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [ + { "chainId": 1, "address": "0xe92b586627cca7a83dc919cc7127196d70f55a06" }, + { "chainId": 10, "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" }, + { "chainId": 56, "address": "0x8dcdfe88ef0351f27437284d0710cd65b20288bb" }, + { "chainId": 137, "address": "0xf3cd476c3c4d3ac5ca2724767f269070ca09a043" }, + { "chainId": 42161, "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" } + ], + "domain": { "name": "Velora" }, + "schemas": [ + { + "primaryType": "Order", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Order": [ + { "name": "nonceAndMeta", "type": "uint256" }, + { "name": "expiry", "type": "uint128" }, + { "name": "makerAsset", "type": "address" }, + { "name": "takerAsset", "type": "address" }, + { "name": "maker", "type": "address" }, + { "name": "taker", "type": "address" }, + { "name": "makerAmount", "type": "uint256" }, + { "name": "takerAmount", "type": "uint256" } + ] + } + }, + { + "primaryType": "OrderNFT", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "OrderNFT": [ + { "name": "nonceAndMeta", "type": "uint256" }, + { "name": "expiry", "type": "uint128" }, + { "name": "makerAsset", "type": "uint256" }, + { "name": "makerAssetId", "type": "uint256" }, + { "name": "takerAsset", "type": "uint256" }, + { "name": "takerAssetId", "type": "uint256" }, + { "name": "maker", "type": "address" }, + { "name": "taker", "type": "address" }, + { "name": "makerAmount", "type": "uint256" }, + { "name": "takerAmount", "type": "uint256" } + ] + } + } + ] + } + }, + "metadata": { "owner": "AugustusRFQ" }, + "display": { + "formats": { + "Order": { + "intent": "AugustusRFQ ERC20 order", + "fields": [ + { "path": "nonceAndMeta", "label": "Nonce and metadata", "format": "raw" }, + { "path": "expiry", "label": "Expiration time", "format": "raw" }, + { "path": "makerAsset", "label": "Maker asset address", "format": "raw" }, + { "path": "takerAsset", "label": "Taker asset address", "format": "raw" }, + { "path": "maker", "label": "Maker address", "format": "raw" }, + { "path": "taker", "label": "Taker address", "format": "raw" }, + { "path": "makerAmount", "label": "Maker amount", "format": "raw" }, + { "path": "takerAmount", "label": "Taker amount", "format": "raw" } + ] + }, + "OrderNFT": { + "intent": "AugustusRFQ NFT order", + "fields": [ + { "path": "nonceAndMeta", "label": "Nonce and metadata", "format": "raw" }, + { "path": "expiry", "label": "Expiration time", "format": "raw" }, + { "path": "makerAsset", "label": "Maker asset encoded", "format": "raw" }, + { "path": "makerAssetId", "label": "Maker asset NFT ID", "format": "raw" }, + { "path": "takerAsset", "label": "Taker asset encoded", "format": "raw" }, + { "path": "takerAssetId", "label": "Taker asset NFT ID", "format": "raw" }, + { "path": "maker", "label": "Maker address", "format": "raw" }, + { "path": "taker", "label": "Taker address", "format": "raw" }, + { "path": "makerAmount", "label": "Maker amount", "format": "raw" }, + { "path": "takerAmount", "label": "Taker amount", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json new file mode 100644 index 00000000..82e1608f --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 42161, "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" }], + "domain": { "name": "Permit", "chainId": 42161, "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" } + } + }, + "metadata": { "owner": "Arbitrum" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json new file mode 100644 index 00000000..bfc1c49e --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 42161, "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" }], + "domain": { "name": "Permit", "chainId": 42161, "verifyingContract": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" } + } + }, + "metadata": { "owner": "USDC (bridged)" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json new file mode 100644 index 00000000..cb83c861 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 43114, "address": "0x60781c2586d68229fde47564546784ab3faca982" }], + "domain": { "name": "Permit", "chainId": 43114, "verifyingContract": "0x60781c2586d68229fde47564546784ab3faca982" } + } + }, + "metadata": { "owner": "Pangolin" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json new file mode 100644 index 00000000..ab4a9341 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 43114, "address": "0x488f73cddda1de3664775ffd91623637383d6404" }], + "domain": { "name": "Permit", "chainId": 43114, "verifyingContract": "0x488f73cddda1de3664775ffd91623637383d6404" } + } + }, + "metadata": { "owner": "YetiSwap" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json new file mode 100644 index 00000000..1ca6854b --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 56, "address": "0x111111111117dc0aa78b770fa6a738034120c302" }], + "domain": { "name": "Permit", "chainId": 56, "verifyingContract": "0x111111111117dc0aa78b770fa6a738034120c302" } + } + }, + "metadata": { "owner": "1INCH Token" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json new file mode 100644 index 00000000..520d57ac --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 56, "address": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" }], + "domain": { "name": "Permit", "chainId": 56, "verifyingContract": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" } + } + }, + "metadata": { "owner": "PolkastarterToken" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json new file mode 100644 index 00000000..3e4bae1e --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" } + } + }, + "metadata": { "owner": "Aave" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json new file mode 100644 index 00000000..50240691 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x6b175474e89094c44da98b954eedeac495271d0f" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x6b175474e89094c44da98b954eedeac495271d0f" } + } + }, + "metadata": { "owner": "Dai Stablecoin v2.0" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json new file mode 100644 index 00000000..db154c5a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" } + } + }, + "metadata": { "owner": "Lido DAO" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json new file mode 100644 index 00000000..a791a0a6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" } + } + }, + "metadata": { "owner": "Lido DAO" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json new file mode 100644 index 00000000..fb1d561e --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" } + } + }, + "metadata": { "owner": "USDC" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json new file mode 100644 index 00000000..f36bf5f7 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 250, "address": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" }], + "domain": { "name": "Permit", "chainId": 250, "verifyingContract": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" } + } + }, + "metadata": { "owner": "miMATIC" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json new file mode 100644 index 00000000..8b258fc3 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 250, "address": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" }], + "domain": { "name": "Permit", "chainId": 250, "verifyingContract": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" } + } + }, + "metadata": { "owner": "Wootrade Network" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json new file mode 100644 index 00000000..cd946312 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 10, "address": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" }], + "domain": { "name": "Permit", "chainId": 10, "verifyingContract": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" } + } + }, + "metadata": { "owner": "BOB" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json new file mode 100644 index 00000000..be45c7b5 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 10, "address": "0x4200000000000000000000000000000000000042" }], + "domain": { "name": "Permit", "chainId": 10, "verifyingContract": "0x4200000000000000000000000000000000000042" } + } + }, + "metadata": { "owner": "Optimism" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json new file mode 100644 index 00000000..2244a8f5 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 137, "address": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" }], + "domain": { "name": "Permit", "chainId": 137, "verifyingContract": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" } + } + }, + "metadata": { "owner": "Aave Matic Market DAI" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json new file mode 100644 index 00000000..899b9af8 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json @@ -0,0 +1,10 @@ +{ + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 137, "address": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" }], + "domain": { "name": "Permit", "chainId": 137, "verifyingContract": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" } + } + }, + "metadata": { "owner": "Aave Matic Market WETH" } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json new file mode 100644 index 00000000..821b2124 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json @@ -0,0 +1,246 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": null, + "contract": { + "deployments": [{ "chainId": 1, "address": "0x0bb4D3e88243F4A057Db77341e6916B0e449b158" }], + "abi": [ + { + "type": "function", + "name": "NAME", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "feeReceiver", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address payable", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "migrationFee", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "mintToken", + "inputs": [ + { "name": "eventId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "tokenId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { + "name": "expirationTime", + "type": "uint256", + "internalType": "uint256", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "signature", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "paused", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "processed", + "inputs": [{ "name": "", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "renouncePoapAdmin", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setFeeReceiver", + "inputs": [ + { + "name": "_feeReceiver", + "type": "address", + "internalType": "address payable", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setMigrationFee", + "inputs": [ + { "name": "_migrationFee", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setValidSigner", + "inputs": [ + { "name": "_validSigner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "unpause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "validSigner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "POAP", "info": { "url": "https://poap.xyz/", "legalName": "Proof of Attendance Protocol" } }, + "display": { + "formats": { + "mintToken(uint256,uint256,address,uint256,bytes)": { + "$id": null, + "intent": "Mint POAP", + "screens": null, + "fields": [ + { "$id": null, "label": "Token Id", "format": "raw", "path": "#.tokenId", "value": null }, + { + "$id": null, + "label": "Receiver", + "format": "addressName", + "params": { "types": ["eoa", "wallet"], "sources": null }, + "path": "#.receiver", + "value": null + }, + { + "$id": null, + "label": "Expiration Time", + "format": "date", + "params": { "encoding": "timestamp" }, + "path": "#.expirationTime", + "value": null + } + ], + "required": ["#.tokenId", "#.receiver"], + "excluded": ["#.eventId", "#.signature"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json new file mode 100644 index 00000000..4d7d4f65 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json @@ -0,0 +1,183 @@ +{ + "context": { + "$id": "QuickSwap", + "contract": { + "deployments": [{ "chainId": 137, "address": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/polygon/quickswap/abis/0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff.abi.json" + } + }, + "metadata": { + "owner": "QuickSwap", + "info": { "legalName": "QuickSwap", "deploymentDate": "2020-09-25T10:52:01Z", "url": "https://quickswap.exchange" } + }, + "display": { + "formats": { + "0x38ed1739": { + "$id": "swapExactTokensForTokens", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountIn", "amountOutMin", "to"] + }, + "0x18cbafe5": { + "$id": "swapExactTokensForETH", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountIn", "amountOutMin", "to"] + }, + "0x7ff36ab5": { + "$id": "swapExactETHForTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOutMin", "to"] + }, + "0x8803dbee": { + "$id": "swapTokensForExactTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOut", "label": "Amount to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "amountInMax", "label": "Maximum to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOut", "amountInMax", "to"] + }, + "0x5c11d795": { + "$id": "swapExactTokensForTokensSupportingFeeOnTransferTokens", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountIn", "amountOutMin", "to"] + }, + "0x4a25d94a": { + "$id": "swapTokensForExactETH", + "intent": "Swap", + "fields": [ + { "path": "amountOut", "label": "Amount to Receive", "format": "amount" }, + { "path": "amountInMax", "label": "Maximum to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOut", "amountInMax", "to"] + }, + "0xb6f9de95": { + "$id": "swapExactETHForTokensSupportingFeeOnTransferTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOutMin", "to"] + }, + "0xe8e33700": { + "$id": "addLiquidity", + "intent": "Add Liquidity", + "fields": [ + { "path": "amountADesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountBDesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountADesired", "amountAMin", "amountBDesired", "amountBMin", "to"] + }, + "0xf305d719": { + "$id": "addLiquidityETH", + "intent": "Add Liquidity", + "fields": [ + { "path": "amountTokenDesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenDesired", "amountTokenMin", "amountETHMin", "to"] + }, + "0xbaa2abde": { + "$id": "removeLiquidity", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountAMin", "amountBMin", "to"] + }, + "0x02751cec": { + "$id": "removeLiquidityETH", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "tokenAmount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + }, + "0x2195995c": { + "$id": "removeLiquidityWithPermit", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountAMin", "amountBMin", "to"] + }, + "0xded9382a": { + "$id": "removeLiquidityETHWithPermit", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "tokenAmount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + }, + "0xaf2979eb": { + "$id": "removeLiquidityETHSupportingFeeOnTransferTokens", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + }, + "0x5b0d5984": { + "$id": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json new file mode 100644 index 00000000..c7585cdd --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json @@ -0,0 +1,41 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" }], + "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" }, + "schemas": [ + { + "primaryType": "Mint1155", + "types": { + "Mint1155": [ + { "name": "tokenId", "type": "uint256" }, + { "name": "supply", "type": "uint256" }, + { "name": "tokenURI", "type": "string" }, + { "name": "creators", "type": "Part[]" }, + { "name": "royalties", "type": "Part[]" } + ], + "Part": [{ "name": "account", "type": "address" }, { "name": "value", "type": "uint96" }] + } + } + ] + } + }, + "metadata": { "owner": "Rarible ERC-1155 Collection" }, + "display": { + "formats": { + "Mint1155": { + "intent": "Lazy Mint ERC-1155", + "fields": [ + { "path": "tokenId", "label": "Token ID", "format": "raw" }, + { "path": "tokenURI", "label": "Token URI", "format": "raw" }, + { "path": "supply", "label": "Token Supply", "format": "raw" }, + { "path": "creators.[].account", "label": "Creator account address", "format": "raw" }, + { "path": "creators.[].value", "label": "Creator value (10000 = 100%)", "format": "raw" }, + { "path": "royalties.[].account", "label": "Royalties account address", "format": "raw" }, + { "path": "royalties.[].value", "label": "Royalties value (10000 = 100%)", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json new file mode 100644 index 00000000..5a1fa851 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json @@ -0,0 +1,39 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xc9154424b823b10579895ccbe442d41b9abd96ed" }], + "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0xc9154424b823b10579895ccbe442d41b9abd96ed" }, + "schemas": [ + { + "primaryType": "Mint721", + "types": { + "Mint721": [ + { "name": "tokenId", "type": "uint256" }, + { "name": "tokenURI", "type": "string" }, + { "name": "creators", "type": "Part[]" }, + { "name": "royalties", "type": "Part[]" } + ], + "Part": [{ "name": "account", "type": "address" }, { "name": "value", "type": "uint96" }] + } + } + ] + } + }, + "metadata": { "owner": "Rarible ERC-721 Collection" }, + "display": { + "formats": { + "Mint721": { + "intent": "Lazy Mint ERC-721", + "fields": [ + { "path": "tokenId", "label": "Token ID", "format": "raw" }, + { "path": "tokenURI", "label": "Token URI", "format": "raw" }, + { "path": "creators.[].account", "label": "Creator account address", "format": "raw" }, + { "path": "creators.[].value", "label": "Creator value (10000 = 100%)", "format": "raw" }, + { "path": "royalties.[].account", "label": "Royalties account address", "format": "raw" }, + { "path": "royalties.[].value", "label": "Royalties value (10000 = 100%)", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json new file mode 100644 index 00000000..7736de81 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json @@ -0,0 +1,87 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [ + { "chainId": 1, "address": "0x9757f2d2b135150bbeb65308d4a91804107cd8d6" }, + { "chainId": 137, "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" } + ], + "domain": { "name": "Rarible" }, + "schemas": [ + { + "primaryType": "Order", + "types": { + "Asset": [{ "name": "assetType", "type": "AssetType" }, { "name": "value", "type": "uint256" }], + "AssetType": [{ "name": "assetClass", "type": "bytes4" }, { "name": "data", "type": "bytes" }], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Order": [ + { "name": "maker", "type": "address" }, + { "name": "makeAsset", "type": "Asset" }, + { "name": "taker", "type": "address" }, + { "name": "takeAsset", "type": "Asset" }, + { "name": "salt", "type": "uint256" }, + { "name": "start", "type": "uint256" }, + { "name": "end", "type": "uint256" }, + { "name": "dataType", "type": "bytes4" }, + { "name": "data", "type": "bytes" } + ] + } + }, + { + "primaryType": "MetaTransaction", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "salt", "type": "bytes32" } + ], + "MetaTransaction": [ + { "name": "nonce", "type": "uint256" }, + { "name": "from", "type": "address" }, + { "name": "functionSignature", "type": "bytes" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Rarible ExchangeV2" }, + "display": { + "formats": { + "Order": { + "intent": "List Order", + "fields": [ + { "path": "maker", "label": "Order maker address", "format": "raw" }, + { "path": "makeAsset.value", "label": "Order make asset value", "format": "raw" }, + { "path": "taker", "label": "Order taker address", "format": "raw" }, + { "path": "takeAsset.value", "label": "Order take asset value", "format": "raw" }, + { "path": "start", "label": "Order start time", "format": "raw" }, + { "path": "end", "label": "Order end time", "format": "raw" } + ], + "excluded": [ + "makeAsset.assetType.assetClass", + "dataType", + "makeAsset.assetType.data", + "takeAsset.assetType.data", + "takeAsset.assetType.assetClass", + "data", + "salt" + ] + }, + "MetaTransaction": { + "intent": "Meta Transaction", + "fields": [ + { "path": "from", "label": "User Address", "format": "raw" }, + { "path": "nonce", "label": "Meta Transaction Nonce", "format": "raw" } + ], + "excluded": ["functionSignature"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json new file mode 100644 index 00000000..0d95c3ac --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json @@ -0,0 +1,60 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" }], + "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0x7f19564c35c681099c0c857a7141836cf7edaa53" }, + "schemas": [ + { + "primaryType": "Order", + "types": { + "Asset": [{ "name": "assetType", "type": "AssetType" }, { "name": "value", "type": "uint256" }], + "AssetType": [{ "name": "assetClass", "type": "bytes4" }, { "name": "data", "type": "bytes" }], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Order": [ + { "name": "maker", "type": "address" }, + { "name": "makeAsset", "type": "Asset" }, + { "name": "taker", "type": "address" }, + { "name": "takeAsset", "type": "Asset" }, + { "name": "salt", "type": "uint256" }, + { "name": "start", "type": "uint256" }, + { "name": "end", "type": "uint256" }, + { "name": "dataType", "type": "bytes4" }, + { "name": "data", "type": "bytes" } + ] + } + } + ] + } + }, + "metadata": { "owner": "RaribleExchangeWrapper" }, + "display": { + "formats": { + "Order": { + "intent": "List Order", + "fields": [ + { "path": "maker", "label": "Order maker address", "format": "raw" }, + { "path": "makeAsset.value", "label": "Order make asset value", "format": "raw" }, + { "path": "taker", "label": "Order taker address", "format": "raw" }, + { "path": "takeAsset.value", "label": "Order take asset value", "format": "raw" }, + { "path": "start", "label": "Order start time", "format": "raw" }, + { "path": "end", "label": "Order end time", "format": "raw" } + ], + "excluded": [ + "makeAsset.assetType.assetClass", + "dataType", + "makeAsset.assetType.data", + "takeAsset.assetType.data", + "takeAsset.assetType.assetClass", + "data", + "salt" + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json new file mode 100644 index 00000000..540af8c3 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json @@ -0,0 +1,48 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" }], + "domain": { "name": "SmartCredit.io", "chainId": 1, "verifyingContract": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" }, + "schemas": [ + { + "primaryType": "LoanRequest", + "types": { + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ], + "LoanRequest": [ + { "name": "collateralAddress", "type": "address" }, + { "name": "initialCollateralAmount", "type": "uint256" }, + { "name": "loanAmount", "type": "uint256" }, + { "name": "loanId", "type": "bytes32" }, + { "name": "loanInterestRate", "type": "uint64" }, + { "name": "loanTerm", "type": "uint64" }, + { "name": "underlyingAddress", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "SMARTCREDIT" }, + "display": { + "formats": { + "LoanRequest": { + "intent": "SmartCredit.io", + "fields": [ + { "path": "collateralAddress", "label": "Collateral address", "format": "raw" }, + { "path": "initialCollateralAmount", "label": "Initial Collateral Amount", "format": "raw" }, + { "path": "loanAmount", "label": "Loan Amount", "format": "raw" }, + { "path": "loanId", "label": "Loan ID", "format": "raw" }, + { "path": "loanInterestRate", "label": "Loan interest rate", "format": "raw" }, + { "path": "loanTerm", "label": "Load Term", "format": "raw" }, + { "path": "underlyingAddress", "label": "Underlying Address", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json new file mode 100644 index 00000000..c8462055 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json @@ -0,0 +1,28 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "L1StarkGateSTRKbridge", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x6ad74D4B79A06A492C288eF66Ef868Dd981fdC85", + "deployments": [{ "chainId": 1, "address": "0xcE5485Cfb26914C5dcE00B9BAF0580364daFC7a4" }] + } + }, + "metadata": { + "owner": "Starknet", + "info": { "url": "https://starkgate.starknet.io/", "legalName": "StarkWare", "deploymentDate": "2024-10-01T00:00:00Z" } + }, + "display": { + "formats": { + "deposit(address token, uint256 amount, uint256 l2Recipient)": { + "$id": "deposit", + "intent": "Bridge", + "fields": [ + { "path": "amount", "label": "Amount to deposit", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "l2Recipient", "label": "Recipient", "format": "raw" }, + { "path": "@.value", "label": "Deposit fee", "format": "amount" } + ], + "required": ["token", "amount", "l2Recipient"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json new file mode 100644 index 00000000..abfecbc8 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json @@ -0,0 +1,343 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "deployments": [{ "chainId": 1, "address": "0x4796d939b22027c2876d5ce9fde52da9ec4e2362" }], + "abi": [ + { + "type": "function", + "name": "addToWhitelist", + "inputs": [{ "name": "_address", "type": "address", "internalType": "address" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "allowance", + "inputs": [ + { "name": "owner", "type": "address", "internalType": "address" }, + { "name": "spender", "type": "address", "internalType": "address" } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "approve", + "inputs": [ + { "name": "spender", "type": "address", "internalType": "address" }, + { "name": "amount", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "batchAddToWhitelist", + "inputs": [{ "name": "_addresses", "type": "address[]", "internalType": "address[]" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "batchRemoveFromWhitelist", + "inputs": [{ "name": "_addresses", "type": "address[]", "internalType": "address[]" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "burn", + "inputs": [{ "name": "amount", "type": "uint256", "internalType": "uint256" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "decreaseAllowance", + "inputs": [ + { "name": "spender", "type": "address", "internalType": "address" }, + { "name": "subtractedValue", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "nonpayable" + }, + { "type": "function", "name": "deposit", "inputs": [], "outputs": [], "stateMutability": "payable" }, + { + "type": "function", + "name": "depositViaDepositManager", + "inputs": [ + { "name": "_amount", "type": "uint256", "internalType": "uint256" }, + { "name": "_to", "type": "address", "internalType": "address" }, + { "name": "_minRswETH", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "depositWithReferral", + "inputs": [{ "name": "referral", "type": "address", "internalType": "address" }], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "increaseAllowance", + "inputs": [ + { "name": "spender", "type": "address", "internalType": "address" }, + { "name": "addedValue", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "initialize", + "inputs": [{ "name": "_accessControlManager", "type": "address", "internalType": "contract IAccessControlManager" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "removeFromWhitelist", + "inputs": [{ "name": "_address", "type": "address", "internalType": "address" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "reprice", + "inputs": [ + { "name": "_preRewardETHReserves", "type": "uint256", "internalType": "uint256" }, + { "name": "_newETHRewards", "type": "uint256", "internalType": "uint256" }, + { "name": "_rswETHTotalSupply", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setMaximumRepriceDifferencePercentage", + "inputs": [{ "name": "_maximumRepriceDifferencePercentage", "type": "uint256", "internalType": "uint256" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setMaximumRepriceRswETHDifferencePercentage", + "inputs": [{ "name": "_maximumRepriceRswETHDifferencePercentage", "type": "uint256", "internalType": "uint256" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setSwellTreasuryRewardPercentage", + "inputs": [{ "name": "_newSwellTreasuryRewardPercentage", "type": "uint256", "internalType": "uint256" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setNodeOperatorRewardPercentage", + "inputs": [{ "name": "_newNodeOperatorRewardPercentage", "type": "uint256", "internalType": "uint256" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setMinimumRepriceTime", + "inputs": [{ "name": "_minimumRepriceTime", "type": "uint256", "internalType": "uint256" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { "name": "to", "type": "address", "internalType": "address" }, + { "name": "amount", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { "name": "from", "type": "address", "internalType": "address" }, + { "name": "to", "type": "address", "internalType": "address" }, + { "name": "amount", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawERC20", + "inputs": [{ "name": "_token", "type": "address", "internalType": "contract IERC20" }], + "outputs": [], + "stateMutability": "nonpayable" + } + ] + } + }, + "metadata": { + "owner": "Swell Network Deployer", + "info": { "legalName": "Swell", "url": "https://www.swellnetwork.io/" }, + "constants": { "swellToken": "0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0" } + }, + "display": { + "formats": { + "addToWhitelist(address)": { + "intent": "Add to whitelist a single address", + "fields": [{ "label": "Address", "format": "addressName", "params": { "types": ["wallet", "eoa", "contract"] }, "path": "#._address" }] + }, + "allowance(address,address)": { + "intent": "Remaining number of tokens that `spender` will be allowed to spend", + "fields": [ + { "label": "Owner", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.owner" }, + { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" } + ] + }, + "approve(address,uint256)": { + "intent": "Sets `amount` as the allowance of `spender` over the caller's tokens", + "fields": [ + { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" }, + { "label": "Amount", "format": "tokenAmount", "path": "amount", "params": { "token": "$.metadata.constants.swellToken" } } + ] + }, + "balanceOf(address)": { "fields": [{ "label": "Account", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.account" }] }, + "batchAddToWhitelist(address[])": { + "intent": "Add to whitelist several addresses", + "fields": [ + { + "label": "Addresses", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract"] }, + "path": "#._addresses.[]" + } + ] + }, + "batchRemoveFromWhitelist(address[])": { + "intent": "Remove several addresses from whitelist", + "fields": [ + { + "label": "Addresses", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract"] }, + "path": "#._addresses.[]" + } + ] + }, + "burn(uint256)": { "fields": [{ "label": "Amount", "format": "amount", "path": "#.amount" }] }, + "decreaseAllowance(address,uint256)": { + "intent": "Decrease allowance", + "fields": [ + { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" }, + { "label": "Subtracted Value", "format": "amount", "path": "#.subtractedValue" } + ] + }, + "depositViaDepositManager(uint256,address,uint256)": { + "intent": "Deposit via Deposit Manager", + "fields": [ + { "label": "Amount", "format": "amount", "path": "#._amount" }, + { "label": "To", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#._to" }, + { "label": "Min Rsw ETH", "format": "raw", "path": "#._minRswETH" } + ] + }, + "depositWithReferral(address)": { + "intent": "Deposit with referral", + "fields": [{ "label": "Referral", "format": "addressName", "params": { "types": ["wallet", "eoa", "contract"] }, "path": "#.referral" }] + }, + "increaseAllowance(address,uint256)": { + "intent": "Increase allowance", + "fields": [ + { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" }, + { "label": "Added Value", "format": "amount", "path": "#.addedValue" } + ] + }, + "initialize(address)": { + "intent": "Initialize", + "fields": [ + { + "label": "Access Control Manager", + "format": "addressName", + "params": { "types": ["wallet", "eoa", "contract"] }, + "path": "#._accessControlManager" + } + ] + }, + "removeFromWhitelist(address)": { + "intent": "Remove from whitelist a single address", + "fields": [{ "label": "Address", "format": "addressName", "params": { "types": ["wallet", "eoa", "contract"] }, "path": "#._address" }] + }, + "reprice(uint256,uint256,uint256)": { + "intent": "Reprice", + "fields": [ + { "label": "Pre Reward ETH Reserves", "format": "raw", "path": "#._preRewardETHReserves" }, + { "label": "New ETH Rewards", "format": "raw", "path": "#._newETHRewards" }, + { "label": "Rsw ETH Total Supply", "format": "raw", "path": "#._rswETHTotalSupply" } + ] + }, + "setMaximumRepriceDifferencePercentage(uint256)": { + "intent": "Set maximum reprice difference percentage", + "fields": [{ "label": "Maximum Reprice Difference Percentage", "format": "amount", "path": "#._maximumRepriceDifferencePercentage" }] + }, + "setMaximumRepriceRswETHDifferencePercentage(uint256)": { + "intent": "Set maximum reprice difference percentage in rsweth", + "fields": [ + { + "label": "Maximum Reprice Rsw ETH Difference Percentage", + "format": "amount", + "path": "#._maximumRepriceRswETHDifferencePercentage" + } + ] + }, + "setMinimumRepriceTime(uint256)": { + "intent": "Set minimum reprice time", + "fields": [ + { "label": "Minimum Reprice Time", "format": "date", "params": { "encoding": "timestamp" }, "path": "#._minimumRepriceTime" } + ] + }, + "setNodeOperatorRewardPercentage(uint256)": { + "intent": "Set node operator reward percentage", + "fields": [{ "label": "New Node Operator Reward Percentage", "format": "raw", "path": "#._newNodeOperatorRewardPercentage" }] + }, + "setSwellTreasuryRewardPercentage(uint256)": { + "intent": "Set swell treasury reward percentage", + "fields": [{ "label": "New Swell Treasury Reward Percentage", "format": "raw", "path": "#._newSwellTreasuryRewardPercentage" }] + }, + "transfer(address,uint256)": { + "intent": "Moves `amount` tokens from the caller's account to `to`", + "fields": [ + { "label": "To", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.to" }, + { "label": "Amount", "format": "tokenAmount", "path": "amount", "params": { "token": "$.metadata.constants.swellToken" } } + ] + }, + "transferFrom(address,address,uint256)": { + "intent": "Moves `amount` tokens from `from` to `to` using the allowance mechanism", + "fields": [ + { "label": "From", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.from" }, + { "label": "To", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.to" }, + { "label": "Amount", "format": "tokenAmount", "path": "amount", "params": { "token": "$.metadata.constants.swellToken" } } + ] + }, + "withdrawERC20(address)": { "fields": [{ "label": "Token", "format": "addressName", "params": { "types": ["token"] }, "path": "#._token" }] } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json new file mode 100644 index 00000000..fbe15e77 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json @@ -0,0 +1,265 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "CHSB to BORG Migrator", + "contract": { + "deployments": [{ "chainId": 1, "address": "0xaA854688caAB725fe17b7D21b46fDA5AF365985a" }], + "abi": [ + { + "type": "function", + "name": "BORG", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20Upgradeable", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "CHSB", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20Upgradeable", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getImplementation", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { "name": "_chsb", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_borg", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "owner_", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, + { "name": "_manager", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "manager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "migrate", + "inputs": [{ "name": "_amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "paused", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "proxiableUUID", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setManager", + "inputs": [{ "name": "_manager", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "totalChsbMigrated", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "unpause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "upgradeTo", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "upgradeToAndCall", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { + "owner": "SwissBorg Migrator", + "info": { "legalName": "SwissBorg", "url": "https://migration.swissborg.com" }, + "constants": { "chsbAddress": "0xba9d4199faB4f26eFE3551D490E3821486f135Ba" } + }, + "display": { + "formats": { + "migrate(uint256)": { + "$id": "migrate", + "intent": "Migrate CHSB to BORG", + "fields": [ + { + "$id": "migrate", + "label": "CHSB Amount", + "format": "tokenAmount", + "params": { "token": "$.metadata.constants.chsbAddress" }, + "path": "#._amount" + } + ], + "required": ["_amount"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json new file mode 100644 index 00000000..f78c8170 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json @@ -0,0 +1,775 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "BORG Bridge (Outbound)", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x66a28B080918184851774a89aB94850a41f6a1e5" }], + "abi": [ + { + "type": "function", + "name": "NTT_MANAGER_VERSION", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "attestationReceived", + "inputs": [ + { "name": "sourceChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { + "name": "sourceNttManagerAddress", + "type": "bytes32", + "internalType": "bytes32", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "payload", + "type": "tuple", + "internalType": "struct TransceiverStructs.NttManagerMessage", + "components": [ + { "name": "id", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "sender", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "cancelOutboundQueuedTransfer", + "inputs": [ + { "name": "messageSequence", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "chainId", + "inputs": [], + "outputs": [{ "name": "", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "completeInboundQueuedTransfer", + "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "completeOutboundQueuedTransfer", + "inputs": [ + { "name": "messageSequence", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "executeMsg", + "inputs": [ + { "name": "sourceChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { + "name": "sourceNttManagerAddress", + "type": "bytes32", + "internalType": "bytes32", + "components": null, + "indexed": null, + "unit": null + }, + { + "name": "message", + "type": "tuple", + "internalType": "struct TransceiverStructs.NttManagerMessage", + "components": [ + { "name": "id", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "sender", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getCurrentInboundCapacity", + "inputs": [{ "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getCurrentOutboundCapacity", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getInboundLimitParams", + "inputs": [{ "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct IRateLimiter.RateLimitParams", + "components": [ + { "name": "limit", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, + { "name": "currentCapacity", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, + { "name": "lastTxTimestamp", "type": "uint64", "internalType": "uint64", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getInboundQueuedTransfer", + "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct IRateLimiter.InboundQueuedTransfer", + "components": [ + { "name": "amount", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, + { "name": "txTimestamp", "type": "uint64", "internalType": "uint64", "components": null }, + { "name": "recipient", "type": "address", "internalType": "address", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getMigratesImmutables", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getMode", + "inputs": [], + "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getOutboundLimitParams", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct IRateLimiter.RateLimitParams", + "components": [ + { "name": "limit", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, + { "name": "currentCapacity", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, + { "name": "lastTxTimestamp", "type": "uint64", "internalType": "uint64", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getOutboundQueuedTransfer", + "inputs": [{ "name": "queueSequence", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct IRateLimiter.OutboundQueuedTransfer", + "components": [ + { "name": "recipient", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "refundAddress", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "amount", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, + { "name": "txTimestamp", "type": "uint64", "internalType": "uint64", "components": null }, + { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null }, + { "name": "sender", "type": "address", "internalType": "address", "components": null }, + { "name": "transceiverInstructions", "type": "bytes", "internalType": "bytes", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getPeer", + "inputs": [{ "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct INttManager.NttManagerPeer", + "components": [ + { "name": "peerAddress", "type": "bytes32", "internalType": "bytes32", "components": null }, + { "name": "tokenDecimals", "type": "uint8", "internalType": "uint8", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getThreshold", + "inputs": [], + "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTransceiverInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "internalType": "struct TransceiverRegistry.TransceiverInfo[]", + "components": [ + { "name": "registered", "type": "bool", "internalType": "bool", "components": null }, + { "name": "enabled", "type": "bool", "internalType": "bool", "components": null }, + { "name": "index", "type": "uint8", "internalType": "uint8", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getTransceivers", + "inputs": [], + "outputs": [{ "name": "result", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialize", + "inputs": [], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isMessageApproved", + "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isMessageExecuted", + "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isPaused", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "messageAttestations", + "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "count", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "migrate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "mode", + "inputs": [], + "outputs": [ + { "name": "", "type": "uint8", "internalType": "enum IManagerBase.Mode", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "nextMessageSequence", + "inputs": [], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pauser", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "quoteDeliveryPrice", + "inputs": [ + { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { + "name": "transceiverInstructions", + "type": "bytes", + "internalType": "bytes", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [ + { "name": "", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, + { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "rateLimitDuration", + "inputs": [], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "removeTransceiver", + "inputs": [{ "name": "transceiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setInboundLimit", + "inputs": [ + { "name": "limit", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setOutboundLimit", + "inputs": [{ "name": "limit", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setPeer", + "inputs": [ + { "name": "peerChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "peerContract", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "decimals", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, + { "name": "inboundLimit", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setThreshold", + "inputs": [{ "name": "threshold", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setTransceiver", + "inputs": [{ "name": "transceiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "token", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "tokenDecimals", + "inputs": [], + "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transceiverAttestedToMessage", + "inputs": [ + { "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "index", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "recipient", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } + ], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, + { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "recipient", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "refundAddress", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "shouldQueue", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, + { + "name": "transceiverInstructions", + "type": "bytes", + "internalType": "bytes", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferPauserCapability", + "inputs": [{ "name": "newPauser", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "unpause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "upgrade", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { + "owner": "SwissBorg Bridge", + "info": { "legalName": "SwissBorg", "url": "https://swissborg.com/bridge" }, + "constants": { "borgAddress": "0x64d0f55Cd8C7133a9D7102b13987235F486F2224" } + }, + "display": { + "formats": { + "transfer(uint256,uint16,bytes32)": { + "$id": "transfer", + "intent": "Bridge BORG", + "fields": [ + { + "$id": "amount", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "$.metadata.constants.borgAddress" }, + "path": "#.amount" + }, + { "$id": "destinationChain", "label": "Destination Chain", "format": "raw", "params": null, "path": "#.recipientChain" }, + { + "$id": "encodedDestinationAddress", + "label": "Encoded Destination Address", + "format": "raw", + "params": null, + "path": "#.recipient" + } + ], + "required": ["#.amount", "#.recipientChain", "#.recipient"] + }, + "transfer(uint256,uint16,bytes32,bytes32,bool,bytes)": { + "$id": "transfer2", + "intent": "Bridge BORG", + "fields": [ + { + "$id": "amount", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "$.metadata.constants.borgAddress" }, + "path": "#.amount" + }, + { "$id": "destinationChain", "label": "Destination Chain", "format": "raw", "params": null, "path": "#.recipientChain" }, + { + "$id": "encodedDestinationAddress", + "label": "Encoded Destination Address", + "format": "raw", + "params": null, + "path": "#.recipient" + }, + { "$id": "refundAddress", "label": "Refund Address", "format": "raw", "params": null, "path": "#.refundAddress" }, + { "$id": "shouldQueue", "label": "Should Queue", "format": "raw", "params": null, "path": "#.shouldQueue" }, + { + "$id": "transceiverInstructions", + "label": "Transceiver Instructions", + "format": "raw", + "params": null, + "path": "#.transceiverInstructions" + }, + { "$id": "relayingFee", "label": "Relaying Fee", "path": "@.value", "format": "amount" } + ], + "required": ["#.amount", "#.recipientChain", "#.recipient"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json new file mode 100644 index 00000000..313657a7 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json @@ -0,0 +1,515 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "BORG Bridge (Inbound)", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x45E581d6841F0a99Fc34F70871ef56b353813ddb" }], + "abi": [ + { + "type": "function", + "name": "WORMHOLE_TRANSCEIVER_VERSION", + "inputs": [], + "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "consistencyLevel", + "inputs": [], + "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "encodeWormholeTransceiverInstruction", + "inputs": [ + { + "name": "instruction", + "type": "tuple", + "internalType": "struct IWormholeTransceiver.WormholeTransceiverInstruction", + "components": [{ "name": "shouldSkipRelayerSend", "type": "bool", "internalType": "bool", "components": null }], + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "gasLimit", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getMigratesImmutables", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getNttManagerOwner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getNttManagerToken", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "getWormholePeer", + "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "initialize", + "inputs": [], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isPaused", + "inputs": [], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isSpecialRelayingEnabled", + "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isVAAConsumed", + "inputs": [{ "name": "hash", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isWormholeEvmChain", + "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "isWormholeRelayingEnabled", + "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "migrate", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "nttManager", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "nttManagerToken", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "parseWormholeTransceiverInstruction", + "inputs": [{ "name": "encoded", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], + "outputs": [ + { + "name": "instruction", + "type": "tuple", + "internalType": "struct IWormholeTransceiver.WormholeTransceiverInstruction", + "components": [{ "name": "shouldSkipRelayerSend", "type": "bool", "internalType": "bool", "components": null }], + "indexed": null, + "unit": null + } + ], + "stateMutability": "pure", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "pauser", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "quoteDeliveryPrice", + "inputs": [ + { "name": "targetChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { + "name": "instruction", + "type": "tuple", + "internalType": "struct TransceiverStructs.TransceiverInstruction", + "components": [ + { "name": "index", "type": "uint8", "internalType": "uint8", "components": null }, + { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } + ], + "indexed": null, + "unit": null + } + ], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "receiveMessage", + "inputs": [{ "name": "encodedMessage", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "receiveWormholeMessages", + "inputs": [ + { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, + { + "name": "additionalMessages", + "type": "bytes[]", + "internalType": "bytes[]", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "sourceAddress", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, + { "name": "sourceChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "deliveryHash", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "sendMessage", + "inputs": [ + { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { + "name": "instruction", + "type": "tuple", + "internalType": "struct TransceiverStructs.TransceiverInstruction", + "components": [ + { "name": "index", "type": "uint8", "internalType": "uint8", "components": null }, + { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } + ], + "indexed": null, + "unit": null + }, + { "name": "nttManagerMessage", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, + { + "name": "recipientNttManagerAddress", + "type": "bytes32", + "internalType": "bytes32", + "components": null, + "indexed": null, + "unit": null + }, + { "name": "refundAddress", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setIsSpecialRelayingEnabled", + "inputs": [ + { "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "isEnabled", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setIsWormholeEvmChain", + "inputs": [ + { "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "isEvm", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setIsWormholeRelayingEnabled", + "inputs": [ + { "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "isEnabled", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "setWormholePeer", + "inputs": [ + { "name": "peerChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, + { "name": "peerContract", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } + ], + "outputs": [], + "stateMutability": "payable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "specialRelayer", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ISpecialRelayer", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferPauserCapability", + "inputs": [{ "name": "newPauser", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "transferTransceiverOwnership", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "upgrade", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address", + "components": null, + "indexed": null, + "unit": null + } + ], + "outputs": [], + "stateMutability": "nonpayable", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "wormhole", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "contract IWormhole", "components": null, "indexed": null, "unit": null }], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + }, + { + "type": "function", + "name": "wormholeRelayer", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IWormholeRelayer", + "components": null, + "indexed": null, + "unit": null + } + ], + "stateMutability": "view", + "constant": null, + "payable": null, + "gas": null, + "signature": null + } + ], + "addressMatcher": null, + "factory": null + } + }, + "metadata": { "owner": "SwissBorg Bridge", "info": { "legalName": "SwissBorg", "url": "https://swissborg.com/bridge" } }, + "display": { + "formats": { + "receiveMessage(bytes)": { + "$id": "receiveMessage", + "intent": "Receive Bridged BORG", + "fields": [{ "$id": "encodedMessage", "label": "Encoded Message", "format": "raw", "params": null, "path": "#.encodedMessage" }], + "required": ["#.encodedMessage"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json new file mode 100644 index 00000000..d4c379d0 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json @@ -0,0 +1,36 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 42161, "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" }], + "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" }, + "schemas": [ + { + "primaryType": "Delegation", + "types": { + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Arbitrum" }, + "display": { + "formats": { + "Delegation": { + "intent": "ARB token", + "fields": [ + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json new file mode 100644 index 00000000..610388a7 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 42161, "address": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" }], + "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ] + } + } + ] + } + }, + "metadata": { "owner": "L2ArbitrumGovernor" }, + "display": { + "formats": { + "Ballot": { + "intent": "Arbitrum Foundation: Core Governor", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json new file mode 100644 index 00000000..ff1816b5 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 42161, "address": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" }], + "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ] + } + } + ] + } + }, + "metadata": { "owner": "L2ArbitrumGovernor" }, + "display": { + "formats": { + "Ballot": { + "intent": "Arbitrum Foundation: Treasury Governor", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json new file mode 100644 index 00000000..bf0fe8be --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json @@ -0,0 +1,34 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "GTC Governor Alpha" }, + "display": { + "formats": { + "Ballot": { + "intent": "Gitcoin Governor", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json new file mode 100644 index 00000000..1eaa37e7 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json @@ -0,0 +1,34 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Uniswap Governor Bravo" }, + "display": { + "formats": { + "Ballot": { + "intent": "Uniswap Governor", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json new file mode 100644 index 00000000..b5580c07 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ] + } + } + ] + } + }, + "metadata": { "owner": "ENS Governor" }, + "display": { + "formats": { + "Ballot": { + "intent": "ENS Governor", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json new file mode 100644 index 00000000..2b80c7e6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json @@ -0,0 +1,36 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" }, + "schemas": [ + { + "primaryType": "Delegation", + "types": { + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Ethereum Name Service" }, + "display": { + "formats": { + "Delegation": { + "intent": "ENS token", + "fields": [ + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json new file mode 100644 index 00000000..c52d9347 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" }, + "schemas": [ + { + "primaryType": "Delegation", + "types": { + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Gitcoin" }, + "display": { + "formats": { + "Delegation": { + "intent": "GTK token", + "fields": [ + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json new file mode 100644 index 00000000..b53214c6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json @@ -0,0 +1,34 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "HOP Governor" }, + "display": { + "formats": { + "Ballot": { + "intent": "Hop Governor", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json new file mode 100644 index 00000000..8cae7d8b --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" }, + "schemas": [ + { + "primaryType": "Delegation", + "types": { + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Hop" }, + "display": { + "formats": { + "Delegation": { + "intent": "HOP token", + "fields": [ + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json new file mode 100644 index 00000000..9d5e51d1 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" }, + "schemas": [ + { + "primaryType": "Delegation", + "types": { + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "PoolTogether" }, + "display": { + "formats": { + "Delegation": { + "intent": "POOL token", + "fields": [ + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json new file mode 100644 index 00000000..e879f81c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json @@ -0,0 +1,34 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" }, + "schemas": [ + { + "primaryType": "Ballot", + "types": { + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "PoolTogether Governor Alpha" }, + "display": { + "formats": { + "Ballot": { + "intent": "PoolTogether Governor Alpha", + "fields": [ + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json new file mode 100644 index 00000000..92d36f0a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "deployments": [{ "chainId": 1, "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" }, + "schemas": [ + { + "primaryType": "Delegation", + "types": { + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], + "EIP712Domain": [ + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } + ] + } + } + ] + } + }, + "metadata": { "owner": "Uniswap" }, + "display": { + "formats": { + "Delegation": { + "intent": "UNI token", + "fields": [ + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json new file mode 100644 index 00000000..7dd30a1d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json @@ -0,0 +1,13 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Tether USD", + "contract": { "deployments": [{ "chainId": 1, "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7" }] } + }, + "includes": "../../ercs/calldata-erc20-tokens.json", + "metadata": { + "owner": "Tether", + "info": { "legalName": "Tether Limited", "url": "https://tether.to/", "deploymentDate": "2017-11-28T12:41:21Z" }, + "token": { "ticker": "USDT", "name": "Tether USD", "decimals": 6 } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json new file mode 100644 index 00000000..686384a1 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json @@ -0,0 +1,135 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Uniswap v3 Router 2", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/uniswap/abis/0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45.abi.json" + } + }, + "metadata": { + "owner": "Uniswap", + "info": { "legalName": "Uniswap Labs", "deploymentDate": "2021-12-14T00:00:00Z", "url": "https://uniswap.org/" } + }, + "display": { + "formats": { + "0xb858183f": { + "$id": "exactInput", + "intent": "Swap", + "fields": [ + { + "path": "params.amountIn", + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[0:20]" } + }, + { + "path": "params.amountOutMinimum", + "label": "Minimum amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[-20:]" } + }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["params.amountIn", "params.amountOutMinimum", "params.recipient"] + }, + "0x04e45aaf": { + "$id": "exactInputSingle", + "intent": "swap", + "fields": [ + { "path": "params.amountIn", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "params.tokenIn" } }, + { + "path": "params.amountOutMinimum", + "label": "Receive Minimum", + "format": "tokenAmount", + "params": { "tokenPath": "params.tokenOut" } + }, + { "path": "params.fee", "label": "Uniswap fee", "format": "unit", "params": { "decimals": 4, "base": "%", "prefix": false } }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["params.amountIn", "params.amountOutMininimum", "params.fee", "params.recipient"] + }, + "0x09b81346": { + "$id": "exactOutput", + "intent": "Swap", + "fields": [ + { + "path": "params.amountInMaximum", + "label": "Maximum Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[0:20]" } + }, + { + "path": "params.amountOut", + "label": "Amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[-20:]" } + }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["params.amountInMaximum", "params.amountOut", "params.recipient"] + }, + "0x5023b4df": { + "$id": "exactOutputSingle", + "intent": "Swap", + "fields": [ + { + "path": "params.amountInMaximum", + "label": "Maximum Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "params.tokenIn" } + }, + { + "path": "params.amountOut", + "label": "Amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "params.tokenOut" } + }, + { "path": "params.fee", "label": "Uniswap fee", "format": "unit", "params": { "decimals": 4, "base": "%", "prefix": false } }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ] + }, + "0x472b43f3": { + "$id": "swapExactTokensForTokens", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { + "path": "amountOutMin", + "label": "Minimum amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "path.[-1]" } + } + ] + }, + "0x42712a67": { + "$id": "swapTokensForExactTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOut", "label": "Amount to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[-1]" } }, + { "path": "amountInMax", "label": "Maximum Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } } + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json new file mode 100644 index 00000000..90b00d61 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json @@ -0,0 +1,89 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "DutchOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "decayStartTime", "type": "uint256" }, + { "name": "decayEndTime", "type": "uint256" }, + { "name": "inputToken", "type": "address" }, + { "name": "inputStartAmount", "type": "uint256" }, + { "name": "inputEndAmount", "type": "uint256" }, + { "name": "outputs", "type": "DutchOutput[]" } + ], + "DutchOutput": [ + { "name": "token", "type": "address" }, + { "name": "startAmount", "type": "uint256" }, + { "name": "endAmount", "type": "uint256" }, + { "name": "recipient", "type": "address" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "DutchOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] + }, + "primaryType": "PermitWitnessTransferFrom" + } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX Dutch Order", + "fields": [ + { "path": "spender", "label": "Approve to spender", "format": "raw" }, + { + "path": "permitted.amount", + "label": "Approve amount", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { + "path": "witness.inputStartAmount", + "label": "Spend max", + "format": "tokenAmount", + "params": { "tokenPath": "witness.inputToken" } + }, + { + "path": "witness.outputs.[]", + "fields": [ + { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "recipient", "label": "On Addresses", "format": "raw" } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": [ + "nonce", + "witness.info", + "witness.decayStartTime", + "witness.decayEndTime", + "witness.inputEndAmount", + "witness.outputs.[].startAmount" + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json new file mode 100644 index 00000000..363e4a5a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json @@ -0,0 +1,93 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "DutchOutput": [ + { "name": "token", "type": "address" }, + { "name": "startAmount", "type": "uint256" }, + { "name": "endAmount", "type": "uint256" }, + { "name": "recipient", "type": "address" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "ExclusiveDutchOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "decayStartTime", "type": "uint256" }, + { "name": "decayEndTime", "type": "uint256" }, + { "name": "exclusiveFiller", "type": "address" }, + { "name": "exclusivityOverrideBps", "type": "uint256" }, + { "name": "inputToken", "type": "address" }, + { "name": "inputStartAmount", "type": "uint256" }, + { "name": "inputEndAmount", "type": "uint256" }, + { "name": "outputs", "type": "DutchOutput[]" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "ExclusiveDutchOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] + }, + "primaryType": "PermitWitnessTransferFrom" + } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX Exclusive Dutch Order", + "fields": [ + { "path": "spender", "label": "Approve to spender", "format": "raw" }, + { + "path": "permitted.amount", + "label": "Approve amount", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { + "path": "witness.inputStartAmount", + "label": "Spend max", + "format": "tokenAmount", + "params": { "tokenPath": "witness.inputToken" } + }, + { + "path": "witness.outputs.[]", + "fields": [ + { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "recipient", "label": "On Addresses", "format": "raw" } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": [ + "nonce", + "witness.info", + "witness.decayStartTime", + "witness.decayEndTime", + "witness.exclusiveFiller", + "witness.exclusivityOverrideBps", + "witness.inputEndAmount", + "witness.outputs.[].startAmount" + ] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json new file mode 100644 index 00000000..eed75828 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json @@ -0,0 +1,69 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "LimitOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "inputToken", "type": "address" }, + { "name": "inputAmount", "type": "uint256" }, + { "name": "outputs", "type": "OutputToken[]" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "OutputToken": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "recipient", "type": "address" }], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "LimitOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] + }, + "primaryType": "PermitWitnessTransferFrom" + } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX Limit Order", + "fields": [ + { "path": "spender", "label": "Approve to spender", "format": "raw" }, + { + "path": "permitted.amount", + "label": "Amount allowance", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { "path": "witness.inputAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "witness.inputToken" } }, + { + "path": "witness.outputs.[]", + "fields": [ + { "path": "amount", "label": "Min amount to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "recipient", "label": "On Address", "format": "raw" } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": ["nonce", "witness.info"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json new file mode 100644 index 00000000..27e4d67d --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json @@ -0,0 +1,81 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "DutchOutput": [ + { "name": "token", "type": "address" }, + { "name": "startAmount", "type": "uint256" }, + { "name": "endAmount", "type": "uint256" }, + { "name": "recipient", "type": "address" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "V2DutchOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }], + "V2DutchOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "cosigner", "type": "address" }, + { "name": "baseInputToken", "type": "address" }, + { "name": "baseInputStartAmount", "type": "uint256" }, + { "name": "baseInputEndAmount", "type": "uint256" }, + { "name": "baseOutputs", "type": "DutchOutput[]" } + ] + }, + "primaryType": "PermitWitnessTransferFrom" + } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX V2 Dutch Order", + "fields": [ + { "path": "spender", "label": "Approve to spender", "format": "raw" }, + { + "path": "permitted.amount", + "label": "Approve amount", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { + "path": "witness.baseInputStartAmount", + "label": "Spend max", + "format": "tokenAmount", + "params": { "tokenPath": "witness.baseInputToken" } + }, + { + "path": "witness.baseOutputs.[]", + "fields": [ + { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "recipient", "label": "On Addresses", "format": "raw" } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": ["nonce", "witness.info", "witness.cosigner", "witness.baseInputEndAmount", "witness.baseOutputs.[].startAmount"] + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json new file mode 100644 index 00000000..7f8cf66c --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json @@ -0,0 +1,85 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "PermitDetails": [ + { "name": "token", "type": "address" }, + { "name": "amount", "type": "uint160" }, + { "name": "expiration", "type": "uint48" }, + { "name": "nonce", "type": "uint48" } + ], + "PermitBatch": [ + { "name": "details", "type": "PermitDetails[]" }, + { "name": "spender", "type": "address" }, + { "name": "sigDeadline", "type": "uint256" } + ] + }, + "primaryType": "PermitBatch" + }, + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "PermitDetails": [ + { "name": "token", "type": "address" }, + { "name": "amount", "type": "uint160" }, + { "name": "expiration", "type": "uint48" }, + { "name": "nonce", "type": "uint48" } + ], + "PermitSingle": [ + { "name": "details", "type": "PermitDetails" }, + { "name": "spender", "type": "address" }, + { "name": "sigDeadline", "type": "uint256" } + ] + }, + "primaryType": "PermitSingle" + } + ] + } + }, + "display": { + "formats": { + "PermitSingle": { + "$id": "Permit2 Permit Single", + "intent": "Authorize spending of token", + "fields": [ + { "path": "spender", "label": "Spender", "format": "raw" }, + { "path": "details.amount", "label": "Amount allowance", "format": "tokenAmount", "params": { "tokenPath": "details.token" } }, + { "path": "details.expiration", "label": "Approval expires", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["spender", "details.amount"], + "excluded": ["sigDeadline"], + "screens": {} + }, + "PermitBatch": { + "$id": "Permit2 Permit Batch", + "intent": "Authorize spending of tokens", + "fields": [ + { "path": "spender", "label": "Spender", "format": "raw" }, + { + "path": "details.[]", + "fields": [ + { "path": "amount", "label": "Amount allowance", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "expiration", "label": "Approval expires", "format": "date", "params": { "encoding": "timestamp" } } + ] + } + ], + "required": ["spender", "details"], + "excluded": ["sigDeadline"], + "screens": {} + } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json new file mode 100644 index 00000000..52c56795 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json @@ -0,0 +1,78 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + + "context": { + "eip712": { + "domain": { + "name": "Permit2" + }, + "deployments": [ + { + "chainId": 1, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 10, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 56, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 137, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 8453, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 42161, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 42220, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 43114, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 80001, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 81457, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 84532, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 421614, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 11155111, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + }, + { + "chainId": 11155420, + "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" + } + ] + } + }, + + "metadata": { + "owner": "Uniswap", + "info": { + "legalName": "Uniswap Labs", + "deploymentDate": "2021-12-14T00:00:00Z", + "url": "https://uniswap.org/" + } + } +} \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json new file mode 100644 index 00000000..10257c09 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json @@ -0,0 +1,185 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "WalletConnect StakeWeight", + "contract": { + "deployments": [{ "chainId": 10, "address": "0x521B4C065Bbdbe3E20B3727340730936912DfA46" }], + "abi": [ + { + "inputs": [ + { + "components": [ + { "internalType": "address", "name": "admin", "type": "address" }, + { "internalType": "address", "name": "config", "type": "address" } + ], + "internalType": "struct StakeWeight.Init", + "name": "init", + "type": "tuple" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "uint256", "name": "amount", "type": "uint256" }, + { "internalType": "uint256", "name": "unlockTime", "type": "uint256" } + ], + "name": "createLock", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "for_", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" }, + { "internalType": "uint256", "name": "unlockTime", "type": "uint256" } + ], + "name": "createLockFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "for_", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" } + ], + "name": "depositFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], + "name": "increaseLockAmount", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "for_", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" } + ], + "name": "increaseLockAmountFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [{ "internalType": "uint256", "name": "newUnlockTime", "type": "uint256" }], + "name": "increaseUnlockTime", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "uint256", "name": "amount", "type": "uint256" }, + { "internalType": "uint256", "name": "unlockTime", "type": "uint256" } + ], + "name": "updateLock", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { "inputs": [], "name": "withdrawAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [{ "internalType": "address", "name": "user", "type": "address" }], + "name": "withdrawAllFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], + "name": "forceWithdrawAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [{ "internalType": "uint256", "name": "newMaxLock", "type": "uint256" }], + "name": "setMaxLock", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { "inputs": [], "name": "checkpoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" } + ] + } + }, + "metadata": { + "owner": "WalletConnect", + "info": { + "legalName": "WalletConnect Foundation", + "url": "https://walletconnect.network/", + "deploymentDate": "2024-11-23T14:50:43Z" + } + }, + "display": { + "formats": { + "createLock(uint256,uint256)": { + "intent": "Lock tokens for a period", + "fields": [ + { + "path": "amount", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } + }, + { "path": "unlockTime", "label": "Unlock Time", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amount", "unlockTime"] + }, + "depositFor(address,uint256)": { + "intent": "Deposit tokens for a period for a given address", + "fields": [ + { "path": "for_", "label": "For", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { + "path": "amount", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } + } + ], + "required": ["for_", "amount"] + }, + "increaseLockAmount(uint256)": { + "intent": "Increase Lock Amount", + "fields": [ + { + "path": "amount", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } + } + ], + "required": ["amount"] + }, + "increaseUnlockTime(uint256)": { + "intent": "Increase Unlock Time", + "fields": [{ "path": "newUnlockTime", "label": "New Unlock Time", "format": "date", "params": { "encoding": "timestamp" } }], + "required": ["newUnlockTime"] + }, + "updateLock(uint256,uint256)": { + "intent": "Update lock amount and unlock time", + "fields": [ + { + "path": "amount", + "label": "Amount", + "format": "tokenAmount", + "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } + }, + { "path": "unlockTime", "label": "Unlock Time", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amount", "unlockTime"] + }, + "withdrawAll()": { "intent": "Withdraw All", "fields": [], "required": [] } + } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json new file mode 100644 index 00000000..bba504e6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json @@ -0,0 +1,17 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "WalletConnect Token", + "contract": { "deployments": [{ "chainId": 10, "address": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" }] } + }, + "includes": "../../ercs/calldata-erc20-tokens.json", + "metadata": { + "owner": "WalletConnect", + "info": { + "legalName": "WalletConnect Foundation", + "url": "https://walletconnect.network/", + "deploymentDate": "2024-10-28T23:52:01Z" + }, + "token": { "ticker": "WCT", "name": "WalletConnect Token", "decimals": 18 } + } +} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json new file mode 100644 index 00000000..8a40b680 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "../../ercs/calldata-erc4626-vaults.json", + "metadata": { + "owner": "Yield.xyz", + "info": { "legalName": "Yield.xyz", "url": "https://yield.xyz/" }, + "constants": { "underlyingToken": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3", "underlyingTicker": "USDe", "vaultTicker": "stk-USDe" } + }, + "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2D152fB171353E70e45322D32bC748F8a61d9971" }] } } +} From c4e4d5962555026daa686d385249dc7cd387b261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Fri, 15 Aug 2025 18:15:19 +0000 Subject: [PATCH 2/9] Update dependencies for visualsign-erc7730-adapter and phf to version 0.12.1 --- src/Cargo.lock | 67 +++++++++++++++---- .../visualsign-ethereum/Cargo.toml | 10 +-- 2 files changed, 60 insertions(+), 17 deletions(-) diff --git a/src/Cargo.lock b/src/Cargo.lock index dbd339d0..70f4b7fb 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -4562,7 +4562,7 @@ version = "0.1.0" source = "git+https://github.com/MystenLabs/sui?tag=mainnet-v1.52.2#7f45ba185ff0773331d256469c49aefb82542102" dependencies = [ "once_cell", - "phf", + "phf 0.11.3", "serde", ] @@ -5483,18 +5483,29 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" dependencies = [ - "phf_macros", - "phf_shared", + "phf_macros 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913273894cec178f401a31ec4b656318d95473527be05c0752cc41cdc32be8b7" +dependencies = [ + "phf_macros 0.12.1", + "phf_shared 0.12.1", + "serde", ] [[package]] name = "phf_codegen" -version = "0.11.3" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +checksum = "efbdcb6f01d193b17f0b9c3360fa7e0e620991b193ff08702f78b3ce365d7e61" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.12.1", + "phf_shared 0.12.1", ] [[package]] @@ -5503,18 +5514,41 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" dependencies = [ - "phf_shared", + "phf_shared 0.11.3", "rand 0.8.5", ] +[[package]] +name = "phf_generator" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cbb1126afed61dd6368748dae63b1ee7dc480191c6262a3b4ff1e29d86a6c5b" +dependencies = [ + "fastrand", + "phf_shared 0.12.1", +] + [[package]] name = "phf_macros" version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", + "syn 2.0.104", +] + +[[package]] +name = "phf_macros" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d713258393a82f091ead52047ca779d37e5766226d009de21696c4e667044368" +dependencies = [ + "phf_generator 0.12.1", + "phf_shared 0.12.1", "proc-macro2", "quote", "syn 2.0.104", @@ -5529,6 +5563,15 @@ dependencies = [ "siphasher 1.0.1", ] +[[package]] +name = "phf_shared" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06005508882fb681fd97892ecff4b7fd0fee13ef1aa569f8695dae7ab9099981" +dependencies = [ + "siphasher 1.0.1", +] + [[package]] name = "pin-project" version = "1.1.10" @@ -10821,7 +10864,7 @@ dependencies = [ [[package]] name = "visualsign-erc7730-adapter" version = "0.1.0" -source = "git+ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git?branch=alloy-version-bump-1.0.20#26d328f3f456b37672dc8e80e32f518397874413" +source = "git+ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git?branch=main#7d375c2390f653bffa4df5eec410a2954b98e4f6" dependencies = [ "alloy-consensus", "alloy-primitives", @@ -10847,7 +10890,7 @@ dependencies = [ "include_dir", "log", "once_cell", - "phf", + "phf 0.12.1", "phf_codegen", "serde", "serde_json", diff --git a/src/chain_parsers/visualsign-ethereum/Cargo.toml b/src/chain_parsers/visualsign-ethereum/Cargo.toml index d34656d9..471c85a8 100644 --- a/src/chain_parsers/visualsign-ethereum/Cargo.toml +++ b/src/chain_parsers/visualsign-ethereum/Cargo.toml @@ -15,13 +15,13 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" thiserror = "2.0.12" visualsign = { workspace = true } -visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "alloy-version-bump-1.0.20" } +visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "main" } once_cell = "1" -include_dir = "0.7" # retained temporarily (can be removed if no longer used) -phf = { version = "0.11", features = ["macros"] } +include_dir = "0.7" # retained temporarily (can be removed if no longer used) +phf = { version = "0.12.1", features = ["macros"] } [build-dependencies] -phf_codegen = "0.11" +phf_codegen = "0.12.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "alloy-version-bump-1.0.20" } +visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "main" } From a472348d1cb0f13c22e7939ff8bcc9a580c41990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Fri, 15 Aug 2025 18:49:17 +0000 Subject: [PATCH 3/9] Remove unused dependencies: include_dir and once_cell from Cargo.toml --- src/Cargo.lock | 21 - .../visualsign-ethereum/Cargo.toml | 2 - .../eip7730/specs/erc7730-v1.schema.json | 1014 +++++++++++++++++ 3 files changed, 1014 insertions(+), 23 deletions(-) create mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json diff --git a/src/Cargo.lock b/src/Cargo.lock index 70f4b7fb..25604102 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -3715,25 +3715,6 @@ dependencies = [ "syn 2.0.104", ] -[[package]] -name = "include_dir" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" -dependencies = [ - "include_dir_macros", -] - -[[package]] -name = "include_dir_macros" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" -dependencies = [ - "proc-macro2", - "quote", -] - [[package]] name = "indenter" version = "0.3.3" @@ -10887,9 +10868,7 @@ dependencies = [ "alloy-rlp", "base64 0.22.1", "hex", - "include_dir", "log", - "once_cell", "phf 0.12.1", "phf_codegen", "serde", diff --git a/src/chain_parsers/visualsign-ethereum/Cargo.toml b/src/chain_parsers/visualsign-ethereum/Cargo.toml index 471c85a8..59d6cd04 100644 --- a/src/chain_parsers/visualsign-ethereum/Cargo.toml +++ b/src/chain_parsers/visualsign-ethereum/Cargo.toml @@ -16,8 +16,6 @@ serde_json = "1.0" thiserror = "2.0.12" visualsign = { workspace = true } visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "main" } -once_cell = "1" -include_dir = "0.7" # retained temporarily (can be removed if no longer used) phf = { version = "0.12.1", features = ["macros"] } [build-dependencies] diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json new file mode 100644 index 00000000..5869d2b2 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json @@ -0,0 +1,1014 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "description": "ERC7730 Clear Signing Specification Schema. Specification located at https://github.com/LedgerHQ/clear-signing-erc7730-registry/tree/master/specs", + + "properties": { + + "$schema": { + "title": "Schema", + "type": "string", + "format": "uri-reference", + "description": "The schema that the document should conform to. This should be the URL of a version of the clear signing JSON schemas available under https://github.com/LedgerHQ/clear-signing-erc7730-registry/tree/master/specs" + }, + + "includes": { + "title": "External includes", + "type": "string", + "format": "uri-reference", + "description": "An URL of another ERC 7730 file that should be merged into this one. Includes are merged into this file before analysis. This can be used to manage interfaces definitions without redundancy." + }, + + "context": { + "$ref": "#/$context/main" + }, + + "metadata": { + "$ref": "#/$metadata/main" + }, + + "display": { + "$ref": "#/$display/main" + } + }, + "additionalProperties": false, + + "$context" : { + "main" : { + "title": "Binding Context Section", + "type": "object", + "description": "The binding context is a set of constraints that are used to bind the ERC7730 file to a specific structured data being displayed. Currently, supported contexts include contract-specific constraints or EIP712 message specific constraints.", + + "properties": { + "$id" : { + "$ref": "#/$definitions/id" + } + }, + + "oneOf": [ + { + "$ref": "#/$context/contract" + }, + { + "$ref": "#/$context/EIP712" + } + ], + "unresolvedProperties": false + }, + + "contract": { + "type": "object", + + "properties": { + "contract": { + "title": "Contract Binding Context", + "type": "object", + "description": "The contract binding context is a set constraints that are used to bind the ERC7730 file to a specific smart contract.", + + "properties": { + "abi": { + "oneOf": [ + { + "$ref": "#/$definitions/abi-json-schema" + }, + { + "title": "An ABI url", + "description": "URL of an ABI bound to this file.", + "type": "string", + "format": "uri-reference" + } + ] + }, + "deployments": { + "$ref": "#/$context/deployments" + }, + "addressMatcher": { + "title": "Address Matcher constraint", + "type": "string", + "format": "uri", + "description": "An URL of a contract address matcher that should be used to match the contract address." + }, + "factory": { + "title": "Factory constraint", + "type": "object", + "description": "A factory constraint is used to check whether the target contract is deployed by a specified factory.", + "properties": { + "deployments": { + "$ref": "#/$context/deployments" + }, + "deployEvent": { + "title": "Deploy Event signature", + "type": "string", + "description": "The event signature that is emitted by the factory when deploying a new contract." + } + }, + "required": [ + "deployments", + "deployEvent" + ], + "additionalProperties": false + } + + }, + "additionalProperties": false + } + }, + "required": [ + "contract" + ] + }, + + "EIP712": { + "type": "object", + "properties": { + "eip712" : { + "title": "EIP 712 Binding", + "type": "object", + "description": "The EIP-712 binding context is a set of constraints that must be verified by the message being signed.", + + "properties" : { + "schemas" : { + "oneOf": [ + { + "title": "An EIP712 Schemas url", + "description": "URL of an array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.", + "type": "string", + "format": "uri-reference" + }, + { + "title": "EIP 712 Schemas constraint", + "type": "array", + "description": "An array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.", + "items": { + "oneOf": [ + { + "$ref": "#/$definitions/eip712-json-schema" + }, + { + "title": "An EIP712 Schema url", + "description": "URL of an EIP712 Schema bound to this file.", + "type": "string", + "format": "uri-reference" + } + ] + } + } + ] + }, + "domain": { + "title": "EIP 712 Domain Binding constraint", + "type": "object", + "description": "Each value of the domain constraint MUST match the corresponding eip 712 message domain value.", + + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "chainId": { + "type": "integer", + "format": "eip155" + }, + "verifyingContract": { + "type": "string", + "format": "eip55" + } + } + }, + "domainSeparator": { + "title": "Domain Separator constraint", + "type": "string", + "description": "The domain separator value that must be matched by the message. In hex string representation." + }, + "deployments": { + "description": "An array of deployments describing what the chainId and verifyingContract in the domain should match.", + "$ref": "#/$context/deployments" + } + }, + "additionalProperties": false + } + }, + "required": [ + "eip712" + ] + }, + + "deployments": { + "title": "Deployments constraint", + "type": "array", + "description": "An array of deployments describing where the contract is deployed. The target contract (Tx to or factory) MUST match one of those deployments.", + "items": { + "properties": { + "chainId": { + "type": "integer", + "format": "eip155" + }, + "address": { + "type": "string", + "format": "eip55" + } + } + } + } + }, + + "$metadata": { + "main": { + "title": "Metadata Section", + "type": "object", + "description": "The metadata section contains information about constant values relevant in the scope of the current contract / message (as matched by the `context` section)", + + "properties": { + + "owner": { + "title": "Owner display name", + "type": "string", + "description": "The display name of the owner or target of the contract / message to be clear signed." + }, + + "info": { + "$ref": "#/$metadata/info" + }, + + "token": { + "$ref": "#/$metadata/token" + }, + + "constants": { + "$ref": "#/$metadata/constants" + }, + + "enums": { + "$ref": "#/$metadata/enums" + } + } + + }, + + "info" : { + "title": "Main contract's owner detailed information", + "type": "object", + "description": "The owner info section contains detailed information about the owner or target of the contract / message to be clear signed.", + + "properties": { + "legalName": { + "title": "Owner Legal Name", + "type": "string", + "description": "The full legal name of the owner if different from the owner field." + }, + "deploymentDate": { + "title": "Deployment date of the contract / message", + "type": "string", + "format": "date-time", + "description": "The date of deployment of the contract / message." + }, + "url": { + "title": "Owner URL", + "type": "string", + "format": "uri", + "description": "URL with more info on the entity the user interacts with." + } + }, + "required": [ + "legalName", + "url" + ], + "additionalProperties": false + }, + + "token" : { + "title": "Token Description", + "type": "object", + "description": "A description of an ERC20 token exported by this format, that should be trusted. Not mandatory if the corresponding metadata can be fetched from the contract itself.", + + "properties": { + "name": { + "title": "Token Name", + "type": "string" + }, + "ticker": { + "title": "Token Ticker", + "type": "string", + "description": "A short capitalized ticker for the token, that will be displayed in front of corresponding amounts." + }, + "decimals": { + "title": "Token Decimals", + "type": "integer", + "description": "The number of decimals of the token ticker, used to display amounts." + } + }, + "required": [ + "name", + "ticker", + "decimals" + ], + "additionalProperties": false + + }, + + "constants": { + "title": "Constant values", + "type": "object", + "description": "A set of values that can be used in format parameters. Can be referenced with a path expression like $.metadata.constants.CONSTANT_NAME", + "additionalProperties": { + "type": ["string", "integer", "number", "boolean", "null"] + } + }, + + "enums" : { + "title": "Enums", + "type": "object", + "description": "A set of enums that are used to format fields replacing values with human readable strings.", + + "additionalProperties": { + "oneOf": [ + { + "title": "A dynamic enum", + "type": "string", + "description": "A dynamic enum contains an URL which returns a json file with simple key-values mapping values display name. It is assumed those values can change between two calls to clear sign." + }, + { + "title": "Enumeration", + "type": "object", + "description": "A set of values that will be used to replace a field value with a human readable string. Enumeration keys are the field values and enumeration values are the displayable strings", + + "additionalProperties": { + "type": "string" + } + } + ] + } + } + }, + + "$display": { + "main": { + "title": "Display Formatting Info Section", + "type": "object", + "description": "The display section contains all the information needed to format the data in a human readable way. It contains the constants and formatters used to display the data contained in the bound structure.", + + "properties": { + + "definitions": { + "type": "object", + "title": "Common Formatter Definitions", + "description": "A set of definitions that can be used to share formatting information between multiple messages / functions. The definitions can be referenced by the key name in an internal path.", + "additionalProperties": { + "$ref": "#/$format/field" + } + }, + + "formats": { + "title": "List of field formats", + "description": "The list includes formatting info for each field of a structure. This list is indexed by a key identifying uniquely the message's type in the abi. For smartcontracts, it is the selector of the function or its signature; and for EIP712 messages it is the primaryType of the message.", + "type": "object", + + "additionalProperties": { + "title": "A structured data format specification", + "description": "A structured data format specification contains formatting information of fields in a single type of message.", + "type": "object", + + "properties": { + "$id": { + "$ref": "#/$definitions/id" + }, + "intent": { + "$ref": "#/$display/intent" + }, + "fields": { + "$ref": "#/$display/fields" + }, + "required": { + "$ref": "#/$display/required" + }, + "excluded": { + "$ref": "#/$display/excluded" + }, + "screens": { + "title": "Screens grouping information", + "description": "Screens section is used to group multiple fields to display into screens. Each key is a wallet type name. The format of the screens is wallet type dependent, as well as what can be done (reordering fields, max number of screens, etc...). See each wallet manufacturer documentation for more information.", + "type": "object", + + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/$display/screens" + } + } + } + }, + "additionalProperties": false + } + } + }, + "required": [ + "formats" + ], + "additionalProperties": false + }, + "intent": { + "oneOf": [ + { + "title": "Simple intent message", + "description": "A description of the intent of the structured data signing, that will be displayed to the user.", + "type": "string" + }, + { + "title": "Complex intent message", + "description": "A description of the intent of the structured data signing, that will be displayed to the user.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + + ] + }, + "required": { + "title": "Required fields", + "description": "A list of fields that are required to be displayed to the user. A field that has a formatter and is not in this list is optional. A field that does not have a formatter should be silent, ie not shown", + "type": "array", + "items": { + "type": "string" + } + }, + "excluded": { + "title": "Excluded fields", + "description": "A list of fields that are intentionally not shown to the user. A field that has no formatter and is not declared in this list may be considered as an error by the wallet when interpreting the descriptor.", + "type": "array", + "items": { + "type": "string" + } + }, + "screens": { + "title": "Screen information", + "description": "ADD DEVICE SPECIFIC SCHEMAS LATER. A screen is a group of fields that will be displayed together in a wallet. The format of the screen is wallet type dependent, as well as what can be done (reordering fields, max number of screens, etc..). See each wallet manufacturer documentatio for more information.", + "type": "object" + }, + "fields": { + "title": "Field Formats set", + "type": "array", + "description": "An array containing the ordered definitions of fields formats. See the specification for more details.", + + "items": { + "oneOf": [ + { + "$ref": "#/$format/field" + }, + { + "$ref": "#/$display/nestedFields" + }, + { + "$ref": "#/$display/reference" + } + ] + }, + "unresolvedProperties": false + }, + "nestedFields": { + "title": "A single set of field formats, allowing recursivity in the schema", + "description": "A set of field formats used to group whole definitions for structures for instance. This allows nesting definitions of formats, but note that support for deep nesting will be device dependent.", + "type": "object", + + "properties": { + "path": { + "$ref": "#/$format/path" + }, + "fields": { + "$ref": "#/$display/fields" + } + }, + "required": [ + "fields" + ], + "additionalProperties": false + }, + "reference": { + "title": "Reference", + "description": "A reference to a shared definition that should be used as the field formatting definition. The value is the key in the display definitions section, as a path expression $.display.definitions.DEFINITION_NAME. It is used to share definitions between multiple messages / functions.", + "properties": { + "path": { + "$ref": "#/$format/path" + }, + "value": { + "$ref": "#/$format/value" + }, + "$ref": { + "title": "Internal Definition", + "description": "An internal definition that should be used as the field formatting definition. The value is the key in the display definitions section, as a path expression $.display.definitions.DEFINITION_NAME.", + "type": "string" + }, + "params": { + "title": "Parameters", + "description": "Parameters override. These values takes precedence over the ones in the definition itself", + "type": "object", + "additionalProperties": { "type": "string" } + } + }, + "required": [ "$ref" ], + "allOf": [ + { + "not": { "required": [ "path", "value" ] } + } + ], + "additionalProperties": false + } + }, + + "$format": { + "path": { + "title": "Path", + "type": "string", + "description": "A path to the field in the structured data. The path is a JSON path expression that can be used to extract the field value from the structured data." + }, + "value": { + "title": "Value", + "type": ["string", "integer", "number", "boolean"], + "description": "A literal value on which the format should be applied instead of looking up a field in the structured data." + }, + "field": { + "title": "Field formatter", + "description": "A field formatter contains formatting information of a single field in a message.", + "type": "object", + + "properties": { + "$id": { + "$ref": "#/$definitions/id" + }, + "path": { + "$ref": "#/$format/path" + }, + "value": { + "$ref": "#/$format/value" + }, + "label": { + "title": "Field Label", + "description": "The label of the field, that will be displayed to the user in front of the formatted field value.", + "type": "string" + }, + "format": { + "title": "Field Format", + "description": "The format of the field, that will be used to format the field value in a human readable way.", + "type": "string", + "$ref": "#/$format/names" + } + }, + "required": [ "label", "format" ], + "allOf" : [ + { + "not": { "required": [ "path", "value" ] } + }, + { + "if": { "properties": { "format": { "const": "addressName" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/addressNameParameters" } + } + } + }, + { + "if": { "properties": { "format": { "const": "calldata" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/calldataParameters" } + } + } + }, + { + "if": { "properties": { "format": { "const": "tokenAmount" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/tokenAmountParameters" } + } + } + }, + { + "if": { "properties": { "format": { "const": "nftName" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/nftNameParameters" } + } + } + }, + { + "if": { "properties": { "format": { "const": "date" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/dateParameters" } + } + } + }, + { + "if": { "properties": { "format": { "const": "percentage" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/unitParameters" } + } + } + }, + { + "if": { "properties": { "format": { "const": "enum" } } }, + "then": { + "properties": { + "params": { "$ref": "#/$format/enumParameters" } + } + } + } + ], + "unresolvedProperties": false + }, + "names": { + "anyOf": [ + { + "title": "Raw format", + "const": "raw", + "description": "The field should be displayed as the natural representation of the underlying structured data type." + }, + { + "title": "address format", + "const": "addressName", + "description": "The field should be displayed as a trusted name, or as a raw address if no names are found in trusted sources. List of trusted sources can be optionally specified in parameters." + }, + { + "title": "bytes format", + "const": "calldata", + "description": "The field is itself a calldata embedded in main call. Another ERC 7730 should be used to parse this field. If not available or not supported, the wallet MAY display a hash of the embedded calldata instead." + + }, + { + "title": "integer format", + "const": "amount", + "description": "The field should be displayed as an amount in underlying currency, converted using the best magnitude / ticker available." + }, + { + "title": "integer format", + "const": "tokenAmount", + "description": "The field should be displayed as an amount, preceded by the ticker. The magnitude and ticker should be derived from the token or tokenPath parameter corresponding metadata." + }, + { + "title": "integer format", + "const": "nftName", + "description": "The field should be displayed as a single NFT names, or as a raw token Id if a specific name is not found. Collection is specified by the collection or collectionPath parameter." + }, + { + "title": "integer format", + "const": "date", + "description": "The field should be displayed as a date. Suggested RFC3339 representation. Parameter specifies the encoding of the date." + }, + { + "title": "integer format", + "const": "duration", + "description": "The field should be displayed as a duration in HH:MM:ss form. Value is interpreted as a number of seconds." + }, + { + "title": "integer format", + "const": "unit", + "description": "The field should be displayed as a percentage. Magnitude of the percentage encoding is specified as a parameter. Example: a value of 3000 with magnitude 4 is displayed as 0.3%." + }, + { + "title": "integer format", + "const": "enum", + "description": "The field should be displayed as a human readable string by converting the value using the enum referenced in parameters." + } + ] + }, + "addressNameParameters" : { + "title": "Address Names Formatting Parameters", + "type": "object", + "properties": { + "types": { + "title": "Address Type", + "type": "array", + "description": "The types of address to display. Restrict allowable sources of names and MAY lead to additional checks from wallets.", + "items": { + "type": "string", + "enum": [ "wallet", "eoa", "contract", "token", "collection" ] + } + }, + "sources": { + "title": "Trusted Sources", + "description": "Trusted Sources for names, in order of preferences. Sources values are wallet manufacturer specific, example values are \"local\" or \"ens\". See specification for more details on sources values.", + "type": "array", + "items": { + "type": "string" + } + }, + "senderAddress": { + "title": "Sender Address", + "oneOf": [ + { + "type": "string", + "description": "An address equal to this value is interpreted as the sender referenced by `@.from`." + }, + { + "type": "array", + "description": "An array of addresses, any of which are interpreted as the sender referenced by `@.from`.", + "items": { + "type": "string" + } + } + ] + } + }, + "additionalProperties": false + }, + "calldataParameters" : { + "title": "Embedded Calldata Formatting Parameters", + "type": "object", + "properties": { + "selector": { + "title": "Called Selector (Optional)", + "type": "string", + "description": "The selector being called, if not contained in the calldata. Hex string representation." + }, + "callee": { + "title": "Callee Address", + "type": "string", + "description": "The address of the contract being called by this embedded calldata." + }, + "calleePath": { + "title": "Callee Path", + "type": "string", + "description": "The path to the address of the contract being called by this embedded calldata." + } + }, + "anyOf": [ + {"required": ["callee"]}, + {"required": ["calleePath"]} + ], + "not": { + "required": ["callee", "calleePath"] + }, + "additionalProperties": false + }, + "tokenAmountParameters": { + "title": "Token Amount Formatting Parameters", + "type": "object", + "properties": { + "token": { + "title": "Token", + "type": "string", + "description": "The token address, or a path to a constant in the ERC 7730 file." + }, + "tokenPath": { + "title": "Token Path", + "type": "string", + "description": "The path to the token address in the structured data." + }, + "nativeCurrencyAddress": { + "title": "Native Currency Address", + "oneOf": [ + { + "type": "string", + "description": "An address equal to this value is interpreted as an amount in native currency rather than a token." + }, + { + "type": "array", + "description": "An array of addresses, any of which are interpreted as an amount in native currency rather than a token.", + "items": { + "type": "string" + } + } + ] + }, + "threshold": { + "title": "Unlimited Threshold", + "type": "string", + "description": "The threshold above which the amount should be displayed using the message parameter rather than the real amount." + }, + "message": { + "title": "Unlimited Message", + "type": "string", + "description": "The message to display when the amount is above the threshold." + } + }, + "not": { + "required": ["token", "tokenPath"] + }, + "additionalProperties": false + }, + "nftNameParameters" : { + "title": "NFT Names Formatting Parameters", + "type": "object", + "properties": { + "collection": { + "title": "Collection Address", + "type": "string", + "description": "The collection address, or a path to a constant in the ERC 7730 file." + }, + "collectionPath": { + "title": "Collection Path", + "type": "string", + "description": "The path to the collection in the structured data." + } + }, + "anyOf": [ + {"required": ["collection"]}, + {"required": ["collectionPath"]} + ], + "not": { + "required": ["collection", "collectionPath"] + }, + "additionalProperties": false + }, + "dateParameters": { + "title": "Date Formatting Parameters", + "type": "object", + "properties": { + "encoding": { + "title": "Date Encoding", + "type": "string", + "description": "The encoding of the date.", + "enum": [ + "blockheight", + "timestamp" + ] + } + }, + "required": [ + "encoding" + ], + "additionalProperties": false + }, + + "unitParameters": { + "title": "Unit Formatting Parameters", + "type": "object", + "properties": { + "base": { + "title": "Unit base symbol", + "type": "integer", + "description": "The base symbol of the unit, displayed after the converted value. It can be an SI unit symbol or acceptable dimensionless symbols like % or bps." + }, + "decimals": { + "title": "Decimals", + "type": "integer", + "description": "The number of decimals of the value, used to convert to a float." + }, + "prefix": { + "title": "Prefix", + "type": "boolean", + "description": "Whether the value should be converted to a prefixed unit, like k, M, G, etc." + } + }, + "required": [ + "base" + ], + "additionalProperties": false + }, + + "enumParameters": { + "title": "Enum Formatting Parameters", + "type": "object", + "properties": { + "$ref": { + "title": "Enum reference", + "type": "string", + "description": "The internal path to the enum definition used to convert this value." + } + }, + "required": [ + "$ref" + ], + "additionalProperties": false + } + }, + + "$definitions": { + "id": { + "title": "ID", + "type": "string", + "description": "An internal identifier that can be used either for clarity specifying what the element is or as a reference in device specific sections." + }, + + "eip712-json-schema": { + "title": "An EIP712 Schema", + "type": "object", + "description": "EIP712 typed data schema, restricted to type definitions and primary type only. See https://eips.ethereum.org/EIPS/eip-712#data-structures for more information.", + "properties": { + "types": { + "type": "object", + "description": "Type definitions for the EIP712 typed data. See https://eips.ethereum.org/EIPS/eip-712#data-structures for more information.", + "properties": { + "EIP712Domain": { + "type": "array", + "description": "EIP712 domain type definition. The domain is used as a separator between EIP712 messages to avoid reuse of signatures. Actual separator values are contained in a \"domain\" key of the message. Fields are up to the implementer, but must often include at least name, version, chainId and verifyingContract." + } + }, + "additionalProperties": { + "type": "array", + "description": "Type definition for a specific type. Each type is an array of fields, where each field is an object with a name and a type. The type is a string, and may be a reference to another type.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "name", + "type" + ] + } + }, + "required": [ + "EIP712Domain" + ] + }, + "primaryType": { + "type": "string", + "description": "The primary type of the EIP712 typed data. This is the type that will be used as the top level type for the message field. See https://eips.ethereum.org/EIPS/eip-712#data-structures for more information." + } + }, + "required": [ + "types", + "primaryType" + ] + }, + + "abi-json-schema": { + "title": "An EVM ABI", + "type": "array", + "description": "JSON schema for the json representation of a solidity ABI", + "items": { + "type": "object", + "properties": { + "inputs": { + "type": "array", + "description": "an array of object with input parameters", + "items": { + "$ref": "#/$definitions/abi-parameter" + } + }, + "name": { + "type": "string", + "description": "the name of the function" + }, + "outputs": { + "type": "array", + "description": "an array of object with output parameters", + "items": { + "$ref": "#/$definitions/abi-parameter" + } + }, + "stateMutability": { + "type": "string", + "enum": [ + "pure", + "view", + "nonpayable", + "payable" + ] + }, + "type": { + "type": "string", + "description": "the type of object being described", + "enum": [ + "function", + "constructor", + "receive", + "fallback" + ] + } + }, + "required": [ + "inputs", + "type" + ] + } + }, + + "abi-parameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the parameter, used in the selector computation" + }, + "type": { + "type": "string", + "description": "the canonical type of the parameter" + }, + "internalType": { + "type": "string", + "description": "fully qualified type name in solidity source code" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/$definitions/abi-parameter" + } + } + }, + "required": [ + "name", + "type" + ] + } + } +} \ No newline at end of file From 1d83e09a4cb50712504ca49649394c1ac58c3eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Fri, 22 Aug 2025 09:52:04 +0000 Subject: [PATCH 4/9] Enhance Ethereum transaction visualization by adding command registry and improving input handling --- .../visualsign-ethereum/src/lib.rs | 23 +++-- .../src/provider/eip7730.rs | 51 ++++++----- .../visualsign-ethereum/src/registry.rs | 84 ++++++++++++++++++- 3 files changed, 121 insertions(+), 37 deletions(-) diff --git a/src/chain_parsers/visualsign-ethereum/src/lib.rs b/src/chain_parsers/visualsign-ethereum/src/lib.rs index 93519993..cddd50bf 100644 --- a/src/chain_parsers/visualsign-ethereum/src/lib.rs +++ b/src/chain_parsers/visualsign-ethereum/src/lib.rs @@ -248,15 +248,20 @@ fn convert_to_visual_sign_payload( // Add contract call data if present let input = transaction.input(); if !input.is_empty() { - fields.push(SignablePayloadField::TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: format!("0x{}", hex::encode(input)), - label: "Input Data".to_string(), - }, - text_v2: SignablePayloadFieldTextV2 { - text: format!("0x{}", hex::encode(input)), - }, - }); + let address = transaction.to().or_else(|| None); + if let Some(field) = registry::try_visualize_commands(chain_id, address, &input) { + fields.push(field); + } else { + fields.push(SignablePayloadField::TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: format!("0x{}", hex::encode(input)), + label: "Input Data".to_string(), + }, + text_v2: SignablePayloadFieldTextV2 { + text: format!("0x{}", hex::encode(input)), + }, + }); + } } let title = options diff --git a/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs b/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs index e471bc61..31a75a55 100644 --- a/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs +++ b/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs @@ -1,30 +1,27 @@ -use crate::registry; -use visualsign::{SignablePayload, SignablePayloadField}; -use crate::decode_transaction_bytes; // reuse low-level decoder -use alloy_consensus::Transaction as _; // bring trait into scope for .input() +use crate::registry::{CommandVisualizer, VisualizerContext, decode_calldata}; +use visualsign::{SignablePayloadField, SignablePayloadFieldCommon, SignablePayloadFieldTextV2}; -/// Decode a raw Ethereum transaction (RLP bytes) into SignablePayloadFields using the -/// embedded ERC-7730 registry. Returns None if decoding fails or no registry match. -pub fn decode_raw_transaction_to_fields(raw: &[u8]) -> Option> { - let tx = decode_transaction_bytes(raw).ok()?; - // Only legacy and EIP-1559 currently supported for calldata extraction here - let input: Vec = match &tx { - alloy_consensus::TypedTransaction::Legacy(t) => t.input().to_vec(), - alloy_consensus::TypedTransaction::Eip1559(t) => t.input().to_vec(), - _ => return None, - }; - if input.is_empty() { return None; } - registry::decode_calldata(&input) -} +pub struct Eip7730Visualizer; -/// Convenience function building a SignablePayload with fields derived from registry. -pub fn decode_raw_transaction_to_payload(raw: &[u8]) -> Option { - let fields = decode_raw_transaction_to_fields(raw)?; - Some(SignablePayload { - fields, - payload_type: "ethereum_tx".to_string(), - subtitle: None, - title: "Ethereum Transaction".to_string(), - version: "1".to_string(), - }) +impl CommandVisualizer for Eip7730Visualizer { + fn visualize_tx_commands(&self, context: &VisualizerContext) -> Option { + let decoded = decode_calldata(context.calldata)?; + if decoded.is_empty() { + return None; + } + if decoded.len() == 1 { + // A single decoded field is already suitably granular. + return Some(decoded.into_iter().next().unwrap()); + } + // Summarize multiple decoded fields by listing their labels. + let labels: Vec = decoded.iter().map(|f| f.label().to_string()).collect(); + let summary_text = format!("Decoded Input Fields: {}", labels.join(", ")); + Some(SignablePayloadField::TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: summary_text.clone(), + label: "Decoded Input".to_string(), + }, + text_v2: SignablePayloadFieldTextV2 { text: summary_text }, + }) + } } diff --git a/src/chain_parsers/visualsign-ethereum/src/registry.rs b/src/chain_parsers/visualsign-ethereum/src/registry.rs index 4d97ab23..f8002594 100644 --- a/src/chain_parsers/visualsign-ethereum/src/registry.rs +++ b/src/chain_parsers/visualsign-ethereum/src/registry.rs @@ -1,7 +1,89 @@ -// Generated compile-time data (GenField, GenFormat, SELECTOR_MAP) include!(concat!(env!("OUT_DIR"), "/erc7730_registry_gen.rs")); +use alloy_primitives::Address; +use std::{ + collections::HashMap, + sync::{Arc, Once}, +}; use visualsign::{SignablePayloadField, SignablePayloadFieldCommon, SignablePayloadFieldTextV2}; +/// Context passed to visualizers for higher-level command rendering +#[derive(Debug)] +pub struct VisualizerContext<'a> { + pub chain_id: Option, + pub to: Option
, + pub calldata: &'a [u8], +} + +/// Trait for contract-specific visualizers. Implementations should attempt to produce +/// a higher-level SignablePayloadField (e.g. a PreviewLayout summarizing commands) or return None. +pub trait CommandVisualizer: Send + Sync + 'static { + fn visualize_tx_commands(&self, context: &VisualizerContext) -> Option; +} + +type DynVisualizer = Arc; +static INIT: Once = Once::new(); +// Top-level map: chain_id (Some or None for chain-agnostic) -> address -> visualizer +static mut COMMAND_REGISTRY_PTR: *mut HashMap, HashMap> = + std::ptr::null_mut(); + +#[inline] +fn ensure_init() { + INIT.call_once(|| unsafe { + let boxed: Box, HashMap>> = + Box::new(HashMap::new()); + COMMAND_REGISTRY_PTR = Box::into_raw(boxed); + }); +} + +/// Register a visualizer for (chain_id,address). Use chain_id None for chain-agnostic fallback. +pub fn register_visualizer(chain_id: Option, address: Address, visualizer: DynVisualizer) { + ensure_init(); + unsafe { + let top = &mut *COMMAND_REGISTRY_PTR; + top.entry(chain_id) + .or_insert_with(HashMap::new) + .insert(address, visualizer); + } +} + +/// Lookup a visualizer. Attempts exact (chain_id,address) then (None,address). +pub fn get_visualizer(chain_id: Option, address: Address) -> Option { + ensure_init(); + unsafe { + if COMMAND_REGISTRY_PTR.is_null() { + return None; + } + let top = &*COMMAND_REGISTRY_PTR; + if let Some(m) = top.get(&chain_id) { + if let Some(v) = m.get(&address) { + return Some(v.clone()); + } + } + // Fallback to chain-agnostic (None) + if let Some(m_any) = top.get(&None) { + if let Some(v) = m_any.get(&address) { + return Some(v.clone()); + } + } + None + } +} + +/// Convenience: try to visualize using any registered visualizer; returns the produced field or None. +pub fn try_visualize_commands( + chain_id: Option, + to: Option
, + calldata: &[u8], +) -> Option { + let to_addr = to?; // need a concrete address for lookup + let v = get_visualizer(chain_id, to_addr)?; + v.visualize_tx_commands(&VisualizerContext { + chain_id, + to, + calldata, + }) +} + /// Given calldata bytes, attempt to produce SignablePayloadFields using the registry. /// Current implementation is heuristic and does not ABI-decode parameters; it surfaces field /// labels and paths as plain text fields. Future improvements can plug proper ABI decoding. From 28140db418b4478cf530d4d0fdc49ded7e5c0af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Fri, 29 Aug 2025 19:27:30 +0000 Subject: [PATCH 5/9] Remove in-tree eip7730 registry to prepare for submodule --- .../static/eip7730/.gitattributes | 2 - .../eip7730/ercs/calldata-erc20-tokens.json | 65 - .../eip7730/ercs/calldata-erc4626-vaults.json | 80 -- .../eip7730/ercs/calldata-erc721-nfts.json | 79 -- .../eip7730/ercs/eip712-erc2612-permit.json | 42 - .../1inch/calldata-AggregationRouterV3.json | 78 -- .../calldata-AggregationRouterV4-eth.json | 46 - .../1inch/calldata-AggregationRouterV4.json | 14 - .../1inch/calldata-AggregationRouterV5.json | 166 --- .../calldata-AggregationRouterV6-zksync.json | 11 - .../1inch/calldata-AggregationRouterV6.json | 51 - .../1inch/common-AggregationRouterV4.json | 178 --- .../1inch/common-AggregationRouterV6.json | 212 ---- .../1inch/eip712-1inch-limit-order.json | 76 -- .../1inch/eip712-AggregationRouterV6.json | 60 - .../eip7730/registry/aave/calldata-lpv2.json | 127 -- .../eip7730/registry/aave/calldata-lpv3.json | 167 --- .../corestake/calldata-corestake.json | 51 - .../registry/degate/eip712-degate.json | 122 -- .../registry/dispatch/eip712-dispatch.json | 42 - .../registry/ethena/calldata-ethena.json | 102 -- .../fellow-fund/calldata-fellow-fund.json | 74 -- ...lldata-DistributionToDelegators-Flare.json | 858 ------------- .../calldata-PollingFoundation-Flare.json | 863 ------------- .../calldata-PollingFoundation-Songbird.json | 863 ------------- .../flare/calldata-RewardManager-Flare.json | 1110 ---------------- .../calldata-RewardManager-Songbird.json | 1111 ----------------- ...calldata-ValidatorRewardManager-Flare.json | 649 ---------- .../calldata-Vault-USDC-AAVE-Arbitrum.json | 8 - .../registry/kiln/common-KilnVaults.json | 9 - .../ledgerquest/eip712-ledgerquest.json | 40 - .../registry/lens/eip712-lens-lenshub.json | 666 ---------- .../eip712-lens-token-handle-registry.json | 66 - .../lido/calldata-WithdrawalQueueERC721.json | 188 --- .../eip7730/registry/lido/calldata-stETH.json | 63 - .../registry/lido/calldata-wstETH.json | 86 -- .../lombard/calldata-lbtc-redeem-holesky.json | 44 - .../lombard/calldata-lbtc-redeem-mainnet.json | 44 - ...712-network-fee-authorization-holesky.json | 41 - ...712-network-fee-authorization-mainnet.json | 41 - .../registry/makerdao/eip712-permit-DAI.json | 20 - .../eip712-permit-DAI/permit-DAI-sample1.json | 58 - .../morpho/calldata-9summits-9SETHc.json | 10 - .../morpho/calldata-9summits-9SETHcore.json | 10 - .../calldata-9summits-9SUSDC11Core.json | 14 - .../morpho/calldata-9summits-9SUSDCcore.json | 10 - .../morpho/calldata-9summits-9SUSR.json | 10 - .../registry/morpho/calldata-MorphoBlue.json | 1056 ---------------- .../morpho/calldata-apostro-aprUSDC.json | 10 - .../morpho/calldata-apostro-aprUSR.json | 10 - .../morpho/calldata-b_protocol-reETH.json | 10 - .../morpho/calldata-b_protocol-reGOLD.json | 10 - .../morpho/calldata-b_protocol-reUSDC.json | 10 - .../morpho/calldata-b_protocol-recbBTC.json | 10 - .../calldata-block_analitica-bbETH.json | 10 - .../calldata-block_analitica-bbUSDC.json | 10 - .../calldata-block_analitica-bbUSDT.json | 10 - .../calldata-block_analitica-mwETH.json | 10 - .../calldata-block_analitica-mwEURC.json | 10 - .../calldata-block_analitica-mwUSDC.json | 10 - .../calldata-block_analitica-mwcbBTC.json | 10 - .../registry/morpho/calldata-fence-ERY.json | 10 - .../morpho/calldata-gauntlet-elixirUSDC.json | 10 - .../morpho/calldata-gauntlet-gtAUSDc.json | 10 - .../morpho/calldata-gauntlet-gtDAIcore.json | 10 - .../morpho/calldata-gauntlet-gtEURCc.json | 10 - .../morpho/calldata-gauntlet-gtLBTCc.json | 10 - .../morpho/calldata-gauntlet-gtLRTcore.json | 10 - .../morpho/calldata-gauntlet-gtUSDAcore.json | 10 - .../morpho/calldata-gauntlet-gtUSDC.json | 10 - .../morpho/calldata-gauntlet-gtUSDCc.json | 10 - .../morpho/calldata-gauntlet-gtUSDCcore.json | 10 - .../morpho/calldata-gauntlet-gtUSDCmkr.json | 10 - .../morpho/calldata-gauntlet-gtUSDCp.json | 10 - .../morpho/calldata-gauntlet-gtUSDT.json | 10 - .../morpho/calldata-gauntlet-gtWBTCc.json | 10 - .../morpho/calldata-gauntlet-gtWETH.json | 10 - .../morpho/calldata-gauntlet-gtWETHc.json | 10 - .../morpho/calldata-gauntlet-gtWETHe.json | 10 - .../morpho/calldata-gauntlet-gtcbBTCc.json | 10 - .../morpho/calldata-gauntlet-gteUSDc.json | 10 - .../morpho/calldata-gauntlet-gtmsETHc.json | 10 - .../morpho/calldata-gauntlet-gtmsUSDc.json | 10 - .../morpho/calldata-gauntlet-gtusdcf.json | 10 - .../morpho/calldata-gauntlet-ionicUSDC.json | 10 - .../morpho/calldata-gauntlet-ionicWETH.json | 10 - .../morpho/calldata-gauntlet-mhyETH.json | 10 - .../morpho/calldata-gauntlet-midasUSDC.json | 10 - .../morpho/calldata-gauntlet-msolvbtcbbn.json | 14 - .../morpho/calldata-gauntlet-resolvUSDC.json | 10 - .../calldata-gauntlet-sbMorphoUSDC.json | 14 - .../calldata-gauntlet-sbMorphotBTC.json | 14 - .../morpho/calldata-gauntlet-smUSDC.json | 10 - .../morpho/calldata-gauntlet-smWETH.json | 10 - .../morpho/calldata-gauntlet-smcbBTC.json | 10 - .../morpho/calldata-hakutora-hUSDC.json | 10 - .../morpho/calldata-leadblock-USDC-RWA.json | 10 - .../calldata-llamarisk-llama-crvUSD.json | 14 - .../morpho/calldata-mev_capital-MC-USR.json | 10 - .../morpho/calldata-mev_capital-MC.eUSDC.json | 10 - .../morpho/calldata-mev_capital-MC_USD0.json | 10 - .../morpho/calldata-mev_capital-MCcbBTC.json | 10 - .../morpho/calldata-mev_capital-MCwBTC.json | 10 - .../morpho/calldata-mev_capital-MCwETH.json | 10 - .../calldata-mev_capital-USUALUSDC+.json | 10 - .../morpho/calldata-mev_capital-pWBTC.json | 10 - .../morpho/calldata-re7_labs-Re7FRAX.json | 10 - .../morpho/calldata-re7_labs-Re7RWA.json | 10 - .../morpho/calldata-re7_labs-Re7USDA.json | 10 - .../morpho/calldata-re7_labs-Re7USDC.json | 10 - .../morpho/calldata-re7_labs-Re7USDT.json | 10 - .../morpho/calldata-re7_labs-Re7WBTC.json | 10 - .../morpho/calldata-re7_labs-Re7WETH.json | 10 - .../morpho/calldata-re7_labs-Re7cbBTC.json | 10 - .../calldata-re7_labs-Re7cdxUSD1.1.json | 14 - .../morpho/calldata-re7_labs-Re7wstETH.json | 14 - .../morpho/calldata-re7_labs-degenUSDC.json | 10 - .../morpho/calldata-re7_labs-fxUSDC.json | 10 - .../morpho/calldata-re7_labs-mDEGEN.json | 10 - .../morpho/calldata-re7_labs-mMAI.json | 10 - .../morpho/calldata-re7_labs-meUSD.json | 10 - .../morpho/calldata-re7_labs-pythETH.json | 10 - .../morpho/calldata-re7_labs-pythUSDC.json | 10 - .../morpho/calldata-re7_labs-uUSDC.json | 10 - .../morpho/calldata-sparkdao-spDAI.json | 10 - .../morpho/calldata-sparkdao-sparkUSDC.json | 10 - .../calldata-steakhouse_financial-bbqDAI.json | 10 - ...calldata-steakhouse_financial-bbqUSDC.json | 10 - ...calldata-steakhouse_financial-bbqUSDT.json | 10 - ...lldata-steakhouse_financial-bbqWSTETH.json | 14 - .../calldata-steakhouse_financial-csUSDC.json | 10 - .../calldata-steakhouse_financial-csUSDL.json | 10 - ...alldata-steakhouse_financial-steakETH.json | 10 - ...lldata-steakhouse_financial-steakEURA.json | 10 - ...lldata-steakhouse_financial-steakEURC.json | 10 - ...lldata-steakhouse_financial-steakPAXG.json | 10 - ...ldata-steakhouse_financial-steakPYUSD.json | 14 - ...lldata-steakhouse_financial-steakRUSD.json | 10 - ...ldata-steakhouse_financial-steakSUSDS.json | 14 - ...lldata-steakhouse_financial-steakUSDA.json | 10 - ...lldata-steakhouse_financial-steakUSDC.json | 10 - ...ata-steakhouse_financial-steakUSDCrwa.json | 14 - ...lldata-steakhouse_financial-steakUSDM.json | 10 - ...lldata-steakhouse_financial-steakUSDQ.json | 10 - ...lldata-steakhouse_financial-steakUSDR.json | 10 - ...lldata-steakhouse_financial-steakUSDT.json | 10 - ...ta-steakhouse_financial-steakUSDTlite.json | 14 - ...lldata-steakhouse_financial-steakWBTC.json | 10 - .../registry/opensea/eip712-opensea.json | 83 -- .../paraswap/calldata-AugustusSwapper-v5.json | 200 --- .../registry/paraswap/eip712-paraswap.json | 94 -- .../permit/eip712-permit-arbitrum-arb.json | 10 - .../eip712-permit-arbitrum-bridged-usdc.json | 10 - ...712-permit-avalanche_c_chain-pangolin.json | 10 - ...712-permit-avalanche_c_chain-yetiswap.json | 10 - .../permit/eip712-permit-bsc-1inch-token.json | 10 - .../eip712-permit-bsc-polkastarter-token.json | 10 - .../permit/eip712-permit-ethereum-aave.json | 10 - .../permit/eip712-permit-ethereum-dai.json | 10 - .../eip712-permit-ethereum-lido-steth.json | 10 - .../eip712-permit-ethereum-lido-wsteth.json | 10 - .../permit/eip712-permit-ethereum-usdc.json | 10 - .../permit/eip712-permit-fantom-mimatic.json | 10 - .../permit/eip712-permit-fantom-wootrade.json | 10 - .../permit/eip712-permit-optimism-bob.json | 10 - .../permit/eip712-permit-optimism-op.json | 10 - .../eip712-permit-polygon-aave-dai.json | 10 - .../eip712-permit-polygon-aave-weth.json | 10 - .../registry/poap/calldata-PoapBridge.json | 246 ---- .../quickswap/calldata-QuickSwap.json | 183 --- .../rarible/eip712-rarible-erc-1155.json | 41 - .../rarible/eip712-rarible-erc-721.json | 39 - .../rarible/eip712-rarible-exchange-v2.json | 87 -- .../eip712-rarible-exchange-wrapper.json | 60 - .../smartcredit/eip712-smartcredit.json | 48 - .../starkgate/calldata-StarkGate-STRK.json | 28 - .../registry/swell/calldata-swell.json | 343 ----- .../calldata-ChsbToBorgMigrator.json | 265 ---- .../swissborg/calldata-NttManager.json | 775 ------------ .../calldata-WormholeTransceiver.json | 515 -------- .../eip712-tally-arbitrum-arb-token.json | 36 - .../eip712-tally-arbitrum-core-governor.json | 35 - ...p712-tally-arbitrum-treasury-governor.json | 35 - ...ip712-tally-ethereum-bitcoin-governor.json | 34 - .../eip712-tally-ethereum-bravo-governor.json | 34 - .../eip712-tally-ethereum-ens-governor.json | 35 - .../eip712-tally-ethereum-ens-token.json | 36 - .../eip712-tally-ethereum-gtk-token.json | 35 - .../eip712-tally-ethereum-hop-governor.json | 34 - .../eip712-tally-ethereum-hop-token.json | 35 - .../eip712-tally-ethereum-pool-token.json | 35 - ...-tally-ethereum-pooltogether-governor.json | 34 - .../eip712-tally-ethereum-uni-token.json | 35 - .../registry/tether/calldata-usdt.json | 13 - .../uniswap/calldata-UniswapV3Router02.json | 135 -- .../uniswap/eip712-UniswapX-DutchOrder.json | 89 -- .../eip712-UniswapX-ExclusiveDutchOrder.json | 93 -- .../uniswap/eip712-UniswapX-LimitOrder.json | 69 - .../uniswap/eip712-uniswap-V2DutchOrder.json | 81 -- .../uniswap/eip712-uniswap-permit2.json | 85 -- .../uniswap/uniswap-common-eip712.json | 78 -- .../walletconnect/calldata-stakeweight.json | 185 --- .../registry/walletconnect/calldata-wct.json | 17 - .../calldata-yieldxyz-usde-vault.json | 10 - .../eip7730/specs/erc7730-v1.schema.json | 1014 --------------- 205 files changed, 16326 deletions(-) delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json delete mode 100644 src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes b/src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes deleted file mode 100644 index 459bdd16..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -ercs/**/*.json linguist-generated -registry/**/*.json linguist-generated diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json deleted file mode 100644 index f18f120f..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc20-tokens.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "contract": { - "abi": [ - { - "constant": false, - "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], - "name": "approve", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], - "name": "transfer", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] - } - }, - "display": { - "formats": { - "transfer(address,uint256)": { - "intent": "Send", - "fields": [ - { "path": "_to", "label": "To", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { - "path": "_value", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "$.context.contract.deployments.[0].address" } - } - ], - "required": ["_to", "_value"] - }, - "approve(address,uint256)": { - "intent": "Approve", - "fields": [ - { - "path": "_spender", - "label": "Spender", - "format": "addressName", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - }, - { - "path": "_value", - "label": "Amount", - "format": "tokenAmount", - "params": { - "token": "$.context.contract.deployments.[0].address", - "threshold": "0x8000000000000000000000000000000000000000000000000000000000000000" - } - } - ], - "required": ["_spender", "_value"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json deleted file mode 100644 index 675de030..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc4626-vaults.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "contract": { - "abi": [ - { - "inputs": [{ "name": "assets", "type": "uint256" }, { "name": "receiver", "type": "address" }], - "name": "deposit", - "type": "function" - }, - { - "inputs": [{ "name": "shares", "type": "uint256" }, { "name": "receiver", "type": "address" }], - "name": "mint", - "type": "function" - }, - { - "inputs": [{ "name": "assets", "type": "uint256" }, { "name": "receiver", "type": "address" }, { "name": "owner", "type": "address" }], - "name": "withdraw", - "type": "function" - }, - { - "inputs": [{ "name": "shares", "type": "uint256" }, { "name": "receiver", "type": "address" }, { "name": "owner", "type": "address" }], - "name": "redeem", - "type": "function" - } - ] - } - }, - "metadata": { "constants": { "underlyingToken": "0x0" } }, - "display": { - "formats": { - "deposit(uint256 assets, address receiver)": { - "intent": "Deposit", - "fields": [ - { - "path": "assets", - "label": "Deposit asset", - "format": "tokenAmount", - "params": { "token": "$.metadata.constants.underlyingToken" } - }, - { "label": "Receive shares", "format": "raw", "value": "$.metadata.constants.vaultTicker" }, - { "path": "receiver", "label": "Send shares to", "format": "addressName", "params": { "types": ["eoa", "contract"] } } - ], - "required": ["assets", "receiver"] - }, - "mint(uint256 shares, address receiver)": { - "intent": "Mint", - "fields": [ - { "label": "Deposit asset", "format": "raw", "value": "$.metadata.constants.underlyingTicker" }, - { "path": "shares", "label": "Minted shares", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, - { "path": "receiver", "label": "Mint shares to", "format": "addressName", "params": { "types": ["eoa", "contract"] } } - ], - "required": ["assets", "receiver"] - }, - "withdraw(uint256 assets,address receiver,address owner)": { - "intent": "Withdraw", - "fields": [ - { - "path": "assets", - "label": "Withdraw exactly", - "format": "tokenAmount", - "params": { "token": "$.metadata.constants.underlyingToken" } - }, - { "path": "receiver", "label": "To", "format": "addressName", "params": { "types": ["eoa", "contract"] } }, - { "path": "owner", "label": "Owner", "format": "addressName", "params": { "types": ["eoa", "contract"] } } - ], - "required": ["assets", "receiver", "owner"] - }, - "redeem(uint256 shares,address receiver,address owner)": { - "intent": "Redeem", - "fields": [ - { "path": "shares", "label": "Redeem exactly", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, - { "path": "receiver", "label": "To", "format": "addressName", "params": { "types": ["eoa", "contract"] } }, - { "path": "owner", "label": "Owner", "format": "addressName", "params": { "types": ["eoa", "contract"] } } - ], - "required": ["assets", "receiver", "owner"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json deleted file mode 100644 index 3e741913..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/calldata-erc721-nfts.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "contract": { - "abi": [ - { - "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], - "name": "transferFrom", - "type": "function" - }, - { - "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], - "name": "safeTransferFrom", - "type": "function" - }, - { - "inputs": [{ "name": "_approved", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], - "name": "approve", - "type": "function" - }, - { - "inputs": [{ "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" }], - "name": "setApprovalForAll", - "type": "function" - } - ] - } - }, - "metadata": { "enums": { "rights": { "True": "Grant all", "False": "Deny all" } } }, - "display": { - "definitions": { - "from": { "label": "From", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - "to": { "label": "To", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - "operator": { "label": "Operator", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } }, - "tokenId": { "label": "NFT", "format": "nftName", "params": { "collectionPath": "@.to" } } - }, - "formats": { - "transferFrom(address,address,uint256)": { - "intent": "Send NFT", - "fields": [ - { "path": "_from", "$ref": "$.display.definitions.from" }, - { "path": "_to", "$ref": "$.display.definitions.to" }, - { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } - ], - "required": ["_to", "_tokenId"] - }, - "safeTransferFrom(address,address,uint256)": { - "intent": "Send NFT", - "fields": [ - { "path": "_from", "$ref": "$.display.definitions.from" }, - { "path": "_to", "$ref": "$.display.definitions.to" }, - { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } - ], - "required": ["_spender", "_value"] - }, - "approve(address,uint256)": { - "intent": "Approve operator for NFT", - "fields": [ - { "path": "_approved", "$ref": "$.display.definitions.operator" }, - { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } - ] - }, - "setApprovalForAll(address,bool)": { - "$id": "setApprovalForAll", - "intent": "Manage operator rights for", - "fields": [ - { - "path": "@.to", - "label": "Collection", - "format": "addressName", - "params": { "types": ["collection"], "sources": ["local", "ens"] } - }, - { "path": "_operator", "$ref": "$.display.definitions.operator" }, - { "path": "_approved", "label": "Access rights", "format": "enum", "params": { "$ref": "$.metadata.enums.rights" } } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json deleted file mode 100644 index 80a55cdd..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/ercs/eip712-erc2612-permit.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Permit": [ - { "name": "owner", "type": "address" }, - { "name": "spender", "type": "address" }, - { "name": "value", "type": "uint256" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - }, - "primaryType": "Permit" - } - ] - } - }, - "display": { - "formats": { - "Permit": { - "intent": "Authorize spending of tokens", - "fields": [ - { "path": "spender", "label": "Spender", "format": "raw" }, - { "path": "value", "label": "Max spending amount", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, - { "path": "deadline", "label": "Valid until", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["spender", "value"], - "excluded": ["owner", "nonce"], - "screens": {} - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json deleted file mode 100644 index bf6197fd..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV3.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "AggregationRouterV3", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x11111112542d85b3ef69ae05771c2dccff4faa26", - "deployments": [ - { "chainId": 1, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" }, - { "chainId": 56, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" }, - { "chainId": 137, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" } - ] - } - }, - "metadata": { - "owner": "1inch", - "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "deploymentDate": "2021-03-14T20:28:50Z" }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - "addressAsNull": "0x0000000000000000000000000000000000000000" - } - }, - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } - }, - "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, - "beneficiary": { "label": "Beneficiary", "format": "addressName" } - }, - "formats": { - "swap(address caller, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)": { - "$id": "swap", - "intent": "Swap", - "fields": [ - { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, - { - "path": "desc.minReturnAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "desc.dstToken" } - }, - { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], - "excluded": ["caller", "desc.srcReceiver", "desc.flags", "desc.permit", "data"] - }, - "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)": { - "$id": "unoswap", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["amount", "minReturn", "@.from"], - "excluded": ["pools"] - }, - "unoswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit)": { - "$id": "unoswapWithPermit", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "pools"], - "excluded": ["permit"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json deleted file mode 100644 index 11c119dd..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4-eth.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-AggregationRouterV4.json", - "context": { - "$id": "AggregationRouterV4", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254fb6c44bac0bed2854e76f90643097d", - "deployments": [{ "chainId": 1, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }] - } - }, - "display": { - "formats": { - "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)": { - "$id": "clipperSwap", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["amount", "minReturn", "@.from"] - }, - "clipperSwapTo(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn)": { - "$id": "clipperSwapTo", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["amount", "minReturn", "recipient"] - }, - "clipperSwapToWithPermit(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn, bytes permit)": { - "$id": "clipperSwapToWithPermit", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["amount", "minReturn", "recipient"], - "excluded": ["permit"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json deleted file mode 100644 index 40605342..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV4.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-AggregationRouterV4.json", - "context": { - "$id": "AggregationRouterV4", - "contract": { - "abi": "https://api.etherscan.io/v2/api?module=contract&action=getabi&chainid=56&address=0x1111111254fb6c44bac0bed2854e76f90643097d", - "deployments": [ - { "chainId": 56, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }, - { "chainId": 137, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" } - ] - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json deleted file mode 100644 index 9416c975..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV5.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "AggregationRouterV5", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254eeb25477b68fb85ed929f73a960582", - "deployments": [ - { "chainId": 1, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, - { "chainId": 10, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, - { "chainId": 56, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, - { "chainId": 137, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, - { "chainId": 42161, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" } - ] - } - }, - "metadata": { - "owner": "1inch", - "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "deploymentDate": "2022-11-04T06:04:59Z" }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - "addressAsNull": "0x0000000000000000000000000000000000000000" - } - }, - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } - }, - "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, - "beneficiary": { "label": "Beneficiary", "format": "addressName" }, - "expirationTime": { "label": "Expiration time", "format": "date", "params": { "encoding": "timestamp" } } - }, - "formats": { - "swap(address executor, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags) desc, bytes permit, bytes data)": { - "$id": "swap", - "intent": "Swap", - "fields": [ - { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, - { - "path": "desc.minReturnAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "desc.dstToken" } - }, - { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], - "excluded": ["executor", "desc.srcReceiver", "desc.flags", "permit", "data"] - }, - "unoswap(address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)": { - "$id": "unoswap", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "pools"], - "excluded": [] - }, - "unoswapTo(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)": { - "$id": "unoswapTo", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "recipient", "pools"], - "excluded": [] - }, - "unoswapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)": { - "$id": "unoswapToWithPermit", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "recipient", "pools"], - "excluded": ["permit"] - }, - "uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools)": { - "$id": "uniswapV3Swap", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount" }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "pools"], - "excluded": [] - }, - "uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools)": { - "$id": "uniswapV3SwapTo", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount" }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "recipient", "pools"], - "excluded": [] - }, - "uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)": { - "$id": "uniswapV3SwapToWithPermit", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "recipient", "pools"], - "excluded": ["permit"] - }, - "clipperSwap(address clipperExchange, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { - "$id": "clipperSwap", - "intent": "Swap", - "fields": [ - { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } - ], - "required": ["inputAmount", "outputAmount", "@.from", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs"] - }, - "clipperSwapTo(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { - "$id": "clipperSwapTo", - "intent": "Swap", - "fields": [ - { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } - ], - "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs"] - }, - "clipperSwapToWithPermit(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs, bytes permit)": { - "$id": "clipperSwapToWithPermit", - "intent": "Swap", - "fields": [ - { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, - { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } - ], - "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs", "permit"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json deleted file mode 100644 index 6f434e1a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6-zksync.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-AggregationRouterV6.json", - "context": { - "$id": "AggregationRouterV6", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x111111125421cA6dc452d289314280a0f8842A65", - "deployments": [{ "chainId": 324, "address": "0x6fd4383cB451173D5f9304F041C7BCBf27d561fF" }] - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json deleted file mode 100644 index 08efb6cc..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/calldata-AggregationRouterV6.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-AggregationRouterV6.json", - "context": { - "$id": "AggregationRouterV6", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x111111125421cA6dc452d289314280a0f8842A65", - "deployments": [ - { "chainId": 1, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 10, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 56, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 100, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 137, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 250, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 8217, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 8453, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 42161, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 43114, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 1313161554, "address": "0x111111125421cA6dc452d289314280a0f8842A65" } - ] - } - }, - "display": { - "formats": { - "clipperSwap(address clipperExchange, uint256 srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { - "$id": "clipperSwap", - "intent": "Swap", - "fields": [ - { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken.[-20:]" } }, - { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } - ], - "required": ["srcToken", "dstToken", "inputAmount", "outputAmount", "@.from", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs"] - }, - "clipperSwapTo(address clipperExchange, address recipient, uint256 srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { - "$id": "clipperSwapTo", - "intent": "Swap", - "fields": [ - { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken.[-20:]" } }, - { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, - { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, - { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } - ], - "required": ["srcToken", "dstToken", "inputAmount", "outputAmount", "recipient", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json deleted file mode 100644 index a2206ae9..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV4.json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - - "metadata": { - "owner": "1inch", - "info": { - "url": "https://1inch.io/", - "legalName": "1inch Network", - "deploymentDate": "2021-11-05T10:18:09Z" - }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - "addressAsNull": "0x0000000000000000000000000000000000000000" - } - }, - - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "nativeCurrencyAddress": [ - "$.metadata.constants.addressAsEth", - "$.metadata.constants.addressAsNull" - ] - } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { - "nativeCurrencyAddress": [ - "$.metadata.constants.addressAsEth", - "$.metadata.constants.addressAsNull" - ] - } - }, - "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, - "beneficiary": { - "label": "Beneficiary", - "format": "addressName" - } - }, - "formats": { - "swap(address caller, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)" : { - "$id": "swap", - "intent": "Swap", - "fields": [ - { - "path": "desc.amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "desc.srcToken" } - }, - { - "path": "desc.minReturnAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "desc.dstToken" } - }, - { - "path": "desc.dstReceiver", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], - "excluded": ["caller", "desc.srcReceiver", "desc.flags", "desc.permit", "data"] - }, - "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)" : { - "$id": "unoswap", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "pools"], - "excluded": [] - }, - "unoswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit)" : { - "$id": "unoswapWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "pools"], - "excluded": ["permit"] - }, - "uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools)" : { - "$id": "uniswapV3Swap", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount" - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "pools"], - "excluded": [] - }, - "uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools)" : { - "$id": "uniswapV3SwapTo", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount" - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "recipient", "pools"], - "excluded": [] - }, - "uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)" : { - "$id": "uniswapV3SwapToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "recipient", "pools"], - "excluded": ["permit"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json deleted file mode 100644 index c7d1bdd5..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/common-AggregationRouterV6.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "metadata": { - "owner": "1inch", - "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "deploymentDate": "2024-02-12T03:44:35Z" }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - "addressAsNull": "0x0000000000000000000000000000000000000000" - } - }, - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } - }, - "beneficiary": { "label": "Beneficiary", "format": "addressName" }, - "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, - "expirationTime": { "label": "Expiration time", "format": "date", "params": { "encoding": "timestamp" } } - }, - "formats": { - "swap(address executor, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags) desc, bytes data)": { - "$id": "swap", - "intent": "Swap", - "fields": [ - { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, - { - "path": "desc.minReturnAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "desc.dstToken" } - }, - { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], - "excluded": ["executor", "desc.srcReceiver", "desc.flags", "data"] - }, - "unoswap(uint256 token, uint256 amount, uint256 minReturn, uint256 dex)": { - "$id": "unoswap", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "dex"] - }, - "unoswap2(uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2)": { - "$id": "unoswap2", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "dex2"], - "excluded": ["dex"] - }, - "unoswap3(uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)": { - "$id": "unoswap3", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "@.from", "dex3"], - "excluded": ["dex", "dex2"] - }, - "unoswapTo(uint256 to, uint256 token, uint256 amount, uint256 minReturn, uint256 dex)": { - "$id": "unoswapTo", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "to", "dex"] - }, - "unoswapTo2(uint256 to, uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2)": { - "$id": "unoswapTo2", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "to", "dex2"], - "excluded": ["dex"] - }, - "unoswapTo3(uint256 to, uint256 token, uint256 amount, uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)": { - "$id": "unoswapTo3", - "intent": "Swap", - "fields": [ - { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "token.[-20:]" } }, - { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amount", "minReturn", "to", "dex3"], - "excluded": ["dex", "dex2"] - }, - "ethUnoswap(uint256 minReturn, uint256 dex)" : { - "$id": "ethUnoswap", - "intent": "Swap", - "fields": [ - { "path": "@.value", "label": "Amount to Send", "format": "amount" }, - { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["minReturn", "@.value", "@.from", "dex"] - }, - "ethUnoswap2(uint256 minReturn, uint256 dex, uint256 dex2)" : { - "$id": "ethUnoswap2", - "intent": "Swap", - "fields": [ - { "path": "@.value", "label": "Amount to Send", "format": "amount" }, - { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["minReturn", "@.value", "@.from", "dex2"], - "excluded": ["dex"] - }, - "ethUnoswap3(uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)" : { - "$id": "ethUnoswap3", - "intent": "Swap", - "fields": [ - { "path": "@.value", "label": "Amount to Send", "format": "amount" }, - { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["minReturn", "@.value", "@.from", "dex3"], - "excluded": ["dex", "dex2"] - }, - "ethUnoswapTo(uint256 to, uint256 minReturn, uint256 dex)" : { - "$id": "ethUnoswapTo", - "intent": "Swap", - "fields": [ - { "path": "@.value", "label": "Amount to Send", "format": "amount" }, - { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["minReturn", "to", "@.value", "dex"] - }, - "ethUnoswapTo2(uint256 to, uint256 minReturn, uint256 dex, uint256 dex2)" : { - "$id": "ethUnoswapTo2", - "intent": "Swap", - "fields": [ - { "path": "@.value", "label": "Amount to Send", "format": "amount" }, - { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex2.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["minReturn", "to", "@.value", "dex2"], - "excluded": ["dex"] - }, - "ethUnoswapTo3(uint256 to, uint256 minReturn, uint256 dex, uint256 dex2, uint256 dex3)" : { - "$id": "ethUnoswapTo3", - "intent": "Swap", - "fields": [ - { "path": "@.value", "label": "Amount to Send", "format": "amount" }, - { "path": "minReturn.[-20:]", "$ref": "$.display.definitions.minReceiveAmount" }, - { "path": "to.[-20:]", "$ref": "$.display.definitions.beneficiary" }, - { "path": "dex3.[-20:]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["minReturn", "to", "@.value", "dex3"], - "excluded": ["dex", "dex2"] - }, - "cancelOrder(uint256 makerTraits, bytes32 orderHash)" : { - "$id": "cancelOrder", - "intent": "Cancel limit order", - "fields": [ - { "path": "orderHash", "label": "Order", "format": "raw" } - ], - "required": ["orderHash"], - "excluded": ["makerTraits"] - }, - "cancelOrders(uint256[] makerTraits, bytes32[] orderHashes)" : { - "$id": "cancelOrders", - "intent": "Cancel limit orders", - "fields": [ - { "path": "orderHashes.[]", "label": "Order", "format": "raw" } - ], - "required": ["orderHashes"], - "excluded": ["makerTraits"] - }, - "increaseEpoch(uint96 series)" : { - "$id": "increaseEpoch", - "intent": "Cancel all limit orders", - "fields": [ - { "path": "@.from", "label": "Orders maker", "format": "raw" } - ], - "required": ["@.from"], - "excluded": ["series"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json deleted file mode 100644 index 6a62311a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-1inch-limit-order.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [ - { "chainId": 1, "address": "0x119c71d3bbac22029622cbaec24854d3d32d2828" }, - { "chainId": 10, "address": "0x11431a89893025d2a48dca4eddc396f8c8117187" }, - { "chainId": 56, "address": "0x1e38eff998df9d3669e32f4ff400031385bf6362" }, - { "chainId": 137, "address": "0x94bc2a1c732bcad7343b25af48385fe76e08734f" }, - { "chainId": 42161, "address": "0x7f069df72b7a39bce9806e3afaf579e54d8cf2b9" } - ], - "domain": { "name": "Permit2" }, - "schemas": [ - { - "primaryType": "OrderStructure", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "OrderStructure": [ - { "name": "salt", "type": "uint256" }, - { "name": "maker", "type": "address" }, - { "name": "receiver", "type": "address" }, - { "name": "makerAsset", "type": "address" }, - { "name": "takerAsset", "type": "address" }, - { "name": "makingAmount", "type": "uint256" }, - { "name": "takingAmount", "type": "uint256" }, - { "name": "makerTraits", "type": "uint256" } - ] - } - }, - { - "primaryType": "OrderStructure", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "OrderStructure": [ - { "name": "salt", "type": "uint256" }, - { "name": "makerAsset", "type": "address" }, - { "name": "takerAsset", "type": "address" }, - { "name": "maker", "type": "address" }, - { "name": "receiver", "type": "address" }, - { "name": "allowedSender", "type": "address" }, - { "name": "makingAmount", "type": "uint256" }, - { "name": "takingAmount", "type": "uint256" }, - { "name": "offsets", "type": "uint256" }, - { "name": "interactions", "type": "bytes" } - ] - } - } - ] - } - }, - "metadata": { "owner": "1inch Limit Order Protocol" }, - "display": { - "formats": { - "OrderStructure": { - "intent": "1inch Order", - "fields": [ - { "path": "maker", "label": "From", "format": "raw" }, - { "path": "makingAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "makerAsset" } }, - { "path": "takingAmount", "label": "Receive minimum", "format": "tokenAmount", "params": { "tokenPath": "takerAsset" } }, - { "path": "receiver", "label": "To", "format": "raw" } - ], - "excluded": ["salt", "makerTraits", "interactions", "allowedSender", "offsets"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json deleted file mode 100644 index 22e3a099..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/1inch/eip712-AggregationRouterV6.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [ - { "chainId": 1, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 10, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 56, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 100, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 137, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 250, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 324, "address": "0x6fd4383cB451173D5f9304F041C7BCBf27d561fF" }, - { "chainId": 8217, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 8453, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 42161, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 43114, "address": "0x111111125421cA6dc452d289314280a0f8842A65" }, - { "chainId": 1313161554, "address": "0x111111125421cA6dc452d289314280a0f8842A65" } - ], - "domain": { "name": "Permit2" }, - "schemas": [ - { - "primaryType": "Order", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Order": [ - { "name": "salt", "type": "uint256" }, - { "name": "maker", "type": "address" }, - { "name": "receiver", "type": "address" }, - { "name": "makerAsset", "type": "address" }, - { "name": "takerAsset", "type": "address" }, - { "name": "makingAmount", "type": "uint256" }, - { "name": "takingAmount", "type": "uint256" }, - { "name": "makerTraits", "type": "uint256" } - ] - } - } - ] - } - }, - "metadata": { "owner": "1inch AggregationRouterV6" }, - "display": { - "formats": { - "Order": { - "intent": "1inch Order", - "fields": [ - { "path": "maker", "label": "From", "format": "raw" }, - { "path": "makingAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "makerAsset" } }, - { "path": "takingAmount", "label": "Receive minimum", "format": "tokenAmount", "params": { "tokenPath": "takerAsset" } }, - { "path": "receiver", "label": "To", "format": "raw" } - ], - "excluded": ["salt", "makerTraits"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json deleted file mode 100644 index e42ad4b1..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv2.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "Lending Pool v2", - "contract": { - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/aave/abis/0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9.abi.json", - "deployments": [{ "chainId": 1, "address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9" }] - } - }, - "metadata": { - "owner": "Aave", - "info": { "url": "https://aave.com", "legalName": "Aave DAO", "deploymentDate": "2020-11-30T09:25:48Z" }, - "enums": { "interestRateMode": { "1": "stable", "2": "variable" } }, - "constants": { "max": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } - }, - "display": { - "formats": { - "repay(address,uint256,uint256,address)": { - "$id": "repay", - "intent": "Repay loan", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to repay", - "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } - }, - { - "path": "rateMode", - "format": "enum", - "label": "Interest rate mode", - "params": { "$ref": "$.metadata.enums.interestRateMode" } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "For debt holder", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "rateMode", "onBehalfOf"] - }, - "setUserUseReserveAsCollateral(address,bool)": { - "intent": "Manage collateral", - "fields": [ - { - "path": "asset", - "format": "addressName", - "label": "For asset", - "params": { "types": ["token"], "sources": ["local", "ens"] } - }, - { "path": "useAsCollateral", "format": "raw", "label": "Enable use as collateral" } - ], - "required": ["asset", "useAsCollateral"] - }, - "withdraw(address,uint256,address)": { - "intent": "Withdraw", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to withdraw", - "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "Max" } - }, - { - "path": "to", - "format": "addressName", - "label": "To recipient", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "to"] - }, - "swapBorrowRateMode(address,uint256)": { - "intent": "Swap interest rate mode", - "fields": [ - { - "path": "asset", - "format": "addressName", - "label": "For asset", - "params": { "types": ["token"], "sources": ["local", "ens"] } - }, - { - "path": "rateMode", - "format": "enum", - "label": "Set interest rate mode to", - "params": { "$ref": "$.metadata.enums.interestRateMode" } - } - ], - "required": ["asset", "rateMode"] - }, - "borrow(address,uint256,uint256,uint16,address)": { - "intent": "Borrow", - "fields": [ - { "path": "amount", "format": "tokenAmount", "label": "Amount to borrow", "params": { "tokenPath": "asset" } }, - { - "path": "interestRateMode", - "format": "enum", - "label": "Interest Rate mode", - "params": { "$ref": "$.metadata.enums.interestRateMode" } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Debtor", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "onBehalfOf", "interestRateMode"] - }, - "deposit(address,uint256,address,uint16)": { - "$id": "deposit", - "intent": "Supply", - "fields": [ - { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Collateral recipient", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "onBehalfOf"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json deleted file mode 100644 index 5f004971..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/aave/calldata-lpv3.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "PoolInstance", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0xef434e4573b90b6ecd4a00f4888381e4d0cc5ccd", - "deployments": [{ "chainId": 1, "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2" }] - } - }, - "metadata": { - "owner": "Aave", - "info": { "url": "https://aave.com", "legalName": "Aave DAO", "deploymentDate": "2024-10-09T21:46:47Z" }, - "enums": { "interestRateMode": { "1": "stable", "2": "variable" } }, - "constants": { "max": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } - }, - "display": { - "formats": { - "repay(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf)": { - "$id": "repay", - "intent": "Repay loan", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to repay", - "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } - }, - { - "path": "interestRateMode", - "format": "enum", - "label": "Interest rate mode", - "params": { "$ref": "$.metadata.enums.interestRateMode" } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "For debt holder", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "interestRateMode", "onBehalfOf"] - }, - "repayWithPermit(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS)": { - "$id": "repayWithPermit", - "intent": "Repay loan", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to repay", - "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } - }, - { - "path": "interestRateMode", - "format": "enum", - "label": "Interest rate mode", - "params": { "$ref": "$.metadata.enums.interestRateMode" } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "For debt holder", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "interestRateMode", "onBehalfOf"], - "excluded": ["deadline", "permitV", "permitR", "permitS"] - }, - "setUserUseReserveAsCollateral(address asset, bool useAsCollateral)": { - "intent": "Manage collateral", - "fields": [ - { - "path": "asset", - "format": "addressName", - "label": "For asset", - "params": { "types": ["token"], "sources": ["local", "ens"] } - }, - { "path": "useAsCollateral", "format": "raw", "label": "Enable use as collateral" } - ], - "required": ["asset", "useAsCollateral"] - }, - "withdraw(address asset, uint256 amount, address to)": { - "intent": "Withdraw", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to withdraw", - "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "Max" } - }, - { - "path": "to", - "format": "addressName", - "label": "To recipient", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "to"] - }, - "borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf)": { - "intent": "Borrow", - "fields": [ - { "path": "amount", "format": "tokenAmount", "label": "Amount to borrow", "params": { "tokenPath": "asset" } }, - { - "path": "interestRateMode", - "format": "enum", - "label": "Interest Rate mode", - "params": { "$ref": "$.metadata.enums.interestRateMode" } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Debtor", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "onBehalfOf", "interestRateMode"], - "excluded": ["referralCode"] - }, - "deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode)": { - "$id": "deposit", - "intent": "Supply", - "fields": [ - { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Collateral recipient", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "onBehalfOf"], - "excluded": ["referralCode"] - }, - "supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode)": { - "$id": "supply", - "intent": "Supply", - "fields": [ - { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Collateral recipient", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "onBehalfOf"], - "excluded": ["referralCode"] - }, - "supplyWithPermit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS)": { - "$id": "supplyWithPermit", - "intent": "Supply", - "fields": [ - { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Collateral recipient", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["amount", "onBehalfOf"], - "excluded": ["referralCode", "deadline", "permitV", "permitR", "permitS"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json deleted file mode 100644 index e10cf639..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/corestake/calldata-corestake.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "contract": { - "abi": [ - { - "outputs": [], - "inputs": [{ "name": "_validator", "internalType": "address", "type": "address" }], - "name": "mint", - "stateMutability": "payable", - "type": "function" - }, - { - "outputs": [], - "inputs": [{ "name": "stCore", "internalType": "uint256", "type": "uint256" }], - "name": "redeem", - "stateMutability": "nonpayable", - "type": "function" - }, - { "outputs": [], "inputs": [], "name": "withdraw", "stateMutability": "nonpayable", "type": "function" } - ], - "deployments": [{ "chainId": 1116, "address": "0xf5fA1728bABc3f8D2a617397faC2696c958C3409" }] - } - }, - "metadata": { - "owner": "CoreDAO", - "info": { "legalName": "CoreDAO Earn Contract", "url": "https://coredao.org/", "deploymentDate": "2025-02-24T02:55:15Z" } - }, - "display": { - "formats": { - "mint(address)": { - "intent": "Stake CORE tokens to a validator", - "fields": [{ "path": "_validator", "label": "Validator Address", "format": "raw" }], - "required": ["_validator"] - }, - "redeem(uint256)": { - "intent": "Unstake CORE by redeeming staked tokens (stCORE)", - "fields": [ - { - "path": "stCore", - "label": "Amount to Redeem (in stCORE)", - "format": "tokenAmount", - "params": { "token": "0xb3A8F0f0da9ffC65318aA39E55079796093029AD" } - } - ], - "required": ["stCore"] - }, - "withdraw()": { "intent": "Withdraw previously unstaked CORE tokens", "fields": [] } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json deleted file mode 100644 index 6a0317c9..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/degate/eip712-degate.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" }], - "domain": { "name": "DeGate", "chainId": 1, "verifyingContract": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" }, - "schemas": [ - { - "primaryType": "AccountUpdate", - "types": { - "AccountUpdate": [ - { "name": "owner", "type": "address" }, - { "name": "accountID", "type": "uint32" }, - { "name": "feeTokenID", "type": "uint32" }, - { "name": "maxFee", "type": "uint96" }, - { "name": "publicKey", "type": "uint256" }, - { "name": "validUntil", "type": "uint32" }, - { "name": "nonce", "type": "uint32" } - ], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ] - } - }, - { - "primaryType": "Withdrawal", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Withdrawal": [ - { "name": "owner", "type": "address" }, - { "name": "accountID", "type": "uint32" }, - { "name": "tokenID", "type": "uint32" }, - { "name": "amount", "type": "uint248" }, - { "name": "feeTokenID", "type": "uint32" }, - { "name": "maxFee", "type": "uint96" }, - { "name": "to", "type": "address" }, - { "name": "minGas", "type": "uint248" }, - { "name": "validUntil", "type": "uint32" }, - { "name": "storageID", "type": "uint32" } - ] - } - }, - { - "primaryType": "Transfer", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Transfer": [ - { "name": "owner", "type": "address" }, - { "name": "accountID", "type": "uint32" }, - { "name": "tokenID", "type": "uint32" }, - { "name": "amount", "type": "uint248" }, - { "name": "feeTokenID", "type": "uint32" }, - { "name": "maxFee", "type": "uint96" }, - { "name": "to", "type": "address" }, - { "name": "validUntil", "type": "uint32" }, - { "name": "storageID", "type": "uint32" } - ] - } - } - ] - } - }, - "metadata": { "owner": "DeGate Exchange Contract" }, - "display": { - "formats": { - "AccountUpdate": { - "intent": "DeGate AccountUpdate", - "fields": [ - { "path": "owner", "label": "Owner", "format": "raw" }, - { "path": "accountID", "label": "AccountID", "format": "raw" }, - { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, - { "path": "maxFee", "label": "MaxFee", "format": "raw" }, - { "path": "publicKey", "label": "PublicKey", "format": "raw" }, - { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" } - ] - }, - "Withdrawal": { - "intent": "DeGate Withdrawal", - "fields": [ - { "path": "owner", "label": "Owner", "format": "raw" }, - { "path": "accountID", "label": "AccountID", "format": "raw" }, - { "path": "tokenID", "label": "TokenID", "format": "raw" }, - { "path": "amount", "label": "Amount", "format": "raw" }, - { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, - { "path": "maxFee", "label": "MaxFee", "format": "raw" }, - { "path": "to", "label": "To", "format": "raw" }, - { "path": "minGas", "label": "MinGas", "format": "raw" }, - { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, - { "path": "storageID", "label": "StorageID", "format": "raw" } - ] - }, - "Transfer": { - "intent": "DeGate Transfer", - "fields": [ - { "path": "owner", "label": "Owner", "format": "raw" }, - { "path": "accountID", "label": "AccountID", "format": "raw" }, - { "path": "tokenID", "label": "TokenID", "format": "raw" }, - { "path": "amount", "label": "Amount", "format": "raw" }, - { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, - { "path": "maxFee", "label": "MaxFee", "format": "raw" }, - { "path": "to", "label": "To", "format": "raw" }, - { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, - { "path": "storageID", "label": "StorageID", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json deleted file mode 100644 index 690ebf05..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/dispatch/eip712-dispatch.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 137, "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }], - "domain": { "name": "Dispatch", "chainId": 137, "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }, - "schemas": [ - { - "primaryType": "FollowWithSig", - "types": { - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ], - "FollowWithSig": [ - { "name": "datas", "type": "bytes[]" }, - { "name": "deadline", "type": "uint256" }, - { "name": "nonce", "type": "uint256" }, - { "name": "profileIds", "type": "uint256[]" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Dispatch.xyz" }, - "display": { - "formats": { - "FollowWithSig": { - "intent": "Dispatch.xyz Follow Profile", - "fields": [ - { "path": "profileIds.[]", "label": "Profile Ids", "format": "raw" }, - { "path": "datas.[]", "label": "Data", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "deadline", "label": "Expiration Date", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json deleted file mode 100644 index 5882545c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ethena/calldata-ethena.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "Staked USDe", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497" }], - "abi": [ - { - "type": "function", - "name": "cooldownAssets", - "inputs": [{ "name": "assets", "type": "uint256", "internalType": "uint256" }], - "outputs": [{ "name": "shares", "type": "uint256", "internalType": "uint256" }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cooldownShares", - "inputs": [{ "name": "shares", "type": "uint256", "internalType": "uint256" }], - "outputs": [{ "name": "assets", "type": "uint256", "internalType": "uint256" }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "unstake", - "inputs": [{ "name": "receiver", "type": "address", "internalType": "address" }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Ethena", "info": { "legalName": "Ethena", "url": "https://ethena.fi/" } }, - "display": { - "formats": { - "cooldownShares(uint256)": { - "$id": null, - "intent": "Cooldown Shares", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497" }, - "path": "#.shares", - "value": null - } - ], - "required": ["#.shares"], - "excluded": null - }, - "cooldownAssets(uint256)": { - "$id": null, - "intent": "Cooldown Assets", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3" }, - "path": "#.assets", - "value": null - } - ], - "required": ["#.assets"], - "excluded": null - }, - "unstake(address)": { - "$id": null, - "intent": "Unstake", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Receiver", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#.receiver", - "value": null - } - ], - "required": ["#.receiver"], - "excluded": null - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json deleted file mode 100644 index c6fd872b..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/fellow-fund/calldata-fellow-fund.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "FellowFund", - "contract": { - "abi": [ - { - "inputs": [ - { "name": "_metadata", "type": "string" }, - { "name": "_funds", "type": "uint256" }, - { "name": "_applicationDeadline", "type": "uint256" }, - { "name": "_marketDeadline", "type": "uint256" }, - { "name": "_epochDeadline", "type": "uint256" } - ], - "name": "createFellowship", - "type": "function" - }, - { - "inputs": [{ "name": "fellowshipId", "type": "uint256" }, { "name": "metadata", "type": "string" }], - "name": "applyToFellowship", - "type": "function" - }, - { - "inputs": [ - { "name": "fellowshipId", "type": "uint256" }, - { "name": "applicationId", "type": "uint256" }, - { "name": "achieved", "type": "bool" }, - { "name": "proof", "type": "bytes" } - ], - "name": "setApplicantImpact", - "type": "function" - } - ], - "deployments": [{ "chainId": 1, "address": "0x25d598CBB74fa73290e74697616DE2740d280745" }] - } - }, - "metadata": { - "owner": "FellowFund", - "info": { "legalName": "FellowFund", "url": "https://fellow-fund.vercel.app", "deploymentDate": "2024-03-14T00:00:00Z" } - }, - "display": { - "formats": { - "createFellowship(string _metadata,uint256 _funds,uint256 _applicationDeadline,uint256 _marketDeadline,uint256 _epochDeadline)": { - "intent": "Create Fellowship Program", - "fields": [ - { "path": "_metadata", "label": "Program Details", "format": "raw" }, - { "path": "_funds", "label": "Total Funding", "format": "amount" }, - { "path": "_applicationDeadline", "label": "Application Deadline", "format": "date", "params": { "encoding": "timestamp" } }, - { "path": "_marketDeadline", "label": "Market Phase Deadline", "format": "date", "params": { "encoding": "timestamp" } }, - { "path": "_epochDeadline", "label": "Program End Date", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["_metadata", "_funds", "_applicationDeadline", "_marketDeadline", "_epochDeadline"] - }, - "applyToFellowship(uint256 fellowshipId,string metadata)": { - "intent": "Apply to Fellowship Program", - "fields": [ - { "path": "fellowshipId", "label": "Fellowship Program ID", "format": "raw" }, - { "path": "metadata", "label": "Application Details", "format": "raw" } - ], - "required": ["fellowshipId", "metadata"] - }, - "setApplicantImpact(uint256 fellowshipId,uint256 applicationId,bool achieved,bytes proof)": { - "intent": "Verify Fellowship Impact", - "fields": [ - { "path": "fellowshipId", "label": "Fellowship Program ID", "format": "raw" }, - { "path": "applicationId", "label": "Application ID", "format": "raw" }, - { "path": "achieved", "label": "Impact Achieved", "format": "raw" }, - { "path": "proof", "label": "Verification Proof", "format": "raw" } - ], - "required": ["fellowshipId", "applicationId", "achieved", "proof"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json deleted file mode 100644 index ef647514..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-DistributionToDelegators-Flare.json +++ /dev/null @@ -1,858 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "DistributionToDelegators-Flare", - "contract": { - "deployments": [{ "chainId": 14, "address": "0x9c7A4C83842B29bB4A082b0E689CB9474BD938d0" }], - "abi": [ - { - "type": "function", - "name": "autoClaim", - "inputs": [ - { - "name": "_rewardOwners", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claim", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_recipient", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "_rewardAmount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claimSetupManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ClaimSetupManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "combinedNat", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IICombinedNatBalance", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "confirmOptOutOfAirdrop", - "inputs": [ - { - "name": "_optOutAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "daemonize", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "endBlockNumber", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "entitlementStartTs", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareDaemon", - "inputs": [], - "outputs": [ - { "name": "", "type": "address", "internalType": "contract FlareDaemon", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getAddressUpdater", - "inputs": [], - "outputs": [ - { - "name": "_addressUpdater", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getClaimableAmount", - "inputs": [{ "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "_amountWei", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getClaimableAmountOf", - "inputs": [ - { "name": "_account", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_month", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "_amountWei", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getClaimableMonths", - "inputs": [], - "outputs": [ - { "name": "_startMonth", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_endMonth", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getContractName", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getCurrentMonth", - "inputs": [], - "outputs": [ - { "name": "_currentMonth", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getMonthToExpireNext", - "inputs": [], - "outputs": [ - { - "name": "_monthToExpireNext", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTokenPoolSupplyData", - "inputs": [], - "outputs": [ - { - "name": "_lockedFundsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationAuthorizedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governance", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceSettings", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialise", - "inputs": [ - { - "name": "_initialGovernance", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "latestEntitlementStartTs", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "maxWaitForGoodRandomSeconds", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "nextClaimableMonth", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "optOut", - "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "optOutAddresses", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "optOutCandidate", - "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "optOutOfAirdrop", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "priceSubmitter", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIRandomProvider", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "productionMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "sendFundsBackToTreasury", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setEntitlementStart", - "inputs": [ - { - "name": "_entitlementStartTs", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setUseGoodRandom", - "inputs": [ - { "name": "_useGoodRandom", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_maxWaitForGoodRandomSeconds", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "startBlockNumber", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "stop", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "stopped", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToFallbackMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToProductionMode", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "timelockedCalls", - "inputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "allowedAfterTimestamp", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalAvailableAmount", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalBurnedWei", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalClaimedWei", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalDistributableAmount", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalEntitlementWei", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalUnclaimedAmount", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalUnclaimedWeight", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "treasury", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract DistributionTreasury", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateContractAddresses", - "inputs": [ - { - "name": "_contractNameHashes", - "type": "bytes32[]", - "internalType": "bytes32[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_contractAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateTotalEntitlementWei", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "useGoodRandom", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "votePowerBlockNumbers", - "inputs": [ - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "wNat", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract WNat", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "waitingForGoodRandomSinceTs", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, - "display": { - "formats": { - "claim(address,address,uint256,bool)": { - "$id": null, - "intent": "claim rewards", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Reward Owner", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._rewardOwner", - "value": null - }, - { - "$id": null, - "label": "Recipient", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._recipient", - "value": null - }, - { "$id": null, "label": "Month", "format": "raw", "params": null, "path": "#._month", "value": null }, - { "$id": null, "label": "Wrap", "format": "raw", "params": null, "path": "#._wrap", "value": null } - ], - "required": ["#._rewardOwner", "#._recipient", "#._month", "#._wrap"], - "excluded": null - }, - "autoClaim(address[],uint256)": { - "$id": null, - "intent": "batch claims rewards", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Reward Owner", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._rewardOwners.[]", - "value": null - }, - { "$id": null, "label": "Month", "format": "raw", "params": null, "path": "#._month", "value": null } - ], - "required": ["#._rewardOwners.[]", "#._month"], - "excluded": null - }, - "confirmOptOutOfAirdrop(address[])": { - "$id": null, - "intent": "opt out of airdrop", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Opt Out Address", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#._optOutAddresses.[]", - "value": null - } - ], - "required": ["#._optOutAddresses.[]"], - "excluded": null - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json deleted file mode 100644 index 8edda041..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Flare.json +++ /dev/null @@ -1,863 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "PollingFoundation-Flare", - "contract": { - "deployments": [{ "chainId": 14, "address": "0xc8294a2335C6c45de827121090ce4Ba9977907D2" }], - "abi": [ - { - "type": "function", - "name": "BALLOT_TYPEHASH", - "inputs": [], - "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancel", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "castVote", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "castVoteBySig", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "_v", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "_r", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "_s", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "castVoteWithReason", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "_reason", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "chainId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "changeProposers", - "inputs": [ - { - "name": "_proposersToAdd", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_proposersToRemove", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "eip712Domain", - "inputs": [], - "outputs": [ - { "name": "fields", "type": "bytes1", "internalType": "bytes1", "components": null, "indexed": null, "unit": null }, - { "name": "name", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { "name": "version", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { "name": "chainId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "verifyingContract", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "salt", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { - "name": "extensions", - "type": "uint256[]", - "internalType": "uint256[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "execute", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, - { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "execute", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareSystemsManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIFlareSystemsManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getAddressUpdater", - "inputs": [], - "outputs": [ - { - "name": "_addressUpdater", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalId", - "inputs": [ - { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, - { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalIds", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalInfo", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { "name": "_proposer", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_accept", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_votePowerBlock", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_voteStartTime", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_voteEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "_execStartTime", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_execEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "_thresholdConditionBIPS", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_majorityConditionBIPS", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_circulatingSupply", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalVotes", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { "name": "_for", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_against", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getVotes", - "inputs": [ - { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_blockNumber", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governance", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceSettings", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceVotePower", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIGovernanceVotePower", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "hasVoted", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialise", - "inputs": [ - { - "name": "_governanceSettings", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_initialGovernance", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isExecutor", - "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isProposer", - "inputs": [{ "name": "_account", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "productionMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "proposalIds", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "propose", - "inputs": [ - { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, - { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { - "name": "_settings", - "type": "tuple", - "internalType": "struct IGovernor.GovernorSettings", - "components": [ - { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, - { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "executionDelaySeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "executionPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "propose", - "inputs": [ - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { - "name": "_settings", - "type": "tuple", - "internalType": "struct IIPollingFoundation.GovernorSettingsWithoutExecParams", - "components": [ - { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, - { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "state", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "enum IGovernor.ProposalState", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "submission", - "inputs": [], - "outputs": [ - { "name": "", "type": "address", "internalType": "contract ISubmission", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "supply", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract IISupply", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToProductionMode", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "timelockedCalls", - "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "allowedAfterTimestamp", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateContractAddresses", - "inputs": [ - { - "name": "_contractNameHashes", - "type": "bytes32[]", - "internalType": "bytes32[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_contractAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "version", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, - "display": { - "formats": { - "castVote(uint256,uint8)": { - "$id": null, - "intent": "cast vote", - "screens": null, - "fields": [ - { "$id": null, "label": "Proposal Id", "format": "raw", "params": null, "path": "#._proposalId", "value": null }, - { "$id": null, "label": "Support", "format": "raw", "params": null, "path": "#._support", "value": null } - ], - "required": ["#._proposalId", "#._support"], - "excluded": null - }, - "propose(address[],uint256[],bytes[],string,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))": { - "$id": null, - "intent": "create proposal", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Targets", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#._targets.[]", - "value": null - }, - { "$id": null, "label": "Values", "format": "amount", "params": null, "path": "#._values.[]", "value": null }, - { "$id": null, "label": "Calldatas", "format": "raw", "params": null, "path": "#._calldatas.[]", "value": null }, - { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, - { - "path": "#._settings", - "value": null, - "fields": [ - { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, - { - "$id": null, - "label": "Voting Start Ts", - "format": "date", - "params": { "encoding": "timestamp" }, - "path": "votingStartTs", - "value": null - }, - { - "$id": null, - "label": "Voting Period Seconds", - "format": "raw", - "params": null, - "path": "votingPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Vp Block Period Seconds", - "format": "raw", - "params": null, - "path": "vpBlockPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Threshold Condition BIPS", - "format": "raw", - "params": null, - "path": "thresholdConditionBIPS", - "value": null - }, - { - "$id": null, - "label": "Majority Condition BIPS", - "format": "raw", - "params": null, - "path": "majorityConditionBIPS", - "value": null - }, - { - "$id": null, - "label": "Execution Delay Seconds", - "format": "raw", - "params": null, - "path": "executionDelaySeconds", - "value": null - }, - { - "$id": null, - "label": "Execution Period Seconds", - "format": "raw", - "params": null, - "path": "executionPeriodSeconds", - "value": null - } - ] - } - ], - "required": [ - "#._targets.[]", - "#._values.[]", - "#._calldatas.[]", - "#._description", - "#._settingsaccept", - "#._settingsvotingStartTs", - "#._settingsvotingPeriodSeconds", - "#._settingsvpBlockPeriodSeconds", - "#._settingsthresholdConditionBIPS", - "#._settingsmajorityConditionBIPS", - "#._settingsexecutionDelaySeconds", - "#._settingsexecutionPeriodSeconds" - ], - "excluded": null - }, - "propose(string,(bool,uint256,uint256,uint256,uint256,uint256))": { - "$id": null, - "intent": "create proposal", - "screens": null, - "fields": [ - { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, - { - "path": "#._settings", - "value": null, - "fields": [ - { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, - { - "$id": null, - "label": "Voting Start Ts", - "format": "date", - "params": { "encoding": "timestamp" }, - "path": "votingStartTs", - "value": null - }, - { - "$id": null, - "label": "Voting Period Seconds", - "format": "raw", - "params": null, - "path": "votingPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Vp Block Period Seconds", - "format": "raw", - "params": null, - "path": "vpBlockPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Threshold Condition BIPS", - "format": "raw", - "params": null, - "path": "thresholdConditionBIPS", - "value": null - }, - { - "$id": null, - "label": "Majority Condition BIPS", - "format": "raw", - "params": null, - "path": "majorityConditionBIPS", - "value": null - } - ] - } - ], - "required": [ - "#._description", - "#._settingsaccept", - "#._settingsvotingStartTs", - "#._settingsvotingPeriodSeconds", - "#._settingsvpBlockPeriodSeconds", - "#._settingsthresholdConditionBIPS", - "#._settingsmajorityConditionBIPS" - ], - "excluded": null - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json deleted file mode 100644 index 19ab27ac..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-PollingFoundation-Songbird.json +++ /dev/null @@ -1,863 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "PollingFoundation-Songbird", - "contract": { - "deployments": [{ "chainId": 19, "address": "0x79Df47237292Dbd1477502CFF3F61cD535B0FAce" }], - "abi": [ - { - "type": "function", - "name": "BALLOT_TYPEHASH", - "inputs": [], - "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancel", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "castVote", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "castVoteBySig", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "_v", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "_r", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "_s", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "castVoteWithReason", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_support", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "_reason", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "chainId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "changeProposers", - "inputs": [ - { - "name": "_proposersToAdd", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_proposersToRemove", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "eip712Domain", - "inputs": [], - "outputs": [ - { "name": "fields", "type": "bytes1", "internalType": "bytes1", "components": null, "indexed": null, "unit": null }, - { "name": "name", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { "name": "version", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { "name": "chainId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "verifyingContract", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "salt", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { - "name": "extensions", - "type": "uint256[]", - "internalType": "uint256[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "execute", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, - { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "execute", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareSystemsManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIFlareSystemsManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getAddressUpdater", - "inputs": [], - "outputs": [ - { - "name": "_addressUpdater", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalId", - "inputs": [ - { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, - { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalIds", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalInfo", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { "name": "_proposer", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_accept", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_votePowerBlock", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_voteStartTime", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_voteEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "_execStartTime", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_execEndTime", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "_thresholdConditionBIPS", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_majorityConditionBIPS", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_circulatingSupply", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getProposalVotes", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { "name": "_for", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_against", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getVotes", - "inputs": [ - { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_blockNumber", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governance", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceSettings", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceVotePower", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIGovernanceVotePower", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "hasVoted", - "inputs": [ - { "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_voter", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialise", - "inputs": [ - { - "name": "_governanceSettings", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_initialGovernance", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isExecutor", - "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isProposer", - "inputs": [{ "name": "_account", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "productionMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "proposalIds", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "propose", - "inputs": [ - { "name": "_targets", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }, - { "name": "_values", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "_calldatas", "type": "bytes[]", "internalType": "bytes[]", "components": null, "indexed": null, "unit": null }, - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { - "name": "_settings", - "type": "tuple", - "internalType": "struct IGovernor.GovernorSettings", - "components": [ - { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, - { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "executionDelaySeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "executionPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "propose", - "inputs": [ - { "name": "_description", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }, - { - "name": "_settings", - "type": "tuple", - "internalType": "struct IIPollingFoundation.GovernorSettingsWithoutExecParams", - "components": [ - { "name": "accept", "type": "bool", "internalType": "bool", "components": null }, - { "name": "votingStartTs", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "votingPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "vpBlockPeriodSeconds", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "thresholdConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "majorityConditionBIPS", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "state", - "inputs": [{ "name": "_proposalId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "enum IGovernor.ProposalState", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "submission", - "inputs": [], - "outputs": [ - { "name": "", "type": "address", "internalType": "contract ISubmission", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "supply", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract IISupply", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToProductionMode", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "timelockedCalls", - "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "allowedAfterTimestamp", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateContractAddresses", - "inputs": [ - { - "name": "_contractNameHashes", - "type": "bytes32[]", - "internalType": "bytes32[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_contractAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "version", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, - "display": { - "formats": { - "castVote(uint256,uint8)": { - "$id": null, - "intent": "cast vote", - "screens": null, - "fields": [ - { "$id": null, "label": "Proposal Id", "format": "raw", "params": null, "path": "#._proposalId", "value": null }, - { "$id": null, "label": "Support", "format": "raw", "params": null, "path": "#._support", "value": null } - ], - "required": ["#._proposalId", "#._support"], - "excluded": null - }, - "propose(address[],uint256[],bytes[],string,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))": { - "$id": null, - "intent": "create proposal", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Targets", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#._targets.[]", - "value": null - }, - { "$id": null, "label": "Values", "format": "amount", "params": null, "path": "#._values.[]", "value": null }, - { "$id": null, "label": "Calldatas", "format": "raw", "params": null, "path": "#._calldatas.[]", "value": null }, - { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, - { - "path": "#._settings", - "value": null, - "fields": [ - { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, - { - "$id": null, - "label": "Voting Start Ts", - "format": "date", - "params": { "encoding": "timestamp" }, - "path": "votingStartTs", - "value": null - }, - { - "$id": null, - "label": "Voting Period Seconds", - "format": "raw", - "params": null, - "path": "votingPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Vp Block Period Seconds", - "format": "raw", - "params": null, - "path": "vpBlockPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Threshold Condition BIPS", - "format": "raw", - "params": null, - "path": "thresholdConditionBIPS", - "value": null - }, - { - "$id": null, - "label": "Majority Condition BIPS", - "format": "raw", - "params": null, - "path": "majorityConditionBIPS", - "value": null - }, - { - "$id": null, - "label": "Execution Delay Seconds", - "format": "raw", - "params": null, - "path": "executionDelaySeconds", - "value": null - }, - { - "$id": null, - "label": "Execution Period Seconds", - "format": "raw", - "params": null, - "path": "executionPeriodSeconds", - "value": null - } - ] - } - ], - "required": [ - "#._targets.[]", - "#._values.[]", - "#._calldatas.[]", - "#._description", - "#._settingsaccept", - "#._settingsvotingStartTs", - "#._settingsvotingPeriodSeconds", - "#._settingsvpBlockPeriodSeconds", - "#._settingsthresholdConditionBIPS", - "#._settingsmajorityConditionBIPS", - "#._settingsexecutionDelaySeconds", - "#._settingsexecutionPeriodSeconds" - ], - "excluded": null - }, - "propose(string,(bool,uint256,uint256,uint256,uint256,uint256))": { - "$id": null, - "intent": "create proposal", - "screens": null, - "fields": [ - { "$id": null, "label": "Description", "format": "raw", "params": null, "path": "#._description", "value": null }, - { - "path": "#._settings", - "value": null, - "fields": [ - { "$id": null, "label": "Accept", "format": "raw", "params": null, "path": "accept", "value": null }, - { - "$id": null, - "label": "Voting Start Ts", - "format": "date", - "params": { "encoding": "timestamp" }, - "path": "votingStartTs", - "value": null - }, - { - "$id": null, - "label": "Voting Period Seconds", - "format": "raw", - "params": null, - "path": "votingPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Vp Block Period Seconds", - "format": "raw", - "params": null, - "path": "vpBlockPeriodSeconds", - "value": null - }, - { - "$id": null, - "label": "Threshold Condition BIPS", - "format": "raw", - "params": null, - "path": "thresholdConditionBIPS", - "value": null - }, - { - "$id": null, - "label": "Majority Condition BIPS", - "format": "raw", - "params": null, - "path": "majorityConditionBIPS", - "value": null - } - ] - } - ], - "required": [ - "#._description", - "#._settingsaccept", - "#._settingsvotingStartTs", - "#._settingsvotingPeriodSeconds", - "#._settingsvpBlockPeriodSeconds", - "#._settingsthresholdConditionBIPS", - "#._settingsmajorityConditionBIPS" - ], - "excluded": null - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json deleted file mode 100644 index 49af9c6d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Flare.json +++ /dev/null @@ -1,1110 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "RewardManager-Flare", - "contract": { - "deployments": [{ "chainId": 14, "address": "0xC8f55c5aA2C752eE285Bd872855C749f4ee6239B" }], - "abi": [ - { - "type": "function", - "name": "activate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "active", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "autoClaim", - "inputs": [ - { - "name": "_rewardOwners", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cChainStake", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ICChainStake", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cChainStakeEnabled", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claim", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "_recipient", - "type": "address", - "internalType": "address payable", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [ - { - "name": "_rewardAmountWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claimProxy", - "inputs": [ - { "name": "_msgSender", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "_recipient", - "type": "address", - "internalType": "address payable", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [ - { - "name": "_rewardAmountWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claimSetupManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIClaimSetupManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cleanupBlockNumber", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "closeExpiredRewardEpoch", - "inputs": [ - { - "name": "_rewardEpochId", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "deactivate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enableCChainStake", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enableClaims", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enablePChainStakeMirror", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "firstClaimableRewardEpochId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareSystemsCalculator", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIFlareSystemsCalculator", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareSystemsManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIFlareSystemsManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "ftsoRewardManagerProxy", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getAddressUpdater", - "inputs": [], - "outputs": [ - { - "name": "_addressUpdater", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getCurrentRewardEpochId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getExpectedBalance", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getInitialRewardEpochId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getNextClaimableRewardEpochId", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardEpochIdToExpireNext", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardEpochIdsWithClaimableRewards", - "inputs": [], - "outputs": [ - { "name": "_startEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_endEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardEpochTotals", - "inputs": [ - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { - "name": "_totalRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_initialisedRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_claimedRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_burnedRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardOffersManagerList", - "inputs": [], - "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getStateOfRewards", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { - "name": "_rewardStates", - "type": "tuple[][]", - "internalType": "struct RewardsV2Interface.RewardState[][]", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, - { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getStateOfRewardsAt", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { - "name": "_rewardStates", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardState[]", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, - { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTokenPoolSupplyData", - "inputs": [], - "outputs": [ - { - "name": "_lockedFundsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationAuthorizedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTotals", - "inputs": [], - "outputs": [ - { - "name": "_totalRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalBurnedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getUnclaimedRewardState", - "inputs": [ - { "name": "_beneficiary", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { - "name": "_claimType", - "type": "uint8", - "internalType": "enum RewardsV2Interface.ClaimType", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [ - { - "name": "_state", - "type": "tuple", - "internalType": "struct IRewardManager.UnclaimedRewardState", - "components": [ - { "name": "initialised", "type": "bool", "internalType": "bool", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "weight", "type": "uint128", "internalType": "uint128", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governance", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceSettings", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialise", - "inputs": [ - { - "name": "_governanceSettings", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_initialGovernance", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialiseWeightBasedClaims", - "inputs": [ - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isExecutor", - "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "newRewardManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "noOfInitialisedWeightBasedClaims", - "inputs": [ - { "name": "rewardEpochId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "oldRewardManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pChainStakeMirror", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IPChainStakeMirror", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pChainStakeMirrorEnabled", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "productionMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "receiveRewards", - "inputs": [ - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_inflation", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "rewardManagerId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setInitialRewardData", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setNewRewardManager", - "inputs": [ - { - "name": "_newRewardManager", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setRewardOffersManagerList", - "inputs": [ - { - "name": "_rewardOffersManagerList", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToProductionMode", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "timelockedCalls", - "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "allowedAfterTimestamp", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateContractAddresses", - "inputs": [ - { - "name": "_contractNameHashes", - "type": "bytes32[]", - "internalType": "bytes32[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_contractAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "wNat", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract IWNat", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, - "display": { - "formats": { - "0x15f253fb": { - "$id": null, - "intent": "claim rewards", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Reward Owner", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._rewardOwners.[]", - "value": null - }, - { - "path": "#._proofs.[]", - "value": null, - "fields": [ - { - "path": "body", - "value": null, - "fields": [ - { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, - { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, - { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } - ] - } - ] - } - ], - "required": ["#._rewardOwners.[]", "#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], - "excluded": ["#._proofs.[].merkleProof.[]", "#._rewardEpochId", "#._proofs.[].body.rewardEpochId"] - }, - "0x3ce7522a": { - "$id": null, - "intent": "initialise claims", - "screens": null, - "fields": [ - { - "path": "#._proofs.[]", - "value": null, - "fields": [ - { - "path": "body", - "value": null, - "fields": [ - { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, - { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, - { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } - ] - } - ] - } - ], - "required": ["#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], - "excluded": ["#._proofs.[].merkleProof.[]", "#._proofs.[].body.rewardEpochId"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json deleted file mode 100644 index d3c87949..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-RewardManager-Songbird.json +++ /dev/null @@ -1,1111 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "RewardManager-Songbird", - "contract": { - "deployments": [{ "chainId": 19, "address": "0xE26AD68b17224951b5740F33926Cc438764eB9a7" }], - "abi": [ - { - "type": "function", - "name": "activate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "active", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "autoClaim", - "inputs": [ - { - "name": "_rewardOwners", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cChainStake", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ICChainStake", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cChainStakeEnabled", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claim", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "_recipient", - "type": "address", - "internalType": "address payable", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [ - { - "name": "_rewardAmountWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claimProxy", - "inputs": [ - { "name": "_msgSender", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "_recipient", - "type": "address", - "internalType": "address payable", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [ - { - "name": "_rewardAmountWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claimSetupManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIClaimSetupManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cleanupBlockNumber", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "closeExpiredRewardEpoch", - "inputs": [ - { - "name": "_rewardEpochId", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "deactivate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enableCChainStake", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enableClaims", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enablePChainStakeMirror", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "firstClaimableRewardEpochId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareSystemsCalculator", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIFlareSystemsCalculator", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flareSystemsManager", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IIFlareSystemsManager", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "ftsoRewardManagerProxy", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getAddressUpdater", - "inputs": [], - "outputs": [ - { - "name": "_addressUpdater", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getCurrentRewardEpochId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getExpectedBalance", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getInitialRewardEpochId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getNextClaimableRewardEpochId", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardEpochIdToExpireNext", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardEpochIdsWithClaimableRewards", - "inputs": [], - "outputs": [ - { "name": "_startEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_endEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardEpochTotals", - "inputs": [ - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { - "name": "_totalRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_initialisedRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_claimedRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_burnedRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getRewardOffersManagerList", - "inputs": [], - "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getStateOfRewards", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { - "name": "_rewardStates", - "type": "tuple[][]", - "internalType": "struct RewardsV2Interface.RewardState[][]", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, - { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getStateOfRewardsAt", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { - "name": "_rewardStates", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardState[]", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null }, - { "name": "initialised", "type": "bool", "internalType": "bool", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTokenPoolSupplyData", - "inputs": [], - "outputs": [ - { - "name": "_lockedFundsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationAuthorizedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTotals", - "inputs": [], - "outputs": [ - { - "name": "_totalRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationRewardsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalBurnedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getUnclaimedRewardState", - "inputs": [ - { "name": "_beneficiary", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { - "name": "_claimType", - "type": "uint8", - "internalType": "enum RewardsV2Interface.ClaimType", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [ - { - "name": "_state", - "type": "tuple", - "internalType": "struct IRewardManager.UnclaimedRewardState", - "components": [ - { "name": "initialised", "type": "bool", "internalType": "bool", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "weight", "type": "uint128", "internalType": "uint128", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governance", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceSettings", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialise", - "inputs": [ - { - "name": "_governanceSettings", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_initialGovernance", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialiseWeightBasedClaims", - "inputs": [ - { - "name": "_proofs", - "type": "tuple[]", - "internalType": "struct RewardsV2Interface.RewardClaimWithProof[]", - "components": [ - { "name": "merkleProof", "type": "bytes32[]", "internalType": "bytes32[]", "components": null }, - { - "name": "body", - "type": "tuple", - "internalType": "struct RewardsV2Interface.RewardClaim", - "components": [ - { "name": "rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null }, - { "name": "beneficiary", "type": "bytes20", "internalType": "bytes20", "components": null }, - { "name": "amount", "type": "uint120", "internalType": "uint120", "components": null }, - { "name": "claimType", "type": "uint8", "internalType": "enum RewardsV2Interface.ClaimType", "components": null } - ] - } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isExecutor", - "inputs": [{ "name": "_address", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "newRewardManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "noOfInitialisedWeightBasedClaims", - "inputs": [ - { "name": "rewardEpochId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "oldRewardManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pChainStakeMirror", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IPChainStakeMirror", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pChainStakeMirrorEnabled", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "productionMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "receiveRewards", - "inputs": [ - { "name": "_rewardEpochId", "type": "uint24", "internalType": "uint24", "components": null, "indexed": null, "unit": null }, - { "name": "_inflation", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "rewardManagerId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setInitialRewardData", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setNewRewardManager", - "inputs": [ - { - "name": "_newRewardManager", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setRewardOffersManagerList", - "inputs": [ - { - "name": "_rewardOffersManagerList", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToProductionMode", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "timelockedCalls", - "inputs": [{ "name": "selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "allowedAfterTimestamp", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateContractAddresses", - "inputs": [ - { - "name": "_contractNameHashes", - "type": "bytes32[]", - "internalType": "bytes32[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_contractAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "wNat", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract IWNat", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, - "display": { - "formats": { - "0x3ce7522a": { - "$id": null, - "intent": "initialise claims", - "screens": null, - "fields": [ - { - "path": "#._proofs.[]", - "value": null, - "fields": [ - { - "path": "body", - "value": null, - "fields": [ - { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, - { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, - { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } - ] - } - ] - } - ], - "required": ["#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], - "excluded": ["#._proofs.[].merkleProof.[]", "#._proofs.[].body.rewardEpochId"] - }, - "0x15f253fb": { - "$id": null, - "intent": "claim rewards", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Reward Owner", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._rewardOwners.[]", - "value": null - }, - { "$id": null, "label": "Reward Epoch Id", "format": "raw", "params": null, "path": "#._rewardEpochId", "value": null }, - { - "path": "#._proofs.[]", - "value": null, - "fields": [ - { - "path": "body", - "value": null, - "fields": [ - { "$id": null, "label": "Beneficiary", "format": "raw", "params": null, "path": "beneficiary", "value": null }, - { "$id": null, "label": "Amount", "format": "amount", "params": null, "path": "amount", "value": null }, - { "$id": null, "label": "Claim Type", "format": "raw", "params": null, "path": "claimType", "value": null } - ] - } - ] - } - ], - "required": ["#._rewardOwners.[]", "#._proofs.[].body.beneficiary", "#._proofs.[].body.amount", "#._proofs.[].body.claimType"], - "excluded": ["#._rewardEpochId", "#._proofs.[].merkleProof.[]", "#._proofs.[].body.rewardEpochId"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json deleted file mode 100644 index 725046fe..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/flare/calldata-ValidatorRewardManager-Flare.json +++ /dev/null @@ -1,649 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "ValidatorRewardManager-Flare", - "contract": { - "deployments": [{ "chainId": 14, "address": "0xc0CF3Aaf93bd978C5BC662564Aa73E331f2eC0B5" }], - "abi": [ - { - "type": "function", - "name": "activate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "active", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "allowedClaimRecipients", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claim", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "_recipient", - "type": "address", - "internalType": "address payable", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "_rewardAmount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "_wrap", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "claimExecutors", - "inputs": [ - { "name": "_rewardOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "deactivate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "distributeRewards", - "inputs": [ - { - "name": "_addresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_rewardAmounts", - "type": "uint256[]", - "internalType": "uint256[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeGovernanceCall", - "inputs": [{ "name": "_selector", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getAddressUpdater", - "inputs": [], - "outputs": [ - { - "name": "_addressUpdater", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getContractName", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getInflationAddress", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getStateOfRewards", - "inputs": [ - { "name": "_beneficiary", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "_totalReward", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { - "name": "_claimedReward", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTokenPoolSupplyData", - "inputs": [], - "outputs": [ - { - "name": "_lockedFundsWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationAuthorizedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTotals", - "inputs": [], - "outputs": [ - { - "name": "_totalAwardedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalClaimedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationAuthorizedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_totalInflationReceivedWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_lastInflationAuthorizationReceivedTs", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_dailyAuthorizedInflation", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governance", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "governanceSettings", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IGovernanceSettings", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialise", - "inputs": [ - { - "name": "_initialGovernance", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "newRewardManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "oldRewardManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "productionMode", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "receiveInflation", - "inputs": [], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "rewardDistributor", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setAllowedClaimRecipients", - "inputs": [ - { - "name": "_recipients", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setClaimExecutors", - "inputs": [ - { - "name": "_executors", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setDailyAuthorizedInflation", - "inputs": [ - { - "name": "_toAuthorizeWei", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setNewRewardManager", - "inputs": [ - { - "name": "_newRewardManager", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setRewardDistributor", - "inputs": [ - { - "name": "_rewardDistributor", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "switchToProductionMode", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "timelockedCalls", - "inputs": [{ "name": "", "type": "bytes4", "internalType": "bytes4", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "allowedAfterTimestamp", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "encodedCall", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "updateContractAddresses", - "inputs": [ - { - "name": "_contractNameHashes", - "type": "bytes32[]", - "internalType": "bytes32[]", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "_contractAddresses", - "type": "address[]", - "internalType": "address[]", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "wNat", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract WNat", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "Flare Network", "info": { "legalName": "Flare Labs", "url": "https://flare.network/" } }, - "display": { - "formats": { - "claim(address,address,uint256,bool)": { - "$id": null, - "intent": "claim or wrap a reward amount", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Reward Owner", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._rewardOwner", - "value": null - }, - { - "$id": null, - "label": "Recipient", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._recipient", - "value": null - }, - { "$id": null, "label": "Reward Amount", "format": "amount", "params": null, "path": "#._rewardAmount", "value": null }, - { "$id": null, "label": "Wrap", "format": "raw", "params": null, "path": "#._wrap", "value": null } - ], - "required": ["#._rewardOwner", "#._recipient", "#._rewardAmount", "#._wrap"], - "excluded": null - }, - "setClaimExecutors(address[])": { - "$id": null, - "intent": "set executors", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Executor", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._executors.[]", - "value": null - } - ], - "required": ["#._executors.[]"], - "excluded": null - }, - "setAllowedClaimRecipients(address[])": { - "$id": null, - "intent": "set recipients", - "screens": null, - "fields": [ - { - "$id": null, - "label": "Recipient", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#._recipients.[]", - "value": null - } - ], - "required": ["#._recipients.[]"], - "excluded": null - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json deleted file mode 100644 index 34182ad2..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/calldata-Vault-USDC-AAVE-Arbitrum.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-KilnVaults.json", - "context": { "contract": { "deployments": [{ "chainId": 42161, "address": "0xFf131917E1D6751e4d1B17612751Db521b1403c5" }] } }, - "metadata": { - "constants": { "underlyingToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "underlyingTicker": "USDC", "vaultTicker": "skUSDC" } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json deleted file mode 100644 index 5b1cbdc4..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/kiln/common-KilnVaults.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - - "metadata": { - "owner": "Kiln", - "info": { "legalName": "Kiln", "url": "https://kiln.fi/" } - } -} \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json deleted file mode 100644 index ddcc69af..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/ledgerquest/eip712-ledgerquest.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 137, "address": "0x33c6eec1723b12c46732f7ab41398de45641fa42" }], - "domain": { "name": "LedgerQuest", "chainId": 137, "verifyingContract": "0x33c6eec1723b12c46732f7ab41398de45641fa42" }, - "schemas": [ - { - "primaryType": "mint", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "mint": [ - { "name": "receiver", "type": "address" }, - { "name": "categoryId", "type": "uint256" }, - { "name": "collectionId", "type": "uint256" } - ] - } - } - ] - } - }, - "metadata": { "owner": "LedgerQuest" }, - "display": { - "formats": { - "mint": { - "intent": "Mint", - "fields": [ - { "path": "receiver", "label": "Receiver", "format": "raw" }, - { "path": "categoryId", "label": "Quest Type", "format": "raw" }, - { "path": "collectionId", "label": "Collection", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json deleted file mode 100644 index d2d89193..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-lenshub.json +++ /dev/null @@ -1,666 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 137, "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }], - "domain": { "name": "LensHub", "chainId": 137, "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }, - "schemas": [ - { - "primaryType": "act", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "act": [ - { "name": "publicationActedProfileId", "type": "uint256" }, - { "name": "publicationActedId", "type": "uint256" }, - { "name": "actorProfileId", "type": "uint256" }, - { "name": "referrerProfileIds", "type": "uint256[]" }, - { "name": "referrerPubIds", "type": "uint256[]" }, - { "name": "actionModuleAddress", "type": "address" }, - { "name": "actionModuleData", "type": "bytes" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "burn", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "burn": [{ "name": "tokenId", "type": "uint256" }] - } - }, - { - "primaryType": "ChangeDelegatedExecutorsConfig", - "types": { - "ChangeDelegatedExecutorsConfig": [ - { "name": "delegatorProfileId", "type": "uint256" }, - { "name": "delegatedExecutors", "type": "address[]" }, - { "name": "approvals", "type": "bool[]" }, - { "name": "configNumber", "type": "uint64" }, - { "name": "switchToGivenConfig", "type": "bool" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ] - } - }, - { - "primaryType": "collect", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "collect": [ - { "name": "publicationCollectedProfileId", "type": "uint256" }, - { "name": "publicationCollectedId", "type": "uint256" }, - { "name": "collectorProfileId", "type": "uint256" } - ] - } - }, - { - "primaryType": "collect_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "collect_with_sign": [ - { "name": "publicationCollectedProfileId", "type": "uint256" }, - { "name": "publicationCollectedId", "type": "uint256" }, - { "name": "collectorProfileId", "type": "uint256" }, - { "name": "signatureDeadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "Comment", - "types": { - "Comment": [ - { "name": "profileId", "type": "uint256" }, - { "name": "contentURI", "type": "string" }, - { "name": "pointedProfileId", "type": "uint256" }, - { "name": "pointedPubId", "type": "uint256" }, - { "name": "referrerProfileIds", "type": "uint256[]" }, - { "name": "referrerPubIds", "type": "uint256[]" }, - { "name": "referenceModuleData", "type": "bytes" }, - { "name": "actionModules", "type": "address[]" }, - { "name": "actionModulesInitDatas", "type": "bytes[]" }, - { "name": "referenceModule", "type": "address" }, - { "name": "referenceModuleInitData", "type": "bytes" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ] - } - }, - { - "primaryType": "comment_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "comment_with_sign": [ - { "name": "profile_id", "type": "uint256" }, - { "name": "profile_id_pointed", "type": "uint256" }, - { "name": "pubid_pointed", "type": "uint256" }, - { "name": "signatureDeadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "create_profile", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "create_profile": [{ "name": "to", "type": "address" }, { "name": "followModule", "type": "address" }] - } - }, - { - "primaryType": "Follow", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Follow": [ - { "name": "followerProfileId", "type": "uint256" }, - { "name": "idsOfProfilesToFollow", "type": "uint256[]" }, - { "name": "followTokenIds", "type": "uint256[]" }, - { "name": "datas", "type": "bytes[]" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "follow_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "follow_with_sign": [{ "name": "followerProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] - } - }, - { - "primaryType": "link", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "link": [{ "name": "handle_id", "type": "uint256" }, { "name": "profile_id", "type": "uint256" }] - } - }, - { - "primaryType": "link_with_sig", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "link_with_sig": [ - { "name": "handle_id", "type": "uint256" }, - { "name": "profile_id", "type": "uint256" }, - { "name": "signatureDeadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "mint", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "mint": [ - { "name": "to", "type": "uint256" }, - { "name": "profile_id", "type": "uint256" }, - { "name": "profile_id_pointed", "type": "uint256" }, - { "name": "pubid_pointed", "type": "uint256" } - ] - } - }, - { - "primaryType": "Mirror", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Mirror": [ - { "name": "profileId", "type": "uint256" }, - { "name": "metadataURI", "type": "string" }, - { "name": "pointedProfileId", "type": "uint256" }, - { "name": "pointedPubId", "type": "uint256" }, - { "name": "referrerProfileIds", "type": "uint256[]" }, - { "name": "referrerPubIds", "type": "uint256[]" }, - { "name": "referenceModuleData", "type": "bytes" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "mirror_with_sig", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "mirror_with_sig": [ - { "name": "profile_id", "type": "uint256" }, - { "name": "profile_id_pointed", "type": "uint256" }, - { "name": "pubid_pointed", "type": "uint256" }, - { "name": "signatureDeadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "Post", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Post": [ - { "name": "profileId", "type": "uint256" }, - { "name": "contentURI", "type": "string" }, - { "name": "actionModules", "type": "address[]" }, - { "name": "actionModulesInitDatas", "type": "bytes[]" }, - { "name": "referenceModule", "type": "address" }, - { "name": "referenceModuleInitData", "type": "bytes" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "post_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "post_with_sign": [{ "name": "profile_id", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] - } - }, - { - "primaryType": "Quote", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Quote": [ - { "name": "profileId", "type": "uint256" }, - { "name": "contentURI", "type": "string" }, - { "name": "pointedProfileId", "type": "uint256" }, - { "name": "pointedPubId", "type": "uint256" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "quote_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "quote_with_sign": [ - { "name": "profile_id", "type": "uint256" }, - { "name": "profile_id_pointed", "type": "uint256" }, - { "name": "pubid_pointed", "type": "uint256" }, - { "name": "signatureDeadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "set_block_status", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "set_block_status": [{ "name": "byProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] - } - }, - { - "primaryType": "SetProfileMetadataURI", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "SetProfileMetadataURI": [ - { "name": "profileId", "type": "uint256" }, - { "name": "metadataURI", "type": "string" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "set_block_status_with_sig", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "set_block_status_with_sig": [{ "name": "byProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] - } - }, - { - "primaryType": "SetFollowModule", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "SetFollowModule": [ - { "name": "profileId", "type": "uint256" }, - { "name": "followModule", "type": "address" }, - { "name": "followModuleInitData", "type": "bytes" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "set_profile_metadata_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "set_profile_metadata_with_sign": [{ "name": "profileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] - } - }, - { - "primaryType": "Unfollow", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Unfollow": [ - { "name": "unfollowerProfileId", "type": "uint256" }, - { "name": "idsOfProfilesToUnfollow", "type": "uint256[]" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "unfollow_with_sign", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "unfollow_with_sign": [{ "name": "unfollowerProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] - } - } - ] - } - }, - "metadata": { "owner": "LensHub" }, - "display": { - "formats": { - "act": { - "intent": "act", - "fields": [ - { "path": "actorProfileId", "label": "actorProfileId", "format": "raw" }, - { "path": "publicationActedId", "label": "publicationActedId", "format": "raw" }, - { "path": "publicationActedProfileId", "label": "publicationActedProfileId", "format": "raw" } - ], - "excluded": ["deadline", "actionModuleAddress", "referrerProfileIds.[]", "actionModuleData", "referrerPubIds.[]"] - }, - "burn": { "intent": "burn", "fields": [{ "path": "tokenId", "label": "tokenId", "format": "raw" }] }, - "ChangeDelegatedExecutorsConfig": { - "intent": "ChangeDelegatedExecutorsConfig", - "fields": [ - { "path": "delegatorProfileId", "label": "Delegator ProfileId", "format": "raw" }, - { "path": "delegatedExecutors.[]", "label": "Delegated Executors", "format": "raw" }, - { "path": "approvals.[]", "label": "Approvals", "format": "raw" }, - { "path": "configNumber", "label": "configNumber", "format": "raw" }, - { "path": "switchToGivenConfig", "label": "switchToGivenConfig", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["deadline"] - }, - "collect": { - "intent": "collect", - "fields": [ - { "path": "publicationCollectedProfileId", "label": "Publication Collected ProfileId", "format": "raw" }, - { "path": "publicationCollectedId", "label": "Publication CollectedId", "format": "raw" }, - { "path": "collectorProfileId", "label": "collector ProfileId", "format": "raw" } - ] - }, - "collect_with_sign": { - "intent": "collect_with_sign", - "fields": [ - { "path": "publicationCollectedProfileId", "label": "publicationCollectedProfileId", "format": "raw" }, - { "path": "publicationCollectedId", "label": "publicationCollectedId", "format": "raw" }, - { "path": "collectorProfileId", "label": "collectorProfileId", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "Comment": { - "intent": "Comment", - "fields": [ - { "path": "profileId", "label": "Profile Id", "format": "raw" }, - { "path": "contentURI", "label": "content URI", "format": "raw" }, - { "path": "pointedProfileId", "label": "Pointed Profile Id", "format": "raw" }, - { "path": "pointedPubId", "label": "Pointed Pub Id", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": [ - "referenceModuleInitData", - "referenceModuleData", - "actionModules", - "deadline", - "referrerProfileIds", - "referenceModule", - "actionModulesInitDatas", - "referrerPubIds" - ] - }, - "comment_with_sign": { - "intent": "comment_with_sign", - "fields": [ - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, - { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "create_profile": { - "intent": "create_profile", - "fields": [{ "path": "to", "label": "to", "format": "raw" }, { "path": "followModule", "label": "followModule", "format": "raw" }] - }, - "Follow": { - "intent": "Follow", - "fields": [ - { "path": "followerProfileId", "label": "follower ProfileId", "format": "raw" }, - { "path": "idsOfProfilesToFollow.[]", "label": "ids Of Profiles To Follow", "format": "raw" }, - { "path": "followTokenIds.[]", "label": "follow TokenIds", "format": "raw" }, - { "path": "datas.[]", "label": "datas", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["deadline"] - }, - "follow_with_sign": { - "intent": "follow_with_sign", - "fields": [ - { "path": "followerProfileId", "label": "followerProfileId", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "link": { - "intent": "link", - "fields": [ - { "path": "handle_id", "label": "handle_id", "format": "raw" }, - { "path": "profile_id", "label": "profile_id", "format": "raw" } - ] - }, - "link_with_sig": { - "intent": "link_with_sig", - "fields": [ - { "path": "handle_id", "label": "handle_id", "format": "raw" }, - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "mint": { - "intent": "mint", - "fields": [ - { "path": "to", "label": "to", "format": "raw" }, - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, - { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" } - ] - }, - "Mirror": { - "intent": "mirror", - "fields": [ - { "path": "profileId", "label": "profileId", "format": "raw" }, - { "path": "metadataURI", "label": "metadataURI", "format": "raw" }, - { "path": "pointedProfileId", "label": "pointedProfileId", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["deadline", "pointedPubId", "referenceModuleData", "referrerProfileIds", "referrerPubIds"] - }, - "mirror_with_sig": { - "intent": "mirror_with_sig", - "fields": [ - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, - { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "Post": { - "intent": "Post", - "fields": [ - { "path": "profileId", "label": "Profile Id", "format": "raw" }, - { "path": "contentURI", "label": "Post URI", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["referenceModuleInitData", "actionModules", "deadline", "referenceModule", "actionModulesInitDatas"] - }, - "post_with_sign": { - "intent": "post_with_sign", - "fields": [ - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "Quote": { - "intent": "Quote", - "fields": [ - { "path": "profileId", "label": "profileId", "format": "raw" }, - { "path": "contentURI", "label": "contentURI", "format": "raw" }, - { "path": "pointedProfileId", "label": "pointedProfileId", "format": "raw" }, - { "path": "pointedPubId", "label": "pointedPubId", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" }, - { "path": "deadline", "label": "deadline", "format": "raw" } - ] - }, - "quote_with_sign": { - "intent": "quote_with_sign", - "fields": [ - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, - { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "set_block_status": { - "intent": "set_block_status", - "fields": [ - { "path": "byProfileId", "label": "byProfileId", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "SetProfileMetadataURI": { - "intent": "SetProfileMetadataURI", - "fields": [ - { "path": "profileId", "label": "profileId", "format": "raw" }, - { "path": "metadataURI", "label": "metadataURI", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["deadline"] - }, - "set_block_status_with_sig": { - "intent": "set_block_status_with_sig", - "fields": [ - { "path": "byProfileId", "label": "byProfileId", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "SetFollowModule": { - "intent": "Set Follow Module", - "fields": [ - { "path": "profileId", "label": "profileId", "format": "raw" }, - { "path": "followModule", "label": "followModule", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["deadline", "followModuleInitData"] - }, - "set_profile_metadata_with_sign": { - "intent": "set_profile_metadata_with_sign", - "fields": [ - { "path": "profileId", "label": "profileId", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "Unfollow": { - "intent": "Unfollow", - "fields": [ - { "path": "unfollowerProfileId", "label": "Unfollower ProfileId", "format": "raw" }, - { "path": "idsOfProfilesToUnfollow.[]", "label": "ids Of Profiles To Unfollow", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" }, - { "path": "deadline", "label": "deadline", "format": "raw" } - ] - }, - "unfollow_with_sign": { - "intent": "unfollow_with_sign", - "fields": [ - { "path": "unfollowerProfileId", "label": "unfollowerProfileId", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json deleted file mode 100644 index 353839ee..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lens/eip712-lens-token-handle-registry.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 137, "address": "0xd4f2f33680fccb36748fa9831851643781608844" }], - "domain": { "name": "LensHub", "chainId": 137, "verifyingContract": "0xd4f2f33680fccb36748fa9831851643781608844" }, - "schemas": [ - { - "primaryType": "unlink_with_sig", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "unlink_with_sig": [ - { "name": "handle_id", "type": "uint256" }, - { "name": "profile_id", "type": "uint256" }, - { "name": "signatureDeadline", "type": "uint256" } - ] - } - }, - { - "primaryType": "unlink", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "unlink": [ - { "name": "handleId", "type": "uint256" }, - { "name": "profileId", "type": "uint256" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" } - ] - } - } - ] - } - }, - "metadata": { "owner": "TokenHandleRegistry" }, - "display": { - "formats": { - "unlink_with_sig": { - "intent": "unlink_with_sig", - "fields": [ - { "path": "handle_id", "label": "handle_id", "format": "raw" }, - { "path": "profile_id", "label": "profile_id", "format": "raw" }, - { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } - ] - }, - "unlink": { - "intent": "unlink", - "fields": [ - { "path": "handleId", "label": "handleId", "format": "raw" }, - { "path": "profileId", "label": "profileId", "format": "raw" }, - { "path": "nonce", "label": "nonce", "format": "raw" } - ], - "excluded": ["deadline"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json deleted file mode 100644 index 45ccab2f..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-WithdrawalQueueERC721.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "WithdrawalQueueERC721", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1" }], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/2eb3482cb1311f828a88e417c5095b9bbbc43fee/ethereum/lido/abis/0x889edc2edab5f40e902b864ad4d7ade8e412f9b1.abi.json" - } - }, - "metadata": { - "owner": "Lido DAO", - "info": { "legalName": "Lido DAO", "url": "https://lido.fi" }, - "constants": { - "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", - "wstETHaddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" - } - }, - "display": { - "formats": { - "requestWithdrawals(uint256[],address)": { - "intent": "request stETH withdrawal", - "fields": [ - { - "label": "Amount to withdraw", - "format": "tokenAmount", - "path": "#._amounts.[]", - "params": { "token": "$.metadata.constants.stETHaddress" } - }, - { - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._owner" - } - ], - "required": ["#._amounts.[]", "#._owner"], - "excluded": [] - }, - "requestWithdrawalsWithPermit(uint256[],address,(uint256,uint256,uint8,bytes32,bytes32))": { - "intent": "request stETH withdrawal", - "fields": [ - { - "label": "Amount to withdraw", - "format": "tokenAmount", - "path": "#._amounts.[]", - "params": { "token": "$.metadata.constants.stETHaddress" } - }, - { - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._owner" - } - ], - "required": ["#._amounts.[]", "#._owner"], - "excluded": ["#._permit.value", "#._permit.deadline", "#._permit.v", "#._permit.r", "#._permit.s"] - }, - "requestWithdrawalsWstETH(uint256[],address)": { - "intent": "request wstETH withdrawal", - "fields": [ - { - "label": "Amount to withdraw", - "format": "tokenAmount", - "path": "#._amounts.[]", - "params": { "token": "$.metadata.constants.wstETHaddress" } - }, - { - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._owner" - } - ], - "required": ["#._amounts.[]", "#._owner"], - "excluded": [] - }, - "requestWithdrawalsWstETHWithPermit(uint256[],address,(uint256,uint256,uint8,bytes32,bytes32))": { - "intent": "request wstETH withdrawal", - "fields": [ - { - "label": "Amount to withdraw", - "format": "tokenAmount", - "path": "#._amounts.[]", - "params": { "token": "$.metadata.constants.wstETHaddress" } - }, - { - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._owner" - } - ], - "required": ["#._amounts.[]", "#._owner"], - "excluded": ["#._permit"] - }, - "claimWithdrawal(uint256)": { - "intent": "claim withdrawal request", - "fields": [{ "label": "Request ID", "format": "raw", "path": "#._requestId" }], - "required": ["#._requestId"], - "excluded": [] - }, - "claimWithdrawals(uint256[],uint256[])": { - "intent": "claim withdrawal requests", - "fields": [{ "label": "Request ID", "format": "raw", "path": "#._requestIds.[]" }], - "required": ["#._requestIds.[]"], - "excluded": ["#._hints.[]"] - }, - "claimWithdrawalsTo(uint256[],uint256[],address)": { - "intent": "claim withdrawal requests", - "fields": [ - { "label": "Request IDs", "format": "raw", "path": "#._requestIds.[]" }, - { - "label": "ETH recipient", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._recipient" - } - ], - "required": ["#._requestIds.[]", "#._recipient"], - "excluded": ["#._hints.[]"] - }, - "approve(address,uint256)": { - "intent": "allow unstETH NFT transfer", - "fields": [ - { - "label": "Operator address", - "format": "addressName", - "params": { "types": ["contract"], "sources": ["local"] }, - "path": "#._to" - }, - { "label": "Request ID", "format": "raw", "path": "#._requestId" } - ] - }, - "safeTransferFrom(address,address,uint256)": { - "intent": "transfer unstETH NFT", - "fields": [ - { - "label": "From", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._from" - }, - { - "label": "To", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._to" - } - ], - "required": ["#._from", "#._to"], - "excluded": ["#._requestId"] - }, - "transferFrom(address,address,uint256)": { - "intent": "transfer unstETH NFT", - "fields": [ - { - "label": "From", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._from" - }, - { - "label": "To", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._to" - } - ], - "required": ["#._from", "#._to"], - "excluded": ["#._requestId"] - }, - "setApprovalForAll(address, bool)": { - "intent": "approve all unstETH tokens", - "fields": [ - { - "label": "Operator", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._operator" - }, - { "label": "Approved", "format": "raw", "path": "#._approved" } - ], - "required": ["#._operator", "#._approved"], - "excluded": [] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json deleted file mode 100644 index 73577837..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-stETH.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "stETH", - "contract": { - "deployments": [{ "chainId": 1, "address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" }], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0xae7ab96520de3a18e5e111b5eaab095312d7fe84.abi.json" - } - }, - "metadata": { - "owner": "Lido DAO", - "info": { "legalName": "Lido DAO", "url": "https://lido.fi" }, - "constants": { "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" } - }, - "display": { - "formats": { - "approve(address,uint256)": { - "intent": "authorize stETH spending", - "fields": [ - { - "label": "Spender", - "format": "addressName", - "params": { "types": ["contract"], "sources": ["local"] }, - "path": "#._spender" - }, - { - "label": "Amount", - "format": "tokenAmount", - "path": "#._amount", - "params": { "token": "$.metadata.constants.stETHaddress" } - } - ], - "required": ["#._spender", "#._amount"], - "excluded": [] - }, - "submit(address)": { - "intent": "stake ETH", - "fields": [{ "label": "Amount to stake", "format": "amount", "path": "@.value" }], - "required": [], - "excluded": ["#._referral"] - }, - "transfer(address,uint256)": { - "intent": "transfer stETH", - "fields": [ - { - "label": "Recipient", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#._recipient" - }, - { - "label": "Amount", - "format": "tokenAmount", - "path": "#._amount", - "params": { "token": "$.metadata.constants.stETHaddress" } - } - ], - "required": ["#._recipient", "#._amount"], - "excluded": [] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json deleted file mode 100644 index 33db5ef7..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lido/calldata-wstETH.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "wstETH", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" }], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0.abi.json" - } - }, - "metadata": { - "owner": "Lido DAO", - "info": { "legalName": "Lido DAO", "url": "https://lido.fi" }, - "constants": { - "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", - "wstETHaddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" - } - }, - "display": { - "formats": { - "approve(address,uint256)": { - "intent": "authorize wstETH spending", - "fields": [ - { - "label": "Spender", - "format": "addressName", - "params": { "types": ["contract"], "sources": ["local"] }, - "path": "#.spender" - }, - { - "label": "Amount", - "format": "tokenAmount", - "path": "#.amount", - "params": { "token": "$.metadata.constants.wstETHaddress" } - } - ], - "required": ["#.spender", "#.amount"], - "excluded": [] - }, - "wrap(uint256)": { - "intent": "wrap stETH to wstETH", - "fields": [ - { - "label": "stETH amount", - "format": "tokenAmount", - "path": "#._stETHAmount", - "params": { "token": "$.metadata.constants.stETHaddress" } - } - ], - "required": ["#._stETHAmount"], - "excluded": [] - }, - "unwrap(uint256)": { - "intent": "unwrap wstETH to stETH", - "fields": [ - { - "label": "wstETH amount", - "format": "tokenAmount", - "path": "#._wstETHAmount", - "params": { "token": "$.metadata.constants.wstETHaddress" } - } - ], - "required": ["#._wstETHAmount"], - "excluded": [] - }, - "transfer(address,uint256)": { - "intent": "transfer wstETH", - "fields": [ - { - "label": "Recipient", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": ["local", "ens"] }, - "path": "#.recipient" - }, - { - "label": "Amount", - "format": "tokenAmount", - "path": "#.amount", - "params": { "token": "$.metadata.constants.wstETHaddress" } - } - ], - "required": ["#.recipient", "#.amount"], - "excluded": [] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json deleted file mode 100644 index abaced24..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-holesky.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "LBTC", - "contract": { - "deployments": [{ "chainId": 17000, "address": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" }], - "abi": [ - { - "type": "function", - "name": "redeem", - "inputs": [ - { "name": "scriptPubkey", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, - { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ] - } - }, - "metadata": { "owner": "Lombard", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, - "display": { - "formats": { - "redeem(bytes,uint256)": { - "intent": "Redeem LBTC", - "fields": [ - { "label": "Script Pubkey", "format": "raw", "path": "#.scriptPubkey" }, - { - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" }, - "path": "#.amount" - } - ], - "required": ["#.scriptPubkey", "#.amount"], - "excluded": ["#.scriptPubkey.[]"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json deleted file mode 100644 index b0c43c58..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/calldata-lbtc-redeem-mainnet.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "LBTC", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x8236a87084f8B84306f72007F36F2618A5634494" }], - "abi": [ - { - "type": "function", - "name": "redeem", - "inputs": [ - { "name": "scriptPubkey", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, - { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ] - } - }, - "metadata": { "owner": "Lombard", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, - "display": { - "formats": { - "redeem(bytes,uint256)": { - "intent": "Redeem LBTC", - "fields": [ - { "label": "Script Pubkey", "format": "raw", "path": "#.scriptPubkey" }, - { - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0x8236a87084f8B84306f72007F36F2618A5634494" }, - "path": "#.amount" - } - ], - "required": ["#.scriptPubkey", "#.amount"], - "excluded": ["#.scriptPubkey.[]"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json deleted file mode 100644 index 17a88d56..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-holesky.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 17000, "address": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" }], - "domain": { - "name": "Lombard Staked Bitcoin", - "version": "1", - "chainId": 17000, - "verifyingContract": "0xED7bfd5C1790576105Af4649817f6d35A75CD818" - }, - "schemas": [ - { - "primaryType": "feeApproval", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "feeApproval": [{ "name": "chainId", "type": "uint256" }, { "name": "fee", "type": "uint256" }, { "name": "expiry", "type": "uint256" }] - } - } - ] - } - }, - "metadata": { "owner": "Lombard Finance", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, - "display": { - "formats": { - "feeApproval": { - "intent": "Lombard Network Fee Authorization", - "fields": [ - { "path": "chainId", "label": "Chain ID", "format": "raw" }, - { "path": "fee", "label": "Network Fee", "format": "amount" }, - { "path": "expiry", "label": "Expiry", "format": "date", "params": { "encoding": "timestamp" } } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json deleted file mode 100644 index cab8e248..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/lombard/eip712-network-fee-authorization-mainnet.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x8236a87084f8B84306f72007F36F2618A5634494" }], - "domain": { - "name": "Lombard Staked Bitcoin", - "version": "1", - "chainId": 1, - "verifyingContract": "0x8236a87084f8B84306f72007F36F2618A5634494" - }, - "schemas": [ - { - "primaryType": "feeApproval", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "feeApproval": [{ "name": "chainId", "type": "uint256" }, { "name": "fee", "type": "uint256" }, { "name": "expiry", "type": "uint256" }] - } - } - ] - } - }, - "metadata": { "owner": "Lombard Finance", "info": { "legalName": "Lombard Finance", "url": "https://www.lombard.finance/" } }, - "display": { - "formats": { - "feeApproval": { - "intent": "Lombard Network Fee Authorization", - "fields": [ - { "path": "chainId", "label": "Chain ID", "format": "raw" }, - { "path": "fee", "label": "Network Fee", "format": "amount" }, - { "path": "expiry", "label": "Expiry", "format": "date", "params": { "encoding": "timestamp" } } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json deleted file mode 100644 index 4b71ffb1..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/eip712-permit-DAI.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "domain": { "name": "Dai Stablecoin", "version": "1" }, - "deployments": [{ "chainId": 42, "address": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa" }] - } - }, - "includes": "../../ercs/eip712-erc2612-permit.json", - "metadata": { - "owner": "MakerDAO", - "info": { "legalName": "Maker Foundation", "url": "https://makerdao.com/", "deploymentDate": "2017-12-18T00:00:00Z" }, - "token": { "name": "Dai Stablecoin", "ticker": "DAI", "decimals": 18 } - }, - "display": { - "formats": { - "Permit": { "screens": { "stax": [{ "type": "propertyPage", "label": "DAI Permit", "content": ["spender", "value", "deadline"] }] } } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json deleted file mode 100644 index d8120f68..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/makerdao/tests/eip712-permit-DAI/permit-DAI-sample1.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "types": { - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "Permit": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } - ] - }, - "primaryType": "Permit", - "domain": { - "name": "Dai Stablecoin", - "version": "1", - "chainId": 42, - "verifyingContract": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa" - }, - "message": { - "owner": "$owner", - "spender": "$spender", - "value": "$value", - "nonce": "$nonce", - "deadline": "$deadline" - } -} \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json deleted file mode 100644 index 85707569..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "9Summits", - "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "9SETHc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xF540D790413FCFAedAC93518Ae99EdDacE82cb78" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json deleted file mode 100644 index 85de33dc..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SETHcore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "9Summits", - "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "9SETHcore" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x5496b42ad0deCebFab0db944D83260e60D54f667" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json deleted file mode 100644 index d093bdc8..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDC11Core.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "9Summits", - "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, - "constants": { - "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - "underlyingTicker": "USDC", - "vaultTicker": "9SUSDC11Core" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1E2aAaDcF528b9cC08F43d4fd7db488cE89F5741" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json deleted file mode 100644 index 773ffebb..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSDCcore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "9Summits", - "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "9SUSDCcore" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xD5Ac156319f2491d4ad1Ec4aA5ed0ED48C0fa173" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json deleted file mode 100644 index 89d9db82..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-9summits-9SUSR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "9Summits", - "info": { "legalName": "9Summits", "url": "https://9summits.io/" }, - "constants": { "underlyingToken": "0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110", "underlyingTicker": "USR", "vaultTicker": "9SUSR" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x00B6f2C15E4439749f192D10c70f65354848Cf4b" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json deleted file mode 100644 index 48185ccb..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-MorphoBlue.json +++ /dev/null @@ -1,1056 +0,0 @@ -{ - "$schema": null, - "context": { - "$id": null, - "contract": { - "deployments": [ - { "chainId": 1, "address": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb" }, - { "chainId": 8453, "address": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb" } - ], - "abi": [ - { - "type": "function", - "name": "DOMAIN_SEPARATOR", - "inputs": [], - "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "accrueInterest", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "borrow", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "createMarket", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enableIrm", - "inputs": [{ "name": "irm", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "enableLltv", - "inputs": [{ "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "extSloads", - "inputs": [{ "name": "slots", "type": "bytes32[]", "internalType": "bytes32[]", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "res", "type": "bytes32[]", "internalType": "bytes32[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "feeRecipient", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "flashLoan", - "inputs": [ - { "name": "token", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "idToMarketParams", - "inputs": [{ "name": "", "type": "bytes32", "internalType": "Id", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "collateralToken", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isAuthorized", - "inputs": [ - { "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isIrmEnabled", - "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isLltvEnabled", - "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "liquidate", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "borrower", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "seizedAssets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "repaidShares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "market", - "inputs": [{ "name": "", "type": "bytes32", "internalType": "Id", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "totalSupplyAssets", - "type": "uint128", - "internalType": "uint128", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "totalSupplyShares", - "type": "uint128", - "internalType": "uint128", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "totalBorrowAssets", - "type": "uint128", - "internalType": "uint128", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "totalBorrowShares", - "type": "uint128", - "internalType": "uint128", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "lastUpdate", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null }, - { "name": "fee", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "nonce", - "inputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "position", - "inputs": [ - { "name": "", "type": "bytes32", "internalType": "Id", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "supplyShares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "borrowShares", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null }, - { "name": "collateral", "type": "uint128", "internalType": "uint128", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "repay", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setAuthorization", - "inputs": [ - { "name": "authorized", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "newIsAuthorized", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setAuthorizationWithSig", - "inputs": [ - { - "name": "authorization", - "type": "tuple", - "internalType": "struct Authorization", - "components": [ - { "name": "authorizer", "type": "address", "internalType": "address", "components": null }, - { "name": "authorized", "type": "address", "internalType": "address", "components": null }, - { "name": "isAuthorized", "type": "bool", "internalType": "bool", "components": null }, - { "name": "nonce", "type": "uint256", "internalType": "uint256", "components": null }, - { "name": "deadline", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { - "name": "signature", - "type": "tuple", - "internalType": "struct Signature", - "components": [ - { "name": "v", "type": "uint8", "internalType": "uint8", "components": null }, - { "name": "r", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "s", "type": "bytes32", "internalType": "bytes32", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setFee", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "newFee", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setFeeRecipient", - "inputs": [ - { - "name": "newFeeRecipient", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setOwner", - "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "supply", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "supplyCollateral", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "withdraw", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "shares", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [ - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "withdrawCollateral", - "inputs": [ - { - "name": "marketParams", - "type": "tuple", - "internalType": "struct MarketParams", - "components": [ - { "name": "loanToken", "type": "address", "internalType": "address", "components": null }, - { "name": "collateralToken", "type": "address", "internalType": "address", "components": null }, - { "name": "oracle", "type": "address", "internalType": "address", "components": null }, - { "name": "irm", "type": "address", "internalType": "address", "components": null }, - { "name": "lltv", "type": "uint256", "internalType": "uint256", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "assets", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "onBehalf", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { - "owner": "Morpho DAO", - "info": { "legalName": "Morpho DAO", "url": "https://docs.morpho.org/governance/organization/multisigs-and-addresses" } - }, - "display": { - "formats": { - "borrow((address,address,address,address,uint256),uint256,uint256,address,address)": { - "$id": null, - "intent": "Borrow from Morpho Market", - "screens": null, - "fields": [ - { - "path": "#.marketParams", - "value": null, - "fields": [ - { - "$id": null, - "label": "Loan Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "loanToken", - "value": null - }, - { - "$id": null, - "label": "Collateral Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "collateralToken", - "value": null - }, - { - "$id": null, - "label": "Oracle", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "oracle", - "value": null - }, - { - "$id": null, - "label": "Irm", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "irm", - "value": null - }, - { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } - ] - }, - { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, - { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, - { - "$id": null, - "label": "On Behalf", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#.onBehalf", - "value": null - }, - { - "$id": null, - "label": "Receiver", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#.receiver", - "value": null - } - ], - "required": [ - "#.marketParamsloanToken", - "#.marketParamscollateralToken", - "#.marketParamsoracle", - "#.marketParamsirm", - "#.marketParamslltv", - "#.assets", - "#.shares", - "#.onBehalf", - "#.receiver" - ], - "excluded": null - }, - "repay((address,address,address,address,uint256),uint256,uint256,address,bytes)": { - "$id": null, - "intent": "Repay on Morpho Market", - "screens": null, - "fields": [ - { - "path": "#.marketParams", - "value": null, - "fields": [ - { - "$id": null, - "label": "Loan Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "loanToken", - "value": null - }, - { - "$id": null, - "label": "Collateral Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "collateralToken", - "value": null - }, - { - "$id": null, - "label": "Oracle", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "oracle", - "value": null - }, - { - "$id": null, - "label": "Irm", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "irm", - "value": null - }, - { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } - ] - }, - { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, - { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, - { - "$id": null, - "label": "On Behalf", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#.onBehalf", - "value": null - }, - { "$id": null, "label": "Data", "format": "raw", "params": null, "path": "#.data", "value": null } - ], - "required": [ - "#.marketParamsloanToken", - "#.marketParamscollateralToken", - "#.marketParamsoracle", - "#.marketParamsirm", - "#.marketParamslltv", - "#.assets", - "#.shares", - "#.onBehalf", - "#.data" - ], - "excluded": null - }, - "supply((address,address,address,address,uint256),uint256,uint256,address,bytes)": { - "$id": null, - "intent": "Supply on Morpho Market", - "screens": null, - "fields": [ - { - "path": "#.marketParams", - "value": null, - "fields": [ - { - "$id": null, - "label": "Loan Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "loanToken", - "value": null - }, - { - "$id": null, - "label": "Collateral Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "collateralToken", - "value": null - }, - { - "$id": null, - "label": "Oracle", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "oracle", - "value": null - }, - { - "$id": null, - "label": "Irm", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "irm", - "value": null - }, - { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } - ] - }, - { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, - { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, - { - "$id": null, - "label": "On Behalf", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#.onBehalf", - "value": null - }, - { "$id": null, "label": "Data", "format": "raw", "params": null, "path": "#.data", "value": null } - ], - "required": [ - "#.marketParamsloanToken", - "#.marketParamscollateralToken", - "#.marketParamsoracle", - "#.marketParamsirm", - "#.marketParamslltv", - "#.assets", - "#.shares", - "#.onBehalf", - "#.data" - ], - "excluded": null - }, - "supplyCollateral((address,address,address,address,uint256),uint256,address,bytes)": { - "$id": null, - "intent": "Supply Collateral on Morpho Market", - "screens": null, - "fields": [ - { - "path": "#.marketParams", - "value": null, - "fields": [ - { - "$id": null, - "label": "Loan Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "loanToken", - "value": null - }, - { - "$id": null, - "label": "Collateral Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "collateralToken", - "value": null - }, - { - "$id": null, - "label": "Oracle", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "oracle", - "value": null - }, - { - "$id": null, - "label": "Irm", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "irm", - "value": null - }, - { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } - ] - }, - { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, - { - "$id": null, - "label": "On Behalf", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#.onBehalf", - "value": null - }, - { "$id": null, "label": "Data", "format": "raw", "params": null, "path": "#.data", "value": null } - ], - "required": [ - "#.marketParamsloanToken", - "#.marketParamscollateralToken", - "#.marketParamsoracle", - "#.marketParamsirm", - "#.marketParamslltv", - "#.assets", - "#.onBehalf", - "#.data" - ], - "excluded": null - }, - "withdraw((address,address,address,address,uint256),uint256,uint256,address,address)": { - "$id": null, - "intent": "Withdraw from Morpho Market", - "screens": null, - "fields": [ - { - "path": "#.marketParams", - "value": null, - "fields": [ - { - "$id": null, - "label": "Loan Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "loanToken", - "value": null - }, - { - "$id": null, - "label": "Collateral Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "collateralToken", - "value": null - }, - { - "$id": null, - "label": "Oracle", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "oracle", - "value": null - }, - { - "$id": null, - "label": "Irm", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "irm", - "value": null - }, - { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } - ] - }, - { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, - { "$id": null, "label": "Shares", "format": "raw", "params": null, "path": "#.shares", "value": null }, - { - "$id": null, - "label": "On Behalf", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#.onBehalf", - "value": null - }, - { - "$id": null, - "label": "Receiver", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#.receiver", - "value": null - } - ], - "required": [ - "#.marketParamsloanToken", - "#.marketParamscollateralToken", - "#.marketParamsoracle", - "#.marketParamsirm", - "#.marketParamslltv", - "#.assets", - "#.shares", - "#.onBehalf", - "#.receiver" - ], - "excluded": null - }, - "withdrawCollateral((address,address,address,address,uint256),uint256,address,address)": { - "$id": null, - "intent": "Withdraw Collateral from Morpho Market", - "screens": null, - "fields": [ - { - "path": "#.marketParams", - "value": null, - "fields": [ - { - "$id": null, - "label": "Loan Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "loanToken", - "value": null - }, - { - "$id": null, - "label": "Collateral Token", - "format": "addressName", - "params": { "types": ["token"], "sources": null }, - "path": "collateralToken", - "value": null - }, - { - "$id": null, - "label": "Oracle", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "oracle", - "value": null - }, - { - "$id": null, - "label": "Irm", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "irm", - "value": null - }, - { "$id": null, "label": "Lltv", "format": "raw", "params": null, "path": "lltv", "value": null } - ] - }, - { "$id": null, "label": "Assets", "format": "raw", "params": null, "path": "#.assets", "value": null }, - { - "$id": null, - "label": "On Behalf", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract", "token", "collection"], "sources": null }, - "path": "#.onBehalf", - "value": null - }, - { - "$id": null, - "label": "Receiver", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#.receiver", - "value": null - } - ], - "required": [ - "#.marketParamsloanToken", - "#.marketParamscollateralToken", - "#.marketParamsoracle", - "#.marketParamsirm", - "#.marketParamslltv", - "#.assets", - "#.onBehalf", - "#.receiver" - ], - "excluded": null - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json deleted file mode 100644 index ab5752d0..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Apostro", - "info": { "legalName": "Apostro", "url": "https://apostro.xyz" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "aprUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xcdDCDd18A16ED441F6CB10c3909e5e7ec2B9e8f3" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json deleted file mode 100644 index e9249466..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-apostro-aprUSR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Apostro", - "info": { "legalName": "Apostro", "url": "https://apostro.xyz" }, - "constants": { "underlyingToken": "0x35E5dB674D8e93a03d814FA0ADa70731efe8a4b9", "underlyingTicker": "USR", "vaultTicker": "aprUSR" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xC484D83F667b779cc9907248101214235642258B" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json deleted file mode 100644 index e15faf5b..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "B.Protocol", - "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "reETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x70F796946eD919E4Bc6cD506F8dACC45E4539771" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json deleted file mode 100644 index d1a8897c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reGOLD.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "B.Protocol", - "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, - "constants": { "underlyingToken": "0x2103E845C5E135493Bb6c2A4f0B8651956eA8682", "underlyingTicker": "XAUM", "vaultTicker": "reGOLD" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x45c1875F1C48622b3D9740Af2D7dc62Bc9a72422" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json deleted file mode 100644 index 99fc65d6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-reUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "B.Protocol", - "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "reUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x0F359FD18BDa75e9c49bC027E7da59a4b01BF32a" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json deleted file mode 100644 index 4b61796d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-b_protocol-recbBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "B.Protocol", - "info": { "legalName": "B.Protocol", "url": "https://www.bprotocol.org/" }, - "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "recbBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xB9C9158aB81f90996cAD891fFbAdfBaad733c8C6" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json deleted file mode 100644 index a69251b4..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "bbETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x38989BBA00BDF8181F4082995b3DEAe96163aC5D" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json deleted file mode 100644 index a5e916f0..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "bbUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x186514400e52270cef3D80e1c6F8d10A75d47344" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json deleted file mode 100644 index 9ea490e8..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-bbUSDT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "bbUSDT" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2C25f6C25770fFEC5959D34B94Bf898865e5D6b1" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json deleted file mode 100644 index 987c388d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "mwETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xa0E430870c4604CcfC7B38Ca7845B1FF653D0ff1" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json deleted file mode 100644 index 8f418bca..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwEURC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42", "underlyingTicker": "EURC", "vaultTicker": "mwEURC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xf24608E0CCb972b0b0f4A6446a0BBf58c701a026" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json deleted file mode 100644 index a0121ce6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "mwUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json deleted file mode 100644 index b8407336..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-block_analitica-mwcbBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Block Analitica", - "info": { "legalName": "Block Analitica", "url": "https://morpho.blockanalitica.com/" }, - "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "mwcbBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x543257eF2161176D7C8cD90BA65C2d4CaEF5a796" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json deleted file mode 100644 index 045e9673..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-fence-ERY.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Fence", - "info": { "legalName": "Fence", "url": "https://www.fence.finance/" }, - "constants": { "underlyingToken": "0x3231Cb76718CDeF2155FC47b5286d82e6eDA273f", "underlyingTicker": "EURe", "vaultTicker": "ERY" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xC21DB71648B18C5B9E038d88393C9b254cf8eaC8" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json deleted file mode 100644 index c101ab28..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-elixirUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "elixirUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x0404fD1a77756EB029F06b5CDea88B2B2ddC2fEE" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json deleted file mode 100644 index cd0c9eb3..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtAUSDc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a", "underlyingTicker": "AUSD", "vaultTicker": "gtAUSDc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json deleted file mode 100644 index 98fa35aa..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtDAIcore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "underlyingTicker": "DAI", "vaultTicker": "gtDAIcore" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x500331c9fF24D9d11aee6B07734Aa72343EA74a5" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json deleted file mode 100644 index 1398bc20..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtEURCc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42", "underlyingTicker": "EURC", "vaultTicker": "gtEURCc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x1c155be6bC51F2c37d472d4C2Eba7a637806e122" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json deleted file mode 100644 index 286edad0..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLBTCc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xecAc9C5F704e954931349Da37F60E39f515c11c1", "underlyingTicker": "LBTC", "vaultTicker": "gtLBTCc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x0D05e6ec0A10f9fFE9229EAA785c11606a1d13Fb" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json deleted file mode 100644 index 9cd95a98..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtLRTcore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "gtLRTcore" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4881Ef0BF6d2365D3dd6499ccd7532bcdBCE0658" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json deleted file mode 100644 index 0f7958b2..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDAcore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x0000206329b97DB379d5E1Bf586BbDB969C63274", "underlyingTicker": "USDA", "vaultTicker": "gtUSDAcore" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x125D41A6e5dbf455cD9Df8F80BCC6fd172D52Cc6" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json deleted file mode 100644 index 61ed74a1..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xdd0f28e19C1780eb6396170735D45153D261490d" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json deleted file mode 100644 index e4dd75ed..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xc0c5689e6f4D256E861F65465b691aeEcC0dEb12" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json deleted file mode 100644 index 064af685..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCcore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCcore" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x8eB67A509616cd6A7c1B3c8C21D48FF57df3d458" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json deleted file mode 100644 index c56189df..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCmkr.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCmkr" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xEbFA750279dEfa89b8D99bdd145a016F6292757b" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json deleted file mode 100644 index 9455559c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDCp.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "gtUSDCp" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json deleted file mode 100644 index f8ef2260..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtUSDT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "gtUSDT" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x8CB3649114051cA5119141a34C200D65dc0Faa73" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json deleted file mode 100644 index 2136af39..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWBTCc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "gtWBTCc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x443df5eEE3196e9b2Dd77CaBd3eA76C3dee8f9b2" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json deleted file mode 100644 index 7b465fe4..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "gtWETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2371e134e3455e0593363cBF89d3b6cf53740618" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json deleted file mode 100644 index 8c5bbc8c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "gtWETHc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x6b13c060F13Af1fdB319F52315BbbF3fb1D88844" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json deleted file mode 100644 index 9a655aef..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtWETHe.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "gtWETHe" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1e6ffa4e9F63d10B8820A3ab52566Af881Dab53c" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json deleted file mode 100644 index 0988cb12..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtcbBTCc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "gtcbBTCc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xF587f2e8AfF7D76618d3B6B4626621860FbD54e3" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json deleted file mode 100644 index b20ab412..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gteUSDc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0d69E286B938e21CBf7E51D71F6A4c8918f482F", "underlyingTicker": "eUSD", "vaultTicker": "gteUSDc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xc080f56504e0278828A403269DB945F6c6D6E014" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json deleted file mode 100644 index dbf71de5..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsETHc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x64351fC9810aDAd17A690E4e1717Df5e7e085160", "underlyingTicker": "msETH", "vaultTicker": "gtmsETHc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x78B18E07dc43017fcEaabaD0751d6464c0F56b25" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json deleted file mode 100644 index e7c8b12a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtmsUSDc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xab5eB14c09D416F0aC63661E57EDB7AEcDb9BEfA", "underlyingTicker": "msUSD", "vaultTicker": "gtmsUSDc" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x6859B34a9379122d25A9FA46f0882d434fee36c3" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json deleted file mode 100644 index ec9c6298..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-gtusdcf.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "gtusdcf" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xc582F04d8a82795aa2Ff9c8bb4c1c889fe7b754e" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json deleted file mode 100644 index b0fca7fd..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "ionicUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xCd347c1e7d600a9A3e403497562eDd0A7Bc3Ef21" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json deleted file mode 100644 index 42785c5b..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-ionicWETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "ionicWETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x9aB2d181E4b87ba57D5eD564D3eF652C4E710707" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json deleted file mode 100644 index cd5bb3f3..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-mhyETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "mhyETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x701907283a57FF77E255C3f1aAD790466B8CE4ef" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json deleted file mode 100644 index 18070b36..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-midasUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "midasUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA8875aaeBc4f830524e35d57F9772FfAcbdD6C45" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json deleted file mode 100644 index 427f5e7a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-msolvbtcbbn.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { - "underlyingToken": "0xd9D920AA40f578ab794426F5C90F6C731D159DEf", - "underlyingTicker": "SolvBTC.BBN", - "vaultTicker": "msolvbtcbbn" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xdBB316375B4dC992B2c8827D120c09dFB1d3455D" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json deleted file mode 100644 index ebb0cb46..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-resolvUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "resolvUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x132E6C9C33A62D7727cd359b1f51e5B566E485Eb" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json deleted file mode 100644 index 93f3f692..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphoUSDC.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { - "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - "underlyingTicker": "USDC", - "vaultTicker": "sbMorphoUSDC" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4Ff4186188f8406917293A9e01A1ca16d3cf9E59" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json deleted file mode 100644 index 526fe8cb..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-sbMorphotBTC.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { - "underlyingToken": "0x18084fbA666a33d37592fA2633fD49a74DD93a88", - "underlyingTicker": "tBTC", - "vaultTicker": "sbMorphotBTC" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x059Fc6723b9bF77DbF4283C8d7C90eA8Af44EF10" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json deleted file mode 100644 index b7e355da..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "smUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x616a4E1db48e22028f6bbf20444Cd3b8e3273738" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json deleted file mode 100644 index 921016a7..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smWETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "smWETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x27D8c7273fd3fcC6956a0B370cE5Fd4A7fc65c18" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json deleted file mode 100644 index 7174054f..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-gauntlet-smcbBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Gauntlet", - "info": { "legalName": "Gauntlet", "url": "https://www.gauntlet.xyz/" }, - "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "smcbBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x5a47C803488FE2BB0A0EAaf346b420e4dF22F3C7" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json deleted file mode 100644 index 227123e1..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-hakutora-hUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Hakutora", - "info": { "legalName": "Hakutora", "url": "https://hakutora.xyz/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "hUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x974c8FBf4fd795F66B85B73ebC988A51F1A040a9" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json deleted file mode 100644 index 5823dd12..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-leadblock-USDC-RWA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "LeadBlock", - "info": { "legalName": "LeadBlock", "url": "https://leadblockpartners.com/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "USDC RWA" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4cA0E178c94f039d7F202E09d8d1a655Ed3fb6b6" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json deleted file mode 100644 index 6b74e04c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-llamarisk-llama-crvUSD.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "LlamaRisk", - "info": { "legalName": "LlamaRisk", "url": "https://www.llamarisk.com/" }, - "constants": { - "underlyingToken": "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E", - "underlyingTicker": "crvUSD", - "vaultTicker": "llama-crvUSD" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x67315dd969B8Cd3a3520C245837Bf71f54579C75" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json deleted file mode 100644 index bc1ec49d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC-USR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110", "underlyingTicker": "USR", "vaultTicker": "MC-USR" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xD50DA5F859811A91fD1876C9461fD39c23C747Ad" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json deleted file mode 100644 index 4a84bdfa..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC.eUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "MC.eUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1265a81d42d513Df40d0031f8f2e1346954d665a" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json deleted file mode 100644 index f8e2509d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MC_USD0.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0x73A15FeD60Bf67631dC6cd7Bc5B6e8da8190aCF5", "underlyingTicker": "USD0", "vaultTicker": "MC_USD0" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x749794E985Af5a9A384B9cEe6D88DaB4CE1576A1" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json deleted file mode 100644 index 1846fb95..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCcbBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "MCcbBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x98cF0B67Da0F16E1F8f1a1D23ad8Dc64c0c70E0b" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json deleted file mode 100644 index 7671f52d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "MCwBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x1c530D6de70c05A81bF1670157b9d928e9699089" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json deleted file mode 100644 index e3a0df83..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-MCwETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "underlyingTicker": "WETH", "vaultTicker": "MCwETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x9a8bC3B04b7f3D87cfC09ba407dCED575f2d61D8" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json deleted file mode 100644 index 7f2a8aec..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-USUALUSDC+.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "USUALUSDC+" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xd63070114470f685b75B74D60EEc7c1113d33a3D" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json deleted file mode 100644 index d340dc71..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-mev_capital-pWBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "MEV Capital", - "info": { "legalName": "MEV Capital", "url": "https://mevcapital.com/" }, - "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "pWBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2f1aBb81ed86Be95bcf8178bA62C8e72D6834775" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json deleted file mode 100644 index 89f5721a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7FRAX.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x853d955aCEf822Db058eb8505911ED77F175b99e", "underlyingTicker": "FRAX", "vaultTicker": "Re7FRAX" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBE40491F3261Fd42724F1AEb465796eb11c06ddF" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json deleted file mode 100644 index 42d23016..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7RWA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b", "underlyingTicker": "verUSDC", "vaultTicker": "Re7RWA" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x6e37C95b43566E538D8C278eb69B00FC717a001b" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json deleted file mode 100644 index c9217341..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x0000206329b97DB379d5E1Bf586BbDB969C63274", "underlyingTicker": "USDA", "vaultTicker": "Re7USDA" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x89D80f5e9BC88d8021b352064ae73F0eAf79EBd8" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json deleted file mode 100644 index 4396c441..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "Re7USDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x60d715515d4411f7F43e4206dc5d4a3677f0eC78" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json deleted file mode 100644 index bee57981..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7USDT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "Re7USDT" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x95EeF579155cd2C5510F312c8fA39208c3Be01a8" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json deleted file mode 100644 index ce4d0c15..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "Re7WBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xE0C98605f279e4D7946d25B75869c69802823763" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json deleted file mode 100644 index 46efcaea..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7WETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "Re7WETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xA2Cac0023a4797b4729Db94783405189a4203AFc" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json deleted file mode 100644 index ac033085..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cbBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf", "underlyingTicker": "cbBTC", "vaultTicker": "Re7cbBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA02F5E93f783baF150Aa1F8b341Ae90fe0a772f7" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json deleted file mode 100644 index 5cddf847..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7cdxUSD1.1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { - "underlyingToken": "0xC0D3700000987C99b3C9009069E4f8413fD22330", - "underlyingTicker": "cdxUSD", - "vaultTicker": "Re7cdxUSD1.1" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x74B6EA9BFee07C3756969b0139CFacBBa5845969" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json deleted file mode 100644 index 181b61a4..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-Re7wstETH.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { - "underlyingToken": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0", - "underlyingTicker": "wstETH", - "vaultTicker": "Re7wstETH" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xE87ed29896B91421ff43f69257ABF78300e40c7a" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json deleted file mode 100644 index 7f7bd19b..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-degenUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "degenUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xdB90A4e973B7663ce0Ccc32B6FbD37ffb19BfA83" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json deleted file mode 100644 index 2608c0fb..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-fxUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "fxUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x4F460bb11cf958606C69A963B4A17f9DaEEea8b6" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json deleted file mode 100644 index 6e8bd34d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mDEGEN.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed", "underlyingTicker": "DEGEN", "vaultTicker": "mDEGEN" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x8c3A6B12332a6354805Eb4b72ef619aEdd22BcdD" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json deleted file mode 100644 index 52f0c348..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-mMAI.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0xbf1aeA8670D2528E08334083616dD9C5F3B087aE", "underlyingTicker": "MAI", "vaultTicker": "mMAI" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x30B8A2c8E7Fa41e77b54b8FaF45c610e7aD909E3" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json deleted file mode 100644 index 563354f3..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-meUSD.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4", "underlyingTicker": "eUSD", "vaultTicker": "meUSD" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbb819D845b573B5D7C538F5b85057160cfb5f313" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json deleted file mode 100644 index b0a63ea6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "pythETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x80D9964fEb4A507dD697b4437Fc5b25b618CE446" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json deleted file mode 100644 index 3c274fcf..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-pythUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "pythUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x0FaBfEAcedf47e890c50C8120177fff69C6a1d9B" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json deleted file mode 100644 index 811700ac..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-re7_labs-uUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "RE7 Labs", - "info": { "legalName": "RE7 Labs", "url": "https://www.re7.capital" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "uUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xB7890CEE6CF4792cdCC13489D36D9d42726ab863" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json deleted file mode 100644 index e1941edf..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-spDAI.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "SparkDAO", - "info": { "legalName": "SparkDAO", "url": "https://spark.fi/" }, - "constants": { "underlyingToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "underlyingTicker": "DAI", "vaultTicker": "spDAI" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x73e65DBD630f90604062f6E02fAb9138e713edD9" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json deleted file mode 100644 index 6d95e4dc..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-sparkdao-sparkUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "SparkDAO", - "info": { "legalName": "SparkDAO", "url": "https://spark.fi/" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "sparkUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json deleted file mode 100644 index 936d6bb0..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqDAI.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "underlyingTicker": "DAI", "vaultTicker": "bbqDAI" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbeeFfF68CC520D68f82641EFF84330C631E2490E" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json deleted file mode 100644 index 02845d37..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "bbqUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBEeFFF209270748ddd194831b3fa287a5386f5bC" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json deleted file mode 100644 index f522e383..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqUSDT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "bbqUSDT" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA0804346780b4c2e3bE118ac957D1DB82F9d7484" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json deleted file mode 100644 index 2578f4db..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-bbqWSTETH.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { - "underlyingToken": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0", - "underlyingTicker": "wstETH", - "vaultTicker": "bbqWSTETH" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x833AdaeF212c5cD3f78906B44bBfb18258F238F0" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json deleted file mode 100644 index 916f9698..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC", "vaultTicker": "csUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x7204B7Dbf9412567835633B6F00C3Edc3a8D6330" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json deleted file mode 100644 index 08dd75ca..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-csUSDL.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x7751E2F4b8ae93EF6B79d86419d42FE3295A4559", "underlyingTicker": "wUSDL", "vaultTicker": "csUSDL" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbEEFC01767ed5086f35deCb6C00e6C12bc7476C1" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json deleted file mode 100644 index cede4896..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakETH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x4200000000000000000000000000000000000006", "underlyingTicker": "WETH", "vaultTicker": "steakETH" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbEEf050a7485865A7a8d8Ca0CC5f7536b7a3443e" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json deleted file mode 100644 index 8026fabb..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0xA61BeB4A3d02decb01039e378237032B351125B4", "underlyingTicker": "EURA", "vaultTicker": "steakEURA" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xBEeFA28D5e56d41D35df760AB53B94D9FfD7051F" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json deleted file mode 100644 index dd88fd93..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakEURC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42", "underlyingTicker": "EURC", "vaultTicker": "steakEURC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xBeEF086b8807Dc5E5A1740C5E3a7C4c366eA6ab5" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json deleted file mode 100644 index dfb5322a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPAXG.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x45804880De22913dAFE09f4980848ECE6EcbAf78", "underlyingTicker": "PAXG", "vaultTicker": "steakPAXG" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBeeF7959aE71D4e45e1863dae0B94C35244AF816" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json deleted file mode 100644 index 49552b6d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakPYUSD.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { - "underlyingToken": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8", - "underlyingTicker": "PYUSD", - "vaultTicker": "steakPYUSD" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbEEF02e5E13584ab96848af90261f0C8Ee04722a" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json deleted file mode 100644 index a962f0a8..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakRUSD.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x09D4214C03D01F49544C0448DBE3A27f768F2b34", "underlyingTicker": "rUSD", "vaultTicker": "steakRUSD" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xBeEf11eCb698f4B5378685C05A210bdF71093521" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json deleted file mode 100644 index ffa8ae7a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakSUSDS.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { - "underlyingToken": "0x5875eEE11Cf8398102FdAd704C9E96607675467a", - "underlyingTicker": "sUSDS", - "vaultTicker": "steakSUSDS" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xB17B070A56043e1a5a1AB7443AfAFDEbcc1168D7" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json deleted file mode 100644 index 676f58e4..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x0000206329b97DB379d5E1Bf586BbDB969C63274", "underlyingTicker": "USDA", "vaultTicker": "steakUSDA" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbEEfa1aBfEbE621DF50ceaEF9f54FdB73648c92C" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json deleted file mode 100644 index 4f6e6830..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "underlyingTicker": "USDC", "vaultTicker": "steakUSDC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbeeF010f9cb27031ad51e3333f9aF9C6B1228183" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json deleted file mode 100644 index db33df86..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDCrwa.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { - "underlyingToken": "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b", - "underlyingTicker": "verUSDC", - "vaultTicker": "steakUSDCrwa" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xbEefc4aDBE58173FCa2C042097Fe33095E68C3D6" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json deleted file mode 100644 index 606709c5..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDM.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812", "underlyingTicker": "wUSDM", "vaultTicker": "steakUSDM" } - }, - "context": { "contract": { "deployments": [{ "chainId": 8453, "address": "0xBEef03f0BF3cb2e348393008a826538AaDD7d183" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json deleted file mode 100644 index fea21cb6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDQ.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0xc83e27f270cce0A3A3A29521173a83F402c1768b", "underlyingTicker": "USDQ", "vaultTicker": "steakUSDQ" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xA1b60d96e5C50dA627095B9381dc5a46AF1a9a42" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json deleted file mode 100644 index 3099b61c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x7B43E3875440B44613DC3bC08E7763e6Da63C8f8", "underlyingTicker": "USDR", "vaultTicker": "steakUSDR" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x30881Baa943777f92DC934d53D3bFdF33382cab3" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json deleted file mode 100644 index 7040b4bd..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "underlyingTicker": "USDT", "vaultTicker": "steakUSDT" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json deleted file mode 100644 index 579bda1f..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakUSDTlite.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { - "underlyingToken": "0xdAC17F958D2ee523a2206206994597C13D831ec7", - "underlyingTicker": "USDT", - "vaultTicker": "steakUSDTlite" - } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x097FFEDb80d4b2Ca6105a07a4D90eB739C45A666" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json deleted file mode 100644 index 972d4ceb..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/morpho/calldata-steakhouse_financial-steakWBTC.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Steakhouse Financial", - "info": { "legalName": "Steakhouse Financial", "url": "https://www.steakhouse.financial" }, - "constants": { "underlyingToken": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", "underlyingTicker": "WBTC", "vaultTicker": "steakWBTC" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0xbeEf094333AEdD535c130958c204E84f681FD9FA" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json deleted file mode 100644 index 6d327048..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/opensea/eip712-opensea.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x7f268357a8c2552623316e2562d90e642bb538e5" }], - "domain": { "name": "OpenSea", "chainId": 1, "verifyingContract": "0x7f268357a8c2552623316e2562d90e642bb538e5" }, - "schemas": [ - { - "primaryType": "Order", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Order": [ - { "name": "exchange", "type": "address" }, - { "name": "maker", "type": "address" }, - { "name": "taker", "type": "address" }, - { "name": "makerRelayerFee", "type": "uint256" }, - { "name": "takerRelayerFee", "type": "uint256" }, - { "name": "makerProtocolFee", "type": "uint256" }, - { "name": "takerProtocolFee", "type": "uint256" }, - { "name": "feeRecipient", "type": "address" }, - { "name": "feeMethod", "type": "uint8" }, - { "name": "side", "type": "uint8" }, - { "name": "saleKind", "type": "uint8" }, - { "name": "target", "type": "address" }, - { "name": "howToCall", "type": "uint8" }, - { "name": "calldata", "type": "bytes" }, - { "name": "replacementPattern", "type": "bytes" }, - { "name": "staticTarget", "type": "address" }, - { "name": "staticExtradata", "type": "bytes" }, - { "name": "paymentToken", "type": "address" }, - { "name": "basePrice", "type": "uint256" }, - { "name": "extra", "type": "uint256" }, - { "name": "listingTime", "type": "uint256" }, - { "name": "expirationTime", "type": "uint256" }, - { "name": "salt", "type": "uint256" }, - { "name": "nonce", "type": "uint256" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Wyvern Exchange Contract" }, - "display": { - "formats": { - "Order": { - "intent": "OpenSea Listing", - "fields": [ - { "path": "exchange", "label": "Contract address", "format": "raw" }, - { "path": "basePrice", "label": "Price", "format": "raw" }, - { "path": "expirationTime", "label": "Offer expiration", "format": "raw" } - ], - "excluded": [ - "side", - "extra", - "saleKind", - "staticTarget", - "target", - "howToCall", - "makerRelayerFee", - "feeMethod", - "replacementPattern", - "takerRelayerFee", - "taker", - "listingTime", - "staticExtradata", - "makerProtocolFee", - "takerProtocolFee", - "paymentToken", - "calldata", - "salt", - "feeRecipient", - "maker" - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json deleted file mode 100644 index 74ec7e13..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/calldata-AugustusSwapper-v5.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "AugustusSwapperV5", - "contract": { - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json", - "deployments": [ - { "chainId": 56, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" }, - { "chainId": 1, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" }, - { "chainId": 137, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" } - ] - } - }, - "metadata": { - "owner": "Velora", - "info": { "url": "https://www.paraswap.io/", "legalName": "Velora", "deploymentDate": "2021-08-18T12:42:05Z" }, - "constants": { "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" } - }, - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { "tokenPath": "fromToken", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { "tokenPath": "toToken", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } - }, - "maxSendAmount": { - "label": "Maximum to Send", - "format": "tokenAmount", - "params": { "tokenPath": "tokenIn", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } - }, - "receiveAmount": { - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { "tokenPath": "tokenOut", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } - }, - "lastPool": { "label": "Last pool", "format": "addressName", "params": { "types": ["contract"] } }, - "beneficiary": { "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - "exchange": { "label": "Exchange", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } }, - "factory": { "label": "Uniswap Factory", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } } - }, - "formats": { - "0x2298207a": { - "$id": "simpleBuy", - "intent": "Swap", - "fields": [ - { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, - { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.toToken" } }, - { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] - }, - "0x46c67b6d": { - "$id": "megaSwap", - "intent": "Swap", - "fields": [ - { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, - { - "path": "data.toAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "data.path.[0].path.[-1].to" } - }, - { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] - }, - "0x54840d1a": { - "$id": "swapOnUniswap", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "path.[-1]" } } - ], - "required": ["amountIn", "amountOutMin"] - }, - "0xf5661034": { - "$id": "swapOnUniswapFork", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "path.[-1]" } }, - { "path": "factory", "$ref": "$.display.definitions.factory" } - ], - "required": ["amountIn", "amountOutMin"] - }, - "0x0b86a4c1": { - "$id": "swapOnUniswapV2Fork", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "tokenIn" } }, - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "raw" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amountIn", "amountOutMin", "pools"] - }, - "0x54e3f31b": { - "$id": "simpleSwap", - "intent": "Swap", - "fields": [ - { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, - { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.toToken" } }, - { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] - }, - "0x64466805": { - "$id": "swapOnZeroXv4", - "intent": "Swap", - "fields": [ - { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, - { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, - { "path": "exchange", "$ref": "$.display.definitions.exchange" } - ], - "required": ["fromAmount", "amountOutMin"] - }, - "0x81033120": { - "$id": "swapOnZeroXv2", - "intent": "Swap", - "fields": [ - { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, - { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, - { "path": "exchange", "$ref": "$.display.definitions.exchange" } - ], - "required": ["fromAmount", "amountOutMin"] - }, - "0x935fb84b": { - "$id": "buyOnUniswap", - "intent": "Buy", - "fields": [ - { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOut", "$ref": "$.display.definitions.receiveAmount", "params": { "tokenPath": "path.[-1]" } } - ], - "required": ["amountInMax", "amountOut"] - }, - "0xc03786b0": { - "$id": "buyOnUniswapFork", - "intent": "Buy", - "fields": [ - { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOut", "$ref": "$.display.definitions.receiveAmount", "params": { "tokenPath": "path.[-1]" } }, - { "path": "factory", "$ref": "$.display.definitions.factory" } - ], - "required": ["amountInMax", "amountOut"] - }, - "0xb2f1e6db": { - "$id": "buyOnUniswapV2Fork", - "intent": "Buy", - "fields": [ - { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "tokenIn" } }, - { "path": "amountOut", "label": "Amount to Receive", "format": "raw" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": ["amountInMax", "amountOut", "pools.[-1]"] - }, - "0x2941a712": { - "$id": "buyOnUniswapV2ForkWithPermit", - "intent": "Buy", - "fields": [ - { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "tokenIn" } }, - { "path": "amountOut", "label": "Amount to Receive", "format": "raw" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ] - }, - "0xa94e78ef": { - "$id": "multiSwap", - "intent": "Swap", - "fields": [ - { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, - { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.path.[-1].to" } }, - { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } - ], - "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] - }, - "0x6b4109d3": { - "$id": "swapOnZeroXv4WithPermit", - "intent": "Swap", - "fields": [ - { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, - { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, - { "path": "exchange", "$ref": "$.display.definitions.exchange" } - ], - "required": ["fromAmount", "amountOutMin", "exchange"] - }, - "0x6e91538b": { - "$id": "swapOnUniswapV2ForkWithPermit", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "tokenIn" } }, - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "raw" }, - { "path": "pools.[-1]", "$ref": "$.display.definitions.lastPool" } - ], - "required": [] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json deleted file mode 100644 index d3665406..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/paraswap/eip712-paraswap.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [ - { "chainId": 1, "address": "0xe92b586627cca7a83dc919cc7127196d70f55a06" }, - { "chainId": 10, "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" }, - { "chainId": 56, "address": "0x8dcdfe88ef0351f27437284d0710cd65b20288bb" }, - { "chainId": 137, "address": "0xf3cd476c3c4d3ac5ca2724767f269070ca09a043" }, - { "chainId": 42161, "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" } - ], - "domain": { "name": "Velora" }, - "schemas": [ - { - "primaryType": "Order", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Order": [ - { "name": "nonceAndMeta", "type": "uint256" }, - { "name": "expiry", "type": "uint128" }, - { "name": "makerAsset", "type": "address" }, - { "name": "takerAsset", "type": "address" }, - { "name": "maker", "type": "address" }, - { "name": "taker", "type": "address" }, - { "name": "makerAmount", "type": "uint256" }, - { "name": "takerAmount", "type": "uint256" } - ] - } - }, - { - "primaryType": "OrderNFT", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "OrderNFT": [ - { "name": "nonceAndMeta", "type": "uint256" }, - { "name": "expiry", "type": "uint128" }, - { "name": "makerAsset", "type": "uint256" }, - { "name": "makerAssetId", "type": "uint256" }, - { "name": "takerAsset", "type": "uint256" }, - { "name": "takerAssetId", "type": "uint256" }, - { "name": "maker", "type": "address" }, - { "name": "taker", "type": "address" }, - { "name": "makerAmount", "type": "uint256" }, - { "name": "takerAmount", "type": "uint256" } - ] - } - } - ] - } - }, - "metadata": { "owner": "AugustusRFQ" }, - "display": { - "formats": { - "Order": { - "intent": "AugustusRFQ ERC20 order", - "fields": [ - { "path": "nonceAndMeta", "label": "Nonce and metadata", "format": "raw" }, - { "path": "expiry", "label": "Expiration time", "format": "raw" }, - { "path": "makerAsset", "label": "Maker asset address", "format": "raw" }, - { "path": "takerAsset", "label": "Taker asset address", "format": "raw" }, - { "path": "maker", "label": "Maker address", "format": "raw" }, - { "path": "taker", "label": "Taker address", "format": "raw" }, - { "path": "makerAmount", "label": "Maker amount", "format": "raw" }, - { "path": "takerAmount", "label": "Taker amount", "format": "raw" } - ] - }, - "OrderNFT": { - "intent": "AugustusRFQ NFT order", - "fields": [ - { "path": "nonceAndMeta", "label": "Nonce and metadata", "format": "raw" }, - { "path": "expiry", "label": "Expiration time", "format": "raw" }, - { "path": "makerAsset", "label": "Maker asset encoded", "format": "raw" }, - { "path": "makerAssetId", "label": "Maker asset NFT ID", "format": "raw" }, - { "path": "takerAsset", "label": "Taker asset encoded", "format": "raw" }, - { "path": "takerAssetId", "label": "Taker asset NFT ID", "format": "raw" }, - { "path": "maker", "label": "Maker address", "format": "raw" }, - { "path": "taker", "label": "Taker address", "format": "raw" }, - { "path": "makerAmount", "label": "Maker amount", "format": "raw" }, - { "path": "takerAmount", "label": "Taker amount", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json deleted file mode 100644 index 82e1608f..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-arb.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 42161, "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" }], - "domain": { "name": "Permit", "chainId": 42161, "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" } - } - }, - "metadata": { "owner": "Arbitrum" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json deleted file mode 100644 index bfc1c49e..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-arbitrum-bridged-usdc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 42161, "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" }], - "domain": { "name": "Permit", "chainId": 42161, "verifyingContract": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" } - } - }, - "metadata": { "owner": "USDC (bridged)" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json deleted file mode 100644 index cb83c861..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 43114, "address": "0x60781c2586d68229fde47564546784ab3faca982" }], - "domain": { "name": "Permit", "chainId": 43114, "verifyingContract": "0x60781c2586d68229fde47564546784ab3faca982" } - } - }, - "metadata": { "owner": "Pangolin" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json deleted file mode 100644 index ab4a9341..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 43114, "address": "0x488f73cddda1de3664775ffd91623637383d6404" }], - "domain": { "name": "Permit", "chainId": 43114, "verifyingContract": "0x488f73cddda1de3664775ffd91623637383d6404" } - } - }, - "metadata": { "owner": "YetiSwap" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json deleted file mode 100644 index 1ca6854b..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-1inch-token.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 56, "address": "0x111111111117dc0aa78b770fa6a738034120c302" }], - "domain": { "name": "Permit", "chainId": 56, "verifyingContract": "0x111111111117dc0aa78b770fa6a738034120c302" } - } - }, - "metadata": { "owner": "1INCH Token" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json deleted file mode 100644 index 520d57ac..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-bsc-polkastarter-token.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 56, "address": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" }], - "domain": { "name": "Permit", "chainId": 56, "verifyingContract": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" } - } - }, - "metadata": { "owner": "PolkastarterToken" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json deleted file mode 100644 index 3e4bae1e..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-aave.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" }], - "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" } - } - }, - "metadata": { "owner": "Aave" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json deleted file mode 100644 index 50240691..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-dai.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x6b175474e89094c44da98b954eedeac495271d0f" }], - "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x6b175474e89094c44da98b954eedeac495271d0f" } - } - }, - "metadata": { "owner": "Dai Stablecoin v2.0" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json deleted file mode 100644 index db154c5a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-steth.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" }], - "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" } - } - }, - "metadata": { "owner": "Lido DAO" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json deleted file mode 100644 index a791a0a6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-lido-wsteth.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" }], - "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" } - } - }, - "metadata": { "owner": "Lido DAO" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json deleted file mode 100644 index fb1d561e..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-ethereum-usdc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }], - "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" } - } - }, - "metadata": { "owner": "USDC" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json deleted file mode 100644 index f36bf5f7..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-mimatic.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 250, "address": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" }], - "domain": { "name": "Permit", "chainId": 250, "verifyingContract": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" } - } - }, - "metadata": { "owner": "miMATIC" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json deleted file mode 100644 index 8b258fc3..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-fantom-wootrade.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 250, "address": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" }], - "domain": { "name": "Permit", "chainId": 250, "verifyingContract": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" } - } - }, - "metadata": { "owner": "Wootrade Network" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json deleted file mode 100644 index cd946312..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-bob.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 10, "address": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" }], - "domain": { "name": "Permit", "chainId": 10, "verifyingContract": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" } - } - }, - "metadata": { "owner": "BOB" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json deleted file mode 100644 index be45c7b5..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-optimism-op.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 10, "address": "0x4200000000000000000000000000000000000042" }], - "domain": { "name": "Permit", "chainId": 10, "verifyingContract": "0x4200000000000000000000000000000000000042" } - } - }, - "metadata": { "owner": "Optimism" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json deleted file mode 100644 index 2244a8f5..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-dai.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 137, "address": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" }], - "domain": { "name": "Permit", "chainId": 137, "verifyingContract": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" } - } - }, - "metadata": { "owner": "Aave Matic Market DAI" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json deleted file mode 100644 index 899b9af8..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/permit/eip712-permit-polygon-aave-weth.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 137, "address": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" }], - "domain": { "name": "Permit", "chainId": 137, "verifyingContract": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" } - } - }, - "metadata": { "owner": "Aave Matic Market WETH" } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json deleted file mode 100644 index 821b2124..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/poap/calldata-PoapBridge.json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": null, - "contract": { - "deployments": [{ "chainId": 1, "address": "0x0bb4D3e88243F4A057Db77341e6916B0e449b158" }], - "abi": [ - { - "type": "function", - "name": "NAME", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "feeReceiver", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address payable", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "migrationFee", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "mintToken", - "inputs": [ - { "name": "eventId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "tokenId", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "receiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { - "name": "expirationTime", - "type": "uint256", - "internalType": "uint256", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "signature", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "processed", - "inputs": [{ "name": "", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "renouncePoapAdmin", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setFeeReceiver", - "inputs": [ - { - "name": "_feeReceiver", - "type": "address", - "internalType": "address payable", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setMigrationFee", - "inputs": [ - { "name": "_migrationFee", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setValidSigner", - "inputs": [ - { "name": "_validSigner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "validSigner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "POAP", "info": { "url": "https://poap.xyz/", "legalName": "Proof of Attendance Protocol" } }, - "display": { - "formats": { - "mintToken(uint256,uint256,address,uint256,bytes)": { - "$id": null, - "intent": "Mint POAP", - "screens": null, - "fields": [ - { "$id": null, "label": "Token Id", "format": "raw", "path": "#.tokenId", "value": null }, - { - "$id": null, - "label": "Receiver", - "format": "addressName", - "params": { "types": ["eoa", "wallet"], "sources": null }, - "path": "#.receiver", - "value": null - }, - { - "$id": null, - "label": "Expiration Time", - "format": "date", - "params": { "encoding": "timestamp" }, - "path": "#.expirationTime", - "value": null - } - ], - "required": ["#.tokenId", "#.receiver"], - "excluded": ["#.eventId", "#.signature"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json deleted file mode 100644 index 4d7d4f65..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/quickswap/calldata-QuickSwap.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "context": { - "$id": "QuickSwap", - "contract": { - "deployments": [{ "chainId": 137, "address": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff" }], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/polygon/quickswap/abis/0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff.abi.json" - } - }, - "metadata": { - "owner": "QuickSwap", - "info": { "legalName": "QuickSwap", "deploymentDate": "2020-09-25T10:52:01Z", "url": "https://quickswap.exchange" } - }, - "display": { - "formats": { - "0x38ed1739": { - "$id": "swapExactTokensForTokens", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountIn", "amountOutMin", "to"] - }, - "0x18cbafe5": { - "$id": "swapExactTokensForETH", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "amount" }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountIn", "amountOutMin", "to"] - }, - "0x7ff36ab5": { - "$id": "swapExactETHForTokens", - "intent": "Swap", - "fields": [ - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountOutMin", "to"] - }, - "0x8803dbee": { - "$id": "swapTokensForExactTokens", - "intent": "Swap", - "fields": [ - { "path": "amountOut", "label": "Amount to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, - { "path": "amountInMax", "label": "Maximum to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountOut", "amountInMax", "to"] - }, - "0x5c11d795": { - "$id": "swapExactTokensForTokensSupportingFeeOnTransferTokens", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountIn", "amountOutMin", "to"] - }, - "0x4a25d94a": { - "$id": "swapTokensForExactETH", - "intent": "Swap", - "fields": [ - { "path": "amountOut", "label": "Amount to Receive", "format": "amount" }, - { "path": "amountInMax", "label": "Maximum to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountOut", "amountInMax", "to"] - }, - "0xb6f9de95": { - "$id": "swapExactETHForTokensSupportingFeeOnTransferTokens", - "intent": "Swap", - "fields": [ - { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountOutMin", "to"] - }, - "0xe8e33700": { - "$id": "addLiquidity", - "intent": "Add Liquidity", - "fields": [ - { "path": "amountADesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, - { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, - { "path": "amountBDesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, - { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountADesired", "amountAMin", "amountBDesired", "amountBMin", "to"] - }, - "0xf305d719": { - "$id": "addLiquidityETH", - "intent": "Add Liquidity", - "fields": [ - { "path": "amountTokenDesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountTokenDesired", "amountTokenMin", "amountETHMin", "to"] - }, - "0xbaa2abde": { - "$id": "removeLiquidity", - "intent": "Remove Liquidity", - "fields": [ - { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, - { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountAMin", "amountBMin", "to"] - }, - "0x02751cec": { - "$id": "removeLiquidityETH", - "intent": "Remove Liquidity", - "fields": [ - { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "amountETHMin", "label": "Minimum amount", "format": "tokenAmount" }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - }, - "0x2195995c": { - "$id": "removeLiquidityWithPermit", - "intent": "Remove Liquidity", - "fields": [ - { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, - { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountAMin", "amountBMin", "to"] - }, - "0xded9382a": { - "$id": "removeLiquidityETHWithPermit", - "intent": "Remove Liquidity", - "fields": [ - { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "amountETHMin", "label": "Minimum amount", "format": "tokenAmount" }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - }, - "0xaf2979eb": { - "$id": "removeLiquidityETHSupportingFeeOnTransferTokens", - "intent": "Remove Liquidity", - "fields": [ - { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - }, - "0x5b0d5984": { - "$id": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - "intent": "Remove Liquidity", - "fields": [ - { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, - { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json deleted file mode 100644 index c7585cdd..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-1155.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" }], - "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" }, - "schemas": [ - { - "primaryType": "Mint1155", - "types": { - "Mint1155": [ - { "name": "tokenId", "type": "uint256" }, - { "name": "supply", "type": "uint256" }, - { "name": "tokenURI", "type": "string" }, - { "name": "creators", "type": "Part[]" }, - { "name": "royalties", "type": "Part[]" } - ], - "Part": [{ "name": "account", "type": "address" }, { "name": "value", "type": "uint96" }] - } - } - ] - } - }, - "metadata": { "owner": "Rarible ERC-1155 Collection" }, - "display": { - "formats": { - "Mint1155": { - "intent": "Lazy Mint ERC-1155", - "fields": [ - { "path": "tokenId", "label": "Token ID", "format": "raw" }, - { "path": "tokenURI", "label": "Token URI", "format": "raw" }, - { "path": "supply", "label": "Token Supply", "format": "raw" }, - { "path": "creators.[].account", "label": "Creator account address", "format": "raw" }, - { "path": "creators.[].value", "label": "Creator value (10000 = 100%)", "format": "raw" }, - { "path": "royalties.[].account", "label": "Royalties account address", "format": "raw" }, - { "path": "royalties.[].value", "label": "Royalties value (10000 = 100%)", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json deleted file mode 100644 index 5a1fa851..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-erc-721.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xc9154424b823b10579895ccbe442d41b9abd96ed" }], - "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0xc9154424b823b10579895ccbe442d41b9abd96ed" }, - "schemas": [ - { - "primaryType": "Mint721", - "types": { - "Mint721": [ - { "name": "tokenId", "type": "uint256" }, - { "name": "tokenURI", "type": "string" }, - { "name": "creators", "type": "Part[]" }, - { "name": "royalties", "type": "Part[]" } - ], - "Part": [{ "name": "account", "type": "address" }, { "name": "value", "type": "uint96" }] - } - } - ] - } - }, - "metadata": { "owner": "Rarible ERC-721 Collection" }, - "display": { - "formats": { - "Mint721": { - "intent": "Lazy Mint ERC-721", - "fields": [ - { "path": "tokenId", "label": "Token ID", "format": "raw" }, - { "path": "tokenURI", "label": "Token URI", "format": "raw" }, - { "path": "creators.[].account", "label": "Creator account address", "format": "raw" }, - { "path": "creators.[].value", "label": "Creator value (10000 = 100%)", "format": "raw" }, - { "path": "royalties.[].account", "label": "Royalties account address", "format": "raw" }, - { "path": "royalties.[].value", "label": "Royalties value (10000 = 100%)", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json deleted file mode 100644 index 7736de81..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-v2.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [ - { "chainId": 1, "address": "0x9757f2d2b135150bbeb65308d4a91804107cd8d6" }, - { "chainId": 137, "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" } - ], - "domain": { "name": "Rarible" }, - "schemas": [ - { - "primaryType": "Order", - "types": { - "Asset": [{ "name": "assetType", "type": "AssetType" }, { "name": "value", "type": "uint256" }], - "AssetType": [{ "name": "assetClass", "type": "bytes4" }, { "name": "data", "type": "bytes" }], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Order": [ - { "name": "maker", "type": "address" }, - { "name": "makeAsset", "type": "Asset" }, - { "name": "taker", "type": "address" }, - { "name": "takeAsset", "type": "Asset" }, - { "name": "salt", "type": "uint256" }, - { "name": "start", "type": "uint256" }, - { "name": "end", "type": "uint256" }, - { "name": "dataType", "type": "bytes4" }, - { "name": "data", "type": "bytes" } - ] - } - }, - { - "primaryType": "MetaTransaction", - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "salt", "type": "bytes32" } - ], - "MetaTransaction": [ - { "name": "nonce", "type": "uint256" }, - { "name": "from", "type": "address" }, - { "name": "functionSignature", "type": "bytes" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Rarible ExchangeV2" }, - "display": { - "formats": { - "Order": { - "intent": "List Order", - "fields": [ - { "path": "maker", "label": "Order maker address", "format": "raw" }, - { "path": "makeAsset.value", "label": "Order make asset value", "format": "raw" }, - { "path": "taker", "label": "Order taker address", "format": "raw" }, - { "path": "takeAsset.value", "label": "Order take asset value", "format": "raw" }, - { "path": "start", "label": "Order start time", "format": "raw" }, - { "path": "end", "label": "Order end time", "format": "raw" } - ], - "excluded": [ - "makeAsset.assetType.assetClass", - "dataType", - "makeAsset.assetType.data", - "takeAsset.assetType.data", - "takeAsset.assetType.assetClass", - "data", - "salt" - ] - }, - "MetaTransaction": { - "intent": "Meta Transaction", - "fields": [ - { "path": "from", "label": "User Address", "format": "raw" }, - { "path": "nonce", "label": "Meta Transaction Nonce", "format": "raw" } - ], - "excluded": ["functionSignature"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json deleted file mode 100644 index 0d95c3ac..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/rarible/eip712-rarible-exchange-wrapper.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" }], - "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0x7f19564c35c681099c0c857a7141836cf7edaa53" }, - "schemas": [ - { - "primaryType": "Order", - "types": { - "Asset": [{ "name": "assetType", "type": "AssetType" }, { "name": "value", "type": "uint256" }], - "AssetType": [{ "name": "assetClass", "type": "bytes4" }, { "name": "data", "type": "bytes" }], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "Order": [ - { "name": "maker", "type": "address" }, - { "name": "makeAsset", "type": "Asset" }, - { "name": "taker", "type": "address" }, - { "name": "takeAsset", "type": "Asset" }, - { "name": "salt", "type": "uint256" }, - { "name": "start", "type": "uint256" }, - { "name": "end", "type": "uint256" }, - { "name": "dataType", "type": "bytes4" }, - { "name": "data", "type": "bytes" } - ] - } - } - ] - } - }, - "metadata": { "owner": "RaribleExchangeWrapper" }, - "display": { - "formats": { - "Order": { - "intent": "List Order", - "fields": [ - { "path": "maker", "label": "Order maker address", "format": "raw" }, - { "path": "makeAsset.value", "label": "Order make asset value", "format": "raw" }, - { "path": "taker", "label": "Order taker address", "format": "raw" }, - { "path": "takeAsset.value", "label": "Order take asset value", "format": "raw" }, - { "path": "start", "label": "Order start time", "format": "raw" }, - { "path": "end", "label": "Order end time", "format": "raw" } - ], - "excluded": [ - "makeAsset.assetType.assetClass", - "dataType", - "makeAsset.assetType.data", - "takeAsset.assetType.data", - "takeAsset.assetType.assetClass", - "data", - "salt" - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json deleted file mode 100644 index 540af8c3..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/smartcredit/eip712-smartcredit.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" }], - "domain": { "name": "SmartCredit.io", "chainId": 1, "verifyingContract": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" }, - "schemas": [ - { - "primaryType": "LoanRequest", - "types": { - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ], - "LoanRequest": [ - { "name": "collateralAddress", "type": "address" }, - { "name": "initialCollateralAmount", "type": "uint256" }, - { "name": "loanAmount", "type": "uint256" }, - { "name": "loanId", "type": "bytes32" }, - { "name": "loanInterestRate", "type": "uint64" }, - { "name": "loanTerm", "type": "uint64" }, - { "name": "underlyingAddress", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "SMARTCREDIT" }, - "display": { - "formats": { - "LoanRequest": { - "intent": "SmartCredit.io", - "fields": [ - { "path": "collateralAddress", "label": "Collateral address", "format": "raw" }, - { "path": "initialCollateralAmount", "label": "Initial Collateral Amount", "format": "raw" }, - { "path": "loanAmount", "label": "Loan Amount", "format": "raw" }, - { "path": "loanId", "label": "Loan ID", "format": "raw" }, - { "path": "loanInterestRate", "label": "Loan interest rate", "format": "raw" }, - { "path": "loanTerm", "label": "Load Term", "format": "raw" }, - { "path": "underlyingAddress", "label": "Underlying Address", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json deleted file mode 100644 index c8462055..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/starkgate/calldata-StarkGate-STRK.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "L1StarkGateSTRKbridge", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x6ad74D4B79A06A492C288eF66Ef868Dd981fdC85", - "deployments": [{ "chainId": 1, "address": "0xcE5485Cfb26914C5dcE00B9BAF0580364daFC7a4" }] - } - }, - "metadata": { - "owner": "Starknet", - "info": { "url": "https://starkgate.starknet.io/", "legalName": "StarkWare", "deploymentDate": "2024-10-01T00:00:00Z" } - }, - "display": { - "formats": { - "deposit(address token, uint256 amount, uint256 l2Recipient)": { - "$id": "deposit", - "intent": "Bridge", - "fields": [ - { "path": "amount", "label": "Amount to deposit", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "l2Recipient", "label": "Recipient", "format": "raw" }, - { "path": "@.value", "label": "Deposit fee", "format": "amount" } - ], - "required": ["token", "amount", "l2Recipient"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json deleted file mode 100644 index abfecbc8..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swell/calldata-swell.json +++ /dev/null @@ -1,343 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "contract": { - "deployments": [{ "chainId": 1, "address": "0x4796d939b22027c2876d5ce9fde52da9ec4e2362" }], - "abi": [ - { - "type": "function", - "name": "addToWhitelist", - "inputs": [{ "name": "_address", "type": "address", "internalType": "address" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "allowance", - "inputs": [ - { "name": "owner", "type": "address", "internalType": "address" }, - { "name": "spender", "type": "address", "internalType": "address" } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], - "stateMutability": "view" - }, - { - "type": "function", - "name": "approve", - "inputs": [ - { "name": "spender", "type": "address", "internalType": "address" }, - { "name": "amount", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "balanceOf", - "inputs": [{ "name": "account", "type": "address", "internalType": "address" }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], - "stateMutability": "view" - }, - { - "type": "function", - "name": "batchAddToWhitelist", - "inputs": [{ "name": "_addresses", "type": "address[]", "internalType": "address[]" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "batchRemoveFromWhitelist", - "inputs": [{ "name": "_addresses", "type": "address[]", "internalType": "address[]" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "burn", - "inputs": [{ "name": "amount", "type": "uint256", "internalType": "uint256" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "decimals", - "inputs": [], - "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8" }], - "stateMutability": "view" - }, - { - "type": "function", - "name": "decreaseAllowance", - "inputs": [ - { "name": "spender", "type": "address", "internalType": "address" }, - { "name": "subtractedValue", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], - "stateMutability": "nonpayable" - }, - { "type": "function", "name": "deposit", "inputs": [], "outputs": [], "stateMutability": "payable" }, - { - "type": "function", - "name": "depositViaDepositManager", - "inputs": [ - { "name": "_amount", "type": "uint256", "internalType": "uint256" }, - { "name": "_to", "type": "address", "internalType": "address" }, - { "name": "_minRswETH", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "depositWithReferral", - "inputs": [{ "name": "referral", "type": "address", "internalType": "address" }], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "increaseAllowance", - "inputs": [ - { "name": "spender", "type": "address", "internalType": "address" }, - { "name": "addedValue", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "initialize", - "inputs": [{ "name": "_accessControlManager", "type": "address", "internalType": "contract IAccessControlManager" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "removeFromWhitelist", - "inputs": [{ "name": "_address", "type": "address", "internalType": "address" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "reprice", - "inputs": [ - { "name": "_preRewardETHReserves", "type": "uint256", "internalType": "uint256" }, - { "name": "_newETHRewards", "type": "uint256", "internalType": "uint256" }, - { "name": "_rswETHTotalSupply", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setMaximumRepriceDifferencePercentage", - "inputs": [{ "name": "_maximumRepriceDifferencePercentage", "type": "uint256", "internalType": "uint256" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setMaximumRepriceRswETHDifferencePercentage", - "inputs": [{ "name": "_maximumRepriceRswETHDifferencePercentage", "type": "uint256", "internalType": "uint256" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setSwellTreasuryRewardPercentage", - "inputs": [{ "name": "_newSwellTreasuryRewardPercentage", "type": "uint256", "internalType": "uint256" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setNodeOperatorRewardPercentage", - "inputs": [{ "name": "_newNodeOperatorRewardPercentage", "type": "uint256", "internalType": "uint256" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setMinimumRepriceTime", - "inputs": [{ "name": "_minimumRepriceTime", "type": "uint256", "internalType": "uint256" }], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transfer", - "inputs": [ - { "name": "to", "type": "address", "internalType": "address" }, - { "name": "amount", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferFrom", - "inputs": [ - { "name": "from", "type": "address", "internalType": "address" }, - { "name": "to", "type": "address", "internalType": "address" }, - { "name": "amount", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "withdrawERC20", - "inputs": [{ "name": "_token", "type": "address", "internalType": "contract IERC20" }], - "outputs": [], - "stateMutability": "nonpayable" - } - ] - } - }, - "metadata": { - "owner": "Swell Network Deployer", - "info": { "legalName": "Swell", "url": "https://www.swellnetwork.io/" }, - "constants": { "swellToken": "0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0" } - }, - "display": { - "formats": { - "addToWhitelist(address)": { - "intent": "Add to whitelist a single address", - "fields": [{ "label": "Address", "format": "addressName", "params": { "types": ["wallet", "eoa", "contract"] }, "path": "#._address" }] - }, - "allowance(address,address)": { - "intent": "Remaining number of tokens that `spender` will be allowed to spend", - "fields": [ - { "label": "Owner", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.owner" }, - { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" } - ] - }, - "approve(address,uint256)": { - "intent": "Sets `amount` as the allowance of `spender` over the caller's tokens", - "fields": [ - { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" }, - { "label": "Amount", "format": "tokenAmount", "path": "amount", "params": { "token": "$.metadata.constants.swellToken" } } - ] - }, - "balanceOf(address)": { "fields": [{ "label": "Account", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.account" }] }, - "batchAddToWhitelist(address[])": { - "intent": "Add to whitelist several addresses", - "fields": [ - { - "label": "Addresses", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract"] }, - "path": "#._addresses.[]" - } - ] - }, - "batchRemoveFromWhitelist(address[])": { - "intent": "Remove several addresses from whitelist", - "fields": [ - { - "label": "Addresses", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract"] }, - "path": "#._addresses.[]" - } - ] - }, - "burn(uint256)": { "fields": [{ "label": "Amount", "format": "amount", "path": "#.amount" }] }, - "decreaseAllowance(address,uint256)": { - "intent": "Decrease allowance", - "fields": [ - { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" }, - { "label": "Subtracted Value", "format": "amount", "path": "#.subtractedValue" } - ] - }, - "depositViaDepositManager(uint256,address,uint256)": { - "intent": "Deposit via Deposit Manager", - "fields": [ - { "label": "Amount", "format": "amount", "path": "#._amount" }, - { "label": "To", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#._to" }, - { "label": "Min Rsw ETH", "format": "raw", "path": "#._minRswETH" } - ] - }, - "depositWithReferral(address)": { - "intent": "Deposit with referral", - "fields": [{ "label": "Referral", "format": "addressName", "params": { "types": ["wallet", "eoa", "contract"] }, "path": "#.referral" }] - }, - "increaseAllowance(address,uint256)": { - "intent": "Increase allowance", - "fields": [ - { "label": "Spender", "format": "addressName", "params": { "types": ["contract"] }, "path": "#.spender" }, - { "label": "Added Value", "format": "amount", "path": "#.addedValue" } - ] - }, - "initialize(address)": { - "intent": "Initialize", - "fields": [ - { - "label": "Access Control Manager", - "format": "addressName", - "params": { "types": ["wallet", "eoa", "contract"] }, - "path": "#._accessControlManager" - } - ] - }, - "removeFromWhitelist(address)": { - "intent": "Remove from whitelist a single address", - "fields": [{ "label": "Address", "format": "addressName", "params": { "types": ["wallet", "eoa", "contract"] }, "path": "#._address" }] - }, - "reprice(uint256,uint256,uint256)": { - "intent": "Reprice", - "fields": [ - { "label": "Pre Reward ETH Reserves", "format": "raw", "path": "#._preRewardETHReserves" }, - { "label": "New ETH Rewards", "format": "raw", "path": "#._newETHRewards" }, - { "label": "Rsw ETH Total Supply", "format": "raw", "path": "#._rswETHTotalSupply" } - ] - }, - "setMaximumRepriceDifferencePercentage(uint256)": { - "intent": "Set maximum reprice difference percentage", - "fields": [{ "label": "Maximum Reprice Difference Percentage", "format": "amount", "path": "#._maximumRepriceDifferencePercentage" }] - }, - "setMaximumRepriceRswETHDifferencePercentage(uint256)": { - "intent": "Set maximum reprice difference percentage in rsweth", - "fields": [ - { - "label": "Maximum Reprice Rsw ETH Difference Percentage", - "format": "amount", - "path": "#._maximumRepriceRswETHDifferencePercentage" - } - ] - }, - "setMinimumRepriceTime(uint256)": { - "intent": "Set minimum reprice time", - "fields": [ - { "label": "Minimum Reprice Time", "format": "date", "params": { "encoding": "timestamp" }, "path": "#._minimumRepriceTime" } - ] - }, - "setNodeOperatorRewardPercentage(uint256)": { - "intent": "Set node operator reward percentage", - "fields": [{ "label": "New Node Operator Reward Percentage", "format": "raw", "path": "#._newNodeOperatorRewardPercentage" }] - }, - "setSwellTreasuryRewardPercentage(uint256)": { - "intent": "Set swell treasury reward percentage", - "fields": [{ "label": "New Swell Treasury Reward Percentage", "format": "raw", "path": "#._newSwellTreasuryRewardPercentage" }] - }, - "transfer(address,uint256)": { - "intent": "Moves `amount` tokens from the caller's account to `to`", - "fields": [ - { "label": "To", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.to" }, - { "label": "Amount", "format": "tokenAmount", "path": "amount", "params": { "token": "$.metadata.constants.swellToken" } } - ] - }, - "transferFrom(address,address,uint256)": { - "intent": "Moves `amount` tokens from `from` to `to` using the allowance mechanism", - "fields": [ - { "label": "From", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.from" }, - { "label": "To", "format": "addressName", "params": { "types": ["eoa", "wallet"] }, "path": "#.to" }, - { "label": "Amount", "format": "tokenAmount", "path": "amount", "params": { "token": "$.metadata.constants.swellToken" } } - ] - }, - "withdrawERC20(address)": { "fields": [{ "label": "Token", "format": "addressName", "params": { "types": ["token"] }, "path": "#._token" }] } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json deleted file mode 100644 index fbe15e77..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-ChsbToBorgMigrator.json +++ /dev/null @@ -1,265 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "CHSB to BORG Migrator", - "contract": { - "deployments": [{ "chainId": 1, "address": "0xaA854688caAB725fe17b7D21b46fDA5AF365985a" }], - "abi": [ - { - "type": "function", - "name": "BORG", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IERC20Upgradeable", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "CHSB", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IERC20Upgradeable", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getImplementation", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialize", - "inputs": [ - { "name": "_chsb", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_borg", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "owner_", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }, - { "name": "_manager", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "manager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "migrate", - "inputs": [{ "name": "_amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "paused", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setManager", - "inputs": [{ "name": "_manager", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "totalChsbMigrated", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "data", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { - "owner": "SwissBorg Migrator", - "info": { "legalName": "SwissBorg", "url": "https://migration.swissborg.com" }, - "constants": { "chsbAddress": "0xba9d4199faB4f26eFE3551D490E3821486f135Ba" } - }, - "display": { - "formats": { - "migrate(uint256)": { - "$id": "migrate", - "intent": "Migrate CHSB to BORG", - "fields": [ - { - "$id": "migrate", - "label": "CHSB Amount", - "format": "tokenAmount", - "params": { "token": "$.metadata.constants.chsbAddress" }, - "path": "#._amount" - } - ], - "required": ["_amount"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json deleted file mode 100644 index f78c8170..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-NttManager.json +++ /dev/null @@ -1,775 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "BORG Bridge (Outbound)", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x66a28B080918184851774a89aB94850a41f6a1e5" }], - "abi": [ - { - "type": "function", - "name": "NTT_MANAGER_VERSION", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "attestationReceived", - "inputs": [ - { "name": "sourceChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { - "name": "sourceNttManagerAddress", - "type": "bytes32", - "internalType": "bytes32", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "payload", - "type": "tuple", - "internalType": "struct TransceiverStructs.NttManagerMessage", - "components": [ - { "name": "id", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "sender", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "cancelOutboundQueuedTransfer", - "inputs": [ - { "name": "messageSequence", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "chainId", - "inputs": [], - "outputs": [{ "name": "", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "completeInboundQueuedTransfer", - "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "completeOutboundQueuedTransfer", - "inputs": [ - { "name": "messageSequence", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "executeMsg", - "inputs": [ - { "name": "sourceChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { - "name": "sourceNttManagerAddress", - "type": "bytes32", - "internalType": "bytes32", - "components": null, - "indexed": null, - "unit": null - }, - { - "name": "message", - "type": "tuple", - "internalType": "struct TransceiverStructs.NttManagerMessage", - "components": [ - { "name": "id", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "sender", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getCurrentInboundCapacity", - "inputs": [{ "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getCurrentOutboundCapacity", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getInboundLimitParams", - "inputs": [{ "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct IRateLimiter.RateLimitParams", - "components": [ - { "name": "limit", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, - { "name": "currentCapacity", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, - { "name": "lastTxTimestamp", "type": "uint64", "internalType": "uint64", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getInboundQueuedTransfer", - "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct IRateLimiter.InboundQueuedTransfer", - "components": [ - { "name": "amount", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, - { "name": "txTimestamp", "type": "uint64", "internalType": "uint64", "components": null }, - { "name": "recipient", "type": "address", "internalType": "address", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getMigratesImmutables", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getMode", - "inputs": [], - "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getOutboundLimitParams", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct IRateLimiter.RateLimitParams", - "components": [ - { "name": "limit", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, - { "name": "currentCapacity", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, - { "name": "lastTxTimestamp", "type": "uint64", "internalType": "uint64", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getOutboundQueuedTransfer", - "inputs": [{ "name": "queueSequence", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct IRateLimiter.OutboundQueuedTransfer", - "components": [ - { "name": "recipient", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "refundAddress", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "amount", "type": "uint72", "internalType": "TrimmedAmount", "components": null }, - { "name": "txTimestamp", "type": "uint64", "internalType": "uint64", "components": null }, - { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null }, - { "name": "sender", "type": "address", "internalType": "address", "components": null }, - { "name": "transceiverInstructions", "type": "bytes", "internalType": "bytes", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getPeer", - "inputs": [{ "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct INttManager.NttManagerPeer", - "components": [ - { "name": "peerAddress", "type": "bytes32", "internalType": "bytes32", "components": null }, - { "name": "tokenDecimals", "type": "uint8", "internalType": "uint8", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getThreshold", - "inputs": [], - "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTransceiverInfo", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "internalType": "struct TransceiverRegistry.TransceiverInfo[]", - "components": [ - { "name": "registered", "type": "bool", "internalType": "bool", "components": null }, - { "name": "enabled", "type": "bool", "internalType": "bool", "components": null }, - { "name": "index", "type": "uint8", "internalType": "uint8", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getTransceivers", - "inputs": [], - "outputs": [{ "name": "result", "type": "address[]", "internalType": "address[]", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialize", - "inputs": [], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isMessageApproved", - "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isMessageExecuted", - "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isPaused", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "messageAttestations", - "inputs": [{ "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "count", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "migrate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "mode", - "inputs": [], - "outputs": [ - { "name": "", "type": "uint8", "internalType": "enum IManagerBase.Mode", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "nextMessageSequence", - "inputs": [], - "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pauser", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "quoteDeliveryPrice", - "inputs": [ - { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { - "name": "transceiverInstructions", - "type": "bytes", - "internalType": "bytes", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [ - { "name": "", "type": "uint256[]", "internalType": "uint256[]", "components": null, "indexed": null, "unit": null }, - { "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "rateLimitDuration", - "inputs": [], - "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "removeTransceiver", - "inputs": [{ "name": "transceiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setInboundLimit", - "inputs": [ - { "name": "limit", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "chainId_", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setOutboundLimit", - "inputs": [{ "name": "limit", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setPeer", - "inputs": [ - { "name": "peerChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "peerContract", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "decimals", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }, - { "name": "inboundLimit", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setThreshold", - "inputs": [{ "name": "threshold", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setTransceiver", - "inputs": [{ "name": "transceiver", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "token", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "tokenDecimals", - "inputs": [], - "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transceiverAttestedToMessage", - "inputs": [ - { "name": "digest", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "index", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transfer", - "inputs": [ - { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "recipient", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } - ], - "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transfer", - "inputs": [ - { "name": "amount", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }, - { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "recipient", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "refundAddress", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "shouldQueue", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }, - { - "name": "transceiverInstructions", - "type": "bytes", - "internalType": "bytes", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64", "components": null, "indexed": null, "unit": null }], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferPauserCapability", - "inputs": [{ "name": "newPauser", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "unpause", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "upgrade", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { - "owner": "SwissBorg Bridge", - "info": { "legalName": "SwissBorg", "url": "https://swissborg.com/bridge" }, - "constants": { "borgAddress": "0x64d0f55Cd8C7133a9D7102b13987235F486F2224" } - }, - "display": { - "formats": { - "transfer(uint256,uint16,bytes32)": { - "$id": "transfer", - "intent": "Bridge BORG", - "fields": [ - { - "$id": "amount", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "$.metadata.constants.borgAddress" }, - "path": "#.amount" - }, - { "$id": "destinationChain", "label": "Destination Chain", "format": "raw", "params": null, "path": "#.recipientChain" }, - { - "$id": "encodedDestinationAddress", - "label": "Encoded Destination Address", - "format": "raw", - "params": null, - "path": "#.recipient" - } - ], - "required": ["#.amount", "#.recipientChain", "#.recipient"] - }, - "transfer(uint256,uint16,bytes32,bytes32,bool,bytes)": { - "$id": "transfer2", - "intent": "Bridge BORG", - "fields": [ - { - "$id": "amount", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "$.metadata.constants.borgAddress" }, - "path": "#.amount" - }, - { "$id": "destinationChain", "label": "Destination Chain", "format": "raw", "params": null, "path": "#.recipientChain" }, - { - "$id": "encodedDestinationAddress", - "label": "Encoded Destination Address", - "format": "raw", - "params": null, - "path": "#.recipient" - }, - { "$id": "refundAddress", "label": "Refund Address", "format": "raw", "params": null, "path": "#.refundAddress" }, - { "$id": "shouldQueue", "label": "Should Queue", "format": "raw", "params": null, "path": "#.shouldQueue" }, - { - "$id": "transceiverInstructions", - "label": "Transceiver Instructions", - "format": "raw", - "params": null, - "path": "#.transceiverInstructions" - }, - { "$id": "relayingFee", "label": "Relaying Fee", "path": "@.value", "format": "amount" } - ], - "required": ["#.amount", "#.recipientChain", "#.recipient"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json deleted file mode 100644 index 313657a7..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/swissborg/calldata-WormholeTransceiver.json +++ /dev/null @@ -1,515 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "BORG Bridge (Inbound)", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x45E581d6841F0a99Fc34F70871ef56b353813ddb" }], - "abi": [ - { - "type": "function", - "name": "WORMHOLE_TRANSCEIVER_VERSION", - "inputs": [], - "outputs": [{ "name": "", "type": "string", "internalType": "string", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "consistencyLevel", - "inputs": [], - "outputs": [{ "name": "", "type": "uint8", "internalType": "uint8", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "encodeWormholeTransceiverInstruction", - "inputs": [ - { - "name": "instruction", - "type": "tuple", - "internalType": "struct IWormholeTransceiver.WormholeTransceiverInstruction", - "components": [{ "name": "shouldSkipRelayerSend", "type": "bool", "internalType": "bool", "components": null }], - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "gasLimit", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getMigratesImmutables", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getNttManagerOwner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getNttManagerToken", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "getWormholePeer", - "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "initialize", - "inputs": [], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isPaused", - "inputs": [], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isSpecialRelayingEnabled", - "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isVAAConsumed", - "inputs": [{ "name": "hash", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isWormholeEvmChain", - "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "isWormholeRelayingEnabled", - "inputs": [{ "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }], - "outputs": [{ "name": "", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "migrate", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "nttManager", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "nttManagerToken", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "parseWormholeTransceiverInstruction", - "inputs": [{ "name": "encoded", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], - "outputs": [ - { - "name": "instruction", - "type": "tuple", - "internalType": "struct IWormholeTransceiver.WormholeTransceiverInstruction", - "components": [{ "name": "shouldSkipRelayerSend", "type": "bool", "internalType": "bool", "components": null }], - "indexed": null, - "unit": null - } - ], - "stateMutability": "pure", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "pauser", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "quoteDeliveryPrice", - "inputs": [ - { "name": "targetChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { - "name": "instruction", - "type": "tuple", - "internalType": "struct TransceiverStructs.TransceiverInstruction", - "components": [ - { "name": "index", "type": "uint8", "internalType": "uint8", "components": null }, - { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } - ], - "indexed": null, - "unit": null - } - ], - "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "receiveMessage", - "inputs": [{ "name": "encodedMessage", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "receiveWormholeMessages", - "inputs": [ - { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, - { - "name": "additionalMessages", - "type": "bytes[]", - "internalType": "bytes[]", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "sourceAddress", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null }, - { "name": "sourceChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "deliveryHash", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "sendMessage", - "inputs": [ - { "name": "recipientChain", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { - "name": "instruction", - "type": "tuple", - "internalType": "struct TransceiverStructs.TransceiverInstruction", - "components": [ - { "name": "index", "type": "uint8", "internalType": "uint8", "components": null }, - { "name": "payload", "type": "bytes", "internalType": "bytes", "components": null } - ], - "indexed": null, - "unit": null - }, - { "name": "nttManagerMessage", "type": "bytes", "internalType": "bytes", "components": null, "indexed": null, "unit": null }, - { - "name": "recipientNttManagerAddress", - "type": "bytes32", - "internalType": "bytes32", - "components": null, - "indexed": null, - "unit": null - }, - { "name": "refundAddress", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setIsSpecialRelayingEnabled", - "inputs": [ - { "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "isEnabled", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setIsWormholeEvmChain", - "inputs": [ - { "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "isEvm", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setIsWormholeRelayingEnabled", - "inputs": [ - { "name": "chainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "isEnabled", "type": "bool", "internalType": "bool", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "setWormholePeer", - "inputs": [ - { "name": "peerChainId", "type": "uint16", "internalType": "uint16", "components": null, "indexed": null, "unit": null }, - { "name": "peerContract", "type": "bytes32", "internalType": "bytes32", "components": null, "indexed": null, "unit": null } - ], - "outputs": [], - "stateMutability": "payable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "specialRelayer", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ISpecialRelayer", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferPauserCapability", - "inputs": [{ "name": "newPauser", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "transferTransceiverOwnership", - "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address", "components": null, "indexed": null, "unit": null }], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "upgrade", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address", - "components": null, - "indexed": null, - "unit": null - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "wormhole", - "inputs": [], - "outputs": [{ "name": "", "type": "address", "internalType": "contract IWormhole", "components": null, "indexed": null, "unit": null }], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - }, - { - "type": "function", - "name": "wormholeRelayer", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IWormholeRelayer", - "components": null, - "indexed": null, - "unit": null - } - ], - "stateMutability": "view", - "constant": null, - "payable": null, - "gas": null, - "signature": null - } - ], - "addressMatcher": null, - "factory": null - } - }, - "metadata": { "owner": "SwissBorg Bridge", "info": { "legalName": "SwissBorg", "url": "https://swissborg.com/bridge" } }, - "display": { - "formats": { - "receiveMessage(bytes)": { - "$id": "receiveMessage", - "intent": "Receive Bridged BORG", - "fields": [{ "$id": "encodedMessage", "label": "Encoded Message", "format": "raw", "params": null, "path": "#.encodedMessage" }], - "required": ["#.encodedMessage"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json deleted file mode 100644 index d4c379d0..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-arb-token.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 42161, "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" }], - "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" }, - "schemas": [ - { - "primaryType": "Delegation", - "types": { - "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Arbitrum" }, - "display": { - "formats": { - "Delegation": { - "intent": "ARB token", - "fields": [ - { "path": "delegatee", "label": "Delegatee", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "expiry", "label": "Expiry", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json deleted file mode 100644 index 610388a7..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-core-governor.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 42161, "address": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" }], - "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ] - } - } - ] - } - }, - "metadata": { "owner": "L2ArbitrumGovernor" }, - "display": { - "formats": { - "Ballot": { - "intent": "Arbitrum Foundation: Core Governor", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json deleted file mode 100644 index ff1816b5..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-arbitrum-treasury-governor.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 42161, "address": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" }], - "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ] - } - } - ] - } - }, - "metadata": { "owner": "L2ArbitrumGovernor" }, - "display": { - "formats": { - "Ballot": { - "intent": "Arbitrum Foundation: Treasury Governor", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json deleted file mode 100644 index bf0fe8be..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bitcoin-governor.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "GTC Governor Alpha" }, - "display": { - "formats": { - "Ballot": { - "intent": "Gitcoin Governor", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json deleted file mode 100644 index 1eaa37e7..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-bravo-governor.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Uniswap Governor Bravo" }, - "display": { - "formats": { - "Ballot": { - "intent": "Uniswap Governor", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json deleted file mode 100644 index b5580c07..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-governor.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ] - } - } - ] - } - }, - "metadata": { "owner": "ENS Governor" }, - "display": { - "formats": { - "Ballot": { - "intent": "ENS Governor", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json deleted file mode 100644 index 2b80c7e6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-ens-token.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" }, - "schemas": [ - { - "primaryType": "Delegation", - "types": { - "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" }, - { "name": "version", "type": "string" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Ethereum Name Service" }, - "display": { - "formats": { - "Delegation": { - "intent": "ENS token", - "fields": [ - { "path": "delegatee", "label": "Delegatee", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "expiry", "label": "Expiry", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json deleted file mode 100644 index c52d9347..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-gtk-token.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" }, - "schemas": [ - { - "primaryType": "Delegation", - "types": { - "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Gitcoin" }, - "display": { - "formats": { - "Delegation": { - "intent": "GTK token", - "fields": [ - { "path": "delegatee", "label": "Delegatee", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "expiry", "label": "Expiry", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json deleted file mode 100644 index b53214c6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-governor.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "HOP Governor" }, - "display": { - "formats": { - "Ballot": { - "intent": "Hop Governor", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json deleted file mode 100644 index 8cae7d8b..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-hop-token.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" }, - "schemas": [ - { - "primaryType": "Delegation", - "types": { - "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Hop" }, - "display": { - "formats": { - "Delegation": { - "intent": "HOP token", - "fields": [ - { "path": "delegatee", "label": "Delegatee", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "expiry", "label": "Expiry", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json deleted file mode 100644 index 9d5e51d1..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pool-token.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" }, - "schemas": [ - { - "primaryType": "Delegation", - "types": { - "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "PoolTogether" }, - "display": { - "formats": { - "Delegation": { - "intent": "POOL token", - "fields": [ - { "path": "delegatee", "label": "Delegatee", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "expiry", "label": "Expiry", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json deleted file mode 100644 index e879f81c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-pooltogether-governor.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" }, - "schemas": [ - { - "primaryType": "Ballot", - "types": { - "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "PoolTogether Governor Alpha" }, - "display": { - "formats": { - "Ballot": { - "intent": "PoolTogether Governor Alpha", - "fields": [ - { "path": "proposalId", "label": "Proposal id", "format": "raw" }, - { "path": "support", "label": "Support", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json deleted file mode 100644 index 92d36f0a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tally/eip712-tally-ethereum-uni-token.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "deployments": [{ "chainId": 1, "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" }], - "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" }, - "schemas": [ - { - "primaryType": "Delegation", - "types": { - "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], - "EIP712Domain": [ - { "name": "chainId", "type": "uint256" }, - { "name": "name", "type": "string" }, - { "name": "verifyingContract", "type": "address" } - ] - } - } - ] - } - }, - "metadata": { "owner": "Uniswap" }, - "display": { - "formats": { - "Delegation": { - "intent": "UNI token", - "fields": [ - { "path": "delegatee", "label": "Delegatee", "format": "raw" }, - { "path": "nonce", "label": "Nonce", "format": "raw" }, - { "path": "expiry", "label": "Expiry", "format": "raw" } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json deleted file mode 100644 index 7dd30a1d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/tether/calldata-usdt.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "Tether USD", - "contract": { "deployments": [{ "chainId": 1, "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7" }] } - }, - "includes": "../../ercs/calldata-erc20-tokens.json", - "metadata": { - "owner": "Tether", - "info": { "legalName": "Tether Limited", "url": "https://tether.to/", "deploymentDate": "2017-11-28T12:41:21Z" }, - "token": { "ticker": "USDT", "name": "Tether USD", "decimals": 6 } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json deleted file mode 100644 index 686384a1..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/calldata-UniswapV3Router02.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "Uniswap v3 Router 2", - "contract": { - "deployments": [{ "chainId": 1, "address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45" }], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/uniswap/abis/0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45.abi.json" - } - }, - "metadata": { - "owner": "Uniswap", - "info": { "legalName": "Uniswap Labs", "deploymentDate": "2021-12-14T00:00:00Z", "url": "https://uniswap.org/" } - }, - "display": { - "formats": { - "0xb858183f": { - "$id": "exactInput", - "intent": "Swap", - "fields": [ - { - "path": "params.amountIn", - "label": "Amount to Send", - "format": "tokenAmount", - "params": { "tokenPath": "params.path.[0:20]" } - }, - { - "path": "params.amountOutMinimum", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { "tokenPath": "params.path.[-20:]" } - }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["params.amountIn", "params.amountOutMinimum", "params.recipient"] - }, - "0x04e45aaf": { - "$id": "exactInputSingle", - "intent": "swap", - "fields": [ - { "path": "params.amountIn", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "params.tokenIn" } }, - { - "path": "params.amountOutMinimum", - "label": "Receive Minimum", - "format": "tokenAmount", - "params": { "tokenPath": "params.tokenOut" } - }, - { "path": "params.fee", "label": "Uniswap fee", "format": "unit", "params": { "decimals": 4, "base": "%", "prefix": false } }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["params.amountIn", "params.amountOutMininimum", "params.fee", "params.recipient"] - }, - "0x09b81346": { - "$id": "exactOutput", - "intent": "Swap", - "fields": [ - { - "path": "params.amountInMaximum", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { "tokenPath": "params.path.[0:20]" } - }, - { - "path": "params.amountOut", - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { "tokenPath": "params.path.[-20:]" } - }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ], - "required": ["params.amountInMaximum", "params.amountOut", "params.recipient"] - }, - "0x5023b4df": { - "$id": "exactOutputSingle", - "intent": "Swap", - "fields": [ - { - "path": "params.amountInMaximum", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { "tokenPath": "params.tokenIn" } - }, - { - "path": "params.amountOut", - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { "tokenPath": "params.tokenOut" } - }, - { "path": "params.fee", "label": "Uniswap fee", "format": "unit", "params": { "decimals": 4, "base": "%", "prefix": false } }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { "types": ["eoa"], "sources": ["local", "ens"] } - } - ] - }, - "0x472b43f3": { - "$id": "swapExactTokensForTokens", - "intent": "Swap", - "fields": [ - { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { "tokenPath": "path.[-1]" } - } - ] - }, - "0x42712a67": { - "$id": "swapTokensForExactTokens", - "intent": "Swap", - "fields": [ - { "path": "amountOut", "label": "Amount to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[-1]" } }, - { "path": "amountInMax", "label": "Maximum Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } } - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json deleted file mode 100644 index 90b00d61..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-DutchOrder.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "uniswap-common-eip712.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "DutchOrder": [ - { "name": "info", "type": "OrderInfo" }, - { "name": "decayStartTime", "type": "uint256" }, - { "name": "decayEndTime", "type": "uint256" }, - { "name": "inputToken", "type": "address" }, - { "name": "inputStartAmount", "type": "uint256" }, - { "name": "inputEndAmount", "type": "uint256" }, - { "name": "outputs", "type": "DutchOutput[]" } - ], - "DutchOutput": [ - { "name": "token", "type": "address" }, - { "name": "startAmount", "type": "uint256" }, - { "name": "endAmount", "type": "uint256" }, - { "name": "recipient", "type": "address" } - ], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "OrderInfo": [ - { "name": "reactor", "type": "address" }, - { "name": "swapper", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "additionalValidationContract", "type": "address" }, - { "name": "additionalValidationData", "type": "bytes" } - ], - "PermitWitnessTransferFrom": [ - { "name": "permitted", "type": "TokenPermissions" }, - { "name": "spender", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "witness", "type": "DutchOrder" } - ], - "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - "display": { - "formats": { - "PermitWitnessTransferFrom": { - "intent": "UniswapX Dutch Order", - "fields": [ - { "path": "spender", "label": "Approve to spender", "format": "raw" }, - { - "path": "permitted.amount", - "label": "Approve amount", - "format": "tokenAmount", - "params": { "tokenPath": "permitted.token" } - }, - { - "path": "witness.inputStartAmount", - "label": "Spend max", - "format": "tokenAmount", - "params": { "tokenPath": "witness.inputToken" } - }, - { - "path": "witness.outputs.[]", - "fields": [ - { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "recipient", "label": "On Addresses", "format": "raw" } - ] - }, - { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } - ], - "excluded": [ - "nonce", - "witness.info", - "witness.decayStartTime", - "witness.decayEndTime", - "witness.inputEndAmount", - "witness.outputs.[].startAmount" - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json deleted file mode 100644 index 363e4a5a..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "uniswap-common-eip712.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "DutchOutput": [ - { "name": "token", "type": "address" }, - { "name": "startAmount", "type": "uint256" }, - { "name": "endAmount", "type": "uint256" }, - { "name": "recipient", "type": "address" } - ], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "ExclusiveDutchOrder": [ - { "name": "info", "type": "OrderInfo" }, - { "name": "decayStartTime", "type": "uint256" }, - { "name": "decayEndTime", "type": "uint256" }, - { "name": "exclusiveFiller", "type": "address" }, - { "name": "exclusivityOverrideBps", "type": "uint256" }, - { "name": "inputToken", "type": "address" }, - { "name": "inputStartAmount", "type": "uint256" }, - { "name": "inputEndAmount", "type": "uint256" }, - { "name": "outputs", "type": "DutchOutput[]" } - ], - "OrderInfo": [ - { "name": "reactor", "type": "address" }, - { "name": "swapper", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "additionalValidationContract", "type": "address" }, - { "name": "additionalValidationData", "type": "bytes" } - ], - "PermitWitnessTransferFrom": [ - { "name": "permitted", "type": "TokenPermissions" }, - { "name": "spender", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "witness", "type": "ExclusiveDutchOrder" } - ], - "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - "display": { - "formats": { - "PermitWitnessTransferFrom": { - "intent": "UniswapX Exclusive Dutch Order", - "fields": [ - { "path": "spender", "label": "Approve to spender", "format": "raw" }, - { - "path": "permitted.amount", - "label": "Approve amount", - "format": "tokenAmount", - "params": { "tokenPath": "permitted.token" } - }, - { - "path": "witness.inputStartAmount", - "label": "Spend max", - "format": "tokenAmount", - "params": { "tokenPath": "witness.inputToken" } - }, - { - "path": "witness.outputs.[]", - "fields": [ - { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "recipient", "label": "On Addresses", "format": "raw" } - ] - }, - { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } - ], - "excluded": [ - "nonce", - "witness.info", - "witness.decayStartTime", - "witness.decayEndTime", - "witness.exclusiveFiller", - "witness.exclusivityOverrideBps", - "witness.inputEndAmount", - "witness.outputs.[].startAmount" - ] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json deleted file mode 100644 index eed75828..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-UniswapX-LimitOrder.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "uniswap-common-eip712.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "LimitOrder": [ - { "name": "info", "type": "OrderInfo" }, - { "name": "inputToken", "type": "address" }, - { "name": "inputAmount", "type": "uint256" }, - { "name": "outputs", "type": "OutputToken[]" } - ], - "OrderInfo": [ - { "name": "reactor", "type": "address" }, - { "name": "swapper", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "additionalValidationContract", "type": "address" }, - { "name": "additionalValidationData", "type": "bytes" } - ], - "OutputToken": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "recipient", "type": "address" }], - "PermitWitnessTransferFrom": [ - { "name": "permitted", "type": "TokenPermissions" }, - { "name": "spender", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "witness", "type": "LimitOrder" } - ], - "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - "display": { - "formats": { - "PermitWitnessTransferFrom": { - "intent": "UniswapX Limit Order", - "fields": [ - { "path": "spender", "label": "Approve to spender", "format": "raw" }, - { - "path": "permitted.amount", - "label": "Amount allowance", - "format": "tokenAmount", - "params": { "tokenPath": "permitted.token" } - }, - { "path": "witness.inputAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "witness.inputToken" } }, - { - "path": "witness.outputs.[]", - "fields": [ - { "path": "amount", "label": "Min amount to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "recipient", "label": "On Address", "format": "raw" } - ] - }, - { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } - ], - "excluded": ["nonce", "witness.info"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json deleted file mode 100644 index 27e4d67d..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-V2DutchOrder.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "uniswap-common-eip712.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "DutchOutput": [ - { "name": "token", "type": "address" }, - { "name": "startAmount", "type": "uint256" }, - { "name": "endAmount", "type": "uint256" }, - { "name": "recipient", "type": "address" } - ], - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "OrderInfo": [ - { "name": "reactor", "type": "address" }, - { "name": "swapper", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "additionalValidationContract", "type": "address" }, - { "name": "additionalValidationData", "type": "bytes" } - ], - "PermitWitnessTransferFrom": [ - { "name": "permitted", "type": "TokenPermissions" }, - { "name": "spender", "type": "address" }, - { "name": "nonce", "type": "uint256" }, - { "name": "deadline", "type": "uint256" }, - { "name": "witness", "type": "V2DutchOrder" } - ], - "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }], - "V2DutchOrder": [ - { "name": "info", "type": "OrderInfo" }, - { "name": "cosigner", "type": "address" }, - { "name": "baseInputToken", "type": "address" }, - { "name": "baseInputStartAmount", "type": "uint256" }, - { "name": "baseInputEndAmount", "type": "uint256" }, - { "name": "baseOutputs", "type": "DutchOutput[]" } - ] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - "display": { - "formats": { - "PermitWitnessTransferFrom": { - "intent": "UniswapX V2 Dutch Order", - "fields": [ - { "path": "spender", "label": "Approve to spender", "format": "raw" }, - { - "path": "permitted.amount", - "label": "Approve amount", - "format": "tokenAmount", - "params": { "tokenPath": "permitted.token" } - }, - { - "path": "witness.baseInputStartAmount", - "label": "Spend max", - "format": "tokenAmount", - "params": { "tokenPath": "witness.baseInputToken" } - }, - { - "path": "witness.baseOutputs.[]", - "fields": [ - { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "recipient", "label": "On Addresses", "format": "raw" } - ] - }, - { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } - ], - "excluded": ["nonce", "witness.info", "witness.cosigner", "witness.baseInputEndAmount", "witness.baseOutputs.[].startAmount"] - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json deleted file mode 100644 index 7f8cf66c..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/eip712-uniswap-permit2.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "uniswap-common-eip712.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "PermitDetails": [ - { "name": "token", "type": "address" }, - { "name": "amount", "type": "uint160" }, - { "name": "expiration", "type": "uint48" }, - { "name": "nonce", "type": "uint48" } - ], - "PermitBatch": [ - { "name": "details", "type": "PermitDetails[]" }, - { "name": "spender", "type": "address" }, - { "name": "sigDeadline", "type": "uint256" } - ] - }, - "primaryType": "PermitBatch" - }, - { - "types": { - "EIP712Domain": [ - { "name": "name", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "PermitDetails": [ - { "name": "token", "type": "address" }, - { "name": "amount", "type": "uint160" }, - { "name": "expiration", "type": "uint48" }, - { "name": "nonce", "type": "uint48" } - ], - "PermitSingle": [ - { "name": "details", "type": "PermitDetails" }, - { "name": "spender", "type": "address" }, - { "name": "sigDeadline", "type": "uint256" } - ] - }, - "primaryType": "PermitSingle" - } - ] - } - }, - "display": { - "formats": { - "PermitSingle": { - "$id": "Permit2 Permit Single", - "intent": "Authorize spending of token", - "fields": [ - { "path": "spender", "label": "Spender", "format": "raw" }, - { "path": "details.amount", "label": "Amount allowance", "format": "tokenAmount", "params": { "tokenPath": "details.token" } }, - { "path": "details.expiration", "label": "Approval expires", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["spender", "details.amount"], - "excluded": ["sigDeadline"], - "screens": {} - }, - "PermitBatch": { - "$id": "Permit2 Permit Batch", - "intent": "Authorize spending of tokens", - "fields": [ - { "path": "spender", "label": "Spender", "format": "raw" }, - { - "path": "details.[]", - "fields": [ - { "path": "amount", "label": "Amount allowance", "format": "tokenAmount", "params": { "tokenPath": "token" } }, - { "path": "expiration", "label": "Approval expires", "format": "date", "params": { "encoding": "timestamp" } } - ] - } - ], - "required": ["spender", "details"], - "excluded": ["sigDeadline"], - "screens": {} - } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json deleted file mode 100644 index 52c56795..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/uniswap/uniswap-common-eip712.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "eip712": { - "domain": { - "name": "Permit2" - }, - "deployments": [ - { - "chainId": 1, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 10, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 56, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 137, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 8453, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 42161, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 42220, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 43114, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 80001, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 81457, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 84532, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 421614, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 11155111, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - }, - { - "chainId": 11155420, - "address": "0x000000000022D473030F116dDEE9F6B43aC78BA3" - } - ] - } - }, - - "metadata": { - "owner": "Uniswap", - "info": { - "legalName": "Uniswap Labs", - "deploymentDate": "2021-12-14T00:00:00Z", - "url": "https://uniswap.org/" - } - } -} \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json deleted file mode 100644 index 10257c09..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-stakeweight.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "WalletConnect StakeWeight", - "contract": { - "deployments": [{ "chainId": 10, "address": "0x521B4C065Bbdbe3E20B3727340730936912DfA46" }], - "abi": [ - { - "inputs": [ - { - "components": [ - { "internalType": "address", "name": "admin", "type": "address" }, - { "internalType": "address", "name": "config", "type": "address" } - ], - "internalType": "struct StakeWeight.Init", - "name": "init", - "type": "tuple" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "unlockTime", "type": "uint256" } - ], - "name": "createLock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "for_", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "unlockTime", "type": "uint256" } - ], - "name": "createLockFor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "for_", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "depositFor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], - "name": "increaseLockAmount", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "for_", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "increaseLockAmountFor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "newUnlockTime", "type": "uint256" }], - "name": "increaseUnlockTime", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "unlockTime", "type": "uint256" } - ], - "name": "updateLock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "inputs": [], "name": "withdrawAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [{ "internalType": "address", "name": "user", "type": "address" }], - "name": "withdrawAllFor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], - "name": "forceWithdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "newMaxLock", "type": "uint256" }], - "name": "setMaxLock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "inputs": [], "name": "checkpoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" } - ] - } - }, - "metadata": { - "owner": "WalletConnect", - "info": { - "legalName": "WalletConnect Foundation", - "url": "https://walletconnect.network/", - "deploymentDate": "2024-11-23T14:50:43Z" - } - }, - "display": { - "formats": { - "createLock(uint256,uint256)": { - "intent": "Lock tokens for a period", - "fields": [ - { - "path": "amount", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } - }, - { "path": "unlockTime", "label": "Unlock Time", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amount", "unlockTime"] - }, - "depositFor(address,uint256)": { - "intent": "Deposit tokens for a period for a given address", - "fields": [ - { "path": "for_", "label": "For", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, - { - "path": "amount", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } - } - ], - "required": ["for_", "amount"] - }, - "increaseLockAmount(uint256)": { - "intent": "Increase Lock Amount", - "fields": [ - { - "path": "amount", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } - } - ], - "required": ["amount"] - }, - "increaseUnlockTime(uint256)": { - "intent": "Increase Unlock Time", - "fields": [{ "path": "newUnlockTime", "label": "New Unlock Time", "format": "date", "params": { "encoding": "timestamp" } }], - "required": ["newUnlockTime"] - }, - "updateLock(uint256,uint256)": { - "intent": "Update lock amount and unlock time", - "fields": [ - { - "path": "amount", - "label": "Amount", - "format": "tokenAmount", - "params": { "token": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" } - }, - { "path": "unlockTime", "label": "Unlock Time", "format": "date", "params": { "encoding": "timestamp" } } - ], - "required": ["amount", "unlockTime"] - }, - "withdrawAll()": { "intent": "Withdraw All", "fields": [], "required": [] } - } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json deleted file mode 100644 index bba504e6..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/walletconnect/calldata-wct.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "WalletConnect Token", - "contract": { "deployments": [{ "chainId": 10, "address": "0xeF4461891DfB3AC8572cCf7C794664A8DD927945" }] } - }, - "includes": "../../ercs/calldata-erc20-tokens.json", - "metadata": { - "owner": "WalletConnect", - "info": { - "legalName": "WalletConnect Foundation", - "url": "https://walletconnect.network/", - "deploymentDate": "2024-10-28T23:52:01Z" - }, - "token": { "ticker": "WCT", "name": "WalletConnect Token", "decimals": 18 } - } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json deleted file mode 100644 index 8a40b680..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/registry/yieldxyz/calldata-yieldxyz-usde-vault.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "../../ercs/calldata-erc4626-vaults.json", - "metadata": { - "owner": "Yield.xyz", - "info": { "legalName": "Yield.xyz", "url": "https://yield.xyz/" }, - "constants": { "underlyingToken": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3", "underlyingTicker": "USDe", "vaultTicker": "stk-USDe" } - }, - "context": { "contract": { "deployments": [{ "chainId": 1, "address": "0x2D152fB171353E70e45322D32bC748F8a61d9971" }] } } -} diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json b/src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json deleted file mode 100644 index 5869d2b2..00000000 --- a/src/chain_parsers/visualsign-ethereum/static/eip7730/specs/erc7730-v1.schema.json +++ /dev/null @@ -1,1014 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "description": "ERC7730 Clear Signing Specification Schema. Specification located at https://github.com/LedgerHQ/clear-signing-erc7730-registry/tree/master/specs", - - "properties": { - - "$schema": { - "title": "Schema", - "type": "string", - "format": "uri-reference", - "description": "The schema that the document should conform to. This should be the URL of a version of the clear signing JSON schemas available under https://github.com/LedgerHQ/clear-signing-erc7730-registry/tree/master/specs" - }, - - "includes": { - "title": "External includes", - "type": "string", - "format": "uri-reference", - "description": "An URL of another ERC 7730 file that should be merged into this one. Includes are merged into this file before analysis. This can be used to manage interfaces definitions without redundancy." - }, - - "context": { - "$ref": "#/$context/main" - }, - - "metadata": { - "$ref": "#/$metadata/main" - }, - - "display": { - "$ref": "#/$display/main" - } - }, - "additionalProperties": false, - - "$context" : { - "main" : { - "title": "Binding Context Section", - "type": "object", - "description": "The binding context is a set of constraints that are used to bind the ERC7730 file to a specific structured data being displayed. Currently, supported contexts include contract-specific constraints or EIP712 message specific constraints.", - - "properties": { - "$id" : { - "$ref": "#/$definitions/id" - } - }, - - "oneOf": [ - { - "$ref": "#/$context/contract" - }, - { - "$ref": "#/$context/EIP712" - } - ], - "unresolvedProperties": false - }, - - "contract": { - "type": "object", - - "properties": { - "contract": { - "title": "Contract Binding Context", - "type": "object", - "description": "The contract binding context is a set constraints that are used to bind the ERC7730 file to a specific smart contract.", - - "properties": { - "abi": { - "oneOf": [ - { - "$ref": "#/$definitions/abi-json-schema" - }, - { - "title": "An ABI url", - "description": "URL of an ABI bound to this file.", - "type": "string", - "format": "uri-reference" - } - ] - }, - "deployments": { - "$ref": "#/$context/deployments" - }, - "addressMatcher": { - "title": "Address Matcher constraint", - "type": "string", - "format": "uri", - "description": "An URL of a contract address matcher that should be used to match the contract address." - }, - "factory": { - "title": "Factory constraint", - "type": "object", - "description": "A factory constraint is used to check whether the target contract is deployed by a specified factory.", - "properties": { - "deployments": { - "$ref": "#/$context/deployments" - }, - "deployEvent": { - "title": "Deploy Event signature", - "type": "string", - "description": "The event signature that is emitted by the factory when deploying a new contract." - } - }, - "required": [ - "deployments", - "deployEvent" - ], - "additionalProperties": false - } - - }, - "additionalProperties": false - } - }, - "required": [ - "contract" - ] - }, - - "EIP712": { - "type": "object", - "properties": { - "eip712" : { - "title": "EIP 712 Binding", - "type": "object", - "description": "The EIP-712 binding context is a set of constraints that must be verified by the message being signed.", - - "properties" : { - "schemas" : { - "oneOf": [ - { - "title": "An EIP712 Schemas url", - "description": "URL of an array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.", - "type": "string", - "format": "uri-reference" - }, - { - "title": "EIP 712 Schemas constraint", - "type": "array", - "description": "An array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.", - "items": { - "oneOf": [ - { - "$ref": "#/$definitions/eip712-json-schema" - }, - { - "title": "An EIP712 Schema url", - "description": "URL of an EIP712 Schema bound to this file.", - "type": "string", - "format": "uri-reference" - } - ] - } - } - ] - }, - "domain": { - "title": "EIP 712 Domain Binding constraint", - "type": "object", - "description": "Each value of the domain constraint MUST match the corresponding eip 712 message domain value.", - - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "chainId": { - "type": "integer", - "format": "eip155" - }, - "verifyingContract": { - "type": "string", - "format": "eip55" - } - } - }, - "domainSeparator": { - "title": "Domain Separator constraint", - "type": "string", - "description": "The domain separator value that must be matched by the message. In hex string representation." - }, - "deployments": { - "description": "An array of deployments describing what the chainId and verifyingContract in the domain should match.", - "$ref": "#/$context/deployments" - } - }, - "additionalProperties": false - } - }, - "required": [ - "eip712" - ] - }, - - "deployments": { - "title": "Deployments constraint", - "type": "array", - "description": "An array of deployments describing where the contract is deployed. The target contract (Tx to or factory) MUST match one of those deployments.", - "items": { - "properties": { - "chainId": { - "type": "integer", - "format": "eip155" - }, - "address": { - "type": "string", - "format": "eip55" - } - } - } - } - }, - - "$metadata": { - "main": { - "title": "Metadata Section", - "type": "object", - "description": "The metadata section contains information about constant values relevant in the scope of the current contract / message (as matched by the `context` section)", - - "properties": { - - "owner": { - "title": "Owner display name", - "type": "string", - "description": "The display name of the owner or target of the contract / message to be clear signed." - }, - - "info": { - "$ref": "#/$metadata/info" - }, - - "token": { - "$ref": "#/$metadata/token" - }, - - "constants": { - "$ref": "#/$metadata/constants" - }, - - "enums": { - "$ref": "#/$metadata/enums" - } - } - - }, - - "info" : { - "title": "Main contract's owner detailed information", - "type": "object", - "description": "The owner info section contains detailed information about the owner or target of the contract / message to be clear signed.", - - "properties": { - "legalName": { - "title": "Owner Legal Name", - "type": "string", - "description": "The full legal name of the owner if different from the owner field." - }, - "deploymentDate": { - "title": "Deployment date of the contract / message", - "type": "string", - "format": "date-time", - "description": "The date of deployment of the contract / message." - }, - "url": { - "title": "Owner URL", - "type": "string", - "format": "uri", - "description": "URL with more info on the entity the user interacts with." - } - }, - "required": [ - "legalName", - "url" - ], - "additionalProperties": false - }, - - "token" : { - "title": "Token Description", - "type": "object", - "description": "A description of an ERC20 token exported by this format, that should be trusted. Not mandatory if the corresponding metadata can be fetched from the contract itself.", - - "properties": { - "name": { - "title": "Token Name", - "type": "string" - }, - "ticker": { - "title": "Token Ticker", - "type": "string", - "description": "A short capitalized ticker for the token, that will be displayed in front of corresponding amounts." - }, - "decimals": { - "title": "Token Decimals", - "type": "integer", - "description": "The number of decimals of the token ticker, used to display amounts." - } - }, - "required": [ - "name", - "ticker", - "decimals" - ], - "additionalProperties": false - - }, - - "constants": { - "title": "Constant values", - "type": "object", - "description": "A set of values that can be used in format parameters. Can be referenced with a path expression like $.metadata.constants.CONSTANT_NAME", - "additionalProperties": { - "type": ["string", "integer", "number", "boolean", "null"] - } - }, - - "enums" : { - "title": "Enums", - "type": "object", - "description": "A set of enums that are used to format fields replacing values with human readable strings.", - - "additionalProperties": { - "oneOf": [ - { - "title": "A dynamic enum", - "type": "string", - "description": "A dynamic enum contains an URL which returns a json file with simple key-values mapping values display name. It is assumed those values can change between two calls to clear sign." - }, - { - "title": "Enumeration", - "type": "object", - "description": "A set of values that will be used to replace a field value with a human readable string. Enumeration keys are the field values and enumeration values are the displayable strings", - - "additionalProperties": { - "type": "string" - } - } - ] - } - } - }, - - "$display": { - "main": { - "title": "Display Formatting Info Section", - "type": "object", - "description": "The display section contains all the information needed to format the data in a human readable way. It contains the constants and formatters used to display the data contained in the bound structure.", - - "properties": { - - "definitions": { - "type": "object", - "title": "Common Formatter Definitions", - "description": "A set of definitions that can be used to share formatting information between multiple messages / functions. The definitions can be referenced by the key name in an internal path.", - "additionalProperties": { - "$ref": "#/$format/field" - } - }, - - "formats": { - "title": "List of field formats", - "description": "The list includes formatting info for each field of a structure. This list is indexed by a key identifying uniquely the message's type in the abi. For smartcontracts, it is the selector of the function or its signature; and for EIP712 messages it is the primaryType of the message.", - "type": "object", - - "additionalProperties": { - "title": "A structured data format specification", - "description": "A structured data format specification contains formatting information of fields in a single type of message.", - "type": "object", - - "properties": { - "$id": { - "$ref": "#/$definitions/id" - }, - "intent": { - "$ref": "#/$display/intent" - }, - "fields": { - "$ref": "#/$display/fields" - }, - "required": { - "$ref": "#/$display/required" - }, - "excluded": { - "$ref": "#/$display/excluded" - }, - "screens": { - "title": "Screens grouping information", - "description": "Screens section is used to group multiple fields to display into screens. Each key is a wallet type name. The format of the screens is wallet type dependent, as well as what can be done (reordering fields, max number of screens, etc...). See each wallet manufacturer documentation for more information.", - "type": "object", - - "additionalProperties": { - "type": "array", - "items": { - "$ref": "#/$display/screens" - } - } - } - }, - "additionalProperties": false - } - } - }, - "required": [ - "formats" - ], - "additionalProperties": false - }, - "intent": { - "oneOf": [ - { - "title": "Simple intent message", - "description": "A description of the intent of the structured data signing, that will be displayed to the user.", - "type": "string" - }, - { - "title": "Complex intent message", - "description": "A description of the intent of the structured data signing, that will be displayed to the user.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - - ] - }, - "required": { - "title": "Required fields", - "description": "A list of fields that are required to be displayed to the user. A field that has a formatter and is not in this list is optional. A field that does not have a formatter should be silent, ie not shown", - "type": "array", - "items": { - "type": "string" - } - }, - "excluded": { - "title": "Excluded fields", - "description": "A list of fields that are intentionally not shown to the user. A field that has no formatter and is not declared in this list may be considered as an error by the wallet when interpreting the descriptor.", - "type": "array", - "items": { - "type": "string" - } - }, - "screens": { - "title": "Screen information", - "description": "ADD DEVICE SPECIFIC SCHEMAS LATER. A screen is a group of fields that will be displayed together in a wallet. The format of the screen is wallet type dependent, as well as what can be done (reordering fields, max number of screens, etc..). See each wallet manufacturer documentatio for more information.", - "type": "object" - }, - "fields": { - "title": "Field Formats set", - "type": "array", - "description": "An array containing the ordered definitions of fields formats. See the specification for more details.", - - "items": { - "oneOf": [ - { - "$ref": "#/$format/field" - }, - { - "$ref": "#/$display/nestedFields" - }, - { - "$ref": "#/$display/reference" - } - ] - }, - "unresolvedProperties": false - }, - "nestedFields": { - "title": "A single set of field formats, allowing recursivity in the schema", - "description": "A set of field formats used to group whole definitions for structures for instance. This allows nesting definitions of formats, but note that support for deep nesting will be device dependent.", - "type": "object", - - "properties": { - "path": { - "$ref": "#/$format/path" - }, - "fields": { - "$ref": "#/$display/fields" - } - }, - "required": [ - "fields" - ], - "additionalProperties": false - }, - "reference": { - "title": "Reference", - "description": "A reference to a shared definition that should be used as the field formatting definition. The value is the key in the display definitions section, as a path expression $.display.definitions.DEFINITION_NAME. It is used to share definitions between multiple messages / functions.", - "properties": { - "path": { - "$ref": "#/$format/path" - }, - "value": { - "$ref": "#/$format/value" - }, - "$ref": { - "title": "Internal Definition", - "description": "An internal definition that should be used as the field formatting definition. The value is the key in the display definitions section, as a path expression $.display.definitions.DEFINITION_NAME.", - "type": "string" - }, - "params": { - "title": "Parameters", - "description": "Parameters override. These values takes precedence over the ones in the definition itself", - "type": "object", - "additionalProperties": { "type": "string" } - } - }, - "required": [ "$ref" ], - "allOf": [ - { - "not": { "required": [ "path", "value" ] } - } - ], - "additionalProperties": false - } - }, - - "$format": { - "path": { - "title": "Path", - "type": "string", - "description": "A path to the field in the structured data. The path is a JSON path expression that can be used to extract the field value from the structured data." - }, - "value": { - "title": "Value", - "type": ["string", "integer", "number", "boolean"], - "description": "A literal value on which the format should be applied instead of looking up a field in the structured data." - }, - "field": { - "title": "Field formatter", - "description": "A field formatter contains formatting information of a single field in a message.", - "type": "object", - - "properties": { - "$id": { - "$ref": "#/$definitions/id" - }, - "path": { - "$ref": "#/$format/path" - }, - "value": { - "$ref": "#/$format/value" - }, - "label": { - "title": "Field Label", - "description": "The label of the field, that will be displayed to the user in front of the formatted field value.", - "type": "string" - }, - "format": { - "title": "Field Format", - "description": "The format of the field, that will be used to format the field value in a human readable way.", - "type": "string", - "$ref": "#/$format/names" - } - }, - "required": [ "label", "format" ], - "allOf" : [ - { - "not": { "required": [ "path", "value" ] } - }, - { - "if": { "properties": { "format": { "const": "addressName" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/addressNameParameters" } - } - } - }, - { - "if": { "properties": { "format": { "const": "calldata" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/calldataParameters" } - } - } - }, - { - "if": { "properties": { "format": { "const": "tokenAmount" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/tokenAmountParameters" } - } - } - }, - { - "if": { "properties": { "format": { "const": "nftName" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/nftNameParameters" } - } - } - }, - { - "if": { "properties": { "format": { "const": "date" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/dateParameters" } - } - } - }, - { - "if": { "properties": { "format": { "const": "percentage" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/unitParameters" } - } - } - }, - { - "if": { "properties": { "format": { "const": "enum" } } }, - "then": { - "properties": { - "params": { "$ref": "#/$format/enumParameters" } - } - } - } - ], - "unresolvedProperties": false - }, - "names": { - "anyOf": [ - { - "title": "Raw format", - "const": "raw", - "description": "The field should be displayed as the natural representation of the underlying structured data type." - }, - { - "title": "address format", - "const": "addressName", - "description": "The field should be displayed as a trusted name, or as a raw address if no names are found in trusted sources. List of trusted sources can be optionally specified in parameters." - }, - { - "title": "bytes format", - "const": "calldata", - "description": "The field is itself a calldata embedded in main call. Another ERC 7730 should be used to parse this field. If not available or not supported, the wallet MAY display a hash of the embedded calldata instead." - - }, - { - "title": "integer format", - "const": "amount", - "description": "The field should be displayed as an amount in underlying currency, converted using the best magnitude / ticker available." - }, - { - "title": "integer format", - "const": "tokenAmount", - "description": "The field should be displayed as an amount, preceded by the ticker. The magnitude and ticker should be derived from the token or tokenPath parameter corresponding metadata." - }, - { - "title": "integer format", - "const": "nftName", - "description": "The field should be displayed as a single NFT names, or as a raw token Id if a specific name is not found. Collection is specified by the collection or collectionPath parameter." - }, - { - "title": "integer format", - "const": "date", - "description": "The field should be displayed as a date. Suggested RFC3339 representation. Parameter specifies the encoding of the date." - }, - { - "title": "integer format", - "const": "duration", - "description": "The field should be displayed as a duration in HH:MM:ss form. Value is interpreted as a number of seconds." - }, - { - "title": "integer format", - "const": "unit", - "description": "The field should be displayed as a percentage. Magnitude of the percentage encoding is specified as a parameter. Example: a value of 3000 with magnitude 4 is displayed as 0.3%." - }, - { - "title": "integer format", - "const": "enum", - "description": "The field should be displayed as a human readable string by converting the value using the enum referenced in parameters." - } - ] - }, - "addressNameParameters" : { - "title": "Address Names Formatting Parameters", - "type": "object", - "properties": { - "types": { - "title": "Address Type", - "type": "array", - "description": "The types of address to display. Restrict allowable sources of names and MAY lead to additional checks from wallets.", - "items": { - "type": "string", - "enum": [ "wallet", "eoa", "contract", "token", "collection" ] - } - }, - "sources": { - "title": "Trusted Sources", - "description": "Trusted Sources for names, in order of preferences. Sources values are wallet manufacturer specific, example values are \"local\" or \"ens\". See specification for more details on sources values.", - "type": "array", - "items": { - "type": "string" - } - }, - "senderAddress": { - "title": "Sender Address", - "oneOf": [ - { - "type": "string", - "description": "An address equal to this value is interpreted as the sender referenced by `@.from`." - }, - { - "type": "array", - "description": "An array of addresses, any of which are interpreted as the sender referenced by `@.from`.", - "items": { - "type": "string" - } - } - ] - } - }, - "additionalProperties": false - }, - "calldataParameters" : { - "title": "Embedded Calldata Formatting Parameters", - "type": "object", - "properties": { - "selector": { - "title": "Called Selector (Optional)", - "type": "string", - "description": "The selector being called, if not contained in the calldata. Hex string representation." - }, - "callee": { - "title": "Callee Address", - "type": "string", - "description": "The address of the contract being called by this embedded calldata." - }, - "calleePath": { - "title": "Callee Path", - "type": "string", - "description": "The path to the address of the contract being called by this embedded calldata." - } - }, - "anyOf": [ - {"required": ["callee"]}, - {"required": ["calleePath"]} - ], - "not": { - "required": ["callee", "calleePath"] - }, - "additionalProperties": false - }, - "tokenAmountParameters": { - "title": "Token Amount Formatting Parameters", - "type": "object", - "properties": { - "token": { - "title": "Token", - "type": "string", - "description": "The token address, or a path to a constant in the ERC 7730 file." - }, - "tokenPath": { - "title": "Token Path", - "type": "string", - "description": "The path to the token address in the structured data." - }, - "nativeCurrencyAddress": { - "title": "Native Currency Address", - "oneOf": [ - { - "type": "string", - "description": "An address equal to this value is interpreted as an amount in native currency rather than a token." - }, - { - "type": "array", - "description": "An array of addresses, any of which are interpreted as an amount in native currency rather than a token.", - "items": { - "type": "string" - } - } - ] - }, - "threshold": { - "title": "Unlimited Threshold", - "type": "string", - "description": "The threshold above which the amount should be displayed using the message parameter rather than the real amount." - }, - "message": { - "title": "Unlimited Message", - "type": "string", - "description": "The message to display when the amount is above the threshold." - } - }, - "not": { - "required": ["token", "tokenPath"] - }, - "additionalProperties": false - }, - "nftNameParameters" : { - "title": "NFT Names Formatting Parameters", - "type": "object", - "properties": { - "collection": { - "title": "Collection Address", - "type": "string", - "description": "The collection address, or a path to a constant in the ERC 7730 file." - }, - "collectionPath": { - "title": "Collection Path", - "type": "string", - "description": "The path to the collection in the structured data." - } - }, - "anyOf": [ - {"required": ["collection"]}, - {"required": ["collectionPath"]} - ], - "not": { - "required": ["collection", "collectionPath"] - }, - "additionalProperties": false - }, - "dateParameters": { - "title": "Date Formatting Parameters", - "type": "object", - "properties": { - "encoding": { - "title": "Date Encoding", - "type": "string", - "description": "The encoding of the date.", - "enum": [ - "blockheight", - "timestamp" - ] - } - }, - "required": [ - "encoding" - ], - "additionalProperties": false - }, - - "unitParameters": { - "title": "Unit Formatting Parameters", - "type": "object", - "properties": { - "base": { - "title": "Unit base symbol", - "type": "integer", - "description": "The base symbol of the unit, displayed after the converted value. It can be an SI unit symbol or acceptable dimensionless symbols like % or bps." - }, - "decimals": { - "title": "Decimals", - "type": "integer", - "description": "The number of decimals of the value, used to convert to a float." - }, - "prefix": { - "title": "Prefix", - "type": "boolean", - "description": "Whether the value should be converted to a prefixed unit, like k, M, G, etc." - } - }, - "required": [ - "base" - ], - "additionalProperties": false - }, - - "enumParameters": { - "title": "Enum Formatting Parameters", - "type": "object", - "properties": { - "$ref": { - "title": "Enum reference", - "type": "string", - "description": "The internal path to the enum definition used to convert this value." - } - }, - "required": [ - "$ref" - ], - "additionalProperties": false - } - }, - - "$definitions": { - "id": { - "title": "ID", - "type": "string", - "description": "An internal identifier that can be used either for clarity specifying what the element is or as a reference in device specific sections." - }, - - "eip712-json-schema": { - "title": "An EIP712 Schema", - "type": "object", - "description": "EIP712 typed data schema, restricted to type definitions and primary type only. See https://eips.ethereum.org/EIPS/eip-712#data-structures for more information.", - "properties": { - "types": { - "type": "object", - "description": "Type definitions for the EIP712 typed data. See https://eips.ethereum.org/EIPS/eip-712#data-structures for more information.", - "properties": { - "EIP712Domain": { - "type": "array", - "description": "EIP712 domain type definition. The domain is used as a separator between EIP712 messages to avoid reuse of signatures. Actual separator values are contained in a \"domain\" key of the message. Fields are up to the implementer, but must often include at least name, version, chainId and verifyingContract." - } - }, - "additionalProperties": { - "type": "array", - "description": "Type definition for a specific type. Each type is an array of fields, where each field is an object with a name and a type. The type is a string, and may be a reference to another type.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "required": [ - "name", - "type" - ] - } - }, - "required": [ - "EIP712Domain" - ] - }, - "primaryType": { - "type": "string", - "description": "The primary type of the EIP712 typed data. This is the type that will be used as the top level type for the message field. See https://eips.ethereum.org/EIPS/eip-712#data-structures for more information." - } - }, - "required": [ - "types", - "primaryType" - ] - }, - - "abi-json-schema": { - "title": "An EVM ABI", - "type": "array", - "description": "JSON schema for the json representation of a solidity ABI", - "items": { - "type": "object", - "properties": { - "inputs": { - "type": "array", - "description": "an array of object with input parameters", - "items": { - "$ref": "#/$definitions/abi-parameter" - } - }, - "name": { - "type": "string", - "description": "the name of the function" - }, - "outputs": { - "type": "array", - "description": "an array of object with output parameters", - "items": { - "$ref": "#/$definitions/abi-parameter" - } - }, - "stateMutability": { - "type": "string", - "enum": [ - "pure", - "view", - "nonpayable", - "payable" - ] - }, - "type": { - "type": "string", - "description": "the type of object being described", - "enum": [ - "function", - "constructor", - "receive", - "fallback" - ] - } - }, - "required": [ - "inputs", - "type" - ] - } - }, - - "abi-parameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the parameter, used in the selector computation" - }, - "type": { - "type": "string", - "description": "the canonical type of the parameter" - }, - "internalType": { - "type": "string", - "description": "fully qualified type name in solidity source code" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/$definitions/abi-parameter" - } - } - }, - "required": [ - "name", - "type" - ] - } - } -} \ No newline at end of file From fb9a360e5af1dd8dc02856ce007c3c725ad800fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Fri, 29 Aug 2025 19:28:12 +0000 Subject: [PATCH 6/9] Add eip7730 registry as a git submodule (LedgerHQ/clear-signing-erc7730-registry) --- .gitmodules | 3 +++ src/chain_parsers/visualsign-ethereum/static/eip7730 | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 src/chain_parsers/visualsign-ethereum/static/eip7730 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..90fe9b3f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/chain_parsers/visualsign-ethereum/static/eip7730"] + path = src/chain_parsers/visualsign-ethereum/static/eip7730 + url = https://github.com/LedgerHQ/clear-signing-erc7730-registry diff --git a/src/chain_parsers/visualsign-ethereum/static/eip7730 b/src/chain_parsers/visualsign-ethereum/static/eip7730 new file mode 160000 index 00000000..c0405bd6 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/static/eip7730 @@ -0,0 +1 @@ +Subproject commit c0405bd62f4c75031027df58e75e7521e0c266ec From 0b4d2b5926eb30fbd376788f798a3df690614d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Fri, 29 Aug 2025 19:29:52 +0000 Subject: [PATCH 7/9] Add target to update git submodules in Makefile --- src/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile b/src/Makefile index c7f29f74..2734096f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -53,3 +53,6 @@ parser_enclave: .PHONY: parser_host parser_host: cargo run --bin parser_host -- --host-ip $(PARSER_HOST) --host-port $(PARSER_PORT) --metrics --metrics-port $(PARSER_METRICS_PORT) --usock $(PARSER_OUTER_SOCKET_PATH) + +update_submodules: + git submodule update --init --recursive From 2059c35f1c94079c84a6d3f3bd14d1252b726c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Sat, 30 Aug 2025 10:56:11 +0000 Subject: [PATCH 8/9] Refactor Ethereum transaction tests and enhance fixture handling - Added new expected output and input files for EIP-7730 transactions. - Improved test structure by creating a helper function for fixture paths. - Removed redundant code in the decoding function to streamline processing. - Ensured consistency in dependency declarations in Cargo.toml. --- .../visualsign-ethereum/Cargo.toml | 1 + .../visualsign-ethereum/build.rs | 64 ++++++++++++++-- .../visualsign-ethereum/src/registry.rs | 10 --- .../fixtures/eip7730/aave_deposit.expected | 63 ++++++++++++++++ .../tests/fixtures/eip7730/aave_deposit.input | 1 + .../eip7730/ledgerquest_mint.expected | 62 +++++++++++++++ .../fixtures/eip7730/ledgerquest_mint.input | 1 + .../eip7730/paraswap_simpleBuy.expected | 75 +++++++++++++++++++ .../fixtures/eip7730/paraswap_simpleBuy.input | 1 + .../visualsign-ethereum/tests/lib_test.rs | 19 +++-- 10 files changed, 273 insertions(+), 24 deletions(-) create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.input create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input diff --git a/src/chain_parsers/visualsign-ethereum/Cargo.toml b/src/chain_parsers/visualsign-ethereum/Cargo.toml index 59d6cd04..86bc7898 100644 --- a/src/chain_parsers/visualsign-ethereum/Cargo.toml +++ b/src/chain_parsers/visualsign-ethereum/Cargo.toml @@ -23,3 +23,4 @@ phf_codegen = "0.12.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "main" } +alloy-primitives = "1.0.20" diff --git a/src/chain_parsers/visualsign-ethereum/build.rs b/src/chain_parsers/visualsign-ethereum/build.rs index 897ea976..d57c2415 100644 --- a/src/chain_parsers/visualsign-ethereum/build.rs +++ b/src/chain_parsers/visualsign-ethereum/build.rs @@ -1,3 +1,4 @@ +use alloy_primitives::keccak256; use serde::Deserialize; use std::collections::HashMap; use std::{env, fs, io::Write, path::PathBuf}; @@ -22,8 +23,8 @@ fn main() { let mut parsed_any = false; if let Ok(spec) = visualsign_erc7730_adapter::types::ERC7730::from_json(contents) { if let Some(display) = spec.display { - for (selector, format) in display.formats.into_iter() { - if selector.len() == 10 && selector.starts_with("0x") { + for (key, format) in display.formats.into_iter() { + if let Some(selector) = normalize_selector(&key) { let fields: Vec<_> = format .fields .into_iter() @@ -53,6 +54,8 @@ fn main() { struct FbField { label: Option, path: Option, + #[serde(rename = "$ref")] + r#ref: Option, } #[derive(Deserialize)] struct FbFormat { @@ -61,8 +64,13 @@ fn main() { fields: Option>, } #[derive(Deserialize)] + struct FbDefinition { + label: Option, + } + #[derive(Deserialize)] struct FbDisplay { formats: HashMap, + definitions: Option>, } #[derive(Deserialize)] struct FbSpec { @@ -70,15 +78,29 @@ fn main() { } if let Ok(fb) = serde_json::from_str::(contents) { if let Some(display) = fb.display { - for (selector, fmt) in display.formats.into_iter() { - if selector.len() == 10 && selector.starts_with("0x") { + let defs = display.definitions.unwrap_or_default(); + for (key, fmt) in display.formats.into_iter() { + if let Some(selector) = normalize_selector(&key) { let fields: Vec<_> = fmt .fields .unwrap_or_default() .into_iter() - .map(|f| SimpleField { - label: f.label.unwrap_or_default(), - path: f.path.unwrap_or_default(), + .map(|f| { + // derive label: explicit label, else from $ref -> definitions + let label = if let Some(lbl) = f.label { + lbl + } else if let Some(r) = f.r#ref { + let key = r.rsplit('.').next().unwrap_or(&r); + defs.get(key) + .and_then(|d| d.label.clone()) + .unwrap_or_default() + } else { + String::new() + }; + SimpleField { + label, + path: f.path.unwrap_or_default(), + } }) .collect(); entries.push(RegistryEntry { @@ -205,3 +227,31 @@ fn visit_dir(dir: &std::path::Path, cb: &mut F fn escape(s: &str) -> String { s.replace('"', "\\\"") } + +// Normalize a format key into a 4-byte calldata selector (0xXXXXXXXX) +// Accepted inputs: +// - Already a selector: "0x0123abcd" (case-insensitive) +// - Function signature: "transfer(address,uint256)" -> keccak256 and take first 4 bytes +// Any other form (e.g., EIP-712 primary type like "mint") returns None. +fn normalize_selector(key: &str) -> Option { + let k = key.trim(); + // Already a 4-byte selector + if k.len() == 10 && k.starts_with("0x") && k.chars().skip(2).all(|c| c.is_ascii_hexdigit()) { + return Some(k.to_ascii_lowercase()); + } + // Function signature form: name(args) + if let (Some(l), Some(r)) = (k.find('('), k.rfind(')')) { + if r > l { + let sig = &k[..=r]; // include ')' + // Remove any internal whitespace to be safe + let cleaned: String = sig.chars().filter(|c| !c.is_whitespace()).collect(); + let digest = keccak256(cleaned.as_bytes()); + let selector = &digest.as_slice()[..4]; + return Some(format!( + "0x{:02x}{:02x}{:02x}{:02x}", + selector[0], selector[1], selector[2], selector[3] + )); + } + } + None +} diff --git a/src/chain_parsers/visualsign-ethereum/src/registry.rs b/src/chain_parsers/visualsign-ethereum/src/registry.rs index f8002594..bdf72018 100644 --- a/src/chain_parsers/visualsign-ethereum/src/registry.rs +++ b/src/chain_parsers/visualsign-ethereum/src/registry.rs @@ -109,16 +109,6 @@ pub fn decode_calldata(calldata: &[u8]) -> Option> { text_v2: SignablePayloadFieldTextV2 { text: text_content }, }); } - if fields.is_empty() { - // Provide at least a raw calldata field if nothing matched - fields.push(SignablePayloadField::TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: selector_hex.clone(), - label: "Function Selector".into(), - }, - text_v2: SignablePayloadFieldTextV2 { text: selector_hex }, - }); - } Some(fields) } diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected new file mode 100644 index 00000000..0a90af30 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected @@ -0,0 +1,63 @@ +SignablePayload { + fields: [ + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "Ethereum Mainnet", + label: "Network", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "Ethereum Mainnet", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9", + label: "To", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0 ETH", + label: "Value", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0 ETH", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "318162", + label: "Gas Limit", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "318162", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "5", + label: "Nonce", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "5", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0xe8eda9df0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f68a392712174eecc6e4d00d7cf444dd5203aa5c0000000000000000000000000000000000000000000000000000000000000000", + label: "Input Data", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0xe8eda9df0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f68a392712174eecc6e4d00d7cf444dd5203aa5c0000000000000000000000000000000000000000000000000000000000000000", + }, + }, + ], + payload_type: "EthereumTx", + subtitle: None, + title: "Ethereum Transaction", + version: "0", +} + diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.input b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.input new file mode 100644 index 00000000..1cb3b850 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.input @@ -0,0 +1 @@ +0x02f8ad0105843b9aca0084607128e58304dad2947d2768de32b0b80b7a3454c06bdac94a69ddc7a980b884e8eda9df0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f68a392712174eecc6e4d00d7cf444dd5203aa5c0000000000000000000000000000000000000000000000000000000000000000c0 diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected new file mode 100644 index 00000000..df2a105a --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected @@ -0,0 +1,62 @@ +SignablePayload { + fields: [ + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "Polygon Mainnet", + label: "Network", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "Polygon Mainnet", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x33c6Eec1723B12c46732f7AB41398DE45641Fa42", + label: "To", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0x33c6Eec1723B12c46732f7AB41398DE45641Fa42", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0 ETH", + label: "Value", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0 ETH", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "250000", + label: "Gas Limit", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "250000", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "82909", + label: "Nonce", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "82909", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0xef74a9fc00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009e494d1832c1715255ccaf69958869e4a43fd76b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000411f5fac0ddda7f09f84ad13a6102b07920b484281a4af32610a78d81c73449ad753007673bf3a93b5f5a48c64d23cd831a502c33c5febf1356d8799e0940379b51c00000000000000000000000000000000000000000000000000000000000000", + label: "Input Data", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0xef74a9fc00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009e494d1832c1715255ccaf69958869e4a43fd76b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000411f5fac0ddda7f09f84ad13a6102b07920b484281a4af32610a78d81c73449ad753007673bf3a93b5f5a48c64d23cd831a502c33c5febf1356d8799e0940379b51c00000000000000000000000000000000000000000000000000000000000000", + }, + }, + ], + payload_type: "EthereumTx", + subtitle: None, + title: "Ethereum Transaction", + version: "0", +} diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input new file mode 100644 index 00000000..38cfc944 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input @@ -0,0 +1 @@ +0x02f901348189830143dd85746a52880085746a5288008303d0909433c6eec1723b12c46732f7ab41398de45641fa4280b90104ef74a9fc00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009e494d1832c1715255ccaf69958869e4a43fd76b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000411f5fac0ddda7f09f84ad13a6102b07920b484281a4af32610a78d81c73449ad753007673bf3a93b5f5a48c64d23cd831a502c33c5febf1356d8799e0940379b51c00000000000000000000000000000000000000000000000000000000000000c0 diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected new file mode 100644 index 00000000..62af065e --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected @@ -0,0 +1,75 @@ +SignablePayload { + fields: [ + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "Polygon Mainnet", + label: "Network", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "Polygon Mainnet", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x33c6Eec1723B12c46732f7AB41398DE45641Fa42", + label: "Interacting with", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "ParaSwap: AugustusSwapper 5", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "simpleBuy", + label: "Function", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "simpleBuy", + }, + }, + AmountV2 { + amount_v2: SignablePayloadFieldAmountV2 { + amount: "1", + asset: Some( + Asset { + address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", + chain_id: "137", + decimals: 6, + logo_uri: None, + name: "Tether USD", + symbol: "USDT", + }, + ), + }, + common: SignablePayloadFieldCommon { + fallback_text: "1 USDT", + label: "You send", + }, + }, + AmountV2 { + amount_v2: SignablePayloadFieldAmountV2 { + amount: "0.994251", + asset: Some( + Asset { + address: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174", + chain_id: "137", + decimals: 6, + logo_uri: None, + name: "USD Coin (PoS)", + symbol: "USDC", + }, + ), + }, + common: SignablePayloadFieldCommon { + fallback_text: "0.994251 USDC", + label: "You receive at least", + }, + }, + ], + payload_type: "EthereumTx", + subtitle: Some( + "ParaSwap", + ), + title: "Swap", + version: "0", +} diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input new file mode 100644 index 00000000..9aba9f77 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input @@ -0,0 +1 @@ +0x02f901348189830143e985746a52880085746a5288008303d0909433c6eec1723b12c46732f7ab41398de45641fa4280b90104ef74a9fc0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c20bff90108d64ff52bd0a92b268a8cc867d944b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004180a79d9d3f541a6afab78a470a91f06fe214e928baf857b6bb5ab89b773c3e107b6f1493bed02d732516896e873f1dee545b761be242e5128d133e7aef7907481b00000000000000000000000000000000000000000000000000000000000000c0 \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs b/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs index 2c448416..a9c0f0ad 100644 --- a/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs +++ b/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs @@ -12,14 +12,10 @@ fn fixture_path(name: &str) -> PathBuf { path } -static FIXTURES: [&str; 2] = ["1559", "legacy"]; +fn test_fixture_dir(path: &str, fixtures: &[&str]) { + let fixtures_dir = fixture_path(path); -#[test] -fn test_with_fixtures() { - // Get paths for all test cases - let fixtures_dir = fixture_path(""); - - for test_name in FIXTURES { + for test_name in fixtures { let input_path = fixtures_dir.join(format!("{}.input", test_name)); // Read input file contents @@ -62,3 +58,12 @@ fn test_with_fixtures() { ); } } + +#[test] +fn test_with_fixtures() { + test_fixture_dir("", &["1559", "legacy"]); + test_fixture_dir( + "eip7730", + &["aave_deposit", "ledgerquest_mint", "paraswap_simpleBuy"], + ); +} From 632d4cc8a0b44b3765b8db9088542e3326564320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Stielau?= Date: Mon, 1 Sep 2025 00:23:43 +0000 Subject: [PATCH 9/9] Refactor EIP-7730 visualizer and registry handling - Renamed Eip7730Visualizer to Eip7730TxVisualizer for clarity. - Updated visualize_tx_commands to create a list layout of decoded fields instead of a single text field. - Enhanced decode_calldata to extract values based on field paths and create appropriate SignablePayloadFields. - Introduced helper functions for extracting values from calldata and creating typed fields. - Removed outdated test fixtures for ledgerquest_mint and paraswap_simpleBuy. - Added new test fixture for paraswap_simpleSwap. - Updated tests to reflect changes in the visualizer output structure. - Implemented a build script to generate the registry from JSON definitions. --- src/Cargo.lock | 1 + .../visualsign-ethereum/Cargo.toml | 3 + .../visualsign-ethereum/build.rs | 256 +-------------- .../visualsign-ethereum/build_src/gen.rs | 291 ++++++++++++++++++ .../src/provider/eip7730.rs | 35 ++- .../visualsign-ethereum/src/registry.rs | 129 +++++++- .../visualsign-ethereum/tests/build_gen.rs | 65 ++++ .../fixtures/eip7730/aave_deposit.expected | 43 ++- .../eip7730/ledgerquest_mint.expected | 62 ---- .../fixtures/eip7730/ledgerquest_mint.input | 1 - .../eip7730/paraswap_simpleBuy.expected | 75 ----- .../fixtures/eip7730/paraswap_simpleBuy.input | 1 - .../eip7730/paraswap_simpleSwap.expected | 117 +++++++ .../eip7730/paraswap_simpleSwap.input | 1 + .../visualsign-ethereum/tests/lib_test.rs | 5 +- 15 files changed, 664 insertions(+), 421 deletions(-) create mode 100644 src/chain_parsers/visualsign-ethereum/build_src/gen.rs create mode 100644 src/chain_parsers/visualsign-ethereum/tests/build_gen.rs delete mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected delete mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input delete mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected delete mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.expected create mode 100644 src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.input diff --git a/src/Cargo.lock b/src/Cargo.lock index 25604102..081ef423 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -10873,6 +10873,7 @@ dependencies = [ "phf_codegen", "serde", "serde_json", + "tempfile", "thiserror 2.0.12", "visualsign 0.1.0", "visualsign-erc7730-adapter", diff --git a/src/chain_parsers/visualsign-ethereum/Cargo.toml b/src/chain_parsers/visualsign-ethereum/Cargo.toml index 86bc7898..60b5b480 100644 --- a/src/chain_parsers/visualsign-ethereum/Cargo.toml +++ b/src/chain_parsers/visualsign-ethereum/Cargo.toml @@ -24,3 +24,6 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" visualsign-erc7730-adapter = { git = "ssh://git@github.com/anchorageoss/visualsign-erc-7730-adapter.git", branch = "main" } alloy-primitives = "1.0.20" + +[dev-dependencies] +tempfile = "3" diff --git a/src/chain_parsers/visualsign-ethereum/build.rs b/src/chain_parsers/visualsign-ethereum/build.rs index d57c2415..f22023d9 100644 --- a/src/chain_parsers/visualsign-ethereum/build.rs +++ b/src/chain_parsers/visualsign-ethereum/build.rs @@ -1,257 +1,25 @@ -use alloy_primitives::keccak256; -use serde::Deserialize; -use std::collections::HashMap; use std::{env, fs, io::Write, path::PathBuf}; +mod build_gen { + include!(concat!(env!("CARGO_MANIFEST_DIR"), "/build_src/gen.rs")); +} + fn main() { // Directory containing the JSON registry specs let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); let registry_dir = manifest_dir.join("static/eip7730/registry"); println!("cargo:rerun-if-changed={}", registry_dir.display()); + // Also rerun if the generator itself changes + let gen_src = manifest_dir.join("build_src/gen.rs"); + println!("cargo:rerun-if-changed={}", gen_src.display()); - let mut entries: Vec = Vec::new(); - - visit_dir(®istry_dir, &mut |path, contents| { - if let Some(ext) = path.extension().and_then(|e| e.to_str()) { - if ext != "json" { - return; - } - } else { - return; - } - // Primary parse via adapter - let mut parsed_any = false; - if let Ok(spec) = visualsign_erc7730_adapter::types::ERC7730::from_json(contents) { - if let Some(display) = spec.display { - for (key, format) in display.formats.into_iter() { - if let Some(selector) = normalize_selector(&key) { - let fields: Vec<_> = format - .fields - .into_iter() - .map(|f| SimpleField { - label: f.label, - path: f.path, - }) - .collect(); - entries.push(RegistryEntry { - selector, - format_id: format.id, - source_file: path - .strip_prefix(®istry_dir) - .unwrap() - .to_string_lossy() - .to_string(), - fields, - }); - parsed_any = true; - } - } - } - } - if !parsed_any { - // Fallback lightweight parse of display.formats[*].fields - #[derive(Deserialize)] - struct FbField { - label: Option, - path: Option, - #[serde(rename = "$ref")] - r#ref: Option, - } - #[derive(Deserialize)] - struct FbFormat { - #[serde(rename = "$id")] - id: Option, - fields: Option>, - } - #[derive(Deserialize)] - struct FbDefinition { - label: Option, - } - #[derive(Deserialize)] - struct FbDisplay { - formats: HashMap, - definitions: Option>, - } - #[derive(Deserialize)] - struct FbSpec { - display: Option, - } - if let Ok(fb) = serde_json::from_str::(contents) { - if let Some(display) = fb.display { - let defs = display.definitions.unwrap_or_default(); - for (key, fmt) in display.formats.into_iter() { - if let Some(selector) = normalize_selector(&key) { - let fields: Vec<_> = fmt - .fields - .unwrap_or_default() - .into_iter() - .map(|f| { - // derive label: explicit label, else from $ref -> definitions - let label = if let Some(lbl) = f.label { - lbl - } else if let Some(r) = f.r#ref { - let key = r.rsplit('.').next().unwrap_or(&r); - defs.get(key) - .and_then(|d| d.label.clone()) - .unwrap_or_default() - } else { - String::new() - }; - SimpleField { - label, - path: f.path.unwrap_or_default(), - } - }) - .collect(); - entries.push(RegistryEntry { - selector, - format_id: fmt.id, - source_file: path - .strip_prefix(®istry_dir) - .unwrap() - .to_string_lossy() - .to_string(), - fields, - }); - } - } - } - } - } - }); + // Collect entries and generate Rust code + let entries = build_gen::collect_entries(®istry_dir); + let generated = build_gen::generate_registry_rs(&entries); - // Generate Rust code + // Write to OUT_DIR let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); let dest_path = out_dir.join("erc7730_registry_gen.rs"); let mut file = fs::File::create(&dest_path).unwrap(); - - // De-duplicate selectors grouping indexes - let mut selector_map: HashMap> = HashMap::new(); - for (idx, e) in entries.iter().enumerate() { - selector_map - .entry(e.selector.clone()) - .or_default() - .push(idx); - } - - writeln!( - file, - "// @generated automatically by build.rs; DO NOT EDIT\n" - ) - .unwrap(); - writeln!( - file, - "#[derive(Debug)] pub struct GenField {{ pub label: &'static str, pub path: &'static str }}" - ) - .unwrap(); - writeln!(file, "#[derive(Debug)] pub struct GenFormat {{ pub source_file: &'static str, pub selector: &'static str, pub format_id: Option<&'static str>, pub fields: &'static [GenField] }}").unwrap(); - - // Emit fields and formats as separate static arrays for reuse - for (i, entry) in entries.iter().enumerate() { - write!( - file, - "static FIELDS_{i}: [GenField; {}] = [", - entry.fields.len() - ) - .unwrap(); - for f in &entry.fields { - write!( - file, - "GenField {{ label: \"{}\", path: \"{}\" }},", - escape(&f.label), - escape(&f.path) - ) - .unwrap(); - } - writeln!(file, "];\n").unwrap(); - let format_id = entry - .format_id - .as_ref() - .map(|s| format!("Some(\"{}\")", escape(s))) - .unwrap_or_else(|| "None".to_string()); - writeln!(file, "static FORMAT_{i}: GenFormat = GenFormat {{ source_file: \"{}\", selector: \"{}\", format_id: {format_id}, fields: &FIELDS_{i} }};\n", escape(&entry.source_file), escape(&entry.selector)).unwrap(); - } - - // Build per-selector format slices - let mut grouped: Vec<(&String, &Vec)> = selector_map.iter().collect(); - grouped.sort_by(|a, b| a.0.cmp(b.0)); - for (idx, (_sel, list)) in grouped.iter().enumerate() { - write!( - file, - "static FORMATS_FOR_{idx}: [&GenFormat; {}] = [", - list.len() - ) - .unwrap(); - for fi in *list { - write!(file, "&FORMAT_{fi},").unwrap(); - } - writeln!(file, "];\n").unwrap(); - } - - // phf map: selector -> slice of &GenFormat - writeln!(file, "pub static SELECTOR_MAP: phf::Map<&'static str, &'static [&'static GenFormat]> = phf::phf_map! {{").unwrap(); - for (idx, (sel, _)) in grouped.iter().enumerate() { - writeln!(file, " \"{}\" => &FORMATS_FOR_{idx},", escape(sel)).unwrap(); - } - writeln!(file, "}};\n").unwrap(); -} - -#[derive(Debug)] -struct RegistryEntry { - selector: String, - format_id: Option, - source_file: String, - fields: Vec, -} -#[derive(Debug)] -struct SimpleField { - label: String, - path: String, -} - -fn visit_dir(dir: &std::path::Path, cb: &mut F) { - if let Ok(read_dir) = std::fs::read_dir(dir) { - for entry in read_dir.flatten() { - let path = entry.path(); - if path.is_dir() { - visit_dir(&path, cb); - } else if let Ok(bytes) = std::fs::read(&path) { - if let Ok(s) = String::from_utf8(bytes) { - cb(&path, &s); - } - } - } - } -} - -fn escape(s: &str) -> String { - s.replace('"', "\\\"") -} - -// Normalize a format key into a 4-byte calldata selector (0xXXXXXXXX) -// Accepted inputs: -// - Already a selector: "0x0123abcd" (case-insensitive) -// - Function signature: "transfer(address,uint256)" -> keccak256 and take first 4 bytes -// Any other form (e.g., EIP-712 primary type like "mint") returns None. -fn normalize_selector(key: &str) -> Option { - let k = key.trim(); - // Already a 4-byte selector - if k.len() == 10 && k.starts_with("0x") && k.chars().skip(2).all(|c| c.is_ascii_hexdigit()) { - return Some(k.to_ascii_lowercase()); - } - // Function signature form: name(args) - if let (Some(l), Some(r)) = (k.find('('), k.rfind(')')) { - if r > l { - let sig = &k[..=r]; // include ')' - // Remove any internal whitespace to be safe - let cleaned: String = sig.chars().filter(|c| !c.is_whitespace()).collect(); - let digest = keccak256(cleaned.as_bytes()); - let selector = &digest.as_slice()[..4]; - return Some(format!( - "0x{:02x}{:02x}{:02x}{:02x}", - selector[0], selector[1], selector[2], selector[3] - )); - } - } - None + writeln!(file, "{generated}").unwrap(); } diff --git a/src/chain_parsers/visualsign-ethereum/build_src/gen.rs b/src/chain_parsers/visualsign-ethereum/build_src/gen.rs new file mode 100644 index 00000000..91777a43 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/build_src/gen.rs @@ -0,0 +1,291 @@ +use alloy_primitives::keccak256; +use serde::Deserialize; +use std::collections::HashMap; +use std::path::Path; + +#[derive(Debug, Clone)] +pub struct RegistryEntry { + pub selector: String, + pub format_id: Option, + pub source_file: String, + pub fields: Vec, +} + +#[derive(Debug, Clone)] +pub struct SimpleField { + pub label: String, + pub path: String, + pub format: Option, + pub params: Option>, +} + +/// Recursively visit a directory and invoke callback with (path, contents) for each UTF-8 file. +fn visit_dir(dir: &std::path::Path, cb: &mut F) { + if let Ok(read_dir) = std::fs::read_dir(dir) { + for entry in read_dir.flatten() { + let path = entry.path(); + if path.is_dir() { + visit_dir(&path, cb); + } else if let Ok(bytes) = std::fs::read(&path) { + if let Ok(s) = String::from_utf8(bytes) { + cb(&path, &s); + } + } + } + } +} + +fn escape(s: &str) -> String { + s.replace('"', "\\\"") +} + +/// Normalize a format key into a 4-byte calldata selector (0xXXXXXXXX) +/// Accepted inputs: +/// - Already a selector: "0x0123abcd" (case-insensitive) +/// - Function signature: "transfer(address,uint256)" -> keccak256 and take first 4 bytes +/// Any other form (e.g., EIP-712 primary type like "mint") returns None. +pub fn normalize_selector(key: &str) -> Option { + let k = key.trim(); + // Already a 4-byte selector + if k.len() == 10 && k.starts_with("0x") && k.chars().skip(2).all(|c| c.is_ascii_hexdigit()) { + return Some(k.to_ascii_lowercase()); + } + // Function signature form: name(args) + if let (Some(_l), Some(r)) = (k.find('('), k.rfind(')')) { + if r > 0 { + let sig = &k[..=r]; // include ')' + // Remove any internal whitespace to be safe + let cleaned: String = sig.chars().filter(|c| !c.is_whitespace()).collect(); + let digest = keccak256(cleaned.as_bytes()); + let selector = &digest.as_slice()[..4]; + return Some(format!( + "0x{:02x}{:02x}{:02x}{:02x}", + selector[0], selector[1], selector[2], selector[3] + )); + } + } + None +} + +/// Read the ERC-7730 registry under the given directory and collect display entries +/// for calldata (selector-keyed) formats. Primary parsing uses the adapter; if that +/// fails, a lightweight fallback extracts display.formats[*].fields labels/paths. +pub fn collect_entries(registry_dir: &Path) -> Vec { + let mut entries: Vec = Vec::new(); + + visit_dir(registry_dir, &mut |path, contents| { + if let Some(ext) = path.extension().and_then(|e| e.to_str()) { + if ext != "json" { + return; + } + } else { + return; + } + + // Primary parse via adapter + let mut parsed_any = false; + if let Ok(spec) = visualsign_erc7730_adapter::types::ERC7730::from_json(contents) { + if let Some(display) = spec.display { + for (key, format) in display.formats.into_iter() { + if let Some(selector) = normalize_selector(&key) { + let fields: Vec<_> = format + .fields + .into_iter() + .map(|f| SimpleField { + label: f.label, + path: f.path, + format: None, // The adapter doesn't provide format info, will extract from raw JSON instead + params: None, + }) + .collect(); + entries.push(RegistryEntry { + selector, + format_id: format.id, + source_file: path + .strip_prefix(registry_dir) + .unwrap_or(path) + .to_string_lossy() + .to_string(), + fields, + }); + parsed_any = true; + } + } + } + } + if !parsed_any { + // Fallback lightweight parse of display.formats[*].fields + #[derive(Deserialize)] + struct FbField { + label: Option, + path: Option, + #[serde(rename = "$ref")] + r#ref: Option, + format: Option, + params: Option>, + } + #[derive(Deserialize)] + struct FbFormat { + #[serde(rename = "$id")] + id: Option, + fields: Option>, + } + #[derive(Deserialize)] + struct FbDefinition { + label: Option, + format: Option, + params: Option>, + } + #[derive(Deserialize)] + struct FbDisplay { + formats: HashMap, + definitions: Option>, + } + #[derive(Deserialize)] + struct FbSpec { + display: Option, + } + if let Ok(fb) = serde_json::from_str::(contents) { + if let Some(display) = fb.display { + let defs = display.definitions.unwrap_or_default(); + for (key, fmt) in display.formats.into_iter() { + if let Some(selector) = normalize_selector(&key) { + let fields: Vec<_> = fmt + .fields + .unwrap_or_default() + .into_iter() + .map(|f| { + // derive label: explicit label, else from $ref -> definitions + let label = if let Some(lbl) = f.label { + lbl + } else if let Some(ref r) = f.r#ref { + let key = r.rsplit('.').next().unwrap_or(r); + defs.get(key) + .and_then(|d| d.label.clone()) + .unwrap_or_default() + } else { + String::new() + }; + + // derive format: explicit format, else from $ref -> definitions + let format = if let Some(fmt) = f.format { + Some(fmt) + } else if let Some(ref r) = f.r#ref { + let key = r.rsplit('.').next().unwrap_or(r); + defs.get(key).and_then(|d| d.format.clone()) + } else { + None + }; + + // derive params: explicit params, else from $ref -> definitions + let params = if let Some(p) = f.params { + Some(p) + } else if let Some(ref r) = f.r#ref { + let key = r.rsplit('.').next().unwrap_or(r); + defs.get(key).and_then(|d| d.params.clone()) + } else { + None + }; + + SimpleField { + label, + path: f.path.unwrap_or_default(), + format, + params, + } + }) + .collect(); + entries.push(RegistryEntry { + selector, + format_id: fmt.id, + source_file: path + .strip_prefix(registry_dir) + .unwrap_or(path) + .to_string_lossy() + .to_string(), + fields, + }); + } + } + } + } + } + }); + + entries +} + +/// Generate the Rust source for the registry map used at runtime. +pub fn generate_registry_rs(entries: &[RegistryEntry]) -> String { + // De-duplicate selectors grouping indexes + let mut selector_map: HashMap> = HashMap::new(); + for (idx, e) in entries.iter().enumerate() { + selector_map + .entry(e.selector.clone()) + .or_default() + .push(idx); + } + + let mut out = String::new(); + out.push_str("// @generated automatically by build.rs; DO NOT EDIT\n\n"); + out.push_str( + "#[derive(Debug)] pub struct GenField { pub label: &'static str, pub path: &'static str, pub format: Option<&'static str> }\n", + ); + out.push_str("#[derive(Debug)] pub struct GenFormat { pub source_file: &'static str, pub selector: &'static str, pub format_id: Option<&'static str>, pub fields: &'static [GenField] }\n\n"); + + // Emit fields and formats as separate static arrays for reuse + for (i, entry) in entries.iter().enumerate() { + out.push_str(&format!( + "static FIELDS_{i}: [GenField; {}] = [", + entry.fields.len() + )); + for f in &entry.fields { + let format_str = f + .format + .as_ref() + .map(|s| format!("Some(\"{}\")", escape(s))) + .unwrap_or_else(|| "None".to_string()); + out.push_str(&format!( + "GenField {{ label: \"{}\", path: \"{}\", format: {} }},", + escape(&f.label), + escape(&f.path), + format_str + )); + } + out.push_str("];\n\n"); + let format_id = entry + .format_id + .as_ref() + .map(|s| format!("Some(\"{}\")", escape(s))) + .unwrap_or_else(|| "None".to_string()); + out.push_str(&format!( + "static FORMAT_{i}: GenFormat = GenFormat {{ source_file: \"{}\", selector: \"{}\", format_id: {format_id}, fields: &FIELDS_{i} }};\n\n", + escape(&entry.source_file), + escape(&entry.selector) + )); + } + + // Build per-selector format slices + let mut grouped: Vec<(&String, &Vec)> = selector_map.iter().collect(); + grouped.sort_by(|a, b| a.0.cmp(b.0)); + for (idx, (_sel, list)) in grouped.iter().enumerate() { + out.push_str(&format!( + "static FORMATS_FOR_{idx}: [&GenFormat; {}] = [", + list.len() + )); + for fi in *list { + out.push_str(&format!("&FORMAT_{fi},")); + } + out.push_str("];\n\n"); + } + + // phf map: selector -> slice of &GenFormat + out.push_str( + "pub static SELECTOR_MAP: phf::Map<&'static str, &'static [&'static GenFormat]> = phf::phf_map! {\n", + ); + for (idx, (sel, _)) in grouped.iter().enumerate() { + out.push_str(&format!(" \"{}\" => &FORMATS_FOR_{idx},\n", escape(sel))); + } + out.push_str("};\n"); + out +} diff --git a/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs b/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs index 31a75a55..75b3af4e 100644 --- a/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs +++ b/src/chain_parsers/visualsign-ethereum/src/provider/eip7730.rs @@ -1,27 +1,36 @@ use crate::registry::{CommandVisualizer, VisualizerContext, decode_calldata}; -use visualsign::{SignablePayloadField, SignablePayloadFieldCommon, SignablePayloadFieldTextV2}; +use visualsign::{ + AnnotatedPayloadField, SignablePayloadField, SignablePayloadFieldCommon, + SignablePayloadFieldListLayout, +}; -pub struct Eip7730Visualizer; +pub struct Eip7730TxVisualizer; -impl CommandVisualizer for Eip7730Visualizer { +impl CommandVisualizer for Eip7730TxVisualizer { fn visualize_tx_commands(&self, context: &VisualizerContext) -> Option { let decoded = decode_calldata(context.calldata)?; if decoded.is_empty() { return None; } - if decoded.len() == 1 { - // A single decoded field is already suitably granular. - return Some(decoded.into_iter().next().unwrap()); - } - // Summarize multiple decoded fields by listing their labels. - let labels: Vec = decoded.iter().map(|f| f.label().to_string()).collect(); - let summary_text = format!("Decoded Input Fields: {}", labels.join(", ")); - Some(SignablePayloadField::TextV2 { + + // Create one item per decoded field, using the actual field types and values + let items: Vec = decoded + .into_iter() + .map(|field| AnnotatedPayloadField { + signable_payload_field: field, + static_annotation: None, + dynamic_annotation: None, + }) + .collect(); + + let summary_text = format!("Decoded {} field(s)", items.len()); + + Some(SignablePayloadField::ListLayout { common: SignablePayloadFieldCommon { - fallback_text: summary_text.clone(), + fallback_text: summary_text, label: "Decoded Input".to_string(), }, - text_v2: SignablePayloadFieldTextV2 { text: summary_text }, + list_layout: SignablePayloadFieldListLayout { fields: items }, }) } } diff --git a/src/chain_parsers/visualsign-ethereum/src/registry.rs b/src/chain_parsers/visualsign-ethereum/src/registry.rs index bdf72018..c0dcb70f 100644 --- a/src/chain_parsers/visualsign-ethereum/src/registry.rs +++ b/src/chain_parsers/visualsign-ethereum/src/registry.rs @@ -1,10 +1,14 @@ include!(concat!(env!("OUT_DIR"), "/erc7730_registry_gen.rs")); +use crate::provider::eip7730::Eip7730TxVisualizer; use alloy_primitives::Address; use std::{ collections::HashMap, sync::{Arc, Once}, }; -use visualsign::{SignablePayloadField, SignablePayloadFieldCommon, SignablePayloadFieldTextV2}; +use visualsign::{ + SignablePayloadField, SignablePayloadFieldAddressV2, SignablePayloadFieldAmountV2, + SignablePayloadFieldCommon, SignablePayloadFieldNumber, SignablePayloadFieldTextV2, +}; /// Context passed to visualizers for higher-level command rendering #[derive(Debug)] @@ -75,9 +79,19 @@ pub fn try_visualize_commands( to: Option
, calldata: &[u8], ) -> Option { - let to_addr = to?; // need a concrete address for lookup - let v = get_visualizer(chain_id, to_addr)?; - v.visualize_tx_commands(&VisualizerContext { + // Prefer a specifically registered visualizer if available + if let Some(to_addr) = to { + if let Some(v) = get_visualizer(chain_id, to_addr) { + return v.visualize_tx_commands(&VisualizerContext { + chain_id, + to, + calldata, + }); + } + } + // Fallback to generic EIP-7730 visualizer (selector-based) if none registered + let generic = Eip7730TxVisualizer; + generic.visualize_tx_commands(&VisualizerContext { chain_id, to, calldata, @@ -85,8 +99,8 @@ pub fn try_visualize_commands( } /// Given calldata bytes, attempt to produce SignablePayloadFields using the registry. -/// Current implementation is heuristic and does not ABI-decode parameters; it surfaces field -/// labels and paths as plain text fields. Future improvements can plug proper ABI decoding. +/// Extracts values from calldata based on field paths and creates appropriate field types +/// based on field format metadata. Falls back to TextV2 when format is not defined. pub fn decode_calldata(calldata: &[u8]) -> Option> { if calldata.len() < 4 { return None; @@ -98,20 +112,105 @@ pub fn decode_calldata(calldata: &[u8]) -> Option> { let formats = SELECTOR_MAP.get(&*selector_hex)?; let format = formats.first()?; let mut fields = Vec::new(); - for f in format.fields.iter() { + + // Skip the 4-byte selector to get to the actual parameters + let params_data = &calldata[4..]; + + for (field_index, f) in format.fields.iter().enumerate() { let label = f.label.to_string(); - let text_content = f.path.to_string(); - fields.push(SignablePayloadField::TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: text_content.clone(), - label, - }, - text_v2: SignablePayloadFieldTextV2 { text: text_content }, - }); + + // Extract value from calldata based on field path + let extracted_value = extract_value_from_calldata(params_data, &f.path, field_index); + + // Create appropriate field based on format + let field = create_typed_field(&label, &f.path, &extracted_value, f.format.as_deref()); + fields.push(field); } Some(fields) } +/// Extract value from calldata based on the field path +/// For now, this is a simple implementation that extracts ABI-encoded parameters +fn extract_value_from_calldata(params_data: &[u8], path: &str, field_index: usize) -> String { + // Simple extraction: each parameter is 32 bytes in standard ABI encoding + let start_offset = field_index * 32; + + if start_offset + 32 <= params_data.len() { + let param_bytes = ¶ms_data[start_offset..start_offset + 32]; + + // For paths that suggest an address, format as hex address + if path.contains("address") || path.contains("to") || path.contains("recipient") { + // Take last 20 bytes for address (addresses are right-padded in 32-byte words) + let addr_bytes = ¶m_bytes[12..32]; + format!("0x{}", hex::encode(addr_bytes)) + } else if path.contains("amount") || path.contains("value") || path.contains("tokenId") { + // Decode as uint256 + let mut value = alloy_primitives::U256::ZERO; + for (i, &byte) in param_bytes.iter().enumerate() { + value = value + + alloy_primitives::U256::from(byte) + * alloy_primitives::U256::from(256) + .pow(alloy_primitives::U256::from(31 - i)); + } + value.to_string() + } else { + // Default: show as hex for debugging + format!("0x{}", hex::encode(param_bytes)) + } + } else { + // Not enough data, return placeholder + format!("0x{}", hex::encode(&[0u8; 32])) + } +} + +/// Create appropriate SignablePayloadField based on format type +fn create_typed_field( + label: &str, + _path: &str, + value: &str, + format: Option<&str>, +) -> SignablePayloadField { + let common = SignablePayloadFieldCommon { + fallback_text: value.to_string(), + label: label.to_string(), + }; + + match format { + Some("addressName") | Some("address") => SignablePayloadField::AddressV2 { + common, + address_v2: SignablePayloadFieldAddressV2 { + address: value.to_string(), + name: String::new(), + memo: None, + asset_label: String::new(), + badge_text: None, + }, + }, + Some("tokenAmount") | Some("amount") => SignablePayloadField::AmountV2 { + common, + amount_v2: SignablePayloadFieldAmountV2 { + amount: value.to_string(), + abbreviation: None, + }, + }, + Some("number") => SignablePayloadField::Number { + common, + number: SignablePayloadFieldNumber { + number: value.to_string(), + }, + }, + _ => { + // Default to TextV2 when format is not defined or unknown + SignablePayloadField::TextV2 { + common, + text_v2: SignablePayloadFieldTextV2 { + text: value.to_string(), + }, + } + } + } +} + #[cfg(test)] mod tests { use super::*; diff --git a/src/chain_parsers/visualsign-ethereum/tests/build_gen.rs b/src/chain_parsers/visualsign-ethereum/tests/build_gen.rs new file mode 100644 index 00000000..e69914eb --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/build_gen.rs @@ -0,0 +1,65 @@ +// Bring in the same generator module for tests +mod build_gen { + include!(concat!(env!("CARGO_MANIFEST_DIR"), "/build_src/gen.rs")); +} + +use std::fs; +use std::io::Write; + +#[test] +fn normalize_selector_works() { + assert_eq!( + build_gen::normalize_selector("0xdeadBEEF"), + Some("0xdeadbeef".to_string()) + ); + // keccak256("transfer(address,uint256)")[:4] = a9059cbb + assert_eq!( + build_gen::normalize_selector("transfer(address,uint256)"), + Some("0xa9059cbb".to_string()) + ); +} + +#[test] +fn collect_entries_parses_fallback_json() { + let tmp = tempfile::tempdir().unwrap(); + let reg_dir = tmp.path().to_path_buf(); + let json = r#" + { + "display": { + "formats": { + "0x12345678": { + "$id": "test-format", + "fields": [ + {"label": "Field A", "path": "data.a"}, + {"label": "Field B", "path": "data.b"} + ] + } + } + } + }"#; + let file_path = reg_dir.join("foo.json"); + let mut f = fs::File::create(&file_path).unwrap(); + write!(f, "{json}").unwrap(); + + let entries = build_gen::collect_entries(®_dir); + assert_eq!(entries.len(), 1); + let e = &entries[0]; + assert_eq!(e.selector, "0x12345678"); + assert_eq!(e.fields.len(), 2); + assert_eq!(e.fields[0].label, "Field A"); + assert_eq!(e.fields[0].path, "data.a"); + + let generated = build_gen::generate_registry_rs(&entries); + assert!(generated.contains("phf::phf_map!")); + // Guard: ensure static array declarations end with semicolons + assert!(generated.contains("static FIELDS_0: [GenField; 2] = [")); + assert!( + generated.contains("];\n\nstatic FORMAT_0:"), + "FIELDS array must be closed with ]; followed by next item" + ); + assert!(generated.contains("static FORMATS_FOR_0: [&GenFormat; 1] = [")); + assert!( + generated.contains("];\n\npub static SELECTOR_MAP"), + "FORMATS_FOR array must be closed with ]; before map" + ); +} diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected index 0a90af30..ead0614a 100644 --- a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/aave_deposit.expected @@ -45,13 +45,45 @@ SignablePayload { text: "5", }, }, - TextV2 { + ListLayout { common: SignablePayloadFieldCommon { - fallback_text: "0xe8eda9df0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f68a392712174eecc6e4d00d7cf444dd5203aa5c0000000000000000000000000000000000000000000000000000000000000000", - label: "Input Data", + fallback_text: "Decoded 2 field(s)", + label: "Decoded Input", }, - text_v2: SignablePayloadFieldTextV2 { - text: "0xe8eda9df0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f68a392712174eecc6e4d00d7cf444dd5203aa5c0000000000000000000000000000000000000000000000000000000000000000", + list_layout: SignablePayloadFieldListLayout { + fields: [ + AnnotatedPayloadField { + signable_payload_field: AmountV2 { + common: SignablePayloadFieldCommon { + fallback_text: "196268403159008932410419402999721616371951519129", + label: "Amount to supply", + }, + amount_v2: SignablePayloadFieldAmountV2 { + amount: "196268403159008932410419402999721616371951519129", + abbreviation: None, + }, + }, + static_annotation: None, + dynamic_annotation: None, + }, + AnnotatedPayloadField { + signable_payload_field: AddressV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x00000000000000000000000000000000000000000000000000000000000003e8", + label: "Collateral recipient", + }, + address_v2: SignablePayloadFieldAddressV2 { + address: "0x00000000000000000000000000000000000000000000000000000000000003e8", + name: "", + memo: None, + asset_label: "", + badge_text: None, + }, + }, + static_annotation: None, + dynamic_annotation: None, + }, + ], }, }, ], @@ -60,4 +92,3 @@ SignablePayload { title: "Ethereum Transaction", version: "0", } - diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected deleted file mode 100644 index df2a105a..00000000 --- a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.expected +++ /dev/null @@ -1,62 +0,0 @@ -SignablePayload { - fields: [ - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "Polygon Mainnet", - label: "Network", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "Polygon Mainnet", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "0x33c6Eec1723B12c46732f7AB41398DE45641Fa42", - label: "To", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "0x33c6Eec1723B12c46732f7AB41398DE45641Fa42", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "0 ETH", - label: "Value", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "0 ETH", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "250000", - label: "Gas Limit", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "250000", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "82909", - label: "Nonce", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "82909", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "0xef74a9fc00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009e494d1832c1715255ccaf69958869e4a43fd76b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000411f5fac0ddda7f09f84ad13a6102b07920b484281a4af32610a78d81c73449ad753007673bf3a93b5f5a48c64d23cd831a502c33c5febf1356d8799e0940379b51c00000000000000000000000000000000000000000000000000000000000000", - label: "Input Data", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "0xef74a9fc00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009e494d1832c1715255ccaf69958869e4a43fd76b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000411f5fac0ddda7f09f84ad13a6102b07920b484281a4af32610a78d81c73449ad753007673bf3a93b5f5a48c64d23cd831a502c33c5febf1356d8799e0940379b51c00000000000000000000000000000000000000000000000000000000000000", - }, - }, - ], - payload_type: "EthereumTx", - subtitle: None, - title: "Ethereum Transaction", - version: "0", -} diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input deleted file mode 100644 index 38cfc944..00000000 --- a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/ledgerquest_mint.input +++ /dev/null @@ -1 +0,0 @@ -0x02f901348189830143dd85746a52880085746a5288008303d0909433c6eec1723b12c46732f7ab41398de45641fa4280b90104ef74a9fc00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009e494d1832c1715255ccaf69958869e4a43fd76b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000411f5fac0ddda7f09f84ad13a6102b07920b484281a4af32610a78d81c73449ad753007673bf3a93b5f5a48c64d23cd831a502c33c5febf1356d8799e0940379b51c00000000000000000000000000000000000000000000000000000000000000c0 diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected deleted file mode 100644 index 62af065e..00000000 --- a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.expected +++ /dev/null @@ -1,75 +0,0 @@ -SignablePayload { - fields: [ - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "Polygon Mainnet", - label: "Network", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "Polygon Mainnet", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "0x33c6Eec1723B12c46732f7AB41398DE45641Fa42", - label: "Interacting with", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "ParaSwap: AugustusSwapper 5", - }, - }, - TextV2 { - common: SignablePayloadFieldCommon { - fallback_text: "simpleBuy", - label: "Function", - }, - text_v2: SignablePayloadFieldTextV2 { - text: "simpleBuy", - }, - }, - AmountV2 { - amount_v2: SignablePayloadFieldAmountV2 { - amount: "1", - asset: Some( - Asset { - address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", - chain_id: "137", - decimals: 6, - logo_uri: None, - name: "Tether USD", - symbol: "USDT", - }, - ), - }, - common: SignablePayloadFieldCommon { - fallback_text: "1 USDT", - label: "You send", - }, - }, - AmountV2 { - amount_v2: SignablePayloadFieldAmountV2 { - amount: "0.994251", - asset: Some( - Asset { - address: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174", - chain_id: "137", - decimals: 6, - logo_uri: None, - name: "USD Coin (PoS)", - symbol: "USDC", - }, - ), - }, - common: SignablePayloadFieldCommon { - fallback_text: "0.994251 USDC", - label: "You receive at least", - }, - }, - ], - payload_type: "EthereumTx", - subtitle: Some( - "ParaSwap", - ), - title: "Swap", - version: "0", -} diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input deleted file mode 100644 index 9aba9f77..00000000 --- a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleBuy.input +++ /dev/null @@ -1 +0,0 @@ -0x02f901348189830143e985746a52880085746a5288008303d0909433c6eec1723b12c46732f7ab41398de45641fa4280b90104ef74a9fc0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c20bff90108d64ff52bd0a92b268a8cc867d944b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004180a79d9d3f541a6afab78a470a91f06fe214e928baf857b6bb5ab89b773c3e107b6f1493bed02d732516896e873f1dee545b761be242e5128d133e7aef7907481b00000000000000000000000000000000000000000000000000000000000000c0 \ No newline at end of file diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.expected b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.expected new file mode 100644 index 00000000..90f70777 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.expected @@ -0,0 +1,117 @@ +SignablePayload { + fields: [ + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "BNB Smart Chain Mainnet", + label: "Network", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "BNB Smart Chain Mainnet", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57", + label: "To", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0 ETH", + label: "Value", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0 ETH", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "2000000", + label: "Gas Limit", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "2000000", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0.00000000010000001 ETH", + label: "Gas Price", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "0.00000000010000001 ETH", + }, + }, + TextV2 { + common: SignablePayloadFieldCommon { + fallback_text: "133706", + label: "Nonce", + }, + text_v2: SignablePayloadFieldTextV2 { + text: "133706", + }, + }, + ListLayout { + common: SignablePayloadFieldCommon { + fallback_text: "Decoded 3 field(s)", + label: "Decoded Input", + }, + list_layout: SignablePayloadFieldListLayout { + fields: [ + AnnotatedPayloadField { + signable_payload_field: AmountV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x0000000000000000000000000000000000000000000000000000000000000020", + label: "Amount to Send", + }, + amount_v2: SignablePayloadFieldAmountV2 { + amount: "0x0000000000000000000000000000000000000000000000000000000000000020", + abbreviation: None, + }, + }, + static_annotation: None, + dynamic_annotation: None, + }, + AnnotatedPayloadField { + signable_payload_field: AmountV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x55d398326f99059ff775485246999027b3197955", + label: "Minimum to Receive", + }, + amount_v2: SignablePayloadFieldAmountV2 { + amount: "0x55d398326f99059ff775485246999027b3197955", + abbreviation: None, + }, + }, + static_annotation: None, + dynamic_annotation: None, + }, + AnnotatedPayloadField { + signable_payload_field: AddressV2 { + common: SignablePayloadFieldCommon { + fallback_text: "0x0000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d", + label: "Beneficiary", + }, + address_v2: SignablePayloadFieldAddressV2 { + address: "0x0000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d", + name: "", + memo: None, + asset_label: "", + badge_text: None, + }, + }, + static_annotation: None, + dynamic_annotation: None, + }, + ], + }, + }, + ], + payload_type: "EthereumTx", + subtitle: None, + title: "Ethereum Transaction", + version: "0", +} diff --git a/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.input b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.input new file mode 100644 index 00000000..70eb06c8 --- /dev/null +++ b/src/chain_parsers/visualsign-ethereum/tests/fixtures/eip7730/paraswap_simpleSwap.input @@ -0,0 +1 @@ +0xf9044d83020a4a8405f5e10a831e848094def171fe48cf0115b1d80b88dc8eab59176fee5780b9042454e3f31b000000000000000000000000000000000000000000000000000000000000002000000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d0000000000000000000000000000000000000000000000008c1b4f22ab2660000000000000000000000000000000000000000000000000008c0f197817a61de00000000000000000000000000000000000000000000000008c12af73929ecf9d00000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000068b33493305cf445500e4e35b0ee1d30964bb46a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000053e693c6c7ffc4446c53b205cf513105bf140d7b00000000000000000000000000000000000000000000000000000000000000e491a32b6900000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000008c1b4f22ab2660000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000004deeec6557348085aa57c72514d67070dc863c0a5a8c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e4000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000388080 diff --git a/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs b/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs index a9c0f0ad..595de2b2 100644 --- a/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs +++ b/src/chain_parsers/visualsign-ethereum/tests/lib_test.rs @@ -62,8 +62,5 @@ fn test_fixture_dir(path: &str, fixtures: &[&str]) { #[test] fn test_with_fixtures() { test_fixture_dir("", &["1559", "legacy"]); - test_fixture_dir( - "eip7730", - &["aave_deposit", "ledgerquest_mint", "paraswap_simpleBuy"], - ); + test_fixture_dir("eip7730", &["aave_deposit", "paraswap_simpleSwap"]); }