@augustdigital/sdk 4.24.8 → 4.24.10-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/RwaRedeem.d.ts +76 -0
- package/lib/abis/RwaRedeem.js +55 -0
- package/lib/abis/RwaRedeem.js.map +1 -0
- package/lib/abis/TokenizedVaultV2WithDepositWithPermit.d.ts +85 -0
- package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js +1878 -0
- package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js.map +1 -0
- package/lib/adapters/solana/getters.d.ts +2 -2
- package/lib/adapters/solana/getters.js +36 -100
- package/lib/adapters/solana/getters.js.map +1 -1
- package/lib/adapters/solana/index.d.ts +2 -2
- package/lib/adapters/solana/utils.d.ts +2 -2
- package/lib/adapters/solana/utils.js +1 -8
- package/lib/adapters/solana/utils.js.map +1 -1
- package/lib/adapters/stellar/actions.d.ts +3 -0
- package/lib/adapters/stellar/actions.js +11 -0
- package/lib/adapters/stellar/actions.js.map +1 -0
- package/lib/adapters/stellar/constants.d.ts +10 -0
- package/lib/adapters/stellar/constants.js +16 -0
- package/lib/adapters/stellar/constants.js.map +1 -0
- package/lib/adapters/stellar/getters.d.ts +4 -0
- package/lib/adapters/stellar/getters.js +51 -0
- package/lib/adapters/stellar/getters.js.map +1 -0
- package/lib/adapters/stellar/index.d.ts +24 -0
- package/lib/adapters/stellar/index.js +68 -0
- package/lib/adapters/stellar/index.js.map +1 -0
- package/lib/adapters/stellar/types.d.ts +15 -0
- package/lib/adapters/stellar/types.js +3 -0
- package/lib/adapters/stellar/types.js.map +1 -0
- package/lib/adapters/stellar/utils.d.ts +12 -0
- package/lib/adapters/stellar/utils.js +31 -0
- package/lib/adapters/stellar/utils.js.map +1 -0
- package/lib/adapters/sui/transformer.js +4 -9
- package/lib/adapters/sui/transformer.js.map +1 -1
- package/lib/core/base.class.d.ts +3 -2
- package/lib/core/base.class.js +14 -7
- package/lib/core/base.class.js.map +1 -1
- package/lib/core/constants/core.d.ts +6 -3
- package/lib/core/constants/core.js +3 -0
- package/lib/core/constants/core.js.map +1 -1
- package/lib/core/constants/hardcoded-vaults.d.ts +7 -0
- package/lib/core/constants/hardcoded-vaults.js +179 -0
- package/lib/core/constants/hardcoded-vaults.js.map +1 -0
- package/lib/core/constants/ovault.d.ts +13 -0
- package/lib/core/constants/ovault.js +160 -0
- package/lib/core/constants/ovault.js.map +1 -0
- package/lib/core/constants/rwa-vaults.d.ts +4 -0
- package/lib/core/constants/rwa-vaults.js +27 -0
- package/lib/core/constants/rwa-vaults.js.map +1 -0
- package/lib/core/constants/web3.d.ts +5 -0
- package/lib/core/constants/web3.js +9 -0
- package/lib/core/constants/web3.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.vaults.d.ts +64 -0
- package/lib/core/constants.vaults.js +156 -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 +100 -0
- package/lib/core/constants.web3.js.map +1 -0
- package/lib/core/fetcher.d.ts +4 -4
- package/lib/core/fetcher.js +9 -2
- package/lib/core/fetcher.js.map +1 -1
- package/lib/core/helpers/address-utils.d.ts +3 -0
- package/lib/core/helpers/address-utils.js +18 -0
- package/lib/core/helpers/address-utils.js.map +1 -0
- package/lib/core/helpers/vaults.js +37 -29
- package/lib/core/helpers/vaults.js.map +1 -1
- package/lib/core/helpers/web3.d.ts +3 -2
- package/lib/core/helpers/web3.js +17 -1
- package/lib/core/helpers/web3.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/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +5 -0
- package/lib/main.js +7 -2
- package/lib/main.js.map +1 -1
- package/lib/modules/vaults/getters.d.ts +29 -2
- package/lib/modules/vaults/getters.js +516 -83
- package/lib/modules/vaults/getters.js.map +1 -1
- package/lib/modules/vaults/main.d.ts +6 -0
- package/lib/modules/vaults/main.js +117 -34
- package/lib/modules/vaults/main.js.map +1 -1
- package/lib/modules/vaults/utils/call-data-decoder.d.ts +14 -0
- package/lib/modules/vaults/utils/call-data-decoder.js +138 -0
- package/lib/modules/vaults/utils/call-data-decoder.js.map +1 -0
- package/lib/modules/vaults/utils/date-utils.d.ts +11 -0
- package/lib/modules/vaults/utils/date-utils.js +39 -0
- package/lib/modules/vaults/utils/date-utils.js.map +1 -0
- package/lib/modules/vaults/utils.d.ts +2 -0
- package/lib/modules/vaults/utils.js +117 -1
- package/lib/modules/vaults/utils.js.map +1 -1
- package/lib/services/layerzero/builder.d.ts +7 -0
- package/lib/services/layerzero/builder.js +251 -0
- package/lib/services/layerzero/builder.js.map +1 -0
- package/lib/services/layerzero/deposits.js +2 -8
- package/lib/services/layerzero/deposits.js.map +1 -1
- package/lib/services/layerzero/ovault-deposit.d.ts +6 -0
- package/lib/services/layerzero/ovault-deposit.js +73 -0
- package/lib/services/layerzero/ovault-deposit.js.map +1 -0
- package/lib/services/layerzero/ovault-redeem.d.ts +4 -0
- package/lib/services/layerzero/ovault-redeem.js +46 -0
- package/lib/services/layerzero/ovault-redeem.js.map +1 -0
- package/lib/services/layerzero/redeems.d.ts +10 -0
- package/lib/services/layerzero/redeems.js +79 -0
- package/lib/services/layerzero/redeems.js.map +1 -0
- package/lib/services/layerzero/utils.d.ts +1 -0
- package/lib/services/layerzero/utils.js +11 -0
- package/lib/services/layerzero/utils.js.map +1 -0
- package/lib/types/ovault.d.ts +78 -0
- package/lib/types/ovault.js +3 -0
- package/lib/types/ovault.js.map +1 -0
- package/lib/types/rwa-redemption.d.ts +12 -0
- package/lib/types/rwa-redemption.js +3 -0
- package/lib/types/rwa-redemption.js.map +1 -0
- package/lib/types/vaults.d.ts +41 -9
- package/lib/types/vaults.js.map +1 -1
- package/lib/types/web3.d.ts +5 -0
- package/lib/types/web3.js +10 -0
- package/lib/types/web3.js.map +1 -1
- package/lib/types/webserver.d.ts +11 -2
- package/lib/verify.d.ts +2 -0
- package/lib/verify.js +33 -0
- package/lib/verify.js.map +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const ABI_RWA_REDEEM: readonly [{
|
|
2
|
+
readonly name: "redeemAsset";
|
|
3
|
+
readonly type: "function";
|
|
4
|
+
readonly stateMutability: "nonpayable";
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly name: "asset";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "amount";
|
|
10
|
+
readonly type: "uint256";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "minOut";
|
|
13
|
+
readonly type: "uint256";
|
|
14
|
+
}];
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}];
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "previewRedemption";
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
readonly stateMutability: "view";
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly name: "asset";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "amount";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}];
|
|
30
|
+
readonly outputs: readonly [{
|
|
31
|
+
readonly name: "";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}];
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "availableLiquidity";
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly stateMutability: "view";
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "redeemableAssets";
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly stateMutability: "view";
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}];
|
|
51
|
+
readonly outputs: readonly [{
|
|
52
|
+
readonly name: "";
|
|
53
|
+
readonly type: "bool";
|
|
54
|
+
}];
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "redemptionSpreadBps";
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly name: "";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}];
|
|
63
|
+
readonly outputs: readonly [{
|
|
64
|
+
readonly name: "";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "redemptionsPaused";
|
|
69
|
+
readonly type: "function";
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
readonly inputs: readonly [];
|
|
72
|
+
readonly outputs: readonly [{
|
|
73
|
+
readonly name: "";
|
|
74
|
+
readonly type: "bool";
|
|
75
|
+
}];
|
|
76
|
+
}];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ABI_RWA_REDEEM = void 0;
|
|
4
|
+
exports.ABI_RWA_REDEEM = [
|
|
5
|
+
{
|
|
6
|
+
name: 'redeemAsset',
|
|
7
|
+
type: 'function',
|
|
8
|
+
stateMutability: 'nonpayable',
|
|
9
|
+
inputs: [
|
|
10
|
+
{ name: 'asset', type: 'address' },
|
|
11
|
+
{ name: 'amount', type: 'uint256' },
|
|
12
|
+
{ name: 'minOut', type: 'uint256' },
|
|
13
|
+
],
|
|
14
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'previewRedemption',
|
|
18
|
+
type: 'function',
|
|
19
|
+
stateMutability: 'view',
|
|
20
|
+
inputs: [
|
|
21
|
+
{ name: 'asset', type: 'address' },
|
|
22
|
+
{ name: 'amount', type: 'uint256' },
|
|
23
|
+
],
|
|
24
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'availableLiquidity',
|
|
28
|
+
type: 'function',
|
|
29
|
+
stateMutability: 'view',
|
|
30
|
+
inputs: [],
|
|
31
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'redeemableAssets',
|
|
35
|
+
type: 'function',
|
|
36
|
+
stateMutability: 'view',
|
|
37
|
+
inputs: [{ name: '', type: 'address' }],
|
|
38
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'redemptionSpreadBps',
|
|
42
|
+
type: 'function',
|
|
43
|
+
stateMutability: 'view',
|
|
44
|
+
inputs: [{ name: '', type: 'address' }],
|
|
45
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'redemptionsPaused',
|
|
49
|
+
type: 'function',
|
|
50
|
+
stateMutability: 'view',
|
|
51
|
+
inputs: [],
|
|
52
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=RwaRedeem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RwaRedeem.js","sourceRoot":"","sources":["../../src.ts/abis/RwaRedeem.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B;QACE,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;CACO,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const TokenizedVaultV2WithDepositWithPermit: (
|
|
2
|
+
| {
|
|
3
|
+
type: string;
|
|
4
|
+
inputs: any[];
|
|
5
|
+
stateMutability: string;
|
|
6
|
+
name?: undefined;
|
|
7
|
+
outputs?: undefined;
|
|
8
|
+
anonymous?: undefined;
|
|
9
|
+
}
|
|
10
|
+
| {
|
|
11
|
+
type: string;
|
|
12
|
+
name: string;
|
|
13
|
+
inputs: {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
internalType: string;
|
|
17
|
+
}[];
|
|
18
|
+
outputs: {
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
internalType: string;
|
|
22
|
+
}[];
|
|
23
|
+
stateMutability: string;
|
|
24
|
+
anonymous?: undefined;
|
|
25
|
+
}
|
|
26
|
+
| {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
inputs: {
|
|
30
|
+
name: string;
|
|
31
|
+
type: string;
|
|
32
|
+
internalType: string;
|
|
33
|
+
components: {
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
internalType: string;
|
|
37
|
+
}[];
|
|
38
|
+
}[];
|
|
39
|
+
outputs: any[];
|
|
40
|
+
stateMutability: string;
|
|
41
|
+
anonymous?: undefined;
|
|
42
|
+
}
|
|
43
|
+
| {
|
|
44
|
+
type: string;
|
|
45
|
+
name: string;
|
|
46
|
+
inputs: any[];
|
|
47
|
+
outputs: {
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
internalType: string;
|
|
51
|
+
components: {
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
internalType: string;
|
|
55
|
+
}[];
|
|
56
|
+
}[];
|
|
57
|
+
stateMutability: string;
|
|
58
|
+
anonymous?: undefined;
|
|
59
|
+
}
|
|
60
|
+
| {
|
|
61
|
+
type: string;
|
|
62
|
+
name: string;
|
|
63
|
+
inputs: {
|
|
64
|
+
name: string;
|
|
65
|
+
type: string;
|
|
66
|
+
indexed: boolean;
|
|
67
|
+
internalType: string;
|
|
68
|
+
}[];
|
|
69
|
+
anonymous: boolean;
|
|
70
|
+
stateMutability?: undefined;
|
|
71
|
+
outputs?: undefined;
|
|
72
|
+
}
|
|
73
|
+
| {
|
|
74
|
+
type: string;
|
|
75
|
+
name: string;
|
|
76
|
+
inputs: {
|
|
77
|
+
name: string;
|
|
78
|
+
type: string;
|
|
79
|
+
internalType: string;
|
|
80
|
+
}[];
|
|
81
|
+
stateMutability?: undefined;
|
|
82
|
+
outputs?: undefined;
|
|
83
|
+
anonymous?: undefined;
|
|
84
|
+
}
|
|
85
|
+
)[];
|