Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: post contracts package cleanup #7687

Merged
merged 26 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e1dedfd
chore: move unchained-client address constants into contract package
woodenfurniture Sep 4, 2024
7a1a062
chore: consolidtate abis from unchained-client to contracts package
woodenfurniture Sep 4, 2024
89f6d10
fix: use correct ABI for weth
woodenfurniture Sep 4, 2024
334aaed
chore: linting
woodenfurniture Sep 4, 2024
1027b7a
chore: remove redundant outbox abi
woodenfurniture Sep 4, 2024
29c2f51
chore: cleanup investor constants
woodenfurniture Sep 4, 2024
5e5ec92
fix: dont import src from packages
woodenfurniture Sep 4, 2024
33d0e4e
chore: remove redundant thochain router abi
woodenfurniture Sep 4, 2024
60e0180
chore: consolidate abis and addresses from thorchain swaper into cont…
woodenfurniture Sep 4, 2024
2fa93d1
chore: rename some abis
woodenfurniture Sep 4, 2024
abb1089
chore: lintint
woodenfurniture Sep 4, 2024
919ed59
chore: i said, LINT
woodenfurniture Sep 5, 2024
39858ce
chore: use viem erc20 abi
woodenfurniture Sep 9, 2024
18a308d
chore: move abi in investor-foxy to contracts package
woodenfurniture Sep 9, 2024
5a9bebd
chore: remove testnet support from weth parser
woodenfurniture Sep 9, 2024
c30ad7c
chore: interfaces get an i
woodenfurniture Sep 9, 2024
864cf26
chore: remove redundant zrx contract addresses
woodenfurniture Sep 9, 2024
23a48ef
chore: use correct cowswap contract address name
woodenfurniture Sep 9, 2024
b3e9bdb
chore: use correct arbitrum erc20 gateway proxy contract address name
woodenfurniture Sep 9, 2024
a25d484
chore: use getAddress for thorchain router and vault
woodenfurniture Sep 9, 2024
43acead
chore: use viem for max allowances
woodenfurniture Sep 9, 2024
f4c4fd6
Merge remote-tracking branch 'origin/develop' into abi-addresses-cleanup
gomesalexandre Sep 10, 2024
7cc1e72
Merge branch 'develop' into abi-addresses-cleanup
gomesalexandre Sep 10, 2024
353a4af
chore: remove casts
woodenfurniture Sep 12, 2024
529dfe1
chore: contract address naming ocd
woodenfurniture Sep 12, 2024
6683eed
chore: actioned apo review feedback
woodenfurniture Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 0 additions & 200 deletions packages/contracts/src/abis/ERC20ABI.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://etherscan.io/address/0x0B9857ae2D4A3DBe74ffE1d7DF045bb7F96E4840
export const outboxAbi = [
export const ARB_OUTBOX_ABI = [
{ inputs: [], name: 'AlreadyInit', type: 'error' },
{
inputs: [{ internalType: 'uint256', name: 'index', type: 'uint256' }],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const ARB_PROXY_ABI: InterfaceAbi = [
export const ARB_PROXY_ABI = [
{
inputs: [
{ internalType: 'address', name: '_logic', type: 'address' },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const ARBITRUM_RETRYABLE_TX_ABI: InterfaceAbi = [
export const ARBITRUM_RETRYABLE_TX_ABI = [
{ inputs: [], name: 'NoTicketWithID', type: 'error' },
{ inputs: [], name: 'NotCallable', type: 'error' },
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const ARB_SYS_ABI: InterfaceAbi = [
export const ARB_SYS_ABI = [
{
anonymous: false,
inputs: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const FarmingABI = [
export const FARMING_ABI = [
{
inputs: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// FoxStakingV1
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

export const foxStakingV1Abi = [
export const FOX_STAKING_V1_ABI = [
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
{
type: 'function',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const foxyAbi: InterfaceAbi = [
export const FOXY_ABI = [
{
inputs: [],
stateMutability: 'nonpayable',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const FOXY_STAKING_ABI: InterfaceAbi = [
export const FOXY_STAKING_ABI = [
{
gomesalexandre marked this conversation as resolved.
Show resolved Hide resolved
inputs: [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

const bep20: InterfaceAbi = [
export const I_BEP20_ABI = [
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -125,5 +123,3 @@ const bep20: InterfaceAbi = [
type: 'function',
},
]

export { bep20 }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const IUniswapV2Pair = [
export const I_UNISWAP_V2_PAIR_ABI = [
{
anonymous: false,
inputs: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const IUniswapV3PoolABI = [
export const I_UNISWAP_V3_POOL_ABI = [
{
anonymous: false,
inputs: [
Expand Down
33 changes: 26 additions & 7 deletions packages/contracts/src/abis/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
export * from './ERC20ABI'
export * from './farmingAbi'
export * from './FoxStakingV1'
export * from './IUniswapV2Pair'
export * from './IUniswapV2Router02'
export * from './Outbox'
export * from './THORCHAIN_RouterABI'
export * from './arbOutbox'
export * from './arbProxy'
export * from './arbRetryableTx'
export * from './arbSys'
export * from './iBep20'
export * from './farming'
export * from './foxStaking'
export * from './foxy'
export * from './foxyStaking'
export * from './l1ArbitrumGateway'
export * from './l1OrbitCustomGateway'
export * from './l2ArbitrumGateway'
export * from './liquidityReserve'
export * from './rfox'
export * from './shapeShiftRouter'
export * from './thorchainRouter'
export * from './tokeManager'
export * from './tokePool'
export * from './tokeRewardHash'
export * from './iUniswapV2Pair'
export * from './uniswapV2Router02'
export * from './iUniswapV3Pool'
export * from './uniswapV3Quoter'
export * from './uniV2StakingRewards'
export * from './weth'
export * from './yearnVault'
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const L1_ARBITRUM_GATEWAY_ABI: InterfaceAbi = [
export const L1_ARBITRUM_GATEWAY_ABI = [
{
anonymous: false,
inputs: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const L1_ORBIT_CUSTOM_GATEWAY_ABI: InterfaceAbi = [
export const L1_ORBIT_CUSTOM_GATEWAY_ABI = [
{
inputs: [
{ internalType: 'uint256', name: 'dataLength', type: 'uint256' },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const L2_ARBITRUM_GATEWAY_ABI: InterfaceAbi = [
export const L2_ARBITRUM_GATEWAY_ABI = [
{
anonymous: false,
inputs: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const liquidityReserveAbi: InterfaceAbi = [
export const LIQUIDITY_RESERVE_ABI = [
{
inputs: [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const RFOX_ABI: InterfaceAbi = [
export const RFOX_ABI = [
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
{
type: 'function',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const SHAPESHIFT_ROUTER_ABI: InterfaceAbi = [
export const SHAPESHIFT_ROUTER_ABI = [
{
inputs: [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const THORChain_RouterABI = [
export const THORCHAIN_ROUTER_ABI = [
{
inputs: [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const tokeManagerAbi: InterfaceAbi = [
export const TOKE_MANAGER_ABI = [
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
{
anonymous: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { InterfaceAbi } from 'ethers'

export const tokePoolAbi: InterfaceAbi = [
export const TOKE_POOL_ABI = [
{
anonymous: false,
inputs: [
Expand Down
Loading
Loading