Skip to content

Commit

Permalink
Added mainnet Aave stake and claim connector
Browse files Browse the repository at this point in the history
  • Loading branch information
thrilok209 committed Apr 25, 2021
1 parent 5bc43d0 commit 2f0add0
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/abi/connectors/v1/aave_claim.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils';

export const aave_claim: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"assets","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogClaimed","type":"event"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"connectorID","outputs":[{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
3 changes: 3 additions & 0 deletions src/abi/connectors/v1/aave_stake.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils';

export const aave_stake: AbiItem[] =[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogClaim","type":"event"},{"anonymous":false,"inputs":[],"name":"LogCooldown","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"delegatee","type":"address"},{"indexed":false,"internalType":"bool","name":"delegateAave","type":"bool"},{"indexed":false,"internalType":"bool","name":"delegateStkAave","type":"bool"},{"indexed":false,"internalType":"uint8","name":"aaveDelegationType","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"stkAaveDelegationType","type":"uint8"}],"name":"LogDelegate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogRedeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogStake","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"connectorID","outputs":[{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cooldown","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"bool","name":"delegateAave","type":"bool"},{"internalType":"bool","name":"delegateStkAave","type":"bool"},{"internalType":"uint8","name":"aaveDelegationType","type":"uint8"},{"internalType":"uint8","name":"stkAaveDelegationType","type":"uint8"}],"name":"delegate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"}]
2 changes: 2 additions & 0 deletions src/abi/connectors/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export * from './oneInch'
export * from './aave'
export * from './aave_migrate'
export * from './aave_claim'
export * from './aave_stake'
export * from './aave_polygon_migrate'
export * from './aave_v1_import'
export * from './aave_v2_import'
Expand Down
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/AAVE-STAKE-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils'

export const AAVE_STAKE_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogClaim","type":"event"},{"anonymous":false,"inputs":[],"name":"LogCooldown","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"delegatee","type":"address"},{"indexed":false,"internalType":"bool","name":"delegateAave","type":"bool"},{"indexed":false,"internalType":"bool","name":"delegateStkAave","type":"bool"},{"indexed":false,"internalType":"uint8","name":"aaveDelegationType","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"stkAaveDelegationType","type":"uint8"}],"name":"LogDelegate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogRedeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogStake","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"claim","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cooldown","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"bool","name":"delegateAave","type":"bool"},{"internalType":"bool","name":"delegateStkAave","type":"bool"},{"internalType":"uint8","name":"aaveDelegationType","type":"uint8"},{"internalType":"uint8","name":"stkAaveDelegationType","type":"uint8"}],"name":"delegate","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"stake","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"}]
4 changes: 3 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {ONEINCH_A} from './1INCH-A'
import {AAVE_CLAIM_A} from './AAVE-CLAIM-A'
import {AAVE_STAKE_A} from './AAVE-STAKE-A'
import {AAVE_V1} from './AAVE-V1-A'
import {AAVE_V2} from './AAVE-V2-A'
import {AUTHORITY_A} from './AUTHORITY-A'
Expand All @@ -22,5 +23,6 @@ export const connectorsV2_M1 = {
"COMPOUND-A": COMPOUND_A,
"MAKERDAO-A": MAKERDAO_A,
"UNISWAP-A": UNISWAP_A,
"POLYGON-BRIDGE-A": POLYGON_BRIDGE_A
"POLYGON-BRIDGE-A": POLYGON_BRIDGE_A,
"AAVE-STAKE-A": AAVE_STAKE_A
}
4 changes: 3 additions & 1 deletion src/addresses/mainnet/connectorsV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ export const connectorsV1 = {
aave_v2_import: "0xCFC2a047887A4026A7E866f7ec1404f30D6A6F31",
aave_v1_import: "0x4a9e4827e884cB3e49406e3A1A678F75910B1BB9",
polygon_bridge: "0x5d1C4e6c91Ee834c6E1949DB2D0A6309061c358A",
aave_polygon_migrate: "0x9686CE6Ad5C3f7b212CAF401b928c4bB3422E7Ba"
aave_polygon_migrate: "0x9686CE6Ad5C3f7b212CAF401b928c4bB3422E7Ba",
aave_claim: "0x8f1e38c53af7bD2b2bE01b9580911b7Cca504F1b",
aave_stake: "0xa96b2F679fB935Ba279eA9395402ca4696D64D78"
}
2 changes: 2 additions & 0 deletions src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ export const connectorsV2_M1 = {
"MAKERDAO-A": "0x839c2D3aDe63DF5b0b8F3E57D5e145057Ab41556",
"UNISWAP-A": "0xA4BF319968986D2352FA1c550D781bBFCCE3FcaB",
"POLYGON-BRIDGE-A": "0x697860CeE594c577F18f71cAf3d8B68D913c7366",
"AAVE-CLAIM-A": "0x611C1FA59Aa1d6352c4C8bD44882063c6aEE85E0",
"AAVE-STAKE-A": "0xf73C94402BC24148b744083eD02654EEc2C37D5B",
}
4 changes: 3 additions & 1 deletion src/data/connectorsV2_M1_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export default {
"compound" :"COMPOUND-A",
"maker" :"MAKERDAO-A",
"uniswap" :"UNISWAP-A",
"polygon_bridge" :"POLYGON-BRIDGE-A"
"polygon_bridge" :"POLYGON-BRIDGE-A",
"aave_claim": "AAVE-CLAIM-A",
"aave_stake": "AAVE-STAKE-A",
}

0 comments on commit 2f0add0

Please sign in to comment.