@augustdigital/sdk 4.15.5-alpha.0 → 4.17.0-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/AddressResolver.d.ts +28 -40
- package/lib/abis/ChainlinkV3.d.ts +83 -109
- package/lib/abis/ERC20.d.ts +137 -191
- package/lib/abis/ERC20_Bytes32.d.ts +125 -178
- package/lib/abis/ERC4626.d.ts +341 -480
- package/lib/abis/ERC721.d.ts +213 -299
- package/lib/abis/FeeOracle.d.ts +112 -149
- package/lib/abis/LendingPool.d.ts +1293 -1702
- package/lib/abis/LendingPoolV2.d.ts +37 -42
- package/lib/abis/LendingPoolV3.d.ts +25 -29
- package/lib/abis/Loan.d.ts +768 -1007
- package/lib/abis/Multicall3.d.ts +30 -43
- package/lib/abis/PoolAdapter.d.ts +35 -46
- package/lib/abis/RewardDistributor.d.ts +33 -38
- package/lib/abis/SmartAccount.d.ts +16 -23
- package/lib/abis/TextResolver.d.ts +16 -23
- package/lib/abis/TokenizedVaultV2.d.ts +1292 -1684
- package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +55 -62
- package/lib/abis/TokenizedVaultV2Receipt.d.ts +1463 -1934
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +250 -333
- package/lib/abis/UniversalResolverResolve.d.ts +69 -97
- package/lib/abis/UniversalSignatureValidator.d.ts +17 -23
- package/lib/abis/WrapperAdapter.d.ts +67 -89
- package/lib/adapters/evm/getters.d.ts +2 -8
- package/lib/adapters/evm/index.d.ts +15 -19
- package/lib/adapters/evm/utils.d.ts +2 -12
- package/lib/adapters/solana/constants.d.ts +17 -23
- package/lib/adapters/solana/getters.d.ts +1 -4
- package/lib/adapters/solana/idl/vault-idl.d.ts +279 -340
- package/lib/adapters/solana/index.d.ts +116 -212
- package/lib/adapters/solana/types.d.ts +50 -50
- package/lib/adapters/solana/utils.d.ts +78 -139
- package/lib/adapters/solana/vault.actions.d.ts +12 -37
- package/lib/adapters/sui/constants.d.ts +9 -9
- package/lib/adapters/sui/constants.js +8 -1
- package/lib/adapters/sui/constants.js.map +1 -1
- package/lib/adapters/sui/getters.d.ts +1 -3
- package/lib/adapters/sui/index.d.ts +21 -29
- package/lib/adapters/sui/transformer.d.ts +2 -6
- package/lib/adapters/sui/types.d.ts +56 -56
- package/lib/adapters/sui/utils.d.ts +1 -4
- package/lib/core/analytics/constants.d.ts +12 -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 +6 -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 +2 -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 +12 -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 +9 -0
- package/lib/core/analytics/sentry.js +166 -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 +8 -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/base.class.d.ts +25 -30
- package/lib/core/base.class.js +5 -1
- package/lib/core/base.class.js.map +1 -1
- package/lib/core/constants/adapters.d.ts +83 -111
- package/lib/core/constants/core.d.ts +69 -76
- package/lib/core/constants/vaults.d.ts +5 -63
- package/lib/core/constants/vaults.js +3 -3
- package/lib/core/constants/vaults.js.map +1 -1
- package/lib/core/constants/web3.d.ts +18 -19
- package/lib/core/fetcher.d.ts +17 -71
- package/lib/core/fetcher.js +20 -2
- package/lib/core/fetcher.js.map +1 -1
- package/lib/core/helpers/adapters.d.ts +2 -7
- package/lib/core/helpers/core.d.ts +8 -33
- package/lib/core/helpers/signer.d.ts +2 -6
- package/lib/core/helpers/vaults.d.ts +15 -38
- package/lib/core/helpers/web3.d.ts +19 -87
- package/lib/core/index.d.ts +1 -0
- package/lib/core/index.js +1 -0
- package/lib/core/index.js.map +1 -1
- package/lib/core/logger/index.d.ts +11 -11
- package/lib/core/logger/slack.d.ts +8 -9
- package/lib/index.d.ts +1 -61
- package/lib/main.d.ts +141 -158
- package/lib/main.js +3 -0
- package/lib/main.js.map +1 -1
- package/lib/modules/vaults/adapter.helpers.d.ts +38 -72
- package/lib/modules/vaults/fetcher.d.ts +69 -85
- package/lib/modules/vaults/getters.d.ts +100 -205
- package/lib/modules/vaults/index.d.ts +1 -6
- package/lib/modules/vaults/main.d.ts +131 -224
- package/lib/modules/vaults/main.js +8 -1
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/read.actions.d.ts +2 -8
- package/lib/modules/vaults/utils.d.ts +19 -55
- package/lib/modules/vaults/write.actions.d.ts +14 -26
- package/lib/services/coingecko/fetcher.d.ts +1 -4
- package/lib/services/debank/fetcher.d.ts +1 -4
- package/lib/services/debank/utils.d.ts +27 -38
- package/lib/services/octavfi/fetcher.d.ts +1 -3
- package/lib/services/octavfi/types.d.ts +24 -24
- package/lib/services/octavfi/utils.d.ts +2 -6
- package/lib/services/subgraph/fetcher.d.ts +2 -12
- package/lib/services/subgraph/vaults.d.ts +9 -42
- package/lib/types/points.d.ts +26 -35
- package/lib/types/pools.d.ts +112 -149
- package/lib/types/staking.d.ts +25 -25
- package/lib/types/subgraph.d.ts +33 -33
- package/lib/types/vaults.d.ts +219 -232
- package/lib/types/web3.d.ts +9 -9
- package/lib/types/webserver.d.ts +448 -466
- package/package.json +16 -13
|
@@ -1,97 +1,69 @@
|
|
|
1
|
-
export declare const ABI_UNIVERSAL_RESOLVER_RESOLVE: readonly [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly name:
|
|
8
|
-
readonly type:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
readonly name:
|
|
54
|
-
readonly type:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
readonly name:
|
|
60
|
-
readonly type:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
readonly name:
|
|
64
|
-
readonly type:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
readonly type: 'function';
|
|
71
|
-
readonly stateMutability: 'view';
|
|
72
|
-
readonly inputs: readonly [
|
|
73
|
-
{
|
|
74
|
-
readonly name: 'name';
|
|
75
|
-
readonly type: 'bytes';
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
readonly name: 'data';
|
|
79
|
-
readonly type: 'bytes';
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
readonly name: 'gateways';
|
|
83
|
-
readonly type: 'string[]';
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
readonly outputs: readonly [
|
|
87
|
-
{
|
|
88
|
-
readonly name: '';
|
|
89
|
-
readonly type: 'bytes';
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
readonly name: 'address';
|
|
93
|
-
readonly type: 'address';
|
|
94
|
-
},
|
|
95
|
-
];
|
|
96
|
-
},
|
|
97
|
-
];
|
|
1
|
+
export declare const ABI_UNIVERSAL_RESOLVER_RESOLVE: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly components: readonly [{
|
|
4
|
+
readonly name: "target";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "allowFailure";
|
|
8
|
+
readonly type: "bool";
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "callData";
|
|
11
|
+
readonly type: "bytes";
|
|
12
|
+
}];
|
|
13
|
+
readonly name: "calls";
|
|
14
|
+
readonly type: "tuple[]";
|
|
15
|
+
}];
|
|
16
|
+
readonly name: "aggregate3";
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly components: readonly [{
|
|
19
|
+
readonly name: "success";
|
|
20
|
+
readonly type: "bool";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "returnData";
|
|
23
|
+
readonly type: "bytes";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "returnData";
|
|
26
|
+
readonly type: "tuple[]";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "view";
|
|
29
|
+
readonly type: "function";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "resolve";
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly stateMutability: "view";
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly name: "name";
|
|
36
|
+
readonly type: "bytes";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "data";
|
|
39
|
+
readonly type: "bytes";
|
|
40
|
+
}];
|
|
41
|
+
readonly outputs: readonly [{
|
|
42
|
+
readonly name: "";
|
|
43
|
+
readonly type: "bytes";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "address";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}];
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "resolve";
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
readonly stateMutability: "view";
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly name: "name";
|
|
54
|
+
readonly type: "bytes";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "data";
|
|
57
|
+
readonly type: "bytes";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "gateways";
|
|
60
|
+
readonly type: "string[]";
|
|
61
|
+
}];
|
|
62
|
+
readonly outputs: readonly [{
|
|
63
|
+
readonly name: "";
|
|
64
|
+
readonly type: "bytes";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "address";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}];
|
|
69
|
+
}];
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
export declare const ABI_UNIVERSAL_SIGNATURE_VALIDATOR: readonly [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
readonly
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
|
-
readonly stateMutability: 'nonpayable';
|
|
21
|
-
readonly type: 'constructor';
|
|
22
|
-
},
|
|
23
|
-
];
|
|
1
|
+
export declare const ABI_UNIVERSAL_SIGNATURE_VALIDATOR: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_signer";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "bytes32";
|
|
8
|
+
readonly name: "_hash";
|
|
9
|
+
readonly type: "bytes32";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "bytes";
|
|
12
|
+
readonly name: "_signature";
|
|
13
|
+
readonly type: "bytes";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "nonpayable";
|
|
16
|
+
readonly type: "constructor";
|
|
17
|
+
}];
|
|
@@ -1,93 +1,71 @@
|
|
|
1
|
-
export declare const ABI_WRAPPER_ADAPTER: readonly [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
];
|
|
10
|
-
readonly name: 'depositETH';
|
|
1
|
+
export declare const ABI_WRAPPER_ADAPTER: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "referralId";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "depositETH";
|
|
11
8
|
readonly outputs: readonly [];
|
|
12
|
-
readonly stateMutability:
|
|
13
|
-
readonly type:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly type: 'address';
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
readonly name: 'depositWETH';
|
|
9
|
+
readonly stateMutability: "payable";
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly internalType: "uint256";
|
|
14
|
+
readonly name: "amount";
|
|
15
|
+
readonly type: "uint256";
|
|
16
|
+
}, {
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "referralId";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}];
|
|
21
|
+
readonly name: "depositWETH";
|
|
29
22
|
readonly outputs: readonly [];
|
|
30
|
-
readonly stateMutability:
|
|
31
|
-
readonly type:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
];
|
|
41
|
-
readonly name: 'getRSETHWithETH';
|
|
23
|
+
readonly stateMutability: "nonpayable";
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "referralId";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "getRSETHWithETH";
|
|
42
32
|
readonly outputs: readonly [];
|
|
43
|
-
readonly stateMutability:
|
|
44
|
-
readonly type:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
readonly
|
|
50
|
-
|
|
51
|
-
readonly
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
readonly name: 'referralId';
|
|
61
|
-
readonly type: 'string';
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
readonly name: 'getRSETHWithERC20';
|
|
33
|
+
readonly stateMutability: "payable";
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
}, {
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly name: "asset";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly name: "depositAmount";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly internalType: "string";
|
|
46
|
+
readonly name: "referralId";
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "getRSETHWithERC20";
|
|
65
50
|
readonly outputs: readonly [];
|
|
66
|
-
readonly stateMutability:
|
|
67
|
-
readonly type:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
readonly
|
|
73
|
-
|
|
74
|
-
readonly
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly type: 'uint256';
|
|
88
|
-
},
|
|
89
|
-
];
|
|
90
|
-
readonly stateMutability: 'view';
|
|
91
|
-
readonly type: 'function';
|
|
92
|
-
},
|
|
93
|
-
];
|
|
51
|
+
readonly stateMutability: "nonpayable";
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "asset";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly internalType: "uint256";
|
|
60
|
+
readonly name: "depositAmount";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "getRsETHAmountToMint";
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
readonly name: "rsETHAmount";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}];
|
|
69
|
+
readonly stateMutability: "view";
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
}];
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { ITokenizedVault } from '../../types';
|
|
2
2
|
import { IVaultBaseOptions } from '../../modules/vaults';
|
|
3
|
-
export declare const getEvmVaultV1: (
|
|
4
|
-
|
|
5
|
-
options: IVaultBaseOptions,
|
|
6
|
-
) => Promise<import('../../types').IVault>;
|
|
7
|
-
export declare const getEvmVaultV2: (
|
|
8
|
-
tokenizedVault: ITokenizedVault,
|
|
9
|
-
options: IVaultBaseOptions,
|
|
10
|
-
) => Promise<import('../../types').IVault>;
|
|
3
|
+
export declare const getEvmVaultV1: (tokenizedVault: ITokenizedVault, options: IVaultBaseOptions) => Promise<import("../../types").IVault>;
|
|
4
|
+
export declare const getEvmVaultV2: (tokenizedVault: ITokenizedVault, options: IVaultBaseOptions) => Promise<import("../../types").IVault>;
|
|
@@ -2,24 +2,20 @@ import { IContractWriteOptions } from '../../modules/vaults/write.actions';
|
|
|
2
2
|
import { CompatibleSigner } from '../../core/helpers/signer';
|
|
3
3
|
export * from './getters';
|
|
4
4
|
declare class EVMAdapter {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
options: IContractWriteOptions
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
day: string;
|
|
21
|
-
receiverIndex: string;
|
|
22
|
-
},
|
|
23
|
-
): Promise<string>;
|
|
5
|
+
private signer?;
|
|
6
|
+
private rawSigner?;
|
|
7
|
+
constructor(signer?: CompatibleSigner);
|
|
8
|
+
setSigner(signer: CompatibleSigner): void;
|
|
9
|
+
private getSigner;
|
|
10
|
+
vaultApprove(options: IContractWriteOptions): Promise<string>;
|
|
11
|
+
vaultAllowance(options: IContractWriteOptions): Promise<import("../..").INormalizedNumber>;
|
|
12
|
+
vaultDeposit(options: IContractWriteOptions): Promise<string>;
|
|
13
|
+
vaultRequestRedeem(options: IContractWriteOptions): Promise<string>;
|
|
14
|
+
vaultRedeem(options: IContractWriteOptions & {
|
|
15
|
+
year: string;
|
|
16
|
+
month: string;
|
|
17
|
+
day: string;
|
|
18
|
+
receiverIndex: string;
|
|
19
|
+
}): Promise<string>;
|
|
24
20
|
}
|
|
25
21
|
export default EVMAdapter;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export declare const functionsToCallMapping: (
|
|
2
|
-
|
|
3
|
-
contract: any,
|
|
4
|
-
functionCalls: any[],
|
|
5
|
-
) => any[];
|
|
6
|
-
export declare const functionsToCallReduction: (
|
|
7
|
-
acc: any,
|
|
8
|
-
curr: any,
|
|
9
|
-
i: number,
|
|
10
|
-
functionCalls: any[],
|
|
11
|
-
contractCalls: any[],
|
|
12
|
-
) => any;
|
|
1
|
+
export declare const functionsToCallMapping: (provider: any, contract: any, functionCalls: any[]) => any[];
|
|
2
|
+
export declare const functionsToCallReduction: (acc: any, curr: any, i: number, functionCalls: any[], contractCalls: any[]) => any;
|
|
@@ -3,29 +3,23 @@ import { vaultIdl } from './idl/vault-idl';
|
|
|
3
3
|
declare const fallbackDecimals = 8;
|
|
4
4
|
declare const fallbackNetwork: ISolanaNetwork;
|
|
5
5
|
declare const fallbackRpcEndpoints: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
readonly devnet: "https://api.devnet.solana.com";
|
|
7
|
+
readonly mainnet: "https://api.mainnet-beta.solana.com";
|
|
8
|
+
readonly testnet: "https://api.testnet.solana.com";
|
|
9
|
+
readonly localnet: "http://127.0.0.1:8899";
|
|
10
10
|
};
|
|
11
11
|
declare const programIds: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
fallbackDecimals,
|
|
27
|
-
fallbackNetwork,
|
|
28
|
-
fallbackRpcEndpoints,
|
|
29
|
-
programIds,
|
|
30
|
-
vaultIdl,
|
|
12
|
+
devnet: {
|
|
13
|
+
vault: string;
|
|
14
|
+
};
|
|
15
|
+
"mainnet-beta": {
|
|
16
|
+
vault: string;
|
|
17
|
+
};
|
|
18
|
+
testnet: {
|
|
19
|
+
vault: string;
|
|
20
|
+
};
|
|
21
|
+
localnet: {
|
|
22
|
+
vault: string;
|
|
23
|
+
};
|
|
31
24
|
};
|
|
25
|
+
export { fallbackDecimals, fallbackNetwork, fallbackRpcEndpoints, programIds, vaultIdl, };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { ITokenizedVault, IVault } from '../../types';
|
|
2
2
|
import { IVaultBaseOptions } from '../../modules/vaults';
|
|
3
|
-
export declare const getSolanaVault: (
|
|
4
|
-
tokenizedVault: ITokenizedVault,
|
|
5
|
-
options: IVaultBaseOptions,
|
|
6
|
-
) => Promise<IVault>;
|
|
3
|
+
export declare const getSolanaVault: (tokenizedVault: ITokenizedVault, options: IVaultBaseOptions) => Promise<IVault>;
|