diff --git a/scripts/configs/abis.ts b/scripts/configs/abis.ts index 310bdfd6..b60df075 100644 --- a/scripts/configs/abis.ts +++ b/scripts/configs/abis.ts @@ -1,3 +1,4 @@ +import {SAFETY_MODULE} from '../generator/safetyModuleGenerator'; import {governanceConfigMainnet} from './governance/ethereum'; import {mainnetProtoV2Pool, mainnetProtoV3Pool} from './pools/ethereum'; @@ -45,4 +46,8 @@ export const DOWNLOAD_ABI_INTERFACES = [ address: mainnetProtoV3Pool.additionalAddresses.UI_POOL_DATA_PROVIDER, name: 'IUiPoolDataProvider', }, + { + address: '0x50f9d4e28309303f0cdcac8af0b569e8b75ab857', + name: 'IStakeToken', + }, ]; diff --git a/scripts/generateABIs.ts b/scripts/generateABIs.ts index 8ee29c56..08409239 100644 --- a/scripts/generateABIs.ts +++ b/scripts/generateABIs.ts @@ -48,4 +48,4 @@ export async function generateABIs(removeExisting: boolean) { } } -generateABIs(); +generateABIs(false); diff --git a/scripts/generator/safetyModuleGenerator.ts b/scripts/generator/safetyModuleGenerator.ts index baa67f74..c5135b03 100644 --- a/scripts/generator/safetyModuleGenerator.ts +++ b/scripts/generator/safetyModuleGenerator.ts @@ -8,7 +8,7 @@ import { } from './utils'; import {ChainId} from '@bgd-labs/js-utils'; -const SAFETY_MODULE = { +export const SAFETY_MODULE = { STK_AAVE: '0x4da27a545c0c5B758a6BA100e3a049001de870f5', STK_ABPT: '0xa1116930326D21fB917d5A27F1E9943A9595fb47', STK_ABPT_ORACLE: '0x209Ad99bd808221293d03827B86cC544bcA0023b', diff --git a/src/common/IStakeToken.sol b/src/common/IStakeToken.sol new file mode 100644 index 00000000..066712a9 --- /dev/null +++ b/src/common/IStakeToken.sol @@ -0,0 +1,116 @@ +pragma solidity ^0.8.10; + +interface StakeToken { + event Approval(address indexed owner, address indexed spender, uint256 value); + event AssetConfigUpdated(address indexed asset, uint256 emission); + event AssetIndexUpdated(address indexed asset, uint256 index); + event Cooldown(address indexed user, uint256 amount); + event CooldownSecondsChanged(uint256 cooldownSeconds); + event DistributionEndChanged(uint256 endTimestamp); + event EIP712DomainChanged(); + event ExchangeRateChanged(uint216 exchangeRate); + event FundsReturned(uint256 amount); + event Initialized(uint64 version); + event MaxSlashablePercentageChanged(uint256 newPercentage); + event PendingAdminChanged(address indexed newPendingAdmin, uint256 role); + event Redeem(address indexed from, address indexed to, uint256 assets, uint256 shares); + event RewardsAccrued(address user, uint256 amount); + event RewardsClaimed(address indexed from, address indexed to, uint256 amount); + event RoleClaimed(address indexed newAdmin, uint256 role); + event Slashed(address indexed destination, uint256 amount); + event SlashingExitWindowDurationChanged(uint256 windowSeconds); + event SlashingSettled(); + event Staked(address indexed from, address indexed to, uint256 assets, uint256 shares); + event Transfer(address indexed from, address indexed to, uint256 value); + event UserIndexUpdated(address indexed user, address indexed asset, uint256 index); + + struct AssetConfigInput { + uint128 emissionPerSecond; + uint256 totalStaked; + address underlyingAsset; + } + + function CLAIM_HELPER_ROLE() external view returns (uint256); + function COOLDOWN_ADMIN_ROLE() external view returns (uint256); + function DOMAIN_SEPARATOR() external view returns (bytes32); + function EMISSION_MANAGER() external view returns (address); + function EXCHANGE_RATE_UNIT() external view returns (uint256); + function INITIAL_EXCHANGE_RATE() external view returns (uint216); + function LOWER_BOUND() external view returns (uint256); + function PRECISION() external view returns (uint8); + function REWARDS_VAULT() external view returns (address); + function REWARD_TOKEN() external view returns (address); + function SLASH_ADMIN_ROLE() external view returns (uint256); + function STAKED_TOKEN() external view returns (address); + function UNSTAKE_WINDOW() external view returns (uint256); + function allowance(address owner, address spender) external view returns (uint256); + function approve(address spender, uint256 value) external returns (bool); + function assets(address) + external + view + returns (uint128 emissionPerSecond, uint128 lastUpdateTimestamp, uint256 index); + function balanceOf(address account) external view returns (uint256); + function claimRewards(address to, uint256 amount) external; + function claimRewardsAndRedeem(address to, uint256 claimAmount, uint256 redeemAmount) external; + function claimRewardsAndRedeemOnBehalf(address from, address to, uint256 claimAmount, uint256 redeemAmount) + external; + function claimRewardsOnBehalf(address from, address to, uint256 amount) external returns (uint256); + function claimRoleAdmin(uint256 role) external; + function configureAssets(AssetConfigInput[] memory assetsConfigInput) external; + function cooldown() external; + function cooldownOnBehalfOf(address from) external; + function decimals() external view returns (uint8); + function distributionEnd() external view returns (uint256); + function eip712Domain() + external + view + returns ( + bytes1 fields, + string memory name, + string memory version, + uint256 chainId, + address verifyingContract, + bytes32 salt, + uint256[] memory extensions + ); + function getAdmin(uint256 role) external view returns (address); + function getCooldownSeconds() external view returns (uint256); + function getExchangeRate() external view returns (uint216); + function getMaxSlashablePercentage() external view returns (uint256); + function getPendingAdmin(uint256 role) external view returns (address); + function getTotalRewardsBalance(address staker) external view returns (uint256); + function getUserAssetData(address user, address asset) external view returns (uint256); + function inPostSlashingPeriod() external view returns (bool); + function initialize( + string memory name, + string memory symbol, + address slashingAdmin, + address cooldownPauseAdmin, + address claimHelper, + uint256 maxSlashablePercentage, + uint256 cooldownSeconds + ) external; + function name() external view returns (string memory); + function nonces(address owner) external view returns (uint256); + function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) + external; + function previewRedeem(uint256 shares) external view returns (uint256); + function previewStake(uint256 assets) external view returns (uint256); + function redeem(address to, uint256 amount) external; + function redeemOnBehalf(address from, address to, uint256 amount) external; + function returnFunds(uint256 amount) external; + function setCooldownSeconds(uint256 cooldownSeconds) external; + function setDistributionEnd(uint256 newDistributionEnd) external; + function setMaxSlashablePercentage(uint256 percentage) external; + function setPendingAdmin(uint256 role, address newPendingAdmin) external; + function settleSlashing() external; + function slash(address destination, uint256 amount) external returns (uint256); + function stake(address to, uint256 amount) external; + function stakeWithPermit(uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; + function stakerRewardsToClaim(address) external view returns (uint256); + function stakersCooldowns(address) external view returns (uint40 timestamp, uint216 amount); + function symbol() external view returns (string memory); + function totalSupply() external view returns (uint256); + function transfer(address to, uint256 value) external returns (bool); + function transferFrom(address from, address to, uint256 value) external returns (bool); +} diff --git a/src/ts/abis/AggregatorInterface.ts b/src/ts/abis/AggregatorInterface.ts index 3b06fdf1..323d942a 100644 --- a/src/ts/abis/AggregatorInterface.ts +++ b/src/ts/abis/AggregatorInterface.ts @@ -1,130 +1,130 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const AggregatorInterface_ABI = [ { - type: 'function', - name: 'getAnswer', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'int256', + name: 'current', + type: 'int256', + }, + { + indexed: true, + internalType: 'uint256', name: 'roundId', type: 'uint256', - internalType: 'uint256', }, - ], - outputs: [ { - name: '', - type: 'int256', - internalType: 'int256', + indexed: false, + internalType: 'uint256', + name: 'updatedAt', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'AnswerUpdated', + type: 'event', }, { - type: 'function', - name: 'getTimestamp', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'uint256', name: 'roundId', type: 'uint256', - internalType: 'uint256', }, - ], - outputs: [ { - name: '', - type: 'uint256', + indexed: true, + internalType: 'address', + name: 'startedBy', + type: 'address', + }, + { + indexed: false, internalType: 'uint256', + name: 'startedAt', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'NewRound', + type: 'event', }, { - type: 'function', - name: 'latestAnswer', - inputs: [], + inputs: [ + { + internalType: 'uint256', + name: 'roundId', + type: 'uint256', + }, + ], + name: 'getAnswer', outputs: [ { + internalType: 'int256', name: '', type: 'int256', - internalType: 'int256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'latestRound', - inputs: [], + inputs: [ + { + internalType: 'uint256', + name: 'roundId', + type: 'uint256', + }, + ], + name: 'getTimestamp', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'latestTimestamp', inputs: [], + name: 'latestAnswer', outputs: [ { + internalType: 'int256', name: '', - type: 'uint256', - internalType: 'uint256', + type: 'int256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'AnswerUpdated', - inputs: [ - { - name: 'current', - type: 'int256', - indexed: true, - internalType: 'int256', - }, + inputs: [], + name: 'latestRound', + outputs: [ { - name: 'roundId', - type: 'uint256', - indexed: true, internalType: 'uint256', - }, - { - name: 'updatedAt', + name: '', type: 'uint256', - indexed: false, - internalType: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'NewRound', - inputs: [ + inputs: [], + name: 'latestTimestamp', + outputs: [ { - name: 'roundId', - type: 'uint256', - indexed: true, internalType: 'uint256', - }, - { - name: 'startedBy', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'startedAt', + name: '', type: 'uint256', - indexed: false, - internalType: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IAToken.ts b/src/ts/abis/IAToken.ts index 2c5bb5c7..b23f53e9 100644 --- a/src/ts/abis/IAToken.ts +++ b/src/ts/abis/IAToken.ts @@ -1,737 +1,737 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IAToken_ABI = [ { - type: 'function', - name: 'DOMAIN_SEPARATOR', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'spender', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'Approval', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'from', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'index', + type: 'uint256', + }, + ], + name: 'BalanceTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'from', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'target', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'balanceIncrease', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'index', + type: 'uint256', + }, + ], + name: 'Burn', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'underlyingAsset', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'pool', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'treasury', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'incentivesController', + type: 'address', + }, + { + indexed: false, + internalType: 'uint8', + name: 'aTokenDecimals', + type: 'uint8', + }, + { + indexed: false, + internalType: 'string', + name: 'aTokenName', + type: 'string', + }, + { + indexed: false, + internalType: 'string', + name: 'aTokenSymbol', + type: 'string', + }, + { + indexed: false, + internalType: 'bytes', + name: 'params', + type: 'bytes', + }, + ], + name: 'Initialized', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'caller', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'onBehalfOf', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'balanceIncrease', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'index', + type: 'uint256', + }, + ], + name: 'Mint', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'from', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'Transfer', + type: 'event', + }, + { inputs: [], + name: 'DOMAIN_SEPARATOR', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'RESERVE_TREASURY_ADDRESS', inputs: [], + name: 'RESERVE_TREASURY_ADDRESS', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'UNDERLYING_ASSET_ADDRESS', inputs: [], + name: 'UNDERLYING_ASSET_ADDRESS', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'allowance', inputs: [ { + internalType: 'address', name: 'owner', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'spender', type: 'address', - internalType: 'address', }, ], + name: 'allowance', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'approve', inputs: [ { + internalType: 'address', name: 'spender', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'approve', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'balanceOf', inputs: [ { + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, ], + name: 'balanceOf', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'burn', inputs: [ { + internalType: 'address', name: 'from', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'receiverOfUnderlying', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'index', type: 'uint256', - internalType: 'uint256', }, ], + name: 'burn', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getPreviousIndex', inputs: [ { + internalType: 'address', name: 'user', type: 'address', - internalType: 'address', }, ], + name: 'getPreviousIndex', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getScaledUserBalanceAndSupply', inputs: [ { + internalType: 'address', name: 'user', type: 'address', - internalType: 'address', }, ], + name: 'getScaledUserBalanceAndSupply', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'handleRepayment', inputs: [ { + internalType: 'address', name: 'user', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'onBehalfOf', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'handleRepayment', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'initialize', inputs: [ { + internalType: 'contract IPool', name: 'pool', type: 'address', - internalType: 'contract IPool', }, { + internalType: 'address', name: 'treasury', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'underlyingAsset', type: 'address', - internalType: 'address', }, { + internalType: 'contract IAaveIncentivesController', name: 'incentivesController', type: 'address', - internalType: 'contract IAaveIncentivesController', }, { + internalType: 'uint8', name: 'aTokenDecimals', type: 'uint8', - internalType: 'uint8', }, { + internalType: 'string', name: 'aTokenName', type: 'string', - internalType: 'string', }, { + internalType: 'string', name: 'aTokenSymbol', type: 'string', - internalType: 'string', }, { + internalType: 'bytes', name: 'params', type: 'bytes', - internalType: 'bytes', }, ], + name: 'initialize', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'mint', inputs: [ { + internalType: 'address', name: 'caller', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'onBehalfOf', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'index', type: 'uint256', - internalType: 'uint256', }, ], + name: 'mint', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', - }, - { type: 'function', - name: 'mintToTreasury', - inputs: [ - { - name: 'amount', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'index', - type: 'uint256', - internalType: 'uint256', - }, - ], - outputs: [], - stateMutability: 'nonpayable', }, { - type: 'function', - name: 'nonces', inputs: [ { - name: 'owner', - type: 'address', - internalType: 'address', - }, - ], - outputs: [ - { - name: '', - type: 'uint256', internalType: 'uint256', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'permit', - inputs: [ - { - name: 'owner', - type: 'address', - internalType: 'address', - }, - { - name: 'spender', - type: 'address', - internalType: 'address', - }, - { - name: 'value', + name: 'amount', type: 'uint256', - internalType: 'uint256', }, { - name: 'deadline', - type: 'uint256', internalType: 'uint256', - }, - { - name: 'v', - type: 'uint8', - internalType: 'uint8', - }, - { - name: 'r', - type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 's', - type: 'bytes32', - internalType: 'bytes32', - }, - ], - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'rescueTokens', - inputs: [ - { - name: 'token', - type: 'address', - internalType: 'address', - }, - { - name: 'to', - type: 'address', - internalType: 'address', - }, - { - name: 'amount', + name: 'index', type: 'uint256', - internalType: 'uint256', }, ], + name: 'mintToTreasury', outputs: [], stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'scaledBalanceOf', - inputs: [ - { - name: 'user', - type: 'address', - internalType: 'address', - }, - ], - outputs: [ - { - name: '', - type: 'uint256', - internalType: 'uint256', - }, - ], - stateMutability: 'view', - }, - { type: 'function', - name: 'scaledTotalSupply', - inputs: [], - outputs: [ - { - name: '', - type: 'uint256', - internalType: 'uint256', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'totalSupply', - inputs: [], - outputs: [ - { - name: '', - type: 'uint256', - internalType: 'uint256', - }, - ], - stateMutability: 'view', }, { - type: 'function', - name: 'transfer', inputs: [ - { - name: 'recipient', - type: 'address', - internalType: 'address', - }, - { - name: 'amount', - type: 'uint256', - internalType: 'uint256', - }, - ], - outputs: [ - { - name: '', - type: 'bool', - internalType: 'bool', - }, - ], - stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'transferFrom', - inputs: [ - { - name: 'sender', - type: 'address', - internalType: 'address', - }, - { - name: 'recipient', - type: 'address', - internalType: 'address', - }, - { - name: 'amount', - type: 'uint256', - internalType: 'uint256', + { + internalType: 'address', + name: 'owner', + type: 'address', }, ], + name: 'nonces', outputs: [ { + internalType: 'uint256', name: '', - type: 'bool', - internalType: 'bool', + type: 'uint256', }, ], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'transferOnLiquidation', inputs: [ { - name: 'from', - type: 'address', internalType: 'address', + name: 'owner', + type: 'address', }, { - name: 'to', - type: 'address', internalType: 'address', + name: 'spender', + type: 'address', }, { + internalType: 'uint256', name: 'value', type: 'uint256', + }, + { internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', }, ], + name: 'permit', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'transferUnderlyingTo', inputs: [ { - name: 'target', + internalType: 'address', + name: 'token', type: 'address', + }, + { internalType: 'address', + name: 'to', + type: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'rescueTokens', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'Approval', inputs: [ { - name: 'owner', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'spender', + name: 'user', type: 'address', - indexed: true, - internalType: 'address', }, + ], + name: 'scaledBalanceOf', + outputs: [ { - name: 'value', - type: 'uint256', - indexed: false, internalType: 'uint256', + name: '', + type: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'BalanceTransfer', - inputs: [ - { - name: 'from', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'to', - type: 'address', - indexed: true, - internalType: 'address', - }, + inputs: [], + name: 'scaledTotalSupply', + outputs: [ { - name: 'value', - type: 'uint256', - indexed: false, internalType: 'uint256', + name: '', + type: 'uint256', }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'totalSupply', + outputs: [ { - name: 'index', - type: 'uint256', - indexed: false, internalType: 'uint256', + name: '', + type: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'Burn', inputs: [ { - name: 'from', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'target', + name: 'recipient', type: 'address', - indexed: true, - internalType: 'address', }, { - name: 'value', - type: 'uint256', - indexed: false, internalType: 'uint256', - }, - { - name: 'balanceIncrease', + name: 'amount', type: 'uint256', - indexed: false, - internalType: 'uint256', }, + ], + name: 'transfer', + outputs: [ { - name: 'index', - type: 'uint256', - indexed: false, - internalType: 'uint256', + internalType: 'bool', + name: '', + type: 'bool', }, ], - anonymous: false, + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'Initialized', inputs: [ { - name: 'underlyingAsset', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'pool', + name: 'sender', type: 'address', - indexed: true, - internalType: 'address', }, { - name: 'treasury', - type: 'address', - indexed: false, internalType: 'address', - }, - { - name: 'incentivesController', + name: 'recipient', type: 'address', - indexed: false, - internalType: 'address', - }, - { - name: 'aTokenDecimals', - type: 'uint8', - indexed: false, - internalType: 'uint8', - }, - { - name: 'aTokenName', - type: 'string', - indexed: false, - internalType: 'string', }, { - name: 'aTokenSymbol', - type: 'string', - indexed: false, - internalType: 'string', + internalType: 'uint256', + name: 'amount', + type: 'uint256', }, + ], + name: 'transferFrom', + outputs: [ { - name: 'params', - type: 'bytes', - indexed: false, - internalType: 'bytes', + internalType: 'bool', + name: '', + type: 'bool', }, ], - anonymous: false, + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'Mint', inputs: [ { - name: 'caller', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'onBehalfOf', + name: 'from', type: 'address', - indexed: true, - internalType: 'address', }, { - name: 'value', - type: 'uint256', - indexed: false, - internalType: 'uint256', + internalType: 'address', + name: 'to', + type: 'address', }, { - name: 'balanceIncrease', - type: 'uint256', - indexed: false, internalType: 'uint256', - }, - { - name: 'index', + name: 'value', type: 'uint256', - indexed: false, - internalType: 'uint256', }, ], - anonymous: false, + name: 'transferOnLiquidation', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'Transfer', inputs: [ { - name: 'from', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'to', + name: 'target', type: 'address', - indexed: true, - internalType: 'address', }, { - name: 'value', - type: 'uint256', - indexed: false, internalType: 'uint256', + name: 'amount', + type: 'uint256', }, ], - anonymous: false, + name: 'transferUnderlyingTo', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IAaveGovernanceV2.ts b/src/ts/abis/IAaveGovernanceV2.ts index 6bb18b8b..8feaa045 100644 --- a/src/ts/abis/IAaveGovernanceV2.ts +++ b/src/ts/abis/IAaveGovernanceV2.ts @@ -1,664 +1,664 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IAaveGovernanceV2_ABI = [ { - type: 'function', - name: '__abdicate', - inputs: [], - outputs: [], - stateMutability: 'nonpayable', + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'executor', + type: 'address', + }, + ], + name: 'ExecutorAuthorized', + type: 'event', }, { - type: 'function', - name: 'authorizeExecutors', + anonymous: false, inputs: [ { - name: 'executors', - type: 'address[]', - internalType: 'address[]', + indexed: false, + internalType: 'address', + name: 'executor', + type: 'address', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ExecutorUnauthorized', + type: 'event', }, { - type: 'function', - name: 'cancel', + anonymous: false, inputs: [ { - name: 'proposalId', - type: 'uint256', + indexed: true, + internalType: 'address', + name: 'newStrategy', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'initiatorChange', + type: 'address', + }, + ], + name: 'GovernanceStrategyChanged', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, internalType: 'uint256', + name: 'id', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ProposalCanceled', + type: 'event', }, { - type: 'function', - name: 'create', + anonymous: false, inputs: [ { - name: 'executor', + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'creator', type: 'address', + }, + { + indexed: true, internalType: 'contract IExecutorWithTimelock', + name: 'executor', + type: 'address', }, { + indexed: false, + internalType: 'address[]', name: 'targets', type: 'address[]', - internalType: 'address[]', }, { + indexed: false, + internalType: 'uint256[]', name: 'values', type: 'uint256[]', - internalType: 'uint256[]', }, { + indexed: false, + internalType: 'string[]', name: 'signatures', type: 'string[]', - internalType: 'string[]', }, { + indexed: false, + internalType: 'bytes[]', name: 'calldatas', type: 'bytes[]', - internalType: 'bytes[]', }, { + indexed: false, + internalType: 'bool[]', name: 'withDelegatecalls', type: 'bool[]', - internalType: 'bool[]', }, { + indexed: false, + internalType: 'uint256', + name: 'startBlock', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'endBlock', + type: 'uint256', + }, + { + indexed: false, + internalType: 'address', + name: 'strategy', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes32', name: 'ipfsHash', type: 'bytes32', - internalType: 'bytes32', }, ], - outputs: [ + name: 'ProposalCreated', + type: 'event', + }, + { + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', + indexed: false, internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'initiatorExecution', + type: 'address', }, ], - stateMutability: 'nonpayable', + name: 'ProposalExecuted', + type: 'event', }, { - type: 'function', - name: 'execute', + anonymous: false, inputs: [ { - name: 'proposalId', + indexed: false, + internalType: 'uint256', + name: 'id', type: 'uint256', + }, + { + indexed: false, internalType: 'uint256', + name: 'executionTime', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'initiatorQueueing', + type: 'address', }, ], - outputs: [], - stateMutability: 'payable', + name: 'ProposalQueued', + type: 'event', }, { - type: 'function', - name: 'getGovernanceStrategy', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'address', + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + indexed: true, internalType: 'address', + name: 'voter', + type: 'address', + }, + { + indexed: false, + internalType: 'bool', + name: 'support', + type: 'bool', + }, + { + indexed: false, + internalType: 'uint256', + name: 'votingPower', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'VoteEmitted', + type: 'event', }, { - type: 'function', - name: 'getGuardian', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'address', + indexed: false, + internalType: 'uint256', + name: 'newVotingDelay', + type: 'uint256', + }, + { + indexed: true, internalType: 'address', + name: 'initiatorChange', + type: 'address', }, ], - stateMutability: 'view', + name: 'VotingDelayChanged', + type: 'event', }, { + inputs: [], + name: '__abdicate', + outputs: [], + stateMutability: 'nonpayable', type: 'function', - name: 'getProposalById', + }, + { + inputs: [ + { + internalType: 'address[]', + name: 'executors', + type: 'address[]', + }, + ], + name: 'authorizeExecutors', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], - outputs: [ + name: 'cancel', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IAaveGovernanceV2.ProposalWithoutVotes', - components: [ - { - name: 'id', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'creator', - type: 'address', - internalType: 'address', - }, - { - name: 'executor', + internalType: 'contract IExecutorWithTimelock', + name: 'executor', + type: 'address', + }, + { + internalType: 'address[]', + name: 'targets', + type: 'address[]', + }, + { + internalType: 'uint256[]', + name: 'values', + type: 'uint256[]', + }, + { + internalType: 'string[]', + name: 'signatures', + type: 'string[]', + }, + { + internalType: 'bytes[]', + name: 'calldatas', + type: 'bytes[]', + }, + { + internalType: 'bool[]', + name: 'withDelegatecalls', + type: 'bool[]', + }, + { + internalType: 'bytes32', + name: 'ipfsHash', + type: 'bytes32', + }, + ], + name: 'create', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + ], + name: 'execute', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'getGovernanceStrategy', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getGuardian', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + ], + name: 'getProposalById', + outputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + internalType: 'address', + name: 'creator', type: 'address', + }, + { internalType: 'contract IExecutorWithTimelock', + name: 'executor', + type: 'address', }, { + internalType: 'address[]', name: 'targets', type: 'address[]', - internalType: 'address[]', }, { + internalType: 'uint256[]', name: 'values', type: 'uint256[]', - internalType: 'uint256[]', }, { + internalType: 'string[]', name: 'signatures', type: 'string[]', - internalType: 'string[]', }, { + internalType: 'bytes[]', name: 'calldatas', type: 'bytes[]', - internalType: 'bytes[]', }, { + internalType: 'bool[]', name: 'withDelegatecalls', type: 'bool[]', - internalType: 'bool[]', }, { + internalType: 'uint256', name: 'startBlock', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'endBlock', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'executionTime', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'forVotes', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'againstVotes', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'executed', type: 'bool', - internalType: 'bool', }, { + internalType: 'bool', name: 'canceled', type: 'bool', - internalType: 'bool', }, { + internalType: 'address', name: 'strategy', type: 'address', - internalType: 'address', }, { + internalType: 'bytes32', name: 'ipfsHash', type: 'bytes32', - internalType: 'bytes32', }, ], + internalType: 'struct IAaveGovernanceV2.ProposalWithoutVotes', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getProposalState', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getProposalState', outputs: [ { + internalType: 'enum IAaveGovernanceV2.ProposalState', name: '', type: 'uint8', - internalType: 'enum IAaveGovernanceV2.ProposalState', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getProposalsCount', inputs: [], + name: 'getProposalsCount', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVoteOnProposal', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'voter', type: 'address', - internalType: 'address', }, ], + name: 'getVoteOnProposal', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IAaveGovernanceV2.Vote', components: [ { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { + internalType: 'uint248', name: 'votingPower', type: 'uint248', - internalType: 'uint248', }, ], + internalType: 'struct IAaveGovernanceV2.Vote', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVotingDelay', inputs: [], + name: 'getVotingDelay', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isExecutorAuthorized', inputs: [ { + internalType: 'address', name: 'executor', type: 'address', - internalType: 'address', }, ], + name: 'isExecutorAuthorized', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'queue', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'queue', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'setGovernanceStrategy', inputs: [ { + internalType: 'address', name: 'governanceStrategy', type: 'address', - internalType: 'address', }, ], + name: 'setGovernanceStrategy', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'setVotingDelay', inputs: [ { + internalType: 'uint256', name: 'votingDelay', type: 'uint256', - internalType: 'uint256', }, ], + name: 'setVotingDelay', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'submitVote', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, ], + name: 'submitVote', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'submitVoteBySignature', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { + internalType: 'uint8', name: 'v', type: 'uint8', - internalType: 'uint8', }, { + internalType: 'bytes32', name: 'r', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes32', name: 's', type: 'bytes32', - internalType: 'bytes32', }, ], + name: 'submitVoteBySignature', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'unauthorizeExecutors', inputs: [ { + internalType: 'address[]', name: 'executors', type: 'address[]', - internalType: 'address[]', }, ], + name: 'unauthorizeExecutors', outputs: [], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'ExecutorAuthorized', - inputs: [ - { - name: 'executor', - type: 'address', - indexed: false, - internalType: 'address', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ExecutorUnauthorized', - inputs: [ - { - name: 'executor', - type: 'address', - indexed: false, - internalType: 'address', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'GovernanceStrategyChanged', - inputs: [ - { - name: 'newStrategy', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'initiatorChange', - type: 'address', - indexed: true, - internalType: 'address', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalCanceled', - inputs: [ - { - name: 'id', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalCreated', - inputs: [ - { - name: 'id', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'creator', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'executor', - type: 'address', - indexed: true, - internalType: 'contract IExecutorWithTimelock', - }, - { - name: 'targets', - type: 'address[]', - indexed: false, - internalType: 'address[]', - }, - { - name: 'values', - type: 'uint256[]', - indexed: false, - internalType: 'uint256[]', - }, - { - name: 'signatures', - type: 'string[]', - indexed: false, - internalType: 'string[]', - }, - { - name: 'calldatas', - type: 'bytes[]', - indexed: false, - internalType: 'bytes[]', - }, - { - name: 'withDelegatecalls', - type: 'bool[]', - indexed: false, - internalType: 'bool[]', - }, - { - name: 'startBlock', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'endBlock', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'strategy', - type: 'address', - indexed: false, - internalType: 'address', - }, - { - name: 'ipfsHash', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalExecuted', - inputs: [ - { - name: 'id', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'initiatorExecution', - type: 'address', - indexed: true, - internalType: 'address', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalQueued', - inputs: [ - { - name: 'id', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'executionTime', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'initiatorQueueing', - type: 'address', - indexed: true, - internalType: 'address', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'VoteEmitted', - inputs: [ - { - name: 'id', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'voter', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'support', - type: 'bool', - indexed: false, - internalType: 'bool', - }, - { - name: 'votingPower', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'VotingDelayChanged', - inputs: [ - { - name: 'newVotingDelay', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'initiatorChange', - type: 'address', - indexed: true, - internalType: 'address', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/IAaveOracle.ts b/src/ts/abis/IAaveOracle.ts index 23e2c3dd..8b28eff4 100644 --- a/src/ts/abis/IAaveOracle.ts +++ b/src/ts/abis/IAaveOracle.ts @@ -1,194 +1,194 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IAaveOracle_ABI = [ { - type: 'function', - name: 'ADDRESSES_PROVIDER', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'asset', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'source', + type: 'address', + }, + ], + name: 'AssetSourceUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'baseCurrency', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'baseCurrencyUnit', + type: 'uint256', + }, + ], + name: 'BaseCurrencySet', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'fallbackOracle', + type: 'address', + }, + ], + name: 'FallbackOracleUpdated', + type: 'event', + }, + { inputs: [], + name: 'ADDRESSES_PROVIDER', outputs: [ { + internalType: 'contract IPoolAddressesProvider', name: '', type: 'address', - internalType: 'contract IPoolAddressesProvider', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'BASE_CURRENCY', inputs: [], + name: 'BASE_CURRENCY', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'BASE_CURRENCY_UNIT', inputs: [], + name: 'BASE_CURRENCY_UNIT', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getAssetPrice', inputs: [ { + internalType: 'address', name: 'asset', type: 'address', - internalType: 'address', }, ], + name: 'getAssetPrice', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getAssetsPrices', inputs: [ { + internalType: 'address[]', name: 'assets', type: 'address[]', - internalType: 'address[]', }, ], + name: 'getAssetsPrices', outputs: [ { + internalType: 'uint256[]', name: '', type: 'uint256[]', - internalType: 'uint256[]', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getFallbackOracle', inputs: [], + name: 'getFallbackOracle', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getSourceOfAsset', inputs: [ { + internalType: 'address', name: 'asset', type: 'address', - internalType: 'address', }, ], + name: 'getSourceOfAsset', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'setAssetSources', inputs: [ { + internalType: 'address[]', name: 'assets', type: 'address[]', - internalType: 'address[]', }, { + internalType: 'address[]', name: 'sources', type: 'address[]', - internalType: 'address[]', }, ], + name: 'setAssetSources', outputs: [], stateMutability: 'nonpayable', - }, - { type: 'function', - name: 'setFallbackOracle', - inputs: [ - { - name: 'fallbackOracle', - type: 'address', - internalType: 'address', - }, - ], - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'AssetSourceUpdated', - inputs: [ - { - name: 'asset', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'source', - type: 'address', - indexed: true, - internalType: 'address', - }, - ], - anonymous: false, }, { - type: 'event', - name: 'BaseCurrencySet', inputs: [ { - name: 'baseCurrency', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'baseCurrencyUnit', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'FallbackOracleUpdated', - inputs: [ - { name: 'fallbackOracle', type: 'address', - indexed: true, - internalType: 'address', }, ], - anonymous: false, + name: 'setFallbackOracle', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IAggregatedStakeToken.ts b/src/ts/abis/IAggregatedStakeToken.ts new file mode 100644 index 00000000..8ae9800a --- /dev/null +++ b/src/ts/abis/IAggregatedStakeToken.ts @@ -0,0 +1,153 @@ +// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR +export const IAggregatedStakeToken_ABI = [ + { + inputs: [ + { + internalType: 'address', + name: '_logic', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'admin_', + type: 'address', + components: [], + }, + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + components: [], + }, + ], + stateMutability: 'payable', + type: 'constructor', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'previousAdmin', + type: 'address', + components: [], + indexed: false, + }, + { + internalType: 'address', + name: 'newAdmin', + type: 'address', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'AdminChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'implementation', + type: 'address', + components: [], + indexed: true, + }, + ], + type: 'event', + name: 'Upgraded', + outputs: [], + anonymous: false, + }, + { + inputs: [], + stateMutability: 'payable', + type: 'fallback', + outputs: [], + }, + { + inputs: [], + stateMutability: 'nonpayable', + type: 'function', + name: 'admin', + outputs: [ + { + internalType: 'address', + name: 'admin_', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'newAdmin', + type: 'address', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'changeAdmin', + outputs: [], + }, + { + inputs: [], + stateMutability: 'nonpayable', + type: 'function', + name: 'implementation', + outputs: [ + { + internalType: 'address', + name: 'implementation_', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'newImplementation', + type: 'address', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'upgradeTo', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'newImplementation', + type: 'address', + components: [], + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + components: [], + }, + ], + stateMutability: 'payable', + type: 'function', + name: 'upgradeToAndCall', + outputs: [], + }, + { + inputs: [], + stateMutability: 'payable', + type: 'receive', + outputs: [], + }, +] as const; diff --git a/src/ts/abis/ICollector.ts b/src/ts/abis/ICollector.ts index dd414c67..32f35b9e 100644 --- a/src/ts/abis/ICollector.ts +++ b/src/ts/abis/ICollector.ts @@ -1,403 +1,403 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const ICollector_ABI = [ { - type: 'function', - name: 'ETH_MOCK_ADDRESS', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'streamId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'senderBalance', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'recipientBalance', + type: 'uint256', + }, + ], + name: 'CancelStream', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'streamId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'deposit', + type: 'uint256', + }, + { + indexed: false, + internalType: 'address', + name: 'tokenAddress', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'startTime', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'stopTime', + type: 'uint256', + }, + ], + name: 'CreateStream', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'fundsAdmin', + type: 'address', + }, + ], + name: 'NewFundsAdmin', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'streamId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount', + type: 'uint256', + }, + ], + name: 'WithdrawFromStream', + type: 'event', + }, + { inputs: [], + name: 'ETH_MOCK_ADDRESS', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'pure', + type: 'function', }, { - type: 'function', - name: 'approve', inputs: [ { + internalType: 'address', name: 'token', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'recipient', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'approve', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'balanceOf', inputs: [ { + internalType: 'uint256', name: 'streamId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'who', type: 'address', - internalType: 'address', }, ], + name: 'balanceOf', outputs: [ { + internalType: 'uint256', name: 'balance', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'cancelStream', inputs: [ { + internalType: 'uint256', name: 'streamId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'cancelStream', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'createStream', inputs: [ { + internalType: 'address', name: 'recipient', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'deposit', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'tokenAddress', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'startTime', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'stopTime', type: 'uint256', - internalType: 'uint256', }, ], + name: 'createStream', outputs: [ { + internalType: 'uint256', name: 'streamId', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getFundsAdmin', inputs: [], + name: 'getFundsAdmin', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getNextStreamId', inputs: [], + name: 'getNextStreamId', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getStream', inputs: [ { + internalType: 'uint256', name: 'streamId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getStream', outputs: [ { + internalType: 'address', name: 'sender', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'recipient', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'deposit', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'tokenAddress', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'startTime', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'stopTime', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'remainingBalance', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'ratePerSecond', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'initialize', inputs: [ { + internalType: 'address', name: 'fundsAdmin', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'nextStreamId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'initialize', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'setFundsAdmin', inputs: [ { + internalType: 'address', name: 'admin', type: 'address', - internalType: 'address', }, ], + name: 'setFundsAdmin', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'transfer', inputs: [ { + internalType: 'address', name: 'token', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'recipient', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'transfer', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'withdrawFromStream', inputs: [ { + internalType: 'uint256', name: 'streamId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'withdrawFromStream', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'CancelStream', - inputs: [ - { - name: 'streamId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'sender', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'recipient', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'senderBalance', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'recipientBalance', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'CreateStream', - inputs: [ - { - name: 'streamId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'sender', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'recipient', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'deposit', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'tokenAddress', - type: 'address', - indexed: false, - internalType: 'address', - }, - { - name: 'startTime', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'stopTime', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'NewFundsAdmin', - inputs: [ - { - name: 'fundsAdmin', - type: 'address', - indexed: true, - internalType: 'address', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'WithdrawFromStream', - inputs: [ - { - name: 'streamId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'recipient', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'amount', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/ICrossChainController.ts b/src/ts/abis/ICrossChainController.ts index be9f3bbf..1b87d47c 100644 --- a/src/ts/abis/ICrossChainController.ts +++ b/src/ts/abis/ICrossChainController.ts @@ -1,1257 +1,1257 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const ICrossChainController_ABI = [ { - type: 'function', - name: 'allowReceiverBridgeAdapters', + anonymous: false, inputs: [ { - name: 'bridgeAdaptersInput', - type: 'tuple[]', - internalType: 'struct ICrossChainReceiver.ReceiverBridgeAdapterConfigInput[]', - components: [ - { - name: 'bridgeAdapter', - type: 'address', - internalType: 'address', - }, - { - name: 'chainIds', - type: 'uint256[]', - internalType: 'uint256[]', - }, - ], + indexed: true, + internalType: 'uint256', + name: 'destinationChainId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'bridgeAdapter', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'destinationBridgeAdapter', + type: 'address', + }, + { + indexed: true, + internalType: 'bool', + name: 'allowed', + type: 'bool', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'BridgeAdapterUpdated', + type: 'event', }, { - type: 'function', - name: 'approveSenders', + anonymous: false, inputs: [ { - name: 'senders', - type: 'address[]', - internalType: 'address[]', + indexed: false, + internalType: 'uint8', + name: 'newConfirmations', + type: 'uint8', + }, + { + indexed: true, + internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ConfirmationsUpdated', + type: 'event', }, { - type: 'function', - name: 'deliverEnvelope', + anonymous: false, inputs: [ { - name: 'envelope', - type: 'tuple', - internalType: 'struct Envelope', + indexed: true, + internalType: 'address', + name: 'caller', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'token', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount', + type: 'uint256', + }, + ], + name: 'ERC20Rescued', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'envelopeId', + type: 'bytes32', + }, + { components: [ { + internalType: 'uint256', name: 'nonce', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'origin', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'destination', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'originChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'destinationChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], + indexed: false, + internalType: 'struct Envelope', + name: 'envelope', + type: 'tuple', + }, + { + indexed: false, + internalType: 'bool', + name: 'isDelivered', + type: 'bool', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'EnvelopeDeliveryAttempted', + type: 'event', }, { - type: 'function', - name: 'disableBridgeAdapters', + anonymous: false, inputs: [ { - name: 'bridgeAdapters', - type: 'tuple[]', - internalType: 'struct ICrossChainForwarder.BridgeAdapterToDisable[]', + indexed: true, + internalType: 'bytes32', + name: 'envelopeId', + type: 'bytes32', + }, + { components: [ { - name: 'bridgeAdapter', + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + { + internalType: 'address', + name: 'origin', type: 'address', + }, + { internalType: 'address', + name: 'destination', + type: 'address', }, { - name: 'chainIds', - type: 'uint256[]', - internalType: 'uint256[]', + internalType: 'uint256', + name: 'originChainId', + type: 'uint256', }, - ], - }, - ], - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'disallowReceiverBridgeAdapters', - inputs: [ - { - name: 'bridgeAdaptersInput', - type: 'tuple[]', - internalType: 'struct ICrossChainReceiver.ReceiverBridgeAdapterConfigInput[]', - components: [ { - name: 'bridgeAdapter', - type: 'address', - internalType: 'address', + internalType: 'uint256', + name: 'destinationChainId', + type: 'uint256', }, { - name: 'chainIds', - type: 'uint256[]', - internalType: 'uint256[]', + internalType: 'bytes', + name: 'message', + type: 'bytes', }, ], + indexed: false, + internalType: 'struct Envelope', + name: 'envelope', + type: 'tuple', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'EnvelopeRegistered', + type: 'event', }, { - type: 'function', - name: 'emergencyEtherTransfer', + anonymous: false, inputs: [ { - name: 'to', + indexed: true, + internalType: 'address', + name: 'caller', type: 'address', + }, + { + indexed: true, internalType: 'address', + name: 'to', + type: 'address', }, { + indexed: false, + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'NativeTokensRescued', + type: 'event', }, { - type: 'function', - name: 'emergencyTokenTransfer', + anonymous: false, inputs: [ { - name: 'erc20Token', - type: 'address', - internalType: 'address', - }, - { - name: 'to', - type: 'address', - internalType: 'address', + indexed: false, + internalType: 'uint256', + name: 'invalidTimestamp', + type: 'uint256', }, { - name: 'amount', - type: 'uint256', + indexed: true, internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'NewInvalidation', + type: 'event', }, { - type: 'function', - name: 'enableBridgeAdapters', + anonymous: false, inputs: [ { - name: 'bridgeAdapters', - type: 'tuple[]', - internalType: 'struct ICrossChainForwarder.ForwarderBridgeAdapterConfigInput[]', - components: [ - { - name: 'currentChainBridgeAdapter', - type: 'address', - internalType: 'address', - }, - { - name: 'destinationBridgeAdapter', - type: 'address', - internalType: 'address', - }, - { - name: 'destinationChainId', - type: 'uint256', - internalType: 'uint256', - }, - ], + indexed: true, + internalType: 'address', + name: 'bridgeAdapter', + type: 'address', + }, + { + indexed: true, + internalType: 'bool', + name: 'allowed', + type: 'bool', + }, + { + indexed: true, + internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ReceiverBridgeAdaptersUpdated', + type: 'event', }, { - type: 'function', - name: 'forwardMessage', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: true, + internalType: 'bool', + name: 'isApproved', + type: 'bool', + }, + ], + name: 'SenderUpdated', + type: 'event', + }, + { + anonymous: false, inputs: [ { + indexed: false, + internalType: 'bytes32', + name: 'transactionId', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'bytes32', + name: 'envelopeId', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'bytes', + name: 'encodedTransaction', + type: 'bytes', + }, + { + indexed: false, + internalType: 'uint256', name: 'destinationChainId', type: 'uint256', - internalType: 'uint256', }, { - name: 'destination', + indexed: true, + internalType: 'address', + name: 'bridgeAdapter', type: 'address', + }, + { + indexed: false, internalType: 'address', + name: 'destinationBridgeAdapter', + type: 'address', }, { - name: 'gasLimit', - type: 'uint256', - internalType: 'uint256', + indexed: true, + internalType: 'bool', + name: 'adapterSuccessful', + type: 'bool', }, { - name: 'message', - type: 'bytes', + indexed: false, internalType: 'bytes', + name: 'returnData', + type: 'bytes', }, ], - outputs: [ + name: 'TransactionForwardingAttempted', + type: 'event', + }, + { + anonymous: false, + inputs: [ { - name: '', - type: 'bytes32', + indexed: false, internalType: 'bytes32', + name: 'transactionId', + type: 'bytes32', }, { - name: '', - type: 'bytes32', + indexed: true, internalType: 'bytes32', + name: 'envelopeId', + type: 'bytes32', }, - ], - stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'getConfigurationByChain', - inputs: [ { - name: 'chainId', - type: 'uint256', + indexed: true, internalType: 'uint256', + name: 'originChainId', + type: 'uint256', }, - ], - outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct ICrossChainReceiver.ReceiverConfiguration', components: [ { - name: 'requiredConfirmation', - type: 'uint8', - internalType: 'uint8', + internalType: 'uint256', + name: 'nonce', + type: 'uint256', }, { - name: 'validityTimestamp', - type: 'uint120', - internalType: 'uint120', + internalType: 'bytes', + name: 'encodedEnvelope', + type: 'bytes', }, ], + indexed: false, + internalType: 'struct Transaction', + name: 'transaction', + type: 'tuple', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'getCurrentEnvelopeNonce', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', - internalType: 'uint256', + indexed: true, + internalType: 'address', + name: 'bridgeAdapter', + type: 'address', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'getCurrentTransactionNonce', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', - internalType: 'uint256', + indexed: false, + internalType: 'uint8', + name: 'confirmations', + type: 'uint8', }, ], - stateMutability: 'view', + name: 'TransactionReceived', + type: 'event', }, { - type: 'function', - name: 'getEnvelopeState', inputs: [ { - name: 'envelopeId', - type: 'bytes32', - internalType: 'bytes32', + components: [ + { + internalType: 'address', + name: 'bridgeAdapter', + type: 'address', + }, + { + internalType: 'uint256[]', + name: 'chainIds', + type: 'uint256[]', + }, + ], + internalType: 'struct ICrossChainReceiver.ReceiverBridgeAdapterConfigInput[]', + name: 'bridgeAdaptersInput', + type: 'tuple[]', }, ], - outputs: [ + name: 'allowReceiverBridgeAdapters', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ { - name: '', - type: 'uint8', - internalType: 'enum ICrossChainReceiver.EnvelopeState', + internalType: 'address[]', + name: 'senders', + type: 'address[]', }, ], - stateMutability: 'view', + name: 'approveSenders', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getEnvelopeState', inputs: [ { - name: 'envelope', - type: 'tuple', - internalType: 'struct Envelope', components: [ { + internalType: 'uint256', name: 'nonce', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'origin', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'destination', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'originChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'destinationChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct Envelope', + name: 'envelope', + type: 'tuple', }, ], - outputs: [ - { - name: '', - type: 'uint8', - internalType: 'enum ICrossChainReceiver.EnvelopeState', - }, - ], - stateMutability: 'view', + name: 'deliverEnvelope', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getForwarderBridgeAdaptersByChain', inputs: [ { - name: 'chainId', - type: 'uint256', - internalType: 'uint256', - }, - ], - outputs: [ - { - name: '', - type: 'tuple[]', - internalType: 'struct ICrossChainForwarder.ChainIdBridgeConfig[]', components: [ { - name: 'destinationBridgeAdapter', - type: 'address', internalType: 'address', + name: 'bridgeAdapter', + type: 'address', }, { - name: 'currentChainBridgeAdapter', - type: 'address', - internalType: 'address', + internalType: 'uint256[]', + name: 'chainIds', + type: 'uint256[]', }, ], + internalType: 'struct ICrossChainForwarder.BridgeAdapterToDisable[]', + name: 'bridgeAdapters', + type: 'tuple[]', }, ], - stateMutability: 'view', + name: 'disableBridgeAdapters', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getReceiverBridgeAdaptersByChain', inputs: [ { - name: 'chainId', - type: 'uint256', - internalType: 'uint256', + components: [ + { + internalType: 'address', + name: 'bridgeAdapter', + type: 'address', + }, + { + internalType: 'uint256[]', + name: 'chainIds', + type: 'uint256[]', + }, + ], + internalType: 'struct ICrossChainReceiver.ReceiverBridgeAdapterConfigInput[]', + name: 'bridgeAdaptersInput', + type: 'tuple[]', }, ], - outputs: [ + name: 'disallowReceiverBridgeAdapters', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ { - name: '', - type: 'address[]', - internalType: 'address[]', + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'emergencyEtherTransfer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getSupportedChains', - inputs: [], - outputs: [ + inputs: [ { - name: '', - type: 'uint256[]', - internalType: 'uint256[]', + internalType: 'address', + name: 'erc20Token', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'emergencyTokenTransfer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getTransactionState', inputs: [ { - name: 'transaction', - type: 'tuple', - internalType: 'struct Transaction', components: [ { - name: 'nonce', - type: 'uint256', - internalType: 'uint256', + internalType: 'address', + name: 'currentChainBridgeAdapter', + type: 'address', }, { - name: 'encodedEnvelope', - type: 'bytes', - internalType: 'bytes', + internalType: 'address', + name: 'destinationBridgeAdapter', + type: 'address', + }, + { + internalType: 'uint256', + name: 'destinationChainId', + type: 'uint256', }, ], + internalType: 'struct ICrossChainForwarder.ForwarderBridgeAdapterConfigInput[]', + name: 'bridgeAdapters', + type: 'tuple[]', + }, + ], + name: 'enableBridgeAdapters', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'destinationChainId', + type: 'uint256', + }, + { + internalType: 'address', + name: 'destination', + type: 'address', + }, + { + internalType: 'uint256', + name: 'gasLimit', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', }, ], + name: 'forwardMessage', outputs: [ { + internalType: 'bytes32', name: '', - type: 'tuple', - internalType: 'struct ICrossChainReceiver.TransactionStateWithoutAdapters', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'chainId', + type: 'uint256', + }, + ], + name: 'getConfigurationByChain', + outputs: [ + { components: [ { - name: 'confirmations', - type: 'uint8', internalType: 'uint8', + name: 'requiredConfirmation', + type: 'uint8', }, { - name: 'firstBridgedAt', - type: 'uint120', internalType: 'uint120', + name: 'validityTimestamp', + type: 'uint120', }, ], + internalType: 'struct ICrossChainReceiver.ReceiverConfiguration', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { + inputs: [], + name: 'getCurrentEnvelopeNonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', type: 'function', - name: 'getTransactionState', + }, + { + inputs: [], + name: 'getCurrentTransactionNonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { inputs: [ { - name: 'transactionId', - type: 'bytes32', internalType: 'bytes32', + name: 'envelopeId', + type: 'bytes32', }, ], + name: 'getEnvelopeState', outputs: [ { + internalType: 'enum ICrossChainReceiver.EnvelopeState', name: '', - type: 'tuple', - internalType: 'struct ICrossChainReceiver.TransactionStateWithoutAdapters', - components: [ - { - name: 'confirmations', - type: 'uint8', - internalType: 'uint8', - }, - { - name: 'firstBridgedAt', - type: 'uint120', - internalType: 'uint120', - }, - ], + type: 'uint8', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isEnvelopeRegistered', inputs: [ { - name: 'envelope', - type: 'tuple', - internalType: 'struct Envelope', components: [ { + internalType: 'uint256', name: 'nonce', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'origin', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'destination', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'originChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'destinationChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct Envelope', + name: 'envelope', + type: 'tuple', }, ], + name: 'getEnvelopeState', outputs: [ { + internalType: 'enum ICrossChainReceiver.EnvelopeState', name: '', - type: 'bool', - internalType: 'bool', + type: 'uint8', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isEnvelopeRegistered', inputs: [ { - name: 'envelopeId', - type: 'bytes32', - internalType: 'bytes32', + internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, ], + name: 'getForwarderBridgeAdaptersByChain', outputs: [ { + components: [ + { + internalType: 'address', + name: 'destinationBridgeAdapter', + type: 'address', + }, + { + internalType: 'address', + name: 'currentChainBridgeAdapter', + type: 'address', + }, + ], + internalType: 'struct ICrossChainForwarder.ChainIdBridgeConfig[]', name: '', - type: 'bool', - internalType: 'bool', + type: 'tuple[]', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isReceiverBridgeAdapterAllowed', inputs: [ { - name: 'bridgeAdapter', - type: 'address', - internalType: 'address', - }, - { + internalType: 'uint256', name: 'chainId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getReceiverBridgeAdaptersByChain', outputs: [ { + internalType: 'address[]', name: '', - type: 'bool', - internalType: 'bool', + type: 'address[]', }, ], stateMutability: 'view', - }, - { type: 'function', - name: 'isSenderApproved', - inputs: [ - { - name: 'sender', - type: 'address', - internalType: 'address', - }, - ], - outputs: [ - { - name: '', - type: 'bool', - internalType: 'bool', - }, - ], - stateMutability: 'view', }, { - type: 'function', - name: 'isTransactionForwarded', - inputs: [ - { - name: 'transactionId', - type: 'bytes32', - internalType: 'bytes32', - }, - ], + inputs: [], + name: 'getSupportedChains', outputs: [ { + internalType: 'uint256[]', name: '', - type: 'bool', - internalType: 'bool', + type: 'uint256[]', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isTransactionForwarded', inputs: [ { - name: 'transaction', - type: 'tuple', - internalType: 'struct Transaction', components: [ { + internalType: 'uint256', name: 'nonce', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'encodedEnvelope', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct Transaction', + name: 'transaction', + type: 'tuple', }, ], + name: 'getTransactionState', outputs: [ { + components: [ + { + internalType: 'uint8', + name: 'confirmations', + type: 'uint8', + }, + { + internalType: 'uint120', + name: 'firstBridgedAt', + type: 'uint120', + }, + ], + internalType: 'struct ICrossChainReceiver.TransactionStateWithoutAdapters', name: '', - type: 'bool', - internalType: 'bool', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isTransactionReceivedByAdapter', inputs: [ { + internalType: 'bytes32', name: 'transactionId', type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 'bridgeAdapter', - type: 'address', - internalType: 'address', }, ], + name: 'getTransactionState', outputs: [ { + components: [ + { + internalType: 'uint8', + name: 'confirmations', + type: 'uint8', + }, + { + internalType: 'uint120', + name: 'firstBridgedAt', + type: 'uint120', + }, + ], + internalType: 'struct ICrossChainReceiver.TransactionStateWithoutAdapters', name: '', - type: 'bool', - internalType: 'bool', + type: 'tuple', }, ], stateMutability: 'view', - }, - { - type: 'function', - name: 'receiveCrossChainMessage', - inputs: [ - { - name: 'encodedTransaction', - type: 'bytes', - internalType: 'bytes', - }, - { - name: 'originChainId', - type: 'uint256', - internalType: 'uint256', - }, - ], - outputs: [], - stateMutability: 'nonpayable', - }, - { type: 'function', - name: 'removeSenders', - inputs: [ - { - name: 'senders', - type: 'address[]', - internalType: 'address[]', - }, - ], - outputs: [], - stateMutability: 'nonpayable', }, { - type: 'function', - name: 'retryEnvelope', inputs: [ { - name: 'envelope', - type: 'tuple', - internalType: 'struct Envelope', components: [ { + internalType: 'uint256', name: 'nonce', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'origin', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'destination', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'originChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'destinationChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct Envelope', + name: 'envelope', + type: 'tuple', }, + ], + name: 'isEnvelopeRegistered', + outputs: [ { - name: 'gasLimit', - type: 'uint256', - internalType: 'uint256', + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'envelopeId', + type: 'bytes32', }, ], + name: 'isEnvelopeRegistered', outputs: [ { + internalType: 'bool', name: '', - type: 'bytes32', - internalType: 'bytes32', + type: 'bool', }, ], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'retryTransaction', inputs: [ { - name: 'encodedTransaction', - type: 'bytes', - internalType: 'bytes', + internalType: 'address', + name: 'bridgeAdapter', + type: 'address', }, { - name: 'gasLimit', - type: 'uint256', internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, + ], + name: 'isReceiverBridgeAdapterAllowed', + outputs: [ { - name: 'bridgeAdaptersToRetry', - type: 'address[]', - internalType: 'address[]', + internalType: 'bool', + name: '', + type: 'bool', }, ], - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'updateConfirmations', inputs: [ { - name: 'newConfirmations', - type: 'tuple[]', - internalType: 'struct ICrossChainReceiver.ConfirmationInput[]', - components: [ - { - name: 'chainId', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'requiredConfirmations', - type: 'uint8', - internalType: 'uint8', - }, - ], + internalType: 'address', + name: 'sender', + type: 'address', }, ], - outputs: [], - stateMutability: 'nonpayable', - }, - { + name: 'isSenderApproved', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', type: 'function', - name: 'updateMessagesValidityTimestamp', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'transactionId', + type: 'bytes32', + }, + ], + name: 'isTransactionForwarded', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { inputs: [ { - name: 'newValidityTimestamp', - type: 'tuple[]', - internalType: 'struct ICrossChainReceiver.ValidityTimestampInput[]', components: [ { - name: 'chainId', - type: 'uint256', internalType: 'uint256', + name: 'nonce', + type: 'uint256', }, { - name: 'validityTimestamp', - type: 'uint120', - internalType: 'uint120', + internalType: 'bytes', + name: 'encodedEnvelope', + type: 'bytes', }, ], + internalType: 'struct Transaction', + name: 'transaction', + type: 'tuple', }, ], - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'whoCanRescue', - inputs: [], + name: 'isTransactionForwarded', outputs: [ { + internalType: 'bool', name: '', - type: 'address', - internalType: 'address', + type: 'bool', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'BridgeAdapterUpdated', inputs: [ { - name: 'destinationChainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', + internalType: 'bytes32', + name: 'transactionId', + type: 'bytes32', }, { - name: 'bridgeAdapter', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'destinationBridgeAdapter', + name: 'bridgeAdapter', type: 'address', - indexed: false, - internalType: 'address', }, + ], + name: 'isTransactionReceivedByAdapter', + outputs: [ { - name: 'allowed', - type: 'bool', - indexed: true, internalType: 'bool', + name: '', + type: 'bool', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'ConfirmationsUpdated', inputs: [ { - name: 'newConfirmations', - type: 'uint8', - indexed: false, - internalType: 'uint8', + internalType: 'bytes', + name: 'encodedTransaction', + type: 'bytes', }, { - name: 'chainId', - type: 'uint256', - indexed: true, internalType: 'uint256', + name: 'originChainId', + type: 'uint256', }, ], - anonymous: false, + name: 'receiveCrossChainMessage', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'ERC20Rescued', inputs: [ { - name: 'caller', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'token', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'to', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'amount', - type: 'uint256', - indexed: false, - internalType: 'uint256', + internalType: 'address[]', + name: 'senders', + type: 'address[]', }, ], - anonymous: false, + name: 'removeSenders', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'EnvelopeDeliveryAttempted', inputs: [ { - name: 'envelopeId', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { - name: 'envelope', - type: 'tuple', - indexed: false, - internalType: 'struct Envelope', components: [ { + internalType: 'uint256', name: 'nonce', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'origin', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'destination', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'originChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'destinationChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], - }, - { - name: 'isDelivered', - type: 'bool', - indexed: false, - internalType: 'bool', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'EnvelopeRegistered', - inputs: [ - { - name: 'envelopeId', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { + internalType: 'struct Envelope', name: 'envelope', type: 'tuple', - indexed: false, - internalType: 'struct Envelope', - components: [ - { - name: 'nonce', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'origin', - type: 'address', - internalType: 'address', - }, - { - name: 'destination', - type: 'address', - internalType: 'address', - }, - { - name: 'originChainId', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'destinationChainId', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'message', - type: 'bytes', - internalType: 'bytes', - }, - ], - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'NativeTokensRescued', - inputs: [ - { - name: 'caller', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'to', - type: 'address', - indexed: true, - internalType: 'address', }, { - name: 'amount', - type: 'uint256', - indexed: false, internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'NewInvalidation', - inputs: [ - { - name: 'invalidTimestamp', + name: 'gasLimit', type: 'uint256', - indexed: false, - internalType: 'uint256', }, + ], + name: 'retryEnvelope', + outputs: [ { - name: 'chainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', + internalType: 'bytes32', + name: '', + type: 'bytes32', }, ], - anonymous: false, + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'ReceiverBridgeAdaptersUpdated', inputs: [ { - name: 'bridgeAdapter', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'allowed', - type: 'bool', - indexed: true, - internalType: 'bool', + internalType: 'bytes', + name: 'encodedTransaction', + type: 'bytes', }, { - name: 'chainId', - type: 'uint256', - indexed: true, internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'SenderUpdated', - inputs: [ - { - name: 'sender', - type: 'address', - indexed: true, - internalType: 'address', + name: 'gasLimit', + type: 'uint256', }, { - name: 'isApproved', - type: 'bool', - indexed: true, - internalType: 'bool', + internalType: 'address[]', + name: 'bridgeAdaptersToRetry', + type: 'address[]', }, ], - anonymous: false, + name: 'retryTransaction', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'TransactionForwardingAttempted', inputs: [ { - name: 'transactionId', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { - name: 'envelopeId', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { - name: 'encodedTransaction', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - { - name: 'destinationChainId', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'bridgeAdapter', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'destinationBridgeAdapter', - type: 'address', - indexed: false, - internalType: 'address', - }, - { - name: 'adapterSuccessful', - type: 'bool', - indexed: true, - internalType: 'bool', - }, - { - name: 'returnData', - type: 'bytes', - indexed: false, - internalType: 'bytes', + components: [ + { + internalType: 'uint256', + name: 'chainId', + type: 'uint256', + }, + { + internalType: 'uint8', + name: 'requiredConfirmations', + type: 'uint8', + }, + ], + internalType: 'struct ICrossChainReceiver.ConfirmationInput[]', + name: 'newConfirmations', + type: 'tuple[]', }, ], - anonymous: false, + name: 'updateConfirmations', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'TransactionReceived', inputs: [ { - name: 'transactionId', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { - name: 'envelopeId', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { - name: 'originChainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'transaction', - type: 'tuple', - indexed: false, - internalType: 'struct Transaction', components: [ { - name: 'nonce', - type: 'uint256', internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, { - name: 'encodedEnvelope', - type: 'bytes', - internalType: 'bytes', + internalType: 'uint120', + name: 'validityTimestamp', + type: 'uint120', }, ], + internalType: 'struct ICrossChainReceiver.ValidityTimestampInput[]', + name: 'newValidityTimestamp', + type: 'tuple[]', }, + ], + name: 'updateMessagesValidityTimestamp', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'whoCanRescue', + outputs: [ { - name: 'bridgeAdapter', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'confirmations', - type: 'uint8', - indexed: false, - internalType: 'uint8', + name: '', + type: 'address', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IDataWarehouse.ts b/src/ts/abis/IDataWarehouse.ts index 219e75d8..fbab0030 100644 --- a/src/ts/abis/IDataWarehouse.ts +++ b/src/ts/abis/IDataWarehouse.ts @@ -1,226 +1,226 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IDataWarehouse_ABI = [ { - type: 'function', - name: 'getRegisteredSlot', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'address', + name: 'caller', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'account', + type: 'address', + }, + { + indexed: true, + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', + }, + ], + name: 'StorageRootProcessed', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'caller', + type: 'address', }, { + indexed: true, + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, { + indexed: true, + internalType: 'bytes32', + name: 'blockHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'bytes32', name: 'slot', type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'StorageSlotProcessed', + type: 'event', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'blockHash', + type: 'bytes32', + }, + { + internalType: 'address', + name: 'account', + type: 'address', + }, + { internalType: 'bytes32', + name: 'slot', + type: 'bytes32', }, ], + name: 'getRegisteredSlot', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getStorage', inputs: [ { + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes32', name: 'slot', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes', name: 'storageProof', type: 'bytes', - internalType: 'bytes', }, ], + name: 'getStorage', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IDataWarehouse.SlotValue', components: [ { + internalType: 'bool', name: 'exists', type: 'bool', - internalType: 'bool', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, ], + internalType: 'struct IDataWarehouse.SlotValue', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getStorageRoots', inputs: [ { + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, ], + name: 'getStorageRoots', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'processStorageRoot', inputs: [ { + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes', name: 'blockHeaderRLP', type: 'bytes', - internalType: 'bytes', }, { + internalType: 'bytes', name: 'accountStateProofRLP', type: 'bytes', - internalType: 'bytes', }, ], + name: 'processStorageRoot', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'processStorageSlot', inputs: [ { + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes32', name: 'slot', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes', name: 'storageProof', type: 'bytes', - internalType: 'bytes', }, ], + name: 'processStorageSlot', outputs: [], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'StorageRootProcessed', - inputs: [ - { - name: 'caller', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'account', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'blockHash', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'StorageSlotProcessed', - inputs: [ - { - name: 'caller', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'account', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'blockHash', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { - name: 'slot', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { - name: 'value', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/IDefaultInterestRateStrategy.ts b/src/ts/abis/IDefaultInterestRateStrategy.ts index 4a9f98ca..f028a57d 100644 --- a/src/ts/abis/IDefaultInterestRateStrategy.ts +++ b/src/ts/abis/IDefaultInterestRateStrategy.ts @@ -1,248 +1,248 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IDefaultInterestRateStrategy_ABI = [ { - type: 'function', - name: 'ADDRESSES_PROVIDER', inputs: [], + name: 'ADDRESSES_PROVIDER', outputs: [ { + internalType: 'contract IPoolAddressesProvider', name: '', type: 'address', - internalType: 'contract IPoolAddressesProvider', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'MAX_EXCESS_STABLE_TO_TOTAL_DEBT_RATIO', inputs: [], + name: 'MAX_EXCESS_STABLE_TO_TOTAL_DEBT_RATIO', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'MAX_EXCESS_USAGE_RATIO', inputs: [], + name: 'MAX_EXCESS_USAGE_RATIO', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'OPTIMAL_STABLE_TO_TOTAL_DEBT_RATIO', inputs: [], + name: 'OPTIMAL_STABLE_TO_TOTAL_DEBT_RATIO', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'OPTIMAL_USAGE_RATIO', inputs: [], + name: 'OPTIMAL_USAGE_RATIO', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'calculateInterestRates', inputs: [ { - name: 'params', - type: 'tuple', - internalType: 'struct DataTypes.CalculateInterestRatesParams', components: [ { + internalType: 'uint256', name: 'unbacked', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'liquidityAdded', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'liquidityTaken', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'totalStableDebt', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'totalVariableDebt', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'averageStableBorrowRate', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'reserveFactor', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'reserve', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'aToken', type: 'address', - internalType: 'address', }, ], + internalType: 'struct DataTypes.CalculateInterestRatesParams', + name: 'params', + type: 'tuple', }, ], + name: 'calculateInterestRates', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getBaseStableBorrowRate', inputs: [], + name: 'getBaseStableBorrowRate', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getBaseVariableBorrowRate', inputs: [], + name: 'getBaseVariableBorrowRate', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getMaxVariableBorrowRate', inputs: [], + name: 'getMaxVariableBorrowRate', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getStableRateExcessOffset', inputs: [], + name: 'getStableRateExcessOffset', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getStableRateSlope1', inputs: [], + name: 'getStableRateSlope1', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getStableRateSlope2', inputs: [], + name: 'getStableRateSlope2', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVariableRateSlope1', inputs: [], + name: 'getVariableRateSlope1', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVariableRateSlope2', inputs: [], + name: 'getVariableRateSlope2', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IERC20.ts b/src/ts/abis/IERC20.ts index 73358b27..e70e0774 100644 --- a/src/ts/abis/IERC20.ts +++ b/src/ts/abis/IERC20.ts @@ -1,186 +1,186 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IERC20_ABI = [ { - type: 'function', - name: 'allowance', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'address', name: 'owner', type: 'address', - internalType: 'address', }, { + indexed: true, + internalType: 'address', name: 'spender', type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'Approval', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, internalType: 'address', + name: 'from', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', }, ], + name: 'Transfer', + type: 'event', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'address', + name: 'spender', + type: 'address', + }, + ], + name: 'allowance', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'approve', inputs: [ { + internalType: 'address', name: 'spender', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'approve', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'balanceOf', inputs: [ { + internalType: 'address', name: 'account', type: 'address', - internalType: 'address', }, ], + name: 'balanceOf', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'totalSupply', inputs: [], + name: 'totalSupply', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'transfer', inputs: [ { + internalType: 'address', name: 'recipient', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'transfer', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'transferFrom', inputs: [ { + internalType: 'address', name: 'sender', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'recipient', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], + name: 'transferFrom', outputs: [ { + internalType: 'bool', name: '', type: 'bool', - internalType: 'bool', }, ], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'Approval', - inputs: [ - { - name: 'owner', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'spender', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'value', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'Transfer', - inputs: [ - { - name: 'from', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'to', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'value', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/IExecutor.ts b/src/ts/abis/IExecutor.ts index 7a4ffbee..2dca985d 100644 --- a/src/ts/abis/IExecutor.ts +++ b/src/ts/abis/IExecutor.ts @@ -1,91 +1,91 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IExecutor_ABI = [ { - type: 'function', - name: 'executeTransaction', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'address', name: 'target', type: 'address', - internalType: 'address', }, { + indexed: false, + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, { + indexed: false, + internalType: 'string', name: 'signature', type: 'string', - internalType: 'string', }, { + indexed: false, + internalType: 'bytes', name: 'data', type: 'bytes', - internalType: 'bytes', }, { + indexed: false, + internalType: 'uint256', + name: 'executionTime', + type: 'uint256', + }, + { + indexed: false, + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - internalType: 'bool', }, - ], - outputs: [ { - name: '', - type: 'bytes', + indexed: false, internalType: 'bytes', + name: 'resultData', + type: 'bytes', }, ], - stateMutability: 'payable', + name: 'ExecutedAction', + type: 'event', }, { - type: 'event', - name: 'ExecutedAction', inputs: [ { + internalType: 'address', name: 'target', type: 'address', - indexed: true, - internalType: 'address', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - indexed: false, - internalType: 'uint256', }, { + internalType: 'string', name: 'signature', type: 'string', - indexed: false, - internalType: 'string', }, { + internalType: 'bytes', name: 'data', type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - { - name: 'executionTime', - type: 'uint256', - indexed: false, - internalType: 'uint256', }, { + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - indexed: false, - internalType: 'bool', }, + ], + name: 'executeTransaction', + outputs: [ { - name: 'resultData', - type: 'bytes', - indexed: false, internalType: 'bytes', + name: '', + type: 'bytes', }, ], - anonymous: false, + stateMutability: 'payable', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IExecutorWithTimelock.ts b/src/ts/abis/IExecutorWithTimelock.ts index 0e0aefcb..6ee52f09 100644 --- a/src/ts/abis/IExecutorWithTimelock.ts +++ b/src/ts/abis/IExecutorWithTimelock.ts @@ -1,461 +1,461 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IExecutorWithTimelock_ABI = [ { - type: 'function', - name: 'GRACE_PERIOD', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', - internalType: 'uint256', + indexed: false, + internalType: 'bytes32', + name: 'actionHash', + type: 'bytes32', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'MAXIMUM_DELAY', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', - internalType: 'uint256', + indexed: true, + internalType: 'address', + name: 'target', + type: 'address', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'MINIMUM_DELAY', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', + indexed: false, internalType: 'uint256', + name: 'value', + type: 'uint256', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'VOTING_DURATION', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', + indexed: false, + internalType: 'string', + name: 'signature', + type: 'string', + }, + { + indexed: false, + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + indexed: false, internalType: 'uint256', + name: 'executionTime', + type: 'uint256', + }, + { + indexed: false, + internalType: 'bool', + name: 'withDelegatecall', + type: 'bool', }, ], - stateMutability: 'view', + name: 'CancelledAction', + type: 'event', }, { - type: 'function', - name: 'cancelTransaction', + anonymous: false, inputs: [ { + indexed: false, + internalType: 'bytes32', + name: 'actionHash', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'address', name: 'target', type: 'address', - internalType: 'address', }, { + indexed: false, + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, { + indexed: false, + internalType: 'string', name: 'signature', type: 'string', - internalType: 'string', }, { + indexed: false, + internalType: 'bytes', name: 'data', type: 'bytes', - internalType: 'bytes', }, { + indexed: false, + internalType: 'uint256', name: 'executionTime', type: 'uint256', - internalType: 'uint256', }, { + indexed: false, + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - internalType: 'bool', + }, + { + indexed: false, + internalType: 'bytes', + name: 'resultData', + type: 'bytes', }, ], - outputs: [ + name: 'ExecutedAction', + type: 'event', + }, + { + anonymous: false, + inputs: [ { - name: '', - type: 'bytes32', - internalType: 'bytes32', + indexed: false, + internalType: 'address', + name: 'newAdmin', + type: 'address', }, ], - stateMutability: 'nonpayable', + name: 'NewAdmin', + type: 'event', }, { - type: 'function', - name: 'executeTransaction', + anonymous: false, inputs: [ { - name: 'target', + indexed: false, + internalType: 'uint256', + name: 'delay', + type: 'uint256', + }, + ], + name: 'NewDelay', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'newPendingAdmin', type: 'address', + }, + ], + name: 'NewPendingAdmin', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'actionHash', + type: 'bytes32', + }, + { + indexed: true, internalType: 'address', + name: 'target', + type: 'address', }, { + indexed: false, + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, { + indexed: false, + internalType: 'string', name: 'signature', type: 'string', - internalType: 'string', }, { + indexed: false, + internalType: 'bytes', name: 'data', type: 'bytes', - internalType: 'bytes', }, { + indexed: false, + internalType: 'uint256', name: 'executionTime', type: 'uint256', - internalType: 'uint256', }, { + indexed: false, + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - internalType: 'bool', }, ], - outputs: [ - { - name: '', - type: 'bytes', - internalType: 'bytes', - }, - ], - stateMutability: 'payable', + name: 'QueuedAction', + type: 'event', }, { - type: 'function', - name: 'getAdmin', inputs: [], + name: 'GRACE_PERIOD', outputs: [ { + internalType: 'uint256', name: '', - type: 'address', - internalType: 'address', + type: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getDelay', inputs: [], + name: 'MAXIMUM_DELAY', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getPendingAdmin', inputs: [], + name: 'MINIMUM_DELAY', outputs: [ { + internalType: 'uint256', name: '', - type: 'address', - internalType: 'address', + type: 'uint256', }, ], stateMutability: 'view', - }, - { type: 'function', - name: 'isActionQueued', - inputs: [ - { - name: 'actionHash', - type: 'bytes32', - internalType: 'bytes32', - }, - ], - outputs: [ - { - name: '', - type: 'bool', - internalType: 'bool', - }, - ], - stateMutability: 'view', }, { - type: 'function', - name: 'isProposalOverGracePeriod', - inputs: [ - { - name: 'governance', - type: 'address', - internalType: 'contract IAaveGovernanceV2', - }, - { - name: 'proposalId', - type: 'uint256', - internalType: 'uint256', - }, - ], + inputs: [], + name: 'VOTING_DURATION', outputs: [ { + internalType: 'uint256', name: '', - type: 'bool', - internalType: 'bool', + type: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'queueTransaction', inputs: [ { + internalType: 'address', name: 'target', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'string', name: 'signature', type: 'string', - internalType: 'string', }, { + internalType: 'bytes', name: 'data', type: 'bytes', - internalType: 'bytes', }, { + internalType: 'uint256', name: 'executionTime', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - internalType: 'bool', }, ], + name: 'cancelTransaction', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'CancelledAction', inputs: [ { - name: 'actionHash', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { + internalType: 'address', name: 'target', type: 'address', - indexed: true, - internalType: 'address', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - indexed: false, - internalType: 'uint256', }, { + internalType: 'string', name: 'signature', type: 'string', - indexed: false, - internalType: 'string', }, { + internalType: 'bytes', name: 'data', type: 'bytes', - indexed: false, - internalType: 'bytes', }, { + internalType: 'uint256', name: 'executionTime', type: 'uint256', - indexed: false, - internalType: 'uint256', }, { + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - indexed: false, - internalType: 'bool', }, ], - anonymous: false, - }, - { - type: 'event', - name: 'ExecutedAction', - inputs: [ + name: 'executeTransaction', + outputs: [ { - name: 'actionHash', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', + internalType: 'bytes', + name: '', + type: 'bytes', }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [], + name: 'getAdmin', + outputs: [ { - name: 'target', - type: 'address', - indexed: true, internalType: 'address', + name: '', + type: 'address', }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getDelay', + outputs: [ { - name: 'value', - type: 'uint256', - indexed: false, internalType: 'uint256', - }, - { - name: 'signature', - type: 'string', - indexed: false, - internalType: 'string', - }, - { - name: 'data', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - { - name: 'executionTime', + name: '', type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'withDelegatecall', - type: 'bool', - indexed: false, - internalType: 'bool', - }, - { - name: 'resultData', - type: 'bytes', - indexed: false, - internalType: 'bytes', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'NewAdmin', - inputs: [ + inputs: [], + name: 'getPendingAdmin', + outputs: [ { - name: 'newAdmin', - type: 'address', - indexed: false, internalType: 'address', + name: '', + type: 'address', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'NewDelay', inputs: [ { - name: 'delay', - type: 'uint256', - indexed: false, - internalType: 'uint256', + internalType: 'bytes32', + name: 'actionHash', + type: 'bytes32', }, ], - anonymous: false, + name: 'isActionQueued', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'NewPendingAdmin', inputs: [ { - name: 'newPendingAdmin', + internalType: 'contract IAaveGovernanceV2', + name: 'governance', type: 'address', - indexed: false, - internalType: 'address', + }, + { + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, ], - anonymous: false, + name: 'isProposalOverGracePeriod', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'QueuedAction', inputs: [ { - name: 'actionHash', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { + internalType: 'address', name: 'target', type: 'address', - indexed: true, - internalType: 'address', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - indexed: false, - internalType: 'uint256', }, { + internalType: 'string', name: 'signature', type: 'string', - indexed: false, - internalType: 'string', }, { + internalType: 'bytes', name: 'data', type: 'bytes', - indexed: false, - internalType: 'bytes', }, { + internalType: 'uint256', name: 'executionTime', type: 'uint256', - indexed: false, - internalType: 'uint256', }, { + internalType: 'bool', name: 'withDelegatecall', type: 'bool', - indexed: false, - internalType: 'bool', }, ], - anonymous: false, + name: 'queueTransaction', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'nonpayable', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IGovernanceCore.ts b/src/ts/abis/IGovernanceCore.ts index 8ab72fd2..a571b946 100644 --- a/src/ts/abis/IGovernanceCore.ts +++ b/src/ts/abis/IGovernanceCore.ts @@ -1,1032 +1,1032 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IGovernanceCore_ABI = [ { - type: 'function', - name: 'ACHIEVABLE_VOTING_PARTICIPATION', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', + indexed: true, internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'CANCELLATION_FEE_COLLECTOR', - inputs: [], - outputs: [ { - name: '', - type: 'address', + indexed: true, internalType: 'address', + name: 'to', + type: 'address', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'COOLDOWN_PERIOD', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', + indexed: false, internalType: 'uint256', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'MIN_VOTING_DURATION', - inputs: [], - outputs: [ - { - name: '', + name: 'cancellationFee', type: 'uint256', - internalType: 'uint256', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'NAME', - inputs: [], - outputs: [ { - name: '', - type: 'string', - internalType: 'string', + indexed: true, + internalType: 'bool', + name: 'success', + type: 'bool', }, ], - stateMutability: 'view', + name: 'CancellationFeeRedeemed', + type: 'event', }, { - type: 'function', - name: 'PRECISION_DIVIDER', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', + indexed: false, internalType: 'uint256', + name: 'cancellationFee', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'CancellationFeeUpdated', + type: 'event', }, { - type: 'function', - name: 'PROPOSAL_EXPIRATION_TIME', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', + indexed: true, internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'VOTING_TOKENS_CAP', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', + indexed: false, + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', + }, + { + indexed: true, + internalType: 'address', + name: 'payloadsController', + type: 'address', + }, + { + indexed: true, internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'activateVoting', - inputs: [ { - name: 'proposalId', + indexed: false, + internalType: 'uint256', + name: 'payloadNumberOnProposal', type: 'uint256', + }, + { + indexed: false, internalType: 'uint256', + name: 'numberOfPayloadsOnProposal', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'PayloadSent', + type: 'event', }, { - type: 'function', - name: 'addVotingPortals', + anonymous: false, inputs: [ { - name: 'votingPortals', - type: 'address[]', - internalType: 'address[]', + indexed: true, + internalType: 'address', + name: 'newPowerStrategy', + type: 'address', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'PowerStrategyUpdated', + type: 'event', }, { - type: 'function', - name: 'cancelProposal', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ProposalCanceled', + type: 'event', }, { - type: 'function', - name: 'createProposal', + anonymous: false, inputs: [ { - name: 'payloads', - type: 'tuple[]', - internalType: 'struct PayloadsControllerUtils.Payload[]', - components: [ - { - name: 'chain', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'accessLevel', - type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'payloadsController', - type: 'address', - internalType: 'address', - }, - { - name: 'payloadId', - type: 'uint40', - internalType: 'uint40', - }, - ], + indexed: true, + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, { - name: 'votingPortal', - type: 'address', + indexed: true, internalType: 'address', + name: 'creator', + type: 'address', + }, + { + indexed: true, + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', }, { + indexed: false, + internalType: 'bytes32', name: 'ipfsHash', type: 'bytes32', - internalType: 'bytes32', }, ], - outputs: [ + name: 'ProposalCreated', + type: 'event', + }, + { + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', + indexed: true, internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, ], - stateMutability: 'payable', + name: 'ProposalExecuted', + type: 'event', }, { - type: 'function', - name: 'executeProposal', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', + }, + { + indexed: false, + internalType: 'uint128', + name: 'votesFor', + type: 'uint128', + }, + { + indexed: false, + internalType: 'uint128', + name: 'votesAgainst', + type: 'uint128', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ProposalFailed', + type: 'event', }, { - type: 'function', - name: 'getCancellationFee', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', - type: 'uint256', + indexed: true, internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, - ], - stateMutability: 'view', + { + indexed: false, + internalType: 'uint128', + name: 'votesFor', + type: 'uint128', + }, + { + indexed: false, + internalType: 'uint128', + name: 'votesAgainst', + type: 'uint128', + }, + ], + name: 'ProposalQueued', + type: 'event', }, { - type: 'function', - name: 'getPowerStrategy', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', + indexed: true, + internalType: 'address', + name: 'voter', type: 'address', - internalType: 'contract IGovernancePowerStrategy', + }, + { + indexed: true, + internalType: 'address', + name: 'representative', + type: 'address', + }, + { + indexed: true, + internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'RepresentativeUpdated', + type: 'event', }, { - type: 'function', - name: 'getProposal', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, - ], - outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IGovernanceCore.Proposal', + indexed: true, + internalType: 'address', + name: 'voter', + type: 'address', + }, + { + indexed: true, + internalType: 'bool', + name: 'support', + type: 'bool', + }, + { components: [ { - name: 'state', - type: 'uint8', - internalType: 'enum IGovernanceCore.State', - }, - { - name: 'accessLevel', - type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'creationTime', - type: 'uint40', - internalType: 'uint40', - }, - { - name: 'votingDuration', - type: 'uint24', - internalType: 'uint24', - }, - { - name: 'votingActivationTime', - type: 'uint40', - internalType: 'uint40', - }, - { - name: 'queuingTime', - type: 'uint40', - internalType: 'uint40', - }, - { - name: 'cancelTimestamp', - type: 'uint40', - internalType: 'uint40', - }, - { - name: 'creator', - type: 'address', internalType: 'address', - }, - { - name: 'votingPortal', + name: 'underlyingAsset', type: 'address', - internalType: 'address', - }, - { - name: 'snapshotBlockHash', - type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 'ipfsHash', - type: 'bytes32', - internalType: 'bytes32', }, { - name: 'forVotes', - type: 'uint128', internalType: 'uint128', - }, - { - name: 'againstVotes', + name: 'slot', type: 'uint128', - internalType: 'uint128', - }, - { - name: 'cancellationFee', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'payloads', - type: 'tuple[]', - internalType: 'struct PayloadsControllerUtils.Payload[]', - components: [ - { - name: 'chain', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'accessLevel', - type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'payloadsController', - type: 'address', - internalType: 'address', - }, - { - name: 'payloadId', - type: 'uint40', - internalType: 'uint40', - }, - ], }, ], + indexed: false, + internalType: 'struct IVotingMachineWithProofs.VotingAssetWithSlot[]', + name: 'votingAssetsWithSlot', + type: 'tuple[]', }, ], - stateMutability: 'view', + name: 'VoteForwarded', + type: 'event', }, { - type: 'function', - name: 'getProposalState', + anonymous: false, inputs: [ { + indexed: true, + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, - ], - outputs: [ { - name: '', - type: 'uint8', - internalType: 'enum IGovernanceCore.State', + indexed: true, + internalType: 'bytes32', + name: 'snapshotBlockHash', + type: 'bytes32', }, - ], - stateMutability: 'view', - }, - { - type: 'function', - name: 'getProposalsCount', - inputs: [], - outputs: [ { - name: '', - type: 'uint256', - internalType: 'uint256', + indexed: false, + internalType: 'uint24', + name: 'votingDuration', + type: 'uint24', }, ], - stateMutability: 'view', + name: 'VotingActivated', + type: 'event', }, { - type: 'function', - name: 'getRepresentativeByChain', + anonymous: false, inputs: [ { - name: 'voter', - type: 'address', - internalType: 'address', + indexed: true, + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', }, { - name: 'chainId', + indexed: false, + internalType: 'uint24', + name: 'votingDuration', + type: 'uint24', + }, + { + indexed: false, + internalType: 'uint24', + name: 'coolDownBeforeVotingStart', + type: 'uint24', + }, + { + indexed: false, + internalType: 'uint256', + name: 'yesThreshold', type: 'uint256', + }, + { + indexed: false, internalType: 'uint256', + name: 'yesNoDifferential', + type: 'uint256', }, - ], - outputs: [ { - name: '', - type: 'address', - internalType: 'address', + indexed: false, + internalType: 'uint256', + name: 'minPropositionPower', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'VotingConfigUpdated', + type: 'event', }, { - type: 'function', - name: 'getRepresentedVotersByChain', + anonymous: false, inputs: [ { - name: 'representative', - type: 'address', + indexed: true, internalType: 'address', + name: 'votingPortal', + type: 'address', }, { - name: 'chainId', - type: 'uint256', - internalType: 'uint256', + indexed: true, + internalType: 'bool', + name: 'approved', + type: 'bool', }, ], + name: 'VotingPortalUpdated', + type: 'event', + }, + { + inputs: [], + name: 'ACHIEVABLE_VOTING_PARTICIPATION', outputs: [ { + internalType: 'uint256', name: '', - type: 'address[]', - internalType: 'address[]', + type: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVotingConfig', - inputs: [ - { - name: 'accessLevel', - type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - ], + inputs: [], + name: 'CANCELLATION_FEE_COLLECTOR', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IGovernanceCore.VotingConfig', - components: [ - { - name: 'coolDownBeforeVotingStart', - type: 'uint24', - internalType: 'uint24', - }, - { - name: 'votingDuration', - type: 'uint24', - internalType: 'uint24', - }, - { - name: 'yesThreshold', - type: 'uint56', - internalType: 'uint56', - }, - { - name: 'yesNoDifferential', - type: 'uint56', - internalType: 'uint56', - }, - { - name: 'minPropositionPower', - type: 'uint56', - internalType: 'uint56', - }, - ], + internalType: 'address', + name: '', + type: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVotingPortalsCount', inputs: [], + name: 'COOLDOWN_PERIOD', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'isVotingPortalApproved', - inputs: [ + inputs: [], + name: 'MIN_VOTING_DURATION', + outputs: [ { - name: 'votingPortal', - type: 'address', - internalType: 'address', + internalType: 'uint256', + name: '', + type: 'uint256', }, ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'NAME', outputs: [ { + internalType: 'string', name: '', - type: 'bool', - internalType: 'bool', + type: 'string', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'queueProposal', - inputs: [ + inputs: [], + name: 'PRECISION_DIVIDER', + outputs: [ { - name: 'proposalId', - type: 'uint256', internalType: 'uint256', + name: '', + type: 'uint256', }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'PROPOSAL_EXPIRATION_TIME', + outputs: [ { - name: 'forVotes', - type: 'uint128', - internalType: 'uint128', - }, - { - name: 'againstVotes', - type: 'uint128', - internalType: 'uint128', + internalType: 'uint256', + name: '', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'redeemCancellationFee', - inputs: [ + inputs: [], + name: 'VOTING_TOKENS_CAP', + outputs: [ { - name: 'proposalIds', - type: 'uint256[]', - internalType: 'uint256[]', + internalType: 'uint256', + name: '', + type: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'removeVotingPortals', inputs: [ { - name: 'votingPortals', - type: 'address[]', - internalType: 'address[]', + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, ], + name: 'activateVoting', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'rescueVotingPortal', inputs: [ { - name: 'votingPortal', - type: 'address', - internalType: 'address', + internalType: 'address[]', + name: 'votingPortals', + type: 'address[]', }, ], + name: 'addVotingPortals', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'setPowerStrategy', inputs: [ { - name: 'newPowerStrategy', - type: 'address', - internalType: 'contract IGovernancePowerStrategy', + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, ], + name: 'cancelProposal', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'setVotingConfigs', inputs: [ { - name: 'votingConfigs', - type: 'tuple[]', - internalType: 'struct IGovernanceCore.SetVotingConfigInput[]', components: [ { - name: 'accessLevel', - type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'coolDownBeforeVotingStart', - type: 'uint24', - internalType: 'uint24', - }, - { - name: 'votingDuration', - type: 'uint24', - internalType: 'uint24', + internalType: 'uint256', + name: 'chain', + type: 'uint256', }, { - name: 'yesThreshold', - type: 'uint256', - internalType: 'uint256', + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', }, { - name: 'yesNoDifferential', - type: 'uint256', - internalType: 'uint256', + internalType: 'address', + name: 'payloadsController', + type: 'address', }, { - name: 'minPropositionPower', - type: 'uint256', - internalType: 'uint256', + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', }, ], + internalType: 'struct PayloadsControllerUtils.Payload[]', + name: 'payloads', + type: 'tuple[]', + }, + { + internalType: 'address', + name: 'votingPortal', + type: 'address', + }, + { + internalType: 'bytes32', + name: 'ipfsHash', + type: 'bytes32', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'createProposal', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'payable', + type: 'function', }, { - type: 'function', - name: 'updateCancellationFee', inputs: [ { - name: 'cancellationFee', - type: 'uint256', internalType: 'uint256', + name: 'proposalId', + type: 'uint256', }, ], + name: 'executeProposal', outputs: [], stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getCancellationFee', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', }, { + inputs: [], + name: 'getPowerStrategy', + outputs: [ + { + internalType: 'contract IGovernancePowerStrategy', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', type: 'function', - name: 'updateRepresentativesForChain', + }, + { inputs: [ { - name: 'representatives', - type: 'tuple[]', - internalType: 'struct IGovernanceCore.RepresentativeInput[]', + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + ], + name: 'getProposal', + outputs: [ + { components: [ { - name: 'representative', + internalType: 'enum IGovernanceCore.State', + name: 'state', + type: 'uint8', + }, + { + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', + }, + { + internalType: 'uint40', + name: 'creationTime', + type: 'uint40', + }, + { + internalType: 'uint24', + name: 'votingDuration', + type: 'uint24', + }, + { + internalType: 'uint40', + name: 'votingActivationTime', + type: 'uint40', + }, + { + internalType: 'uint40', + name: 'queuingTime', + type: 'uint40', + }, + { + internalType: 'uint40', + name: 'cancelTimestamp', + type: 'uint40', + }, + { + internalType: 'address', + name: 'creator', type: 'address', + }, + { internalType: 'address', + name: 'votingPortal', + type: 'address', + }, + { + internalType: 'bytes32', + name: 'snapshotBlockHash', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 'ipfsHash', + type: 'bytes32', + }, + { + internalType: 'uint128', + name: 'forVotes', + type: 'uint128', + }, + { + internalType: 'uint128', + name: 'againstVotes', + type: 'uint128', }, { - name: 'chainId', - type: 'uint256', internalType: 'uint256', + name: 'cancellationFee', + type: 'uint256', + }, + { + components: [ + { + internalType: 'uint256', + name: 'chain', + type: 'uint256', + }, + { + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', + }, + { + internalType: 'address', + name: 'payloadsController', + type: 'address', + }, + { + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', + }, + ], + internalType: 'struct PayloadsControllerUtils.Payload[]', + name: 'payloads', + type: 'tuple[]', }, ], + internalType: 'struct IGovernanceCore.Proposal', + name: '', + type: 'tuple', }, ], - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'CancellationFeeRedeemed', inputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, internalType: 'uint256', - }, - { - name: 'to', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'cancellationFee', + name: 'proposalId', type: 'uint256', - indexed: false, - internalType: 'uint256', }, + ], + name: 'getProposalState', + outputs: [ { - name: 'success', - type: 'bool', - indexed: true, - internalType: 'bool', + internalType: 'enum IGovernanceCore.State', + name: '', + type: 'uint8', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'CancellationFeeUpdated', - inputs: [ + inputs: [], + name: 'getProposalsCount', + outputs: [ { - name: 'cancellationFee', - type: 'uint256', - indexed: false, internalType: 'uint256', + name: '', + type: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'PayloadSent', inputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', + internalType: 'address', + name: 'voter', + type: 'address', }, { - name: 'payloadId', - type: 'uint40', - indexed: false, - internalType: 'uint40', + internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, + ], + name: 'getRepresentativeByChain', + outputs: [ { - name: 'payloadsController', - type: 'address', - indexed: true, internalType: 'address', + name: '', + type: 'address', }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ { - name: 'chainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', + internalType: 'address', + name: 'representative', + type: 'address', }, { - name: 'payloadNumberOnProposal', - type: 'uint256', - indexed: false, internalType: 'uint256', + name: 'chainId', + type: 'uint256', }, + ], + name: 'getRepresentedVotersByChain', + outputs: [ { - name: 'numberOfPayloadsOnProposal', - type: 'uint256', - indexed: false, - internalType: 'uint256', + internalType: 'address[]', + name: '', + type: 'address[]', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'PowerStrategyUpdated', inputs: [ { - name: 'newPowerStrategy', - type: 'address', - indexed: true, - internalType: 'address', + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', }, ], - anonymous: false, + name: 'getVotingConfig', + outputs: [ + { + components: [ + { + internalType: 'uint24', + name: 'coolDownBeforeVotingStart', + type: 'uint24', + }, + { + internalType: 'uint24', + name: 'votingDuration', + type: 'uint24', + }, + { + internalType: 'uint56', + name: 'yesThreshold', + type: 'uint56', + }, + { + internalType: 'uint56', + name: 'yesNoDifferential', + type: 'uint56', + }, + { + internalType: 'uint56', + name: 'minPropositionPower', + type: 'uint56', + }, + ], + internalType: 'struct IGovernanceCore.VotingConfig', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'ProposalCanceled', - inputs: [ + inputs: [], + name: 'getVotingPortalsCount', + outputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, internalType: 'uint256', + name: '', + type: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'ProposalCreated', inputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'creator', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'accessLevel', - type: 'uint8', - indexed: true, - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'ipfsHash', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', + name: 'votingPortal', + type: 'address', }, ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalExecuted', - inputs: [ + name: 'isVotingPortalApproved', + outputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', + internalType: 'bool', + name: '', + type: 'bool', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'ProposalFailed', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - indexed: true, - internalType: 'uint256', }, { - name: 'votesFor', - type: 'uint128', - indexed: false, internalType: 'uint128', + name: 'forVotes', + type: 'uint128', }, { - name: 'votesAgainst', - type: 'uint128', - indexed: false, internalType: 'uint128', + name: 'againstVotes', + type: 'uint128', }, ], - anonymous: false, + name: 'queueProposal', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'ProposalQueued', inputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'votesFor', - type: 'uint128', - indexed: false, - internalType: 'uint128', + internalType: 'uint256[]', + name: 'proposalIds', + type: 'uint256[]', }, + ], + name: 'redeemCancellationFee', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ { - name: 'votesAgainst', - type: 'uint128', - indexed: false, - internalType: 'uint128', + internalType: 'address[]', + name: 'votingPortals', + type: 'address[]', }, ], - anonymous: false, + name: 'removeVotingPortals', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'RepresentativeUpdated', inputs: [ { - name: 'voter', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'representative', + name: 'votingPortal', type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'chainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', }, ], - anonymous: false, + name: 'rescueVotingPortal', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'VoteForwarded', inputs: [ { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'voter', + internalType: 'contract IGovernancePowerStrategy', + name: 'newPowerStrategy', type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'support', - type: 'bool', - indexed: true, - internalType: 'bool', }, + ], + name: 'setPowerStrategy', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ { - name: 'votingAssetsWithSlot', - type: 'tuple[]', - indexed: false, - internalType: 'struct IVotingMachineWithProofs.VotingAssetWithSlot[]', components: [ { - name: 'underlyingAsset', - type: 'address', - internalType: 'address', + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', }, { - name: 'slot', - type: 'uint128', - internalType: 'uint128', + internalType: 'uint24', + name: 'coolDownBeforeVotingStart', + type: 'uint24', + }, + { + internalType: 'uint24', + name: 'votingDuration', + type: 'uint24', + }, + { + internalType: 'uint256', + name: 'yesThreshold', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'yesNoDifferential', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'minPropositionPower', + type: 'uint256', }, ], + internalType: 'struct IGovernanceCore.SetVotingConfigInput[]', + name: 'votingConfigs', + type: 'tuple[]', }, ], - anonymous: false, - }, - { - type: 'event', - name: 'VotingActivated', - inputs: [ - { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'snapshotBlockHash', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { - name: 'votingDuration', - type: 'uint24', - indexed: false, - internalType: 'uint24', - }, - ], - anonymous: false, + name: 'setVotingConfigs', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'VotingConfigUpdated', inputs: [ { - name: 'accessLevel', - type: 'uint8', - indexed: true, - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'votingDuration', - type: 'uint24', - indexed: false, - internalType: 'uint24', - }, - { - name: 'coolDownBeforeVotingStart', - type: 'uint24', - indexed: false, - internalType: 'uint24', - }, - { - name: 'yesThreshold', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'yesNoDifferential', - type: 'uint256', - indexed: false, internalType: 'uint256', - }, - { - name: 'minPropositionPower', + name: 'cancellationFee', type: 'uint256', - indexed: false, - internalType: 'uint256', }, ], - anonymous: false, + name: 'updateCancellationFee', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'VotingPortalUpdated', inputs: [ { - name: 'votingPortal', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'approved', - type: 'bool', - indexed: true, - internalType: 'bool', + components: [ + { + internalType: 'address', + name: 'representative', + type: 'address', + }, + { + internalType: 'uint256', + name: 'chainId', + type: 'uint256', + }, + ], + internalType: 'struct IGovernanceCore.RepresentativeInput[]', + name: 'representatives', + type: 'tuple[]', }, ], - anonymous: false, + name: 'updateRepresentativesForChain', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IGovernancePowerStrategy.ts b/src/ts/abis/IGovernancePowerStrategy.ts index 59dd711e..53341801 100644 --- a/src/ts/abis/IGovernancePowerStrategy.ts +++ b/src/ts/abis/IGovernancePowerStrategy.ts @@ -1,41 +1,41 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IGovernancePowerStrategy_ABI = [ { - type: 'function', - name: 'getFullPropositionPower', inputs: [ { + internalType: 'address', name: 'user', type: 'address', - internalType: 'address', }, ], + name: 'getFullPropositionPower', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getFullVotingPower', inputs: [ { + internalType: 'address', name: 'user', type: 'address', - internalType: 'address', }, ], + name: 'getFullVotingPower', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IOwnable.ts b/src/ts/abis/IOwnable.ts index dab5a9c4..9b509bd5 100644 --- a/src/ts/abis/IOwnable.ts +++ b/src/ts/abis/IOwnable.ts @@ -1,55 +1,55 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IOwnable_ABI = [ { - type: 'function', - name: 'owner', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', + indexed: true, + internalType: 'address', + name: 'previousOwner', type: 'address', + }, + { + indexed: true, internalType: 'address', + name: 'newOwner', + type: 'address', }, ], - stateMutability: 'view', + name: 'OwnershipTransferred', + type: 'event', }, { - type: 'function', - name: 'renounceOwnership', inputs: [], - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - name: 'transferOwnership', - inputs: [ + name: 'owner', + outputs: [ { - name: 'newOwner', - type: 'address', internalType: 'address', + name: '', + type: 'address', }, ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'OwnershipTransferred', inputs: [ { - name: 'previousOwner', - type: 'address', - indexed: true, internalType: 'address', - }, - { name: 'newOwner', type: 'address', - indexed: true, - internalType: 'address', }, ], - anonymous: false, + name: 'transferOwnership', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IPayloadsControllerCore.ts b/src/ts/abis/IPayloadsControllerCore.ts index c1cc95c6..67f95f2d 100644 --- a/src/ts/abis/IPayloadsControllerCore.ts +++ b/src/ts/abis/IPayloadsControllerCore.ts @@ -1,504 +1,504 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IPayloadsControllerCore_ABI = [ { - type: 'function', - name: 'EXPIRATION_DELAY', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', + }, + { + indexed: true, + internalType: 'address', + name: 'executor', + type: 'address', + }, + { + indexed: false, + internalType: 'uint40', + name: 'delay', + type: 'uint40', + }, + ], + name: 'ExecutorSet', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', + }, + ], + name: 'PayloadCancelled', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', + }, + { + indexed: true, + internalType: 'address', + name: 'creator', + type: 'address', + }, + { + components: [ + { + internalType: 'address', + name: 'target', + type: 'address', + }, + { + internalType: 'bool', + name: 'withDelegateCall', + type: 'bool', + }, + { + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'accessLevel', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'string', + name: 'signature', + type: 'string', + }, + { + internalType: 'bytes', + name: 'callData', + type: 'bytes', + }, + ], + indexed: false, + internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', + name: 'actions', + type: 'tuple[]', + }, + { + indexed: true, + internalType: 'enum PayloadsControllerUtils.AccessControl', + name: 'maximumAccessLevelRequired', + type: 'uint8', + }, + ], + name: 'PayloadCreated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', + }, + ], + name: 'PayloadExecuted', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'originSender', + type: 'address', + }, + { + indexed: true, + internalType: 'uint256', + name: 'originChainId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'bool', + name: 'delivered', + type: 'bool', + }, + { + indexed: false, + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + { + indexed: false, + internalType: 'bytes', + name: 'reason', + type: 'bytes', + }, + ], + name: 'PayloadExecutionMessageReceived', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint40', + name: 'payloadId', + type: 'uint40', + }, + ], + name: 'PayloadQueued', + type: 'event', + }, + { inputs: [], + name: 'EXPIRATION_DELAY', outputs: [ { + internalType: 'uint40', name: '', type: 'uint40', - internalType: 'uint40', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'GRACE_PERIOD', inputs: [], + name: 'GRACE_PERIOD', outputs: [ { + internalType: 'uint40', name: '', type: 'uint40', - internalType: 'uint40', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'MAX_EXECUTION_DELAY', inputs: [], + name: 'MAX_EXECUTION_DELAY', outputs: [ { + internalType: 'uint40', name: '', type: 'uint40', - internalType: 'uint40', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'MIN_EXECUTION_DELAY', inputs: [], + name: 'MIN_EXECUTION_DELAY', outputs: [ { + internalType: 'uint40', name: '', type: 'uint40', - internalType: 'uint40', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'cancelPayload', inputs: [ { + internalType: 'uint40', name: 'payloadId', type: 'uint40', - internalType: 'uint40', }, ], + name: 'cancelPayload', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'createPayload', inputs: [ { - name: 'actions', - type: 'tuple[]', - internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', components: [ { + internalType: 'address', name: 'target', type: 'address', - internalType: 'address', }, { + internalType: 'bool', name: 'withDelegateCall', type: 'bool', - internalType: 'bool', }, { + internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'string', name: 'signature', type: 'string', - internalType: 'string', }, { + internalType: 'bytes', name: 'callData', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', + name: 'actions', + type: 'tuple[]', }, ], + name: 'createPayload', outputs: [ { + internalType: 'uint40', name: '', type: 'uint40', - internalType: 'uint40', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'executePayload', inputs: [ { + internalType: 'uint40', name: 'payloadId', type: 'uint40', - internalType: 'uint40', }, ], + name: 'executePayload', outputs: [], stateMutability: 'payable', + type: 'function', }, { - type: 'function', - name: 'getExecutorSettingsByAccessControl', inputs: [ { + internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessControl', type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', }, ], + name: 'getExecutorSettingsByAccessControl', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IPayloadsControllerCore.ExecutorConfig', components: [ { + internalType: 'address', name: 'executor', type: 'address', - internalType: 'address', }, { + internalType: 'uint40', name: 'delay', type: 'uint40', - internalType: 'uint40', }, ], + internalType: 'struct IPayloadsControllerCore.ExecutorConfig', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getPayloadById', inputs: [ { + internalType: 'uint40', name: 'payloadId', type: 'uint40', - internalType: 'uint40', }, ], + name: 'getPayloadById', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IPayloadsControllerCore.Payload', components: [ { + internalType: 'address', name: 'creator', type: 'address', - internalType: 'address', }, { + internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'maximumAccessLevelRequired', type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', }, { + internalType: 'enum IPayloadsControllerCore.PayloadState', name: 'state', type: 'uint8', - internalType: 'enum IPayloadsControllerCore.PayloadState', }, { + internalType: 'uint40', name: 'createdAt', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'queuedAt', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'executedAt', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'cancelledAt', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'expirationTime', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'delay', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'gracePeriod', type: 'uint40', - internalType: 'uint40', }, { - name: 'actions', - type: 'tuple[]', - internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', components: [ { + internalType: 'address', name: 'target', type: 'address', - internalType: 'address', }, { + internalType: 'bool', name: 'withDelegateCall', type: 'bool', - internalType: 'bool', }, { + internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', }, { + internalType: 'uint256', name: 'value', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'string', name: 'signature', type: 'string', - internalType: 'string', }, { + internalType: 'bytes', name: 'callData', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', + name: 'actions', + type: 'tuple[]', }, ], + internalType: 'struct IPayloadsControllerCore.Payload', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getPayloadState', inputs: [ { + internalType: 'uint40', name: 'payloadId', type: 'uint40', - internalType: 'uint40', }, ], + name: 'getPayloadState', outputs: [ { + internalType: 'enum IPayloadsControllerCore.PayloadState', name: '', type: 'uint8', - internalType: 'enum IPayloadsControllerCore.PayloadState', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getPayloadsCount', inputs: [], + name: 'getPayloadsCount', outputs: [ { + internalType: 'uint40', name: '', type: 'uint40', - internalType: 'uint40', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'updateExecutors', inputs: [ { - name: 'executors', - type: 'tuple[]', - internalType: 'struct IPayloadsControllerCore.UpdateExecutorInput[]', components: [ { + internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - name: 'executorConfig', - type: 'tuple', - internalType: 'struct IPayloadsControllerCore.ExecutorConfig', components: [ { + internalType: 'address', name: 'executor', type: 'address', - internalType: 'address', }, { + internalType: 'uint40', name: 'delay', type: 'uint40', - internalType: 'uint40', }, ], + internalType: 'struct IPayloadsControllerCore.ExecutorConfig', + name: 'executorConfig', + type: 'tuple', }, ], + internalType: 'struct IPayloadsControllerCore.UpdateExecutorInput[]', + name: 'executors', + type: 'tuple[]', }, ], + name: 'updateExecutors', outputs: [], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'ExecutorSet', - inputs: [ - { - name: 'accessLevel', - type: 'uint8', - indexed: true, - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'executor', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'delay', - type: 'uint40', - indexed: false, - internalType: 'uint40', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'PayloadCancelled', - inputs: [ - { - name: 'payloadId', - type: 'uint40', - indexed: false, - internalType: 'uint40', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'PayloadCreated', - inputs: [ - { - name: 'payloadId', - type: 'uint40', - indexed: true, - internalType: 'uint40', - }, - { - name: 'creator', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'actions', - type: 'tuple[]', - indexed: false, - internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', - components: [ - { - name: 'target', - type: 'address', - internalType: 'address', - }, - { - name: 'withDelegateCall', - type: 'bool', - internalType: 'bool', - }, - { - name: 'accessLevel', - type: 'uint8', - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - { - name: 'value', - type: 'uint256', - internalType: 'uint256', - }, - { - name: 'signature', - type: 'string', - internalType: 'string', - }, - { - name: 'callData', - type: 'bytes', - internalType: 'bytes', - }, - ], - }, - { - name: 'maximumAccessLevelRequired', - type: 'uint8', - indexed: true, - internalType: 'enum PayloadsControllerUtils.AccessControl', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'PayloadExecuted', - inputs: [ - { - name: 'payloadId', - type: 'uint40', - indexed: false, - internalType: 'uint40', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'PayloadExecutionMessageReceived', - inputs: [ - { - name: 'originSender', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'originChainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'delivered', - type: 'bool', - indexed: true, - internalType: 'bool', - }, - { - name: 'message', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - { - name: 'reason', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'PayloadQueued', - inputs: [ - { - name: 'payloadId', - type: 'uint40', - indexed: false, - internalType: 'uint40', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/IRescuable.ts b/src/ts/abis/IRescuable.ts index fd64f3fe..42878bc7 100644 --- a/src/ts/abis/IRescuable.ts +++ b/src/ts/abis/IRescuable.ts @@ -1,113 +1,113 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IRescuable_ABI = [ { - type: 'function', - name: 'emergencyEtherTransfer', + anonymous: false, inputs: [ { - name: 'to', + indexed: true, + internalType: 'address', + name: 'caller', type: 'address', + }, + { + indexed: true, internalType: 'address', + name: 'token', + type: 'address', }, { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'ERC20Rescued', + type: 'event', }, { - type: 'function', - name: 'emergencyTokenTransfer', + anonymous: false, inputs: [ { - name: 'erc20Token', - type: 'address', + indexed: true, internalType: 'address', + name: 'caller', + type: 'address', }, { + indexed: true, + internalType: 'address', name: 'to', type: 'address', - internalType: 'address', }, { + indexed: false, + internalType: 'uint256', name: 'amount', type: 'uint256', - internalType: 'uint256', }, ], - outputs: [], - stateMutability: 'nonpayable', + name: 'NativeTokensRescued', + type: 'event', }, { - type: 'function', - name: 'whoCanRescue', - inputs: [], - outputs: [ + inputs: [ { - name: '', - type: 'address', internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', }, ], - stateMutability: 'view', + name: 'emergencyEtherTransfer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'ERC20Rescued', inputs: [ { - name: 'caller', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'token', + name: 'erc20Token', type: 'address', - indexed: true, - internalType: 'address', }, { + internalType: 'address', name: 'to', type: 'address', - indexed: true, - internalType: 'address', }, { + internalType: 'uint256', name: 'amount', type: 'uint256', - indexed: false, - internalType: 'uint256', }, ], - anonymous: false, + name: 'emergencyTokenTransfer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - type: 'event', - name: 'NativeTokensRescued', - inputs: [ + inputs: [], + name: 'whoCanRescue', + outputs: [ { - name: 'caller', - type: 'address', - indexed: true, internalType: 'address', - }, - { - name: 'to', + name: '', type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'amount', - type: 'uint256', - indexed: false, - internalType: 'uint256', }, ], - anonymous: false, + stateMutability: 'view', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IStakeToken.ts b/src/ts/abis/IStakeToken.ts new file mode 100644 index 00000000..238f609c --- /dev/null +++ b/src/ts/abis/IStakeToken.ts @@ -0,0 +1,2007 @@ +// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR +export const IStakeToken_ABI = [ + { + inputs: [ + { + internalType: 'string', + name: 'name', + type: 'string', + components: [], + }, + { + internalType: 'contract IERC20', + name: 'stakedToken', + type: 'address', + components: [], + }, + { + internalType: 'contract IERC20', + name: 'rewardToken', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'unstakeWindow', + type: 'uint256', + components: [], + }, + { + internalType: 'address', + name: 'rewardsVault', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'emissionManager', + type: 'address', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'target', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'AddressEmptyCode', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'AddressInsufficientBalance', + outputs: [], + }, + { + inputs: [], + type: 'error', + name: 'ECDSAInvalidSignature', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'length', + type: 'uint256', + components: [], + }, + ], + type: 'error', + name: 'ECDSAInvalidSignatureLength', + outputs: [], + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + components: [], + }, + ], + type: 'error', + name: 'ECDSAInvalidSignatureS', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'spender', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'allowance', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'needed', + type: 'uint256', + components: [], + }, + ], + type: 'error', + name: 'ERC20InsufficientAllowance', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'sender', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'balance', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'needed', + type: 'uint256', + components: [], + }, + ], + type: 'error', + name: 'ERC20InsufficientBalance', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'approver', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'ERC20InvalidApprover', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'receiver', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'ERC20InvalidReceiver', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'sender', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'ERC20InvalidSender', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'spender', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'ERC20InvalidSpender', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + components: [], + }, + ], + type: 'error', + name: 'ERC2612ExpiredSignature', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'ERC2612InvalidSigner', + outputs: [], + }, + { + inputs: [], + type: 'error', + name: 'FailedInnerCall', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'currentNonce', + type: 'uint256', + components: [], + }, + ], + type: 'error', + name: 'InvalidAccountNonce', + outputs: [], + }, + { + inputs: [], + type: 'error', + name: 'InvalidInitialization', + outputs: [], + }, + { + inputs: [], + type: 'error', + name: 'InvalidShortString', + outputs: [], + }, + { + inputs: [], + type: 'error', + name: 'NotInitializing', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint8', + name: 'bits', + type: 'uint8', + components: [], + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + }, + ], + type: 'error', + name: 'SafeCastOverflowedUintDowncast', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'token', + type: 'address', + components: [], + }, + ], + type: 'error', + name: 'SafeERC20FailedOperation', + outputs: [], + }, + { + inputs: [ + { + internalType: 'string', + name: 'str', + type: 'string', + components: [], + }, + ], + type: 'error', + name: 'StringTooLong', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'address', + name: 'spender', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Approval', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'asset', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'emission', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'AssetConfigUpdated', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'asset', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'index', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'AssetIndexUpdated', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'user', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Cooldown', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'cooldownSeconds', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'CooldownSecondsChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'endTimestamp', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'DistributionEndChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [], + type: 'event', + name: 'EIP712DomainChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint216', + name: 'exchangeRate', + type: 'uint216', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'ExchangeRateChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'FundsReturned', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint64', + name: 'version', + type: 'uint64', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Initialized', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'newPercentage', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'MaxSlashablePercentageChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'newPendingAdmin', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'role', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'PendingAdminChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'assets', + type: 'uint256', + components: [], + indexed: false, + }, + { + internalType: 'uint256', + name: 'shares', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Redeem', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'user', + type: 'address', + components: [], + indexed: false, + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'RewardsAccrued', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'RewardsClaimed', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'newAdmin', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'role', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'RoleClaimed', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'destination', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Slashed', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'windowSeconds', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'SlashingExitWindowDurationChanged', + outputs: [], + anonymous: false, + }, + { + inputs: [], + type: 'event', + name: 'SlashingSettled', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'assets', + type: 'uint256', + components: [], + indexed: false, + }, + { + internalType: 'uint256', + name: 'shares', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Staked', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'Transfer', + outputs: [], + anonymous: false, + }, + { + inputs: [ + { + internalType: 'address', + name: 'user', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'address', + name: 'asset', + type: 'address', + components: [], + indexed: true, + }, + { + internalType: 'uint256', + name: 'index', + type: 'uint256', + components: [], + indexed: false, + }, + ], + type: 'event', + name: 'UserIndexUpdated', + outputs: [], + anonymous: false, + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'CLAIM_HELPER_ROLE', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'COOLDOWN_ADMIN_ROLE', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'DOMAIN_SEPARATOR', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'EMISSION_MANAGER', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'EXCHANGE_RATE_UNIT', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'INITIAL_EXCHANGE_RATE', + outputs: [ + { + internalType: 'uint216', + name: '', + type: 'uint216', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'LOWER_BOUND', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'PRECISION', + outputs: [ + { + internalType: 'uint8', + name: '', + type: 'uint8', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'REWARDS_VAULT', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'REWARD_TOKEN', + outputs: [ + { + internalType: 'contract IERC20', + name: '', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'SLASH_ADMIN_ROLE', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'STAKED_TOKEN', + outputs: [ + { + internalType: 'contract IERC20', + name: '', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'UNSTAKE_WINDOW', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'spender', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'allowance', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'spender', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'approve', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'assets', + outputs: [ + { + internalType: 'uint128', + name: 'emissionPerSecond', + type: 'uint128', + components: [], + }, + { + internalType: 'uint128', + name: 'lastUpdateTimestamp', + type: 'uint128', + components: [], + }, + { + internalType: 'uint256', + name: 'index', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'balanceOf', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'claimRewards', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'claimAmount', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'redeemAmount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'claimRewardsAndRedeem', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'claimAmount', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'redeemAmount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'claimRewardsAndRedeemOnBehalf', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'claimRewardsOnBehalf', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'role', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'claimRoleAdmin', + outputs: [], + }, + { + inputs: [ + { + internalType: 'struct DistributionTypes.AssetConfigInput[]', + name: 'assetsConfigInput', + type: 'tuple[]', + components: [ + { + internalType: 'uint128', + name: 'emissionPerSecond', + type: 'uint128', + components: [], + }, + { + internalType: 'uint256', + name: 'totalStaked', + type: 'uint256', + components: [], + }, + { + internalType: 'address', + name: 'underlyingAsset', + type: 'address', + components: [], + }, + ], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'configureAssets', + outputs: [], + }, + { + inputs: [], + stateMutability: 'nonpayable', + type: 'function', + name: 'cooldown', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'cooldownOnBehalfOf', + outputs: [], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'decimals', + outputs: [ + { + internalType: 'uint8', + name: '', + type: 'uint8', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'distributionEnd', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'eip712Domain', + outputs: [ + { + internalType: 'bytes1', + name: 'fields', + type: 'bytes1', + components: [], + }, + { + internalType: 'string', + name: 'name', + type: 'string', + components: [], + }, + { + internalType: 'string', + name: 'version', + type: 'string', + components: [], + }, + { + internalType: 'uint256', + name: 'chainId', + type: 'uint256', + components: [], + }, + { + internalType: 'address', + name: 'verifyingContract', + type: 'address', + components: [], + }, + { + internalType: 'bytes32', + name: 'salt', + type: 'bytes32', + components: [], + }, + { + internalType: 'uint256[]', + name: 'extensions', + type: 'uint256[]', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'role', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'getAdmin', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'getCooldownSeconds', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'getExchangeRate', + outputs: [ + { + internalType: 'uint216', + name: '', + type: 'uint216', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'getMaxSlashablePercentage', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'role', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'getPendingAdmin', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'staker', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'getTotalRewardsBalance', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'user', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'asset', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'getUserAssetData', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'inPostSlashingPeriod', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'string', + name: 'name', + type: 'string', + components: [], + }, + { + internalType: 'string', + name: 'symbol', + type: 'string', + components: [], + }, + { + internalType: 'address', + name: 'slashingAdmin', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'cooldownPauseAdmin', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'claimHelper', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'maxSlashablePercentage', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'cooldownSeconds', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'initialize', + outputs: [], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'name', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'nonces', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'spender', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + components: [], + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + components: [], + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + components: [], + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'permit', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'shares', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'previewRedeem', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'assets', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'previewStake', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'redeem', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'redeemOnBehalf', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'returnFunds', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'cooldownSeconds', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'setCooldownSeconds', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'newDistributionEnd', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'setDistributionEnd', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'percentage', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'setMaxSlashablePercentage', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'role', + type: 'uint256', + components: [], + }, + { + internalType: 'address', + name: 'newPendingAdmin', + type: 'address', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'setPendingAdmin', + outputs: [], + }, + { + inputs: [], + stateMutability: 'nonpayable', + type: 'function', + name: 'settleSlashing', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: 'destination', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'slash', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'stake', + outputs: [], + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'amount', + type: 'uint256', + components: [], + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + components: [], + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + components: [], + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + components: [], + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'stakeWithPermit', + outputs: [], + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'stakerRewardsToClaim', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + components: [], + }, + ], + stateMutability: 'view', + type: 'function', + name: 'stakersCooldowns', + outputs: [ + { + internalType: 'uint40', + name: 'timestamp', + type: 'uint40', + components: [], + }, + { + internalType: 'uint216', + name: 'amount', + type: 'uint216', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'symbol', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + components: [], + }, + ], + }, + { + inputs: [], + stateMutability: 'view', + type: 'function', + name: 'totalSupply', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'transfer', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + components: [], + }, + ], + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + components: [], + }, + { + internalType: 'address', + name: 'to', + type: 'address', + components: [], + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + components: [], + }, + ], + stateMutability: 'nonpayable', + type: 'function', + name: 'transferFrom', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + components: [], + }, + ], + }, +] as const; diff --git a/src/ts/abis/IVotingMachineWithProofs.ts b/src/ts/abis/IVotingMachineWithProofs.ts index c75425a3..bf701dc6 100644 --- a/src/ts/abis/IVotingMachineWithProofs.ts +++ b/src/ts/abis/IVotingMachineWithProofs.ts @@ -1,686 +1,686 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IVotingMachineWithProofs_ABI = [ { - type: 'function', - name: 'DATA_WAREHOUSE', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'forVotes', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'againstVotes', + type: 'uint256', + }, + ], + name: 'ProposalResultsSent', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'bytes32', + name: 'blockHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint24', + name: 'votingDuration', + type: 'uint24', + }, + { + indexed: true, + internalType: 'bool', + name: 'voteCreated', + type: 'bool', + }, + ], + name: 'ProposalVoteConfigurationBridged', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'bytes32', + name: 'l1BlockHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'startTime', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'endTime', + type: 'uint256', + }, + ], + name: 'ProposalVoteStarted', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'uint256', + name: 'proposalId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'address', + name: 'voter', + type: 'address', + }, + { + indexed: true, + internalType: 'bool', + name: 'support', + type: 'bool', + }, + { + indexed: false, + internalType: 'uint256', + name: 'votingPower', + type: 'uint256', + }, + ], + name: 'VoteEmitted', + type: 'event', + }, + { inputs: [], + name: 'DATA_WAREHOUSE', outputs: [ { + internalType: 'contract IDataWarehouse', name: '', type: 'address', - internalType: 'contract IDataWarehouse', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'DOMAIN_SEPARATOR', inputs: [], + name: 'DOMAIN_SEPARATOR', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'GOVERNANCE', inputs: [], + name: 'GOVERNANCE', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'NAME', inputs: [], + name: 'NAME', outputs: [ { + internalType: 'string', name: '', type: 'string', - internalType: 'string', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'REPRESENTATIVES_SLOT', inputs: [], + name: 'REPRESENTATIVES_SLOT', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTE_SUBMITTED_BY_REPRESENTATIVE_TYPEHASH', inputs: [], + name: 'VOTE_SUBMITTED_BY_REPRESENTATIVE_TYPEHASH', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTE_SUBMITTED_TYPEHASH', inputs: [], + name: 'VOTE_SUBMITTED_TYPEHASH', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTING_ASSET_WITH_SLOT_RAW', inputs: [], + name: 'VOTING_ASSET_WITH_SLOT_RAW', outputs: [ { + internalType: 'string', name: '', type: 'string', - internalType: 'string', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTING_ASSET_WITH_SLOT_TYPEHASH', inputs: [], + name: 'VOTING_ASSET_WITH_SLOT_TYPEHASH', outputs: [ { + internalType: 'bytes32', name: '', type: 'bytes32', - internalType: 'bytes32', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTING_STRATEGY', inputs: [], + name: 'VOTING_STRATEGY', outputs: [ { + internalType: 'contract IVotingStrategy', name: '', type: 'address', - internalType: 'contract IVotingStrategy', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'closeAndSendVote', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'closeAndSendVote', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getProposalById', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getProposalById', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IVotingMachineWithProofs.ProposalWithoutVotes', components: [ { + internalType: 'uint256', name: 'id', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'sentToGovernance', type: 'bool', - internalType: 'bool', }, { + internalType: 'uint40', name: 'startTime', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'endTime', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint40', name: 'votingClosedAndSentTimestamp', type: 'uint40', - internalType: 'uint40', }, { + internalType: 'uint128', name: 'forVotes', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'uint128', name: 'againstVotes', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'uint256', name: 'creationBlockNumber', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'votingClosedAndSentBlockNumber', type: 'uint256', - internalType: 'uint256', }, ], + internalType: 'struct IVotingMachineWithProofs.ProposalWithoutVotes', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getProposalState', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getProposalState', outputs: [ { + internalType: 'enum IVotingMachineWithProofs.ProposalState', name: '', type: 'uint8', - internalType: 'enum IVotingMachineWithProofs.ProposalState', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getProposalVoteConfiguration', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getProposalVoteConfiguration', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IVotingMachineWithProofs.ProposalVoteConfiguration', components: [ { + internalType: 'uint24', name: 'votingDuration', type: 'uint24', - internalType: 'uint24', }, { + internalType: 'bytes32', name: 'l1ProposalBlockHash', type: 'bytes32', - internalType: 'bytes32', }, ], + internalType: 'struct IVotingMachineWithProofs.ProposalVoteConfiguration', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getProposalsVoteConfigurationIds', inputs: [ { + internalType: 'uint256', name: 'skip', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint256', name: 'size', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getProposalsVoteConfigurationIds', outputs: [ { + internalType: 'uint256[]', name: '', type: 'uint256[]', - internalType: 'uint256[]', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getUserProposalVote', inputs: [ { + internalType: 'address', name: 'user', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'getUserProposalVote', outputs: [ { - name: '', - type: 'tuple', - internalType: 'struct IVotingMachineWithProofs.Vote', components: [ { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { + internalType: 'uint248', name: 'votingPower', type: 'uint248', - internalType: 'uint248', }, ], + internalType: 'struct IVotingMachineWithProofs.Vote', + name: '', + type: 'tuple', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'startProposalVote', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, ], + name: 'startProposalVote', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'submitVote', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { - name: 'votingBalanceProofs', - type: 'tuple[]', - internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', components: [ { + internalType: 'address', name: 'underlyingAsset', type: 'address', - internalType: 'address', }, { + internalType: 'uint128', name: 'slot', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'bytes', name: 'proof', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', + name: 'votingBalanceProofs', + type: 'tuple[]', }, ], + name: 'submitVote', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'submitVoteAsRepresentative', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { + internalType: 'address', name: 'voter', type: 'address', - internalType: 'address', }, { + internalType: 'bytes', name: 'proofOfRepresentation', type: 'bytes', - internalType: 'bytes', }, { - name: 'votingBalanceProofs', - type: 'tuple[]', - internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', components: [ { + internalType: 'address', name: 'underlyingAsset', type: 'address', - internalType: 'address', }, { + internalType: 'uint128', name: 'slot', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'bytes', name: 'proof', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', + name: 'votingBalanceProofs', + type: 'tuple[]', }, ], + name: 'submitVoteAsRepresentative', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'submitVoteAsRepresentativeBySignature', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'voter', type: 'address', - internalType: 'address', }, { + internalType: 'address', name: 'representative', type: 'address', - internalType: 'address', }, { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { + internalType: 'bytes', name: 'proofOfRepresentation', type: 'bytes', - internalType: 'bytes', }, { - name: 'votingBalanceProofs', - type: 'tuple[]', - internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', components: [ { + internalType: 'address', name: 'underlyingAsset', type: 'address', - internalType: 'address', }, { + internalType: 'uint128', name: 'slot', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'bytes', name: 'proof', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', + name: 'votingBalanceProofs', + type: 'tuple[]', }, { - name: 'signatureParams', - type: 'tuple', - internalType: 'struct IVotingMachineWithProofs.SignatureParams', components: [ { + internalType: 'uint8', name: 'v', type: 'uint8', - internalType: 'uint8', }, { + internalType: 'bytes32', name: 'r', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes32', name: 's', type: 'bytes32', - internalType: 'bytes32', }, ], + internalType: 'struct IVotingMachineWithProofs.SignatureParams', + name: 'signatureParams', + type: 'tuple', }, ], + name: 'submitVoteAsRepresentativeBySignature', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'submitVoteBySignature', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'address', name: 'voter', type: 'address', - internalType: 'address', }, { + internalType: 'bool', name: 'support', type: 'bool', - internalType: 'bool', }, { - name: 'votingBalanceProofs', - type: 'tuple[]', - internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', components: [ { + internalType: 'address', name: 'underlyingAsset', type: 'address', - internalType: 'address', }, { + internalType: 'uint128', name: 'slot', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'bytes', name: 'proof', type: 'bytes', - internalType: 'bytes', }, ], + internalType: 'struct IVotingMachineWithProofs.VotingBalanceProof[]', + name: 'votingBalanceProofs', + type: 'tuple[]', }, { + internalType: 'uint8', name: 'v', type: 'uint8', - internalType: 'uint8', }, { + internalType: 'bytes32', name: 'r', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'bytes32', name: 's', type: 'bytes32', - internalType: 'bytes32', }, ], + name: 'submitVoteBySignature', outputs: [], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'ProposalResultsSent', - inputs: [ - { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'forVotes', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'againstVotes', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalVoteConfigurationBridged', - inputs: [ - { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'blockHash', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { - name: 'votingDuration', - type: 'uint24', - indexed: false, - internalType: 'uint24', - }, - { - name: 'voteCreated', - type: 'bool', - indexed: true, - internalType: 'bool', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'ProposalVoteStarted', - inputs: [ - { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'l1BlockHash', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', - }, - { - name: 'startTime', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - { - name: 'endTime', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'VoteEmitted', - inputs: [ - { - name: 'proposalId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'voter', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'support', - type: 'bool', - indexed: true, - internalType: 'bool', - }, - { - name: 'votingPower', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/IVotingPortal.ts b/src/ts/abis/IVotingPortal.ts index 8334853a..2d562103 100644 --- a/src/ts/abis/IVotingPortal.ts +++ b/src/ts/abis/IVotingPortal.ts @@ -1,206 +1,206 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IVotingPortal_ABI = [ { - type: 'function', - name: 'CROSS_CHAIN_CONTROLLER', + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint128', + name: 'gasLimit', + type: 'uint128', + }, + ], + name: 'StartVotingGasLimitUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'originSender', + type: 'address', + }, + { + indexed: true, + internalType: 'uint256', + name: 'originChainId', + type: 'uint256', + }, + { + indexed: true, + internalType: 'bool', + name: 'delivered', + type: 'bool', + }, + { + indexed: false, + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + { + indexed: false, + internalType: 'bytes', + name: 'reason', + type: 'bytes', + }, + ], + name: 'VoteMessageReceived', + type: 'event', + }, + { inputs: [], + name: 'CROSS_CHAIN_CONTROLLER', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'GOVERNANCE', inputs: [], + name: 'GOVERNANCE', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTING_MACHINE', inputs: [], + name: 'VOTING_MACHINE', outputs: [ { + internalType: 'address', name: '', type: 'address', - internalType: 'address', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'VOTING_MACHINE_CHAIN_ID', inputs: [], + name: 'VOTING_MACHINE_CHAIN_ID', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'decodeMessage', inputs: [ { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], + name: 'decodeMessage', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'uint128', name: '', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'uint128', name: '', type: 'uint128', - internalType: 'uint128', }, ], stateMutability: 'pure', + type: 'function', }, { - type: 'function', - name: 'forwardStartVotingMessage', inputs: [ { + internalType: 'uint256', name: 'proposalId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, { + internalType: 'uint24', name: 'votingDuration', type: 'uint24', - internalType: 'uint24', }, ], + name: 'forwardStartVotingMessage', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'getStartVotingGasLimit', inputs: [], + name: 'getStartVotingGasLimit', outputs: [ { + internalType: 'uint128', name: '', type: 'uint128', - internalType: 'uint128', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'receiveCrossChainMessage', inputs: [ { + internalType: 'address', name: 'originSender', type: 'address', - internalType: 'address', }, { + internalType: 'uint256', name: 'originChainId', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes', name: 'message', type: 'bytes', - internalType: 'bytes', }, ], + name: 'receiveCrossChainMessage', outputs: [], stateMutability: 'nonpayable', + type: 'function', }, { - type: 'function', - name: 'setStartVotingGasLimit', inputs: [ { + internalType: 'uint128', name: 'gasLimit', type: 'uint128', - internalType: 'uint128', }, ], + name: 'setStartVotingGasLimit', outputs: [], stateMutability: 'nonpayable', - }, - { - type: 'event', - name: 'StartVotingGasLimitUpdated', - inputs: [ - { - name: 'gasLimit', - type: 'uint128', - indexed: false, - internalType: 'uint128', - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'VoteMessageReceived', - inputs: [ - { - name: 'originSender', - type: 'address', - indexed: true, - internalType: 'address', - }, - { - name: 'originChainId', - type: 'uint256', - indexed: true, - internalType: 'uint256', - }, - { - name: 'delivered', - type: 'bool', - indexed: true, - internalType: 'bool', - }, - { - name: 'message', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - { - name: 'reason', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - ], - anonymous: false, + type: 'function', }, ] as const; diff --git a/src/ts/abis/IVotingStrategy.ts b/src/ts/abis/IVotingStrategy.ts index cae3963e..76509f60 100644 --- a/src/ts/abis/IVotingStrategy.ts +++ b/src/ts/abis/IVotingStrategy.ts @@ -1,102 +1,102 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IVotingStrategy_ABI = [ { - type: 'function', - name: 'DATA_WAREHOUSE', inputs: [], + name: 'DATA_WAREHOUSE', outputs: [ { + internalType: 'contract IDataWarehouse', name: '', type: 'address', - internalType: 'contract IDataWarehouse', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'POWER_SCALE_FACTOR', inputs: [], + name: 'POWER_SCALE_FACTOR', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'STK_AAVE_SLASHING_EXCHANGE_RATE_PRECISION', inputs: [], + name: 'STK_AAVE_SLASHING_EXCHANGE_RATE_PRECISION', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'STK_AAVE_SLASHING_EXCHANGE_RATE_SLOT', inputs: [], + name: 'STK_AAVE_SLASHING_EXCHANGE_RATE_SLOT', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'getVotingPower', inputs: [ { + internalType: 'address', name: 'asset', type: 'address', - internalType: 'address', }, { + internalType: 'uint128', name: 'storageSlot', type: 'uint128', - internalType: 'uint128', }, { + internalType: 'uint256', name: 'power', type: 'uint256', - internalType: 'uint256', }, { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, ], + name: 'getVotingPower', outputs: [ { + internalType: 'uint256', name: '', type: 'uint256', - internalType: 'uint256', }, ], stateMutability: 'view', + type: 'function', }, { - type: 'function', - name: 'hasRequiredRoots', inputs: [ { + internalType: 'bytes32', name: 'blockHash', type: 'bytes32', - internalType: 'bytes32', }, ], + name: 'hasRequiredRoots', outputs: [], stateMutability: 'view', + type: 'function', }, ] as const; diff --git a/src/ts/abis/IWithGuardian.ts b/src/ts/abis/IWithGuardian.ts index 25ea642b..150e157a 100644 --- a/src/ts/abis/IWithGuardian.ts +++ b/src/ts/abis/IWithGuardian.ts @@ -1,48 +1,48 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IWithGuardian_ABI = [ { - type: 'function', - name: 'guardian', - inputs: [], - outputs: [ + anonymous: false, + inputs: [ { - name: '', + indexed: false, + internalType: 'address', + name: 'oldGuardian', type: 'address', + }, + { + indexed: false, internalType: 'address', + name: 'newGuardian', + type: 'address', }, ], - stateMutability: 'view', + name: 'GuardianUpdated', + type: 'event', }, { - type: 'function', - name: 'updateGuardian', - inputs: [ + inputs: [], + name: 'guardian', + outputs: [ { - name: 'newGuardian', - type: 'address', internalType: 'address', + name: '', + type: 'address', }, ], - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', + type: 'function', }, { - type: 'event', - name: 'GuardianUpdated', inputs: [ { - name: 'oldGuardian', - type: 'address', - indexed: false, internalType: 'address', - }, - { name: 'newGuardian', type: 'address', - indexed: false, - internalType: 'address', }, ], - anonymous: false, + name: 'updateGuardian', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, ] as const;