@augustdigital/sdk 4.17.0-alpha.4 → 4.17.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/abis/index.d.ts +0 -1
- package/lib/abis/index.js +0 -1
- package/lib/abis/index.js.map +1 -1
- package/lib/adapters/evm/index.d.ts +1 -2
- package/lib/adapters/evm/index.js +0 -4
- package/lib/adapters/evm/index.js.map +1 -1
- package/lib/core/analytics/constants.d.ts +38 -0
- package/lib/core/analytics/constants.js +49 -0
- package/lib/core/analytics/constants.js.map +1 -0
- package/lib/core/analytics/index.d.ts +34 -0
- package/lib/core/analytics/index.js +31 -0
- package/lib/core/analytics/index.js.map +1 -0
- package/lib/core/analytics/instrumentation.d.ts +7 -0
- package/lib/core/analytics/instrumentation.js +150 -0
- package/lib/core/analytics/instrumentation.js.map +1 -0
- package/lib/core/analytics/metrics.d.ts +21 -0
- package/lib/core/analytics/metrics.js +133 -0
- package/lib/core/analytics/metrics.js.map +1 -0
- package/lib/core/analytics/sentry.d.ts +17 -0
- package/lib/core/analytics/sentry.js +167 -0
- package/lib/core/analytics/sentry.js.map +1 -0
- package/lib/core/analytics/types.d.ts +21 -0
- package/lib/core/analytics/types.js +3 -0
- package/lib/core/analytics/types.js.map +1 -0
- package/lib/core/analytics/user-identity.d.ts +12 -0
- package/lib/core/analytics/user-identity.js +82 -0
- package/lib/core/analytics/user-identity.js.map +1 -0
- package/lib/core/analytics/version.d.ts +1 -0
- package/lib/core/analytics/version.js +5 -0
- package/lib/core/analytics/version.js.map +1 -0
- package/lib/core/constants/core.d.ts +1 -0
- package/lib/core/constants/core.js +2 -1
- package/lib/core/constants/core.js.map +1 -1
- package/lib/core/constants/vaults.d.ts +10 -2
- package/lib/core/constants/vaults.js +11 -3
- package/lib/core/constants/vaults.js.map +1 -1
- package/lib/modules/vaults/getters.js +46 -36
- package/lib/modules/vaults/getters.js.map +1 -1
- package/lib/modules/vaults/main.d.ts +1 -2
- package/lib/modules/vaults/main.js +0 -3
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/write.actions.d.ts +0 -7
- package/lib/modules/vaults/write.actions.js +0 -45
- package/lib/modules/vaults/write.actions.js.map +1 -1
- package/lib/services/debank/fetcher.d.ts +7 -0
- package/lib/services/debank/fetcher.js +16 -0
- package/lib/services/debank/fetcher.js.map +1 -1
- package/package.json +12 -12
- package/lib/abis/MultiAssetNativeDepositWrapper.d.ts +0 -137
- package/lib/abis/MultiAssetNativeDepositWrapper.js +0 -125
- package/lib/abis/MultiAssetNativeDepositWrapper.js.map +0 -1
- package/lib/core/constants.adapters.d.ts +0 -117
- package/lib/core/constants.adapters.js +0 -160
- package/lib/core/constants.adapters.js.map +0 -1
- package/lib/core/constants.core.d.ts +0 -78
- package/lib/core/constants.core.js +0 -75
- package/lib/core/constants.core.js.map +0 -1
- package/lib/core/constants.d.ts +0 -96
- package/lib/core/constants.js +0 -148
- package/lib/core/constants.js.map +0 -1
- package/lib/core/constants.vaults.d.ts +0 -64
- package/lib/core/constants.vaults.js +0 -155
- package/lib/core/constants.vaults.js.map +0 -1
- package/lib/core/constants.web3.d.ts +0 -31
- package/lib/core/constants.web3.js +0 -112
- package/lib/core/constants.web3.js.map +0 -1
- package/lib/core/core.helpers.d.ts +0 -48
- package/lib/core/core.helpers.js +0 -210
- package/lib/core/core.helpers.js.map +0 -1
- package/lib/core/helpers.adapters.d.ts +0 -9
- package/lib/core/helpers.adapters.js +0 -28
- package/lib/core/helpers.adapters.js.map +0 -1
- package/lib/core/helpers.core.d.ts +0 -48
- package/lib/core/helpers.core.js +0 -210
- package/lib/core/helpers.core.js.map +0 -1
- package/lib/core/helpers.signer.d.ts +0 -9
- package/lib/core/helpers.signer.js +0 -54
- package/lib/core/helpers.signer.js.map +0 -1
- package/lib/core/helpers.vaults.d.ts +0 -36
- package/lib/core/helpers.vaults.js +0 -145
- package/lib/core/helpers.vaults.js.map +0 -1
- package/lib/core/helpers.web3.d.ts +0 -95
- package/lib/core/helpers.web3.js +0 -376
- package/lib/core/helpers.web3.js.map +0 -1
- package/lib/core/read.actions.d.ts +0 -6
- package/lib/core/read.actions.js +0 -39
- package/lib/core/read.actions.js.map +0 -1
- package/lib/core/web3.helpers.d.ts +0 -95
- package/lib/core/web3.helpers.js +0 -356
- package/lib/core/web3.helpers.js.map +0 -1
- package/lib/core/write.actions.d.ts +0 -12
- package/lib/core/write.actions.js +0 -51
- package/lib/core/write.actions.js.map +0 -1
- package/lib/modules/vaults/constants.d.ts +0 -109
- package/lib/modules/vaults/constants.js +0 -194
- package/lib/modules/vaults/constants.js.map +0 -1
- package/lib/modules/vaults/vault.actions.d.ts +0 -19
- package/lib/modules/vaults/vault.actions.js +0 -95
- package/lib/modules/vaults/vault.actions.js.map +0 -1
- package/lib/verify.d.ts +0 -2
- package/lib/verify.js +0 -33
- package/lib/verify.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augustdigital/sdk",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.1-alpha.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augustdigital",
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
"author": "August Digital",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"description": "JS SDK powering the August Digital ecosystem.",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"test": "pnpm build && cross-env node dist/test",
|
|
18
|
+
"test:jest": "jest",
|
|
19
|
+
"test:jest:watch": "jest --watch",
|
|
20
|
+
"test:jest:coverage": "jest --coverage",
|
|
21
|
+
"clean": "rm -rf ./lib",
|
|
22
|
+
"format": "pnpm prettier '**/*.{json,yaml,ts,md}' --write",
|
|
23
|
+
"lint-sdk": "lint-staged"
|
|
24
|
+
},
|
|
15
25
|
"lint-staged": {
|
|
16
26
|
"*.{json,md,html,js,jsx,ts,tsx}": [
|
|
17
27
|
"pnpm format"
|
|
@@ -47,15 +57,5 @@
|
|
|
47
57
|
"viem": {
|
|
48
58
|
"optional": true
|
|
49
59
|
}
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"build": "tsc",
|
|
53
|
-
"test": "pnpm build && cross-env node dist/test",
|
|
54
|
-
"test:jest": "jest",
|
|
55
|
-
"test:jest:watch": "jest --watch",
|
|
56
|
-
"test:jest:coverage": "jest --coverage",
|
|
57
|
-
"clean": "rm -rf ./lib",
|
|
58
|
-
"format": "pnpm prettier '**/*.{json,yaml,ts,md}' --write",
|
|
59
|
-
"lint-sdk": "lint-staged"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
export declare const ABI_MULTI_ASSET_NATIVE_DEPOSIT_WRAPPER: readonly [{
|
|
2
|
-
readonly type: "constructor";
|
|
3
|
-
readonly inputs: readonly [{
|
|
4
|
-
readonly name: "ownerAddr";
|
|
5
|
-
readonly type: "address";
|
|
6
|
-
readonly internalType: "address";
|
|
7
|
-
}, {
|
|
8
|
-
readonly name: "_wrappedToken";
|
|
9
|
-
readonly type: "address";
|
|
10
|
-
readonly internalType: "contract IWETH";
|
|
11
|
-
}, {
|
|
12
|
-
readonly name: "_vault";
|
|
13
|
-
readonly type: "address";
|
|
14
|
-
readonly internalType: "contract IOraclizedMultiAssetVault";
|
|
15
|
-
}];
|
|
16
|
-
readonly stateMutability: "nonpayable";
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "function";
|
|
19
|
-
readonly name: "depositNative";
|
|
20
|
-
readonly inputs: readonly [{
|
|
21
|
-
readonly name: "receiver";
|
|
22
|
-
readonly type: "address";
|
|
23
|
-
readonly internalType: "address";
|
|
24
|
-
}];
|
|
25
|
-
readonly outputs: readonly [{
|
|
26
|
-
readonly name: "shares";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
readonly internalType: "uint256";
|
|
29
|
-
}];
|
|
30
|
-
readonly stateMutability: "payable";
|
|
31
|
-
}, {
|
|
32
|
-
readonly type: "function";
|
|
33
|
-
readonly name: "depositNative";
|
|
34
|
-
readonly inputs: readonly [];
|
|
35
|
-
readonly outputs: readonly [{
|
|
36
|
-
readonly name: "shares";
|
|
37
|
-
readonly type: "uint256";
|
|
38
|
-
readonly internalType: "uint256";
|
|
39
|
-
}];
|
|
40
|
-
readonly stateMutability: "payable";
|
|
41
|
-
}, {
|
|
42
|
-
readonly type: "function";
|
|
43
|
-
readonly name: "owner";
|
|
44
|
-
readonly inputs: readonly [];
|
|
45
|
-
readonly outputs: readonly [{
|
|
46
|
-
readonly name: "";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
readonly internalType: "address";
|
|
49
|
-
}];
|
|
50
|
-
readonly stateMutability: "view";
|
|
51
|
-
}, {
|
|
52
|
-
readonly type: "function";
|
|
53
|
-
readonly name: "transferOwnership";
|
|
54
|
-
readonly inputs: readonly [{
|
|
55
|
-
readonly name: "newOwner";
|
|
56
|
-
readonly type: "address";
|
|
57
|
-
readonly internalType: "address";
|
|
58
|
-
}];
|
|
59
|
-
readonly outputs: readonly [];
|
|
60
|
-
readonly stateMutability: "nonpayable";
|
|
61
|
-
}, {
|
|
62
|
-
readonly type: "function";
|
|
63
|
-
readonly name: "vault";
|
|
64
|
-
readonly inputs: readonly [];
|
|
65
|
-
readonly outputs: readonly [{
|
|
66
|
-
readonly name: "";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
readonly internalType: "contract IOraclizedMultiAssetVault";
|
|
69
|
-
}];
|
|
70
|
-
readonly stateMutability: "view";
|
|
71
|
-
}, {
|
|
72
|
-
readonly type: "function";
|
|
73
|
-
readonly name: "wrappedToken";
|
|
74
|
-
readonly inputs: readonly [];
|
|
75
|
-
readonly outputs: readonly [{
|
|
76
|
-
readonly name: "";
|
|
77
|
-
readonly type: "address";
|
|
78
|
-
readonly internalType: "contract IWETH";
|
|
79
|
-
}];
|
|
80
|
-
readonly stateMutability: "view";
|
|
81
|
-
}, {
|
|
82
|
-
readonly type: "event";
|
|
83
|
-
readonly name: "DepositNative";
|
|
84
|
-
readonly inputs: readonly [{
|
|
85
|
-
readonly name: "caller";
|
|
86
|
-
readonly type: "address";
|
|
87
|
-
readonly indexed: true;
|
|
88
|
-
readonly internalType: "address";
|
|
89
|
-
}, {
|
|
90
|
-
readonly name: "receiver";
|
|
91
|
-
readonly type: "address";
|
|
92
|
-
readonly indexed: true;
|
|
93
|
-
readonly internalType: "address";
|
|
94
|
-
}, {
|
|
95
|
-
readonly name: "amountInNative";
|
|
96
|
-
readonly type: "uint256";
|
|
97
|
-
readonly indexed: false;
|
|
98
|
-
readonly internalType: "uint256";
|
|
99
|
-
}, {
|
|
100
|
-
readonly name: "sharesOut";
|
|
101
|
-
readonly type: "uint256";
|
|
102
|
-
readonly indexed: false;
|
|
103
|
-
readonly internalType: "uint256";
|
|
104
|
-
}];
|
|
105
|
-
readonly anonymous: false;
|
|
106
|
-
}, {
|
|
107
|
-
readonly type: "event";
|
|
108
|
-
readonly name: "OwnershipTransferred";
|
|
109
|
-
readonly inputs: readonly [{
|
|
110
|
-
readonly name: "previousOwner";
|
|
111
|
-
readonly type: "address";
|
|
112
|
-
readonly indexed: true;
|
|
113
|
-
readonly internalType: "address";
|
|
114
|
-
}, {
|
|
115
|
-
readonly name: "newOwner";
|
|
116
|
-
readonly type: "address";
|
|
117
|
-
readonly indexed: true;
|
|
118
|
-
readonly internalType: "address";
|
|
119
|
-
}];
|
|
120
|
-
readonly anonymous: false;
|
|
121
|
-
}, {
|
|
122
|
-
readonly type: "error";
|
|
123
|
-
readonly name: "OwnerAddressRequired";
|
|
124
|
-
readonly inputs: readonly [];
|
|
125
|
-
}, {
|
|
126
|
-
readonly type: "error";
|
|
127
|
-
readonly name: "OwnerOnly";
|
|
128
|
-
readonly inputs: readonly [];
|
|
129
|
-
}, {
|
|
130
|
-
readonly type: "error";
|
|
131
|
-
readonly name: "ReentrancyGuardReentrantCall";
|
|
132
|
-
readonly inputs: readonly [];
|
|
133
|
-
}, {
|
|
134
|
-
readonly type: "error";
|
|
135
|
-
readonly name: "ZeroAmount";
|
|
136
|
-
readonly inputs: readonly [];
|
|
137
|
-
}];
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ABI_MULTI_ASSET_NATIVE_DEPOSIT_WRAPPER = void 0;
|
|
4
|
-
exports.ABI_MULTI_ASSET_NATIVE_DEPOSIT_WRAPPER = [
|
|
5
|
-
{
|
|
6
|
-
type: 'constructor',
|
|
7
|
-
inputs: [
|
|
8
|
-
{ name: 'ownerAddr', type: 'address', internalType: 'address' },
|
|
9
|
-
{
|
|
10
|
-
name: '_wrappedToken',
|
|
11
|
-
type: 'address',
|
|
12
|
-
internalType: 'contract IWETH',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: '_vault',
|
|
16
|
-
type: 'address',
|
|
17
|
-
internalType: 'contract IOraclizedMultiAssetVault',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
stateMutability: 'nonpayable',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
type: 'function',
|
|
24
|
-
name: 'depositNative',
|
|
25
|
-
inputs: [{ name: 'receiver', type: 'address', internalType: 'address' }],
|
|
26
|
-
outputs: [{ name: 'shares', type: 'uint256', internalType: 'uint256' }],
|
|
27
|
-
stateMutability: 'payable',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
type: 'function',
|
|
31
|
-
name: 'depositNative',
|
|
32
|
-
inputs: [],
|
|
33
|
-
outputs: [{ name: 'shares', type: 'uint256', internalType: 'uint256' }],
|
|
34
|
-
stateMutability: 'payable',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
type: 'function',
|
|
38
|
-
name: 'owner',
|
|
39
|
-
inputs: [],
|
|
40
|
-
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
41
|
-
stateMutability: 'view',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
type: 'function',
|
|
45
|
-
name: 'transferOwnership',
|
|
46
|
-
inputs: [{ name: 'newOwner', type: 'address', internalType: 'address' }],
|
|
47
|
-
outputs: [],
|
|
48
|
-
stateMutability: 'nonpayable',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: 'function',
|
|
52
|
-
name: 'vault',
|
|
53
|
-
inputs: [],
|
|
54
|
-
outputs: [
|
|
55
|
-
{
|
|
56
|
-
name: '',
|
|
57
|
-
type: 'address',
|
|
58
|
-
internalType: 'contract IOraclizedMultiAssetVault',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
stateMutability: 'view',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: 'function',
|
|
65
|
-
name: 'wrappedToken',
|
|
66
|
-
inputs: [],
|
|
67
|
-
outputs: [{ name: '', type: 'address', internalType: 'contract IWETH' }],
|
|
68
|
-
stateMutability: 'view',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
type: 'event',
|
|
72
|
-
name: 'DepositNative',
|
|
73
|
-
inputs: [
|
|
74
|
-
{
|
|
75
|
-
name: 'caller',
|
|
76
|
-
type: 'address',
|
|
77
|
-
indexed: true,
|
|
78
|
-
internalType: 'address',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'receiver',
|
|
82
|
-
type: 'address',
|
|
83
|
-
indexed: true,
|
|
84
|
-
internalType: 'address',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'amountInNative',
|
|
88
|
-
type: 'uint256',
|
|
89
|
-
indexed: false,
|
|
90
|
-
internalType: 'uint256',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'sharesOut',
|
|
94
|
-
type: 'uint256',
|
|
95
|
-
indexed: false,
|
|
96
|
-
internalType: 'uint256',
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
anonymous: false,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
type: 'event',
|
|
103
|
-
name: 'OwnershipTransferred',
|
|
104
|
-
inputs: [
|
|
105
|
-
{
|
|
106
|
-
name: 'previousOwner',
|
|
107
|
-
type: 'address',
|
|
108
|
-
indexed: true,
|
|
109
|
-
internalType: 'address',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'newOwner',
|
|
113
|
-
type: 'address',
|
|
114
|
-
indexed: true,
|
|
115
|
-
internalType: 'address',
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
anonymous: false,
|
|
119
|
-
},
|
|
120
|
-
{ type: 'error', name: 'OwnerAddressRequired', inputs: [] },
|
|
121
|
-
{ type: 'error', name: 'OwnerOnly', inputs: [] },
|
|
122
|
-
{ type: 'error', name: 'ReentrancyGuardReentrantCall', inputs: [] },
|
|
123
|
-
{ type: 'error', name: 'ZeroAmount', inputs: [] },
|
|
124
|
-
];
|
|
125
|
-
//# sourceMappingURL=MultiAssetNativeDepositWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiAssetNativeDepositWrapper.js","sourceRoot":"","sources":["../../src.ts/abis/MultiAssetNativeDepositWrapper.ts"],"names":[],"mappings":";;;AAAa,QAAA,sCAAsC,GAAG;IACpD;QACE,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YAC/D;gBACE,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,gBAAgB;aAC/B;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,oCAAoC;aACnD;SACF;QACD,eAAe,EAAE,YAAY;KAC9B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,eAAe;Q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,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;CACzC,CAAC"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { IVaultAdapterConfig } from '../types';
|
|
2
|
-
import { IAddress } from '../types/web3';
|
|
3
|
-
export declare const POOL_NAMES: {
|
|
4
|
-
readonly ETH_TREEHOUSE_GROWTH: 'Treehouse Growth';
|
|
5
|
-
readonly AVAX_AVAX: 'AVAX Strategy';
|
|
6
|
-
readonly ETH_KELP_TAC_RSETH: 'Kelp TAC rsETH';
|
|
7
|
-
};
|
|
8
|
-
export declare const ADAPTER_ABIS: {
|
|
9
|
-
readonly NATIVE_DEPOSIT_AVAX: readonly [
|
|
10
|
-
{
|
|
11
|
-
readonly inputs: readonly [];
|
|
12
|
-
readonly name: 'depositETH';
|
|
13
|
-
readonly outputs: readonly [];
|
|
14
|
-
readonly stateMutability: 'payable';
|
|
15
|
-
readonly type: 'function';
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
readonly NATIVE_DEPOSIT_ETH_WITH_REFERRAL: readonly [
|
|
19
|
-
{
|
|
20
|
-
readonly inputs: readonly [
|
|
21
|
-
{
|
|
22
|
-
readonly internalType: 'address';
|
|
23
|
-
readonly name: 'referralId';
|
|
24
|
-
readonly type: 'address';
|
|
25
|
-
},
|
|
26
|
-
];
|
|
27
|
-
readonly name: 'depositETH';
|
|
28
|
-
readonly outputs: readonly [];
|
|
29
|
-
readonly stateMutability: 'payable';
|
|
30
|
-
readonly type: 'function';
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
readonly inputs: readonly [
|
|
34
|
-
{
|
|
35
|
-
readonly internalType: 'uint256';
|
|
36
|
-
readonly name: 'amount';
|
|
37
|
-
readonly type: 'uint256';
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
readonly internalType: 'address';
|
|
41
|
-
readonly name: 'referralId';
|
|
42
|
-
readonly type: 'address';
|
|
43
|
-
},
|
|
44
|
-
];
|
|
45
|
-
readonly name: 'depositWETH';
|
|
46
|
-
readonly outputs: readonly [];
|
|
47
|
-
readonly stateMutability: 'nonpayable';
|
|
48
|
-
readonly type: 'function';
|
|
49
|
-
},
|
|
50
|
-
];
|
|
51
|
-
readonly KELP_RSETH_ADAPTER: readonly [
|
|
52
|
-
{
|
|
53
|
-
readonly inputs: readonly [
|
|
54
|
-
{
|
|
55
|
-
readonly internalType: 'address';
|
|
56
|
-
readonly name: 'referralId';
|
|
57
|
-
readonly type: 'address';
|
|
58
|
-
},
|
|
59
|
-
];
|
|
60
|
-
readonly name: 'getRSETHWithETH';
|
|
61
|
-
readonly outputs: readonly [];
|
|
62
|
-
readonly stateMutability: 'payable';
|
|
63
|
-
readonly type: 'function';
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
readonly inputs: readonly [
|
|
67
|
-
{
|
|
68
|
-
readonly internalType: 'address';
|
|
69
|
-
readonly name: 'asset';
|
|
70
|
-
readonly type: 'address';
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
readonly internalType: 'uint256';
|
|
74
|
-
readonly name: 'depositAmount';
|
|
75
|
-
readonly type: 'uint256';
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
readonly internalType: 'string';
|
|
79
|
-
readonly name: 'referralId';
|
|
80
|
-
readonly type: 'string';
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
readonly name: 'getRSETHWithERC20';
|
|
84
|
-
readonly outputs: readonly [];
|
|
85
|
-
readonly stateMutability: 'nonpayable';
|
|
86
|
-
readonly type: 'function';
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
readonly inputs: readonly [
|
|
90
|
-
{
|
|
91
|
-
readonly internalType: 'address';
|
|
92
|
-
readonly name: 'asset';
|
|
93
|
-
readonly type: 'address';
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
readonly internalType: 'uint256';
|
|
97
|
-
readonly name: 'depositAmount';
|
|
98
|
-
readonly type: 'uint256';
|
|
99
|
-
},
|
|
100
|
-
];
|
|
101
|
-
readonly name: 'getRsETHAmountToMint';
|
|
102
|
-
readonly outputs: readonly [
|
|
103
|
-
{
|
|
104
|
-
readonly internalType: 'uint256';
|
|
105
|
-
readonly name: 'rsETHAmount';
|
|
106
|
-
readonly type: 'uint256';
|
|
107
|
-
},
|
|
108
|
-
];
|
|
109
|
-
readonly stateMutability: 'view';
|
|
110
|
-
readonly type: 'function';
|
|
111
|
-
},
|
|
112
|
-
];
|
|
113
|
-
};
|
|
114
|
-
export declare const VAULT_ADAPTER_CONFIGS: Record<
|
|
115
|
-
IAddress,
|
|
116
|
-
IVaultAdapterConfig
|
|
117
|
-
>;
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VAULT_ADAPTER_CONFIGS = exports.ADAPTER_ABIS = exports.POOL_NAMES = void 0;
|
|
4
|
-
const ethers_1 = require("ethers");
|
|
5
|
-
exports.POOL_NAMES = {
|
|
6
|
-
ETH_TREEHOUSE_GROWTH: 'Treehouse Growth',
|
|
7
|
-
AVAX_AVAX: 'AVAX Strategy',
|
|
8
|
-
ETH_KELP_TAC_RSETH: 'Kelp TAC rsETH',
|
|
9
|
-
};
|
|
10
|
-
exports.ADAPTER_ABIS = {
|
|
11
|
-
NATIVE_DEPOSIT_AVAX: [
|
|
12
|
-
{
|
|
13
|
-
inputs: [],
|
|
14
|
-
name: 'depositETH',
|
|
15
|
-
outputs: [],
|
|
16
|
-
stateMutability: 'payable',
|
|
17
|
-
type: 'function',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
NATIVE_DEPOSIT_ETH_WITH_REFERRAL: [
|
|
21
|
-
{
|
|
22
|
-
inputs: [
|
|
23
|
-
{ internalType: 'address', name: 'referralId', type: 'address' },
|
|
24
|
-
],
|
|
25
|
-
name: 'depositETH',
|
|
26
|
-
outputs: [],
|
|
27
|
-
stateMutability: 'payable',
|
|
28
|
-
type: 'function',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
inputs: [
|
|
32
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
33
|
-
{ internalType: 'address', name: 'referralId', type: 'address' },
|
|
34
|
-
],
|
|
35
|
-
name: 'depositWETH',
|
|
36
|
-
outputs: [],
|
|
37
|
-
stateMutability: 'nonpayable',
|
|
38
|
-
type: 'function',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
KELP_RSETH_ADAPTER: [
|
|
42
|
-
{
|
|
43
|
-
inputs: [
|
|
44
|
-
{ internalType: 'address', name: 'referralId', type: 'address' },
|
|
45
|
-
],
|
|
46
|
-
name: 'getRSETHWithETH',
|
|
47
|
-
outputs: [],
|
|
48
|
-
stateMutability: 'payable',
|
|
49
|
-
type: 'function',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
inputs: [
|
|
53
|
-
{
|
|
54
|
-
internalType: 'address',
|
|
55
|
-
name: 'asset',
|
|
56
|
-
type: 'address',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
internalType: 'uint256',
|
|
60
|
-
name: 'depositAmount',
|
|
61
|
-
type: 'uint256',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
internalType: 'string',
|
|
65
|
-
name: 'referralId',
|
|
66
|
-
type: 'string',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
name: 'getRSETHWithERC20',
|
|
70
|
-
outputs: [],
|
|
71
|
-
stateMutability: 'nonpayable',
|
|
72
|
-
type: 'function',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
inputs: [
|
|
76
|
-
{
|
|
77
|
-
internalType: 'address',
|
|
78
|
-
name: 'asset',
|
|
79
|
-
type: 'address',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
internalType: 'uint256',
|
|
83
|
-
name: 'depositAmount',
|
|
84
|
-
type: 'uint256',
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
name: 'getRsETHAmountToMint',
|
|
88
|
-
outputs: [
|
|
89
|
-
{
|
|
90
|
-
internalType: 'uint256',
|
|
91
|
-
name: 'rsETHAmount',
|
|
92
|
-
type: 'uint256',
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
stateMutability: 'view',
|
|
96
|
-
type: 'function',
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
};
|
|
100
|
-
exports.VAULT_ADAPTER_CONFIGS = {
|
|
101
|
-
'0x18EE038C114a07f4B08b420fb1E4149a4F357249': {
|
|
102
|
-
viewAdapter: '0x72f3cf0d87e9688fad77711d02d86c68334fb275',
|
|
103
|
-
lpTokenAddress: '0xeF866BfbD0eEc6D6b42C37d8acC0D5fd26828376',
|
|
104
|
-
isNativeTokenDeposit: false,
|
|
105
|
-
isWrappedTokenDeposit: false,
|
|
106
|
-
},
|
|
107
|
-
'0x8AcA0841993ef4C87244d519166e767f49362C21': {
|
|
108
|
-
isNativeTokenDeposit: false,
|
|
109
|
-
isWrappedTokenDeposit: false,
|
|
110
|
-
wrappedTokenAddress: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
111
|
-
wrapperAddress: '0xfa3f6f36e3D178A538B2B1Fa5f1a5291C901A884',
|
|
112
|
-
bridgeId: 2,
|
|
113
|
-
abi: [],
|
|
114
|
-
tokens: [
|
|
115
|
-
'0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
116
|
-
'0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf',
|
|
117
|
-
'0x18084fbA666a33d37592fA2633fD49a74DD93a88',
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
'0xB2bFb52cfc40584AC4e9e2B36a5B8d6554A56e0b': {
|
|
121
|
-
isNativeTokenDeposit: true,
|
|
122
|
-
isWrappedTokenDeposit: false,
|
|
123
|
-
wrappedTokenAddress: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
124
|
-
wrapperAddress: '0xb2C57614B93c41A7Ec3B91980C0Bb7453904c6e8',
|
|
125
|
-
abi: exports.ADAPTER_ABIS.NATIVE_DEPOSIT_AVAX,
|
|
126
|
-
tokens: [
|
|
127
|
-
'0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
128
|
-
ethers_1.ZeroAddress,
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
'0x5Fde59415625401278c4d41C6beFCe3790eb357f': {
|
|
132
|
-
isNativeTokenDeposit: true,
|
|
133
|
-
isWrappedTokenDeposit: true,
|
|
134
|
-
wrappedTokenAddress: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
135
|
-
referralId: '0x849ECeE35EdD45aFA3Bd731531427B5661f57d87',
|
|
136
|
-
wrapperAddress: '0x6B6b27F08B84c186626D5A64614B5192a8ef71a9',
|
|
137
|
-
abi: exports.ADAPTER_ABIS.NATIVE_DEPOSIT_ETH_WITH_REFERRAL,
|
|
138
|
-
tokens: [
|
|
139
|
-
'0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
140
|
-
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
141
|
-
ethers_1.ZeroAddress,
|
|
142
|
-
],
|
|
143
|
-
},
|
|
144
|
-
'0x419386E3Ef42368e602720CC458e00c0B28c47A7': {
|
|
145
|
-
isNativeTokenDeposit: true,
|
|
146
|
-
isWrappedTokenDeposit: true,
|
|
147
|
-
wrappedTokenAddress: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
148
|
-
referralId: '',
|
|
149
|
-
wrapperAddress: '0xa7f3a4d8395d62DF12bf35Afb4ab8db42F12926F',
|
|
150
|
-
viewAdapter: '0x036676389e48133B63a802f8635AD39E752D375D',
|
|
151
|
-
abi: exports.ADAPTER_ABIS.KELP_RSETH_ADAPTER,
|
|
152
|
-
tokens: [
|
|
153
|
-
'0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
|
154
|
-
'0xA35b1B31Ce002FBF2058D22F30f95D405200A15b',
|
|
155
|
-
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
156
|
-
ethers_1.ZeroAddress,
|
|
157
|
-
],
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
//# sourceMappingURL=constants.adapters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.adapters.js","sourceRoot":"","sources":["../../src.ts/core/constants.adapters.ts"],"names":[],"mappings":";;;AASA,mCAAqC;AAKxB,QAAA,UAAU,GAAG;IACxB,oBAAoB,EAAE,kBAAkB;IACxC,SAAS,EAAE,eAAe;IAC1B,kBAAkB,EAAE,gBAAgB;CAC5B,CAAC;AAKE,QAAA,YAAY,GAAG;IAC1B,mBAAmB,EAAE;QACnB;YACE,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,SAAS;YAC1B,IAAI,EAAE,UAAU;SACjB;KACF;IACD,gCAAgC,EAAE;QAChC;YACE,MAAM,EAAE;gBACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;aACjE;YACD,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,SAAS;YAC1B,IAAI,EAAE,UAAU;SACjB;QACD;YACE,MAAM,EAAE;gBACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;aACjE;YACD,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,UAAU;SACjB;KACF;IACD,kBAAkB,EAAE;QAClB;YACE,MAAM,EAA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AK;QAC5B,mBAAmB,EACjB,4CAAwD;QAC1D,cAAc,EAAE,4CAAwD;QACxE,QAAQ,EAAE,CAAC;QACX,GAAG,EAAE,EAAE;QACP,MAAM,EAAE;YACN,4CAAwD;YACxD,4CAAwD;YACxD,4CAAwD;SACzD;KACF;IAED,4CAA4C,EAAE;QAC5C,oBAAoB,EAAE,IAAI;QAC1B,qBAAqB,EAAE,KAAK;QAC5B,mBAAmB,EACjB,4CAAwD;QAC1D,cAAc,EAAE,4CAAwD;QACxE,GAAG,EAAE,oBAAY,CAAC,mBAAmB;QACrC,MAAM,EAAE;YACN,4CAAwD;YACxD,oBAAuB;SACxB;KACF;IAED,4CAA4C,EAAE;QAC5C,oBAAoB,EAAE,IAAI;QAC1B,qBAAqB,EAAE,IAAI;QAC3B,mBAAmB,EACjB,4CAAwD;QAC1D,UAAU,EAAE,4CAA4C;QACxD,cAAc,EAAE,4CAAwD;QACxE,GAAG,EAAE,oBAAY,CAAC,gCAAgC;QAClD,MAAM,EAAE;YACN,4CAAwD;YACxD,4CAAwD;YACxD,oBAAuB;SACxB;KACF;IAED,4CAA4C,EAAE;QAC5C,oBAAoB,EAAE,IAAI;QAC1B,qBAAqB,EAAE,IAAI;QAC3B,mBAAmB,EACjB,4CAAwD;QAC1D,UAAU,EAAE,EAAE;QACd,cAAc,EAAE,4CAAwD;QACxE,WAAW,EAAE,4CAAwD;QACrE,GAAG,EAAE,oBAAY,CAAC,kBAAkB;QACpC,MAAM,EAAE;YACN,4CAAwD;YACxD,4CAAwD;YACxD,4CAAwD;YACxD,oBAAuB;SACxB;KACF;CACF,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { IAddress } from '../types';
|
|
2
|
-
export declare const REQUEST_TIMEOUT_MS = 90000;
|
|
3
|
-
export declare const WEBSERVER_URL: {
|
|
4
|
-
production: string;
|
|
5
|
-
development: string;
|
|
6
|
-
localhost: string;
|
|
7
|
-
qa: string;
|
|
8
|
-
public: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const WEBSERVER_ENDPOINTS: {
|
|
11
|
-
default: {
|
|
12
|
-
hello: string;
|
|
13
|
-
protected: string;
|
|
14
|
-
};
|
|
15
|
-
auth: {
|
|
16
|
-
verify: string;
|
|
17
|
-
sign: string;
|
|
18
|
-
login: string;
|
|
19
|
-
nonce: string;
|
|
20
|
-
refresh: string;
|
|
21
|
-
};
|
|
22
|
-
subaccount: {
|
|
23
|
-
rewards: (subaccount: IAddress) => string;
|
|
24
|
-
tokens: (subaccount: IAddress) => string;
|
|
25
|
-
twap: {
|
|
26
|
-
create: (subaccount: IAddress) => string;
|
|
27
|
-
stop: (subaccount: IAddress, id: string) => string;
|
|
28
|
-
fills: (subaccount: IAddress, id: string) => string;
|
|
29
|
-
};
|
|
30
|
-
debank: (subaccount: IAddress) => string;
|
|
31
|
-
health_factor: (subaccount: IAddress) => string;
|
|
32
|
-
summary: (subaccount: IAddress) => string;
|
|
33
|
-
batch: (subaccount: IAddress) => string;
|
|
34
|
-
loans: (
|
|
35
|
-
subaccount: IAddress,
|
|
36
|
-
side?: 'BORROWER' | 'LENDER' | 'BOTH',
|
|
37
|
-
) => string;
|
|
38
|
-
cefi: (subaccount: IAddress) => string;
|
|
39
|
-
otc_positions: (subaccount: IAddress) => string;
|
|
40
|
-
_: (subaccount: IAddress) => string;
|
|
41
|
-
};
|
|
42
|
-
users: {
|
|
43
|
-
get: string;
|
|
44
|
-
};
|
|
45
|
-
prices: (symbol: string) => string;
|
|
46
|
-
metrics: {
|
|
47
|
-
pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
|
|
48
|
-
};
|
|
49
|
-
public: {
|
|
50
|
-
integrations: {
|
|
51
|
-
morpho: {
|
|
52
|
-
apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
tokenizedVault: {
|
|
56
|
-
loans: (
|
|
57
|
-
vaultAddress: IAddress,
|
|
58
|
-
chainId: number,
|
|
59
|
-
active: boolean,
|
|
60
|
-
) => string;
|
|
61
|
-
list: string;
|
|
62
|
-
byVaultAddress: (vaultAddress: IAddress) => string;
|
|
63
|
-
historicalApy: (vaultAddress: IAddress) => string;
|
|
64
|
-
};
|
|
65
|
-
points: {
|
|
66
|
-
byUserAddress: (userAddress: IAddress) => string;
|
|
67
|
-
register: string;
|
|
68
|
-
leaderboard: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export declare const DEFAULT_FETCH_OPTIONS: {
|
|
73
|
-
readonly method: 'GET';
|
|
74
|
-
readonly headers: {
|
|
75
|
-
readonly Accept: 'application/json';
|
|
76
|
-
readonly 'Content-Type': 'application/json';
|
|
77
|
-
};
|
|
78
|
-
};
|