Skip to content

Commit

Permalink
Merge pull request #295 from Instadapp/eeth-weeth
Browse files Browse the repository at this point in the history
feat: add eETH-weETH connectors
  • Loading branch information
shriyatyagii authored Apr 15, 2024
2 parents 3264f05 + f19a0fb commit ba4b343
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions src/abi/connectors/v2/EETH-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { AbiItem } from 'web3-utils'

export const EETH_A: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogDeposit',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogDepositWeth',
type: 'event'
},
{
inputs: [
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'deposit',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [
{ internalType: 'uint256', name: 'wethAmount', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'depositWeth',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function'
}
]
60 changes: 60 additions & 0 deletions src/abi/connectors/v2/WEETH-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import { AbiItem } from 'web3-utils'
export const WEETH_A: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: 'eETHAmount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'weETHAmount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogDeposit',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: 'weETHAmount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'eETHAmount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogWithdraw',
type: 'event'
},
{
inputs: [
{ internalType: 'uint256', name: 'eETHAmount', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'deposit',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'uint256', name: 'weETHAmount', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'withdraw',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'nonpayable',
type: 'function'
}
]
7 changes: 6 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ import { FLUID_STAKING_A } from './FLUID-STAKING-A'
import { FLUID_STETH_A } from './FLUID-STETH-A'
import { ONEINCH_V6_A } from './1INCH-V6-A'

import { WEETH_A } from "./WEETH-A"
import { EETH_A } from "./EETH-A"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
'LITE-B': LITE_B,
Expand Down Expand Up @@ -248,5 +251,7 @@ export const connectorsV2_M1 = {
'SPARK-IMPORT-A': SPARK_IMPORT_A,
'SPARK-IMPORT-PERMIT-A': SPARK_IMPORT_PERMIT_A,
'FLUID-STAKING-A': FLUID_STAKING_A,
'FLUID-STETH-A': FLUID_STETH_A
'FLUID-STETH-A': FLUID_STETH_A,
'WEETH-A': WEETH_A,
'EETH-A': EETH_A,
}
4 changes: 3 additions & 1 deletion src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,7 @@ export const connectorsV2_M1 = {
'SPARK-IMPORT-PERMIT-A': '0x01C9da8154CC35e12B5C368990b369b8d0aC6CD2',
'SPARK-IMPORT-A': '0x1098e93365029982362F97Aebe7b64aaa2101b9f',
'FLUID-STAKING-A': '0xb4a34D9c7b9038136fa1C124fe391E96C7387730',
'FLUID-STETH-A': '0x2d32F5bA3F0FBDe78E4bF77E7656738e5799bE79'
'FLUID-STETH-A': '0x2d32F5bA3F0FBDe78E4bF77E7656738e5799bE79',
'EETH-A':'0x05F471Be16c25ae233A21614A4C3edc2e2120F78',
'WEETH-A':'0xE9C471bAd195Fc2206269BA4B1F001F93036e404',
}

0 comments on commit ba4b343

Please sign in to comment.