Skip to content

Commit

Permalink
Merge pull request #335 from Instadapp/f/morpho-new
Browse files Browse the repository at this point in the history
feat: add morpho new token wrapper
  • Loading branch information
thrilok209 authored Nov 21, 2024
2 parents ea97d45 + ee57a4d commit dff57e4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsa-connect",
"version": "0.7.10",
"version": "0.7.11",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
26 changes: 26 additions & 0 deletions src/abi/connectors/v2/MORPHO-TOKEN-WRAPPER-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { AbiItem } from 'web3-utils'
export const MORPHO_TOKEN_WRAPPER_A: AbiItem[] = [
{
anonymous: false,
inputs: [{ indexed: true, internalType: 'uint256', name: 'newTokensReceived', type: 'uint256' }],
name: 'LogConvertToNewMorpho',
type: 'event'
},
{
inputs: [],
name: 'convertToNewMorpho',
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'
}
]
4 changes: 3 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ import { FLUID_VAULT_T4_A } from "./FLUID-VAULT-T4-A"
import { ZEROX_V5_A } from "./ZEROX-V5-A"
import { MERKLE_CLAIM_LRT_A } from "./MERKLE-CLAIM-LRT-A"
import { ZEROX_V2_A } from './ZEROX-V2-A'
import { MORPHO_TOKEN_WRAPPER_A } from "./MORPHO-TOKEN-WRAPPER-A"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -290,5 +291,6 @@ export const connectorsV2_M1 = {
'FLUID-VAULT-T4-A': FLUID_VAULT_T4_A,
'ZEROX-V5-A': ZEROX_V5_A,
'MERKLE-CLAIM-LRT-A': MERKLE_CLAIM_LRT_A,
'ZEROX-V2-A': ZEROX_V2_A
'ZEROX-V2-A': ZEROX_V2_A,
'MORPHO-TOKEN-WRAPPER-A': MORPHO_TOKEN_WRAPPER_A
}
1 change: 1 addition & 0 deletions src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ export const connectorsV2_M1 = {
'ZEROX-V5-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25',
'MERKLE-CLAIM-LRT-A': '0x4F2500Ac4334880C966dCAA220b54fd6664603F6',
'ZEROX-V2-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25',
'MORPHO-TOKEN-WRAPPER-A': '0x2D73c8C3BA746976d43311324565f290c0C9d44E',
}

0 comments on commit dff57e4

Please sign in to comment.