@augustdigital/sdk 4.17.0-alpha.3 → 4.17.0-alpha.4
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/MultiAssetNativeDepositWrapper.d.ts +137 -0
- package/lib/abis/MultiAssetNativeDepositWrapper.js +125 -0
- package/lib/abis/MultiAssetNativeDepositWrapper.js.map +1 -0
- package/lib/abis/index.d.ts +1 -0
- package/lib/abis/index.js +1 -0
- package/lib/abis/index.js.map +1 -1
- package/lib/adapters/evm/index.d.ts +2 -1
- package/lib/adapters/evm/index.js +4 -0
- package/lib/adapters/evm/index.js.map +1 -1
- package/lib/core/base.class.d.ts +1 -3
- package/lib/core/base.class.js +1 -5
- package/lib/core/base.class.js.map +1 -1
- package/lib/core/constants.adapters.d.ts +117 -0
- package/lib/core/constants.adapters.js +160 -0
- package/lib/core/constants.adapters.js.map +1 -0
- package/lib/core/constants.core.d.ts +78 -0
- package/lib/core/constants.core.js +75 -0
- package/lib/core/constants.core.js.map +1 -0
- package/lib/core/constants.d.ts +96 -0
- package/lib/core/constants.js +148 -0
- package/lib/core/constants.js.map +1 -0
- package/lib/core/constants.vaults.d.ts +64 -0
- package/lib/core/constants.vaults.js +155 -0
- package/lib/core/constants.vaults.js.map +1 -0
- package/lib/core/constants.web3.d.ts +31 -0
- package/lib/core/constants.web3.js +112 -0
- package/lib/core/constants.web3.js.map +1 -0
- package/lib/core/core.helpers.d.ts +48 -0
- package/lib/core/core.helpers.js +210 -0
- package/lib/core/core.helpers.js.map +1 -0
- package/lib/core/fetcher.js +2 -20
- package/lib/core/fetcher.js.map +1 -1
- package/lib/core/helpers.adapters.d.ts +9 -0
- package/lib/core/helpers.adapters.js +28 -0
- package/lib/core/helpers.adapters.js.map +1 -0
- package/lib/core/helpers.core.d.ts +48 -0
- package/lib/core/helpers.core.js +210 -0
- package/lib/core/helpers.core.js.map +1 -0
- package/lib/core/helpers.signer.d.ts +9 -0
- package/lib/core/helpers.signer.js +54 -0
- package/lib/core/helpers.signer.js.map +1 -0
- package/lib/core/helpers.vaults.d.ts +36 -0
- package/lib/core/helpers.vaults.js +145 -0
- package/lib/core/helpers.vaults.js.map +1 -0
- package/lib/core/helpers.web3.d.ts +95 -0
- package/lib/core/helpers.web3.js +376 -0
- package/lib/core/helpers.web3.js.map +1 -0
- package/lib/core/index.d.ts +0 -1
- package/lib/core/index.js +0 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/read.actions.d.ts +6 -0
- package/lib/core/read.actions.js +39 -0
- package/lib/core/read.actions.js.map +1 -0
- package/lib/core/web3.helpers.d.ts +95 -0
- package/lib/core/web3.helpers.js +356 -0
- package/lib/core/web3.helpers.js.map +1 -0
- package/lib/core/write.actions.d.ts +12 -0
- package/lib/core/write.actions.js +51 -0
- package/lib/core/write.actions.js.map +1 -0
- package/lib/main.js +0 -3
- package/lib/main.js.map +1 -1
- package/lib/modules/vaults/constants.d.ts +109 -0
- package/lib/modules/vaults/constants.js +194 -0
- package/lib/modules/vaults/constants.js.map +1 -0
- package/lib/modules/vaults/main.d.ts +2 -1
- package/lib/modules/vaults/main.js +3 -0
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/vault.actions.d.ts +19 -0
- package/lib/modules/vaults/vault.actions.js +95 -0
- package/lib/modules/vaults/vault.actions.js.map +1 -0
- package/lib/modules/vaults/write.actions.d.ts +7 -0
- package/lib/modules/vaults/write.actions.js +45 -0
- package/lib/modules/vaults/write.actions.js.map +1 -1
- package/lib/verify.d.ts +2 -0
- package/lib/verify.js +33 -0
- package/lib/verify.js.map +1 -0
- package/package.json +13 -16
- package/lib/core/analytics/constants.d.ts +0 -12
- package/lib/core/analytics/constants.js +0 -49
- package/lib/core/analytics/constants.js.map +0 -1
- package/lib/core/analytics/index.d.ts +0 -6
- package/lib/core/analytics/index.js +0 -31
- package/lib/core/analytics/index.js.map +0 -1
- package/lib/core/analytics/instrumentation.d.ts +0 -2
- package/lib/core/analytics/instrumentation.js +0 -150
- package/lib/core/analytics/instrumentation.js.map +0 -1
- package/lib/core/analytics/metrics.d.ts +0 -12
- package/lib/core/analytics/metrics.js +0 -133
- package/lib/core/analytics/metrics.js.map +0 -1
- package/lib/core/analytics/sentry.d.ts +0 -9
- package/lib/core/analytics/sentry.js +0 -167
- package/lib/core/analytics/sentry.js.map +0 -1
- package/lib/core/analytics/types.d.ts +0 -21
- package/lib/core/analytics/types.js +0 -3
- package/lib/core/analytics/types.js.map +0 -1
- package/lib/core/analytics/user-identity.d.ts +0 -8
- package/lib/core/analytics/user-identity.js +0 -82
- package/lib/core/analytics/user-identity.js.map +0 -1
- package/lib/core/analytics/version.d.ts +0 -1
- package/lib/core/analytics/version.js +0 -5
- package/lib/core/analytics/version.js.map +0 -1
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
}];
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,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I,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;CACzC,CAAC"}
|
package/lib/abis/index.d.ts
CHANGED
package/lib/abis/index.js
CHANGED
|
@@ -37,4 +37,5 @@ __exportStar(require("./TokenizedVaultV2WhitelistedAssets"), exports);
|
|
|
37
37
|
__exportStar(require("./TokenizedVaultV2"), exports);
|
|
38
38
|
__exportStar(require("./TokenizedVaultV2Receipt"), exports);
|
|
39
39
|
__exportStar(require("./TokenizedVaultV2DepositWithPermit"), exports);
|
|
40
|
+
__exportStar(require("./MultiAssetNativeDepositWrapper"), exports);
|
|
40
41
|
//# sourceMappingURL=index.js.map
|
package/lib/abis/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/abis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,kDAAgC;AAChC,4CAA0B;AAC1B,2CAAyB;AACzB,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,6DAA2C;AAC3C,gEAA8C;AAC9C,gDAA8B;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,gDAA8B;AAC9B,kDAAgC;AAChC,sEAAoD;AACpD,qDAAmC;AACnC,4DAA0C;AAC1C,sEAAoD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/abis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,kDAAgC;AAChC,4CAA0B;AAC1B,2CAAyB;AACzB,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,6DAA2C;AAC3C,gEAA8C;AAC9C,gDAA8B;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,gDAA8B;AAC9B,kDAAgC;AAChC,sEAAoD;AACpD,qDAAmC;AACnC,4DAA0C;AAC1C,sEAAoD;AACpD,mEAAiD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IContractWriteOptions } from '../../modules/vaults/write.actions';
|
|
1
|
+
import { IContractWriteOptions, INativeDepositOptions } from '../../modules/vaults/write.actions';
|
|
2
2
|
import { CompatibleSigner } from '../../core/helpers/signer';
|
|
3
3
|
export * from './getters';
|
|
4
4
|
declare class EVMAdapter {
|
|
@@ -11,6 +11,7 @@ declare class EVMAdapter {
|
|
|
11
11
|
vaultAllowance(options: IContractWriteOptions): Promise<import("../..").INormalizedNumber>;
|
|
12
12
|
vaultDeposit(options: IContractWriteOptions): Promise<string>;
|
|
13
13
|
vaultRequestRedeem(options: IContractWriteOptions): Promise<string>;
|
|
14
|
+
depositNative(options: INativeDepositOptions): Promise<string>;
|
|
14
15
|
vaultRedeem(options: IContractWriteOptions & {
|
|
15
16
|
year: string;
|
|
16
17
|
month: string;
|
|
@@ -52,6 +52,10 @@ class EVMAdapter {
|
|
|
52
52
|
const signer = await this.getSigner();
|
|
53
53
|
return (0, write_actions_1.vaultRequestRedeem)(signer, options);
|
|
54
54
|
}
|
|
55
|
+
async depositNative(options) {
|
|
56
|
+
const signer = await this.getSigner();
|
|
57
|
+
return (0, write_actions_1.depositNative)(signer, options);
|
|
58
|
+
}
|
|
55
59
|
async vaultRedeem(options) {
|
|
56
60
|
const signer = await this.getSigner();
|
|
57
61
|
return (0, write_actions_1.vaultRedeem)(signer, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src.ts/adapters/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src.ts/adapters/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;A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,EAAE,CAAC;QACtC,OAAO,IAAA,kCAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAA8B;QAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACtC,OAAO,IAAA,6BAAa,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,WAAW,CACf,OAKC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACtC,OAAO,IAAA,2BAAW,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF;AAED,kBAAe,UAAU,CAAC"}
|
package/lib/core/base.class.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ISolanaConfig, IAddress, IChainId, IEnv, IProvidersConfig, IWSMonitorHeaders } from '../types';
|
|
2
|
-
import { IAnalyticsConfig } from './analytics';
|
|
3
2
|
interface IKeys {
|
|
4
3
|
august?: string;
|
|
5
4
|
graph?: string;
|
|
@@ -15,7 +14,6 @@ export interface IAugustBase {
|
|
|
15
14
|
solana?: ISolanaConfig;
|
|
16
15
|
keys: IKeys;
|
|
17
16
|
monitoring?: IMonitoring;
|
|
18
|
-
analytics?: IAnalyticsConfig;
|
|
19
17
|
}
|
|
20
18
|
interface IActiveNetwork {
|
|
21
19
|
chainId: IChainId;
|
|
@@ -27,7 +25,7 @@ export declare class AugustBase {
|
|
|
27
25
|
authorized: boolean;
|
|
28
26
|
activeNetwork: IActiveNetwork;
|
|
29
27
|
providers: IProvidersConfig;
|
|
30
|
-
constructor({ providers, keys, monitoring
|
|
28
|
+
constructor({ providers, keys, monitoring }: IAugustBase);
|
|
31
29
|
init(): Promise<void>;
|
|
32
30
|
switchNetwork(chainId: IChainId): void;
|
|
33
31
|
updateWallet(address: IAddress): void;
|
package/lib/core/base.class.js
CHANGED
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AugustBase = void 0;
|
|
4
4
|
const auth_1 = require("./auth");
|
|
5
5
|
const logger_1 = require("./logger");
|
|
6
|
-
const analytics_1 = require("./analytics");
|
|
7
6
|
class AugustBase {
|
|
8
|
-
constructor({ providers, keys, monitoring
|
|
7
|
+
constructor({ providers, keys, monitoring }) {
|
|
9
8
|
this.monitoring = {
|
|
10
9
|
'x-user-id': undefined,
|
|
11
10
|
'x-environment': undefined,
|
|
@@ -25,7 +24,6 @@ class AugustBase {
|
|
|
25
24
|
'x-environment': environment,
|
|
26
25
|
};
|
|
27
26
|
logger_1.Logger.setDevMode(environment === 'DEV');
|
|
28
|
-
(0, analytics_1.initializeSentry)(analytics ?? { enabled: true }, environment, monitoring?.['x-user-id'], keys?.august);
|
|
29
27
|
}
|
|
30
28
|
async init() {
|
|
31
29
|
const [augustCheck] = await Promise.all([
|
|
@@ -54,7 +52,6 @@ class AugustBase {
|
|
|
54
52
|
...this.monitoring,
|
|
55
53
|
'x-user-id': lowercasedAddress,
|
|
56
54
|
};
|
|
57
|
-
(0, analytics_1.updateUser)(lowercasedAddress, this.monitoring['x-environment']);
|
|
58
55
|
}
|
|
59
56
|
clearWallet() {
|
|
60
57
|
if (this.monitoring) {
|
|
@@ -63,7 +60,6 @@ class AugustBase {
|
|
|
63
60
|
'x-user-id': undefined,
|
|
64
61
|
};
|
|
65
62
|
}
|
|
66
|
-
(0, analytics_1.clearUser)();
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
65
|
exports.AugustBase = AugustBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.class.js","sourceRoot":"","sources":["../../src.ts/core/base.class.ts"],"names":[],"mappings":";;;AAQA,iCAAyC;AACzC,qCAAkC;
|
|
1
|
+
{"version":3,"file":"base.class.js","sourceRoot":"","sources":["../../src.ts/core/base.class.ts"],"names":[],"mappings":";;;AAQA,iCAAyC;AACzC,qCAAkC;AA8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aAAa,CAAC,OAAiB;QAC7B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CACb,sCAAsC,OAAO,uBAAuB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC7G,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,aAAa,GAAG;YACnB,OAAO;YACP,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;SAChC,CAAC;IACJ,CAAC;IAMD,YAAY,CAAC,OAAiB;QAC5B,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,iBAAiB,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAEhD,IAAI,CAAC,UAAU,GAAG;YAChB,GAAG,IAAI,CAAC,UAAU;YAClB,WAAW,EAAE,iBAAiB;SAC/B,CAAC;IACJ,CAAC;IAKD,WAAW;QACT,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,UAAU,GAAG;gBAChB,GAAG,IAAI,CAAC,UAAU;gBAClB,WAAW,EAAE,SAAS;aACvB,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAnGD,gCAmGC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
>;
|
|
@@ -0,0 +1,160 @@
|
|
|
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
|