Skip to content

Commit 29a6a22

Browse files
Merge pull request #346 from Instadapp/f/arb-delegate
feat: add arb delegate connector
2 parents a9ab87f + a2251b7 commit 29a6a22

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dsa-connect",
3-
"version": "0.7.19",
3+
"version": "0.7.20",
44
"description": "DSA connect",
55
"main": "dist/index.js",
66
"module": "dist/index.es.js",

src/abi/connectors/v2/DELEGATE-A.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { AbiItem } from 'web3-utils'
2+
3+
export const DELEGATE_A: AbiItem[] = [
4+
{
5+
anonymous: false,
6+
inputs: [
7+
{ indexed: false, internalType: 'address', name: 'token', type: 'address' },
8+
{ indexed: false, internalType: 'address', name: 'delegatee', type: 'address' }
9+
],
10+
name: 'LogDelegate',
11+
type: 'event'
12+
},
13+
{
14+
inputs: [
15+
{ internalType: 'address', name: 'token', type: 'address' },
16+
{ internalType: 'address', name: 'delegatee', type: 'address' }
17+
],
18+
name: 'delegate',
19+
outputs: [
20+
{ internalType: 'string', name: '_eventName', type: 'string' },
21+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
22+
],
23+
stateMutability: 'nonpayable',
24+
type: 'function'
25+
},
26+
{
27+
inputs: [],
28+
name: 'name',
29+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
30+
stateMutability: 'view',
31+
type: 'function'
32+
}
33+
]

src/abi/connectors/v2/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ import { SPARK_PSM_A } from './SPARK-PSM-A'
151151
import { MORPHO_CLAIM_A } from './MORPHO-CLAIM-A'
152152
import { SUSDS_A } from './SUSDS-A'
153153
import { AAVE_MERIT_CLAIM_A } from "./AAVE-V3-MERIT-CLAIM-A"
154+
import { DELEGATE_A } from './DELEGATE-A'
154155

155156
export const connectorsV2_M1 = {
156157
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
@@ -300,5 +301,6 @@ export const connectorsV2_M1 = {
300301
'SPARK-PSM-A': SPARK_PSM_A,
301302
'MORPHO-CLAIM-A': MORPHO_CLAIM_A,
302303
'SUSDS-A': SUSDS_A,
303-
'AAVE-V3-MERIT-CLAIM-A': AAVE_MERIT_CLAIM_A
304+
'AAVE-V3-MERIT-CLAIM-A': AAVE_MERIT_CLAIM_A,
305+
'DELEGATE-A': DELEGATE_A,
304306
}

src/addresses/arbitrum/connectorsV2_M1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ export const connectorsV2_M1 = {
4949
'FLUID-VAULT-T2-A': '0x0B917488c178Ff0AD173f6F3345341C3A2c58620',
5050
'FLUID-VAULT-T3-A': '0x5bb2daA4A140Ae5Ff4aeE77F5Bb949e4f9e69DAc',
5151
'FLUID-VAULT-T4-A': '0x1d63539bc6fd338579682615Abda6A4Dc2bcc5e4',
52+
'DELEGATE-A': '0x829042a0e98a5F7fFA99a8B2Cf36F43cC1dD001e',
5253
}

0 commit comments

Comments
 (0)