@amadeus-protocol/sdk 1.0.7 → 1.1.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/dist/api/chain.d.ts +144 -117
- package/dist/api/chain.d.ts.map +1 -1
- package/dist/api/chain.js +175 -146
- package/dist/api/chain.js.map +1 -1
- package/dist/api/contract.d.ts +78 -60
- package/dist/api/contract.d.ts.map +1 -1
- package/dist/api/contract.js +102 -75
- package/dist/api/contract.js.map +1 -1
- package/dist/api/epoch.d.ts +65 -66
- package/dist/api/epoch.d.ts.map +1 -1
- package/dist/api/epoch.js +90 -98
- package/dist/api/epoch.js.map +1 -1
- package/dist/api/peer.d.ts +77 -78
- package/dist/api/peer.d.ts.map +1 -1
- package/dist/api/peer.js +93 -94
- package/dist/api/peer.js.map +1 -1
- package/dist/api/proof.d.ts +44 -23
- package/dist/api/proof.d.ts.map +1 -1
- package/dist/api/proof.js +56 -29
- package/dist/api/proof.js.map +1 -1
- package/dist/api/transaction.d.ts +68 -69
- package/dist/api/transaction.d.ts.map +1 -1
- package/dist/api/transaction.js +84 -84
- package/dist/api/transaction.js.map +1 -1
- package/dist/api/wallet.d.ts +36 -37
- package/dist/api/wallet.d.ts.map +1 -1
- package/dist/api/wallet.js +47 -50
- package/dist/api/wallet.js.map +1 -1
- package/dist/client.d.ts +66 -68
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +231 -276
- package/dist/client.js.map +1 -1
- package/dist/constants.d.ts +13 -10
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +49 -45
- package/dist/constants.js.map +1 -1
- package/dist/contract-state.d.ts +6 -3
- package/dist/contract-state.d.ts.map +1 -1
- package/dist/contract-state.js +88 -106
- package/dist/contract-state.js.map +1 -1
- package/dist/contracts/abi-types.d.ts +32 -32
- package/dist/contracts/abi-types.d.ts.map +1 -1
- package/dist/contracts/coin.d.ts +13 -20
- package/dist/contracts/coin.d.ts.map +1 -1
- package/dist/contracts/coin.js +42 -38
- package/dist/contracts/coin.js.map +1 -1
- package/dist/contracts/contract-call.d.ts +14 -16
- package/dist/contracts/contract-call.d.ts.map +1 -1
- package/dist/contracts/contract-call.js +45 -54
- package/dist/contracts/contract-call.js.map +1 -1
- package/dist/contracts/contract.d.ts +24 -55
- package/dist/contracts/contract.d.ts.map +1 -1
- package/dist/contracts/contract.js +63 -101
- package/dist/contracts/contract.js.map +1 -1
- package/dist/contracts/lockup/abi.d.ts +54 -51
- package/dist/contracts/lockup/abi.d.ts.map +1 -1
- package/dist/contracts/lockup/abi.js +65 -74
- package/dist/contracts/lockup/abi.js.map +1 -1
- package/dist/contracts/lockup/helpers.d.ts +22 -18
- package/dist/contracts/lockup/helpers.d.ts.map +1 -1
- package/dist/contracts/lockup/helpers.js +44 -47
- package/dist/contracts/lockup/helpers.js.map +1 -1
- package/dist/contracts/lockup/parsers.d.ts +7 -3
- package/dist/contracts/lockup/parsers.d.ts.map +1 -1
- package/dist/contracts/lockup/parsers.js +51 -55
- package/dist/contracts/lockup/parsers.js.map +1 -1
- package/dist/contracts/lockup/storage-keys.d.ts +5 -2
- package/dist/contracts/lockup/storage-keys.d.ts.map +1 -1
- package/dist/contracts/lockup/storage-keys.js +54 -70
- package/dist/contracts/lockup/storage-keys.js.map +1 -1
- package/dist/contracts/lockup/types.d.ts +73 -70
- package/dist/contracts/lockup/types.d.ts.map +1 -1
- package/dist/contracts/lockup-prime/abi.d.ts +328 -325
- package/dist/contracts/lockup-prime/abi.d.ts.map +1 -1
- package/dist/contracts/lockup-prime/abi.js +397 -417
- package/dist/contracts/lockup-prime/abi.js.map +1 -1
- package/dist/contracts/lockup-prime/helpers.d.ts +35 -31
- package/dist/contracts/lockup-prime/helpers.d.ts.map +1 -1
- package/dist/contracts/lockup-prime/helpers.js +131 -137
- package/dist/contracts/lockup-prime/helpers.js.map +1 -1
- package/dist/contracts/lockup-prime/parsers.d.ts +9 -5
- package/dist/contracts/lockup-prime/parsers.d.ts.map +1 -1
- package/dist/contracts/lockup-prime/parsers.js +61 -61
- package/dist/contracts/lockup-prime/parsers.js.map +1 -1
- package/dist/contracts/lockup-prime/storage-keys.d.ts +7 -4
- package/dist/contracts/lockup-prime/storage-keys.d.ts.map +1 -1
- package/dist/contracts/lockup-prime/storage-keys.js +64 -80
- package/dist/contracts/lockup-prime/storage-keys.js.map +1 -1
- package/dist/contracts/lockup-prime/types.d.ts +92 -89
- package/dist/contracts/lockup-prime/types.d.ts.map +1 -1
- package/dist/contracts/lockup-prime/types.js +12 -13
- package/dist/contracts/lockup-prime/types.js.map +1 -1
- package/dist/contracts/nft/abi.d.ts +104 -0
- package/dist/contracts/nft/abi.d.ts.map +1 -0
- package/dist/contracts/nft/abi.js +135 -0
- package/dist/contracts/nft/abi.js.map +1 -0
- package/dist/contracts/nft/helpers.d.ts +21 -0
- package/dist/contracts/nft/helpers.d.ts.map +1 -0
- package/dist/contracts/nft/helpers.js +61 -0
- package/dist/contracts/nft/helpers.js.map +1 -0
- package/dist/contracts/nft/types.d.ts +47 -0
- package/dist/contracts/nft/types.d.ts.map +1 -0
- package/dist/conversion.d.ts +5 -2
- package/dist/conversion.d.ts.map +1 -1
- package/dist/conversion.js +45 -50
- package/dist/conversion.js.map +1 -1
- package/dist/crypto.d.ts +14 -16
- package/dist/crypto.d.ts.map +1 -1
- package/dist/crypto.js +121 -140
- package/dist/crypto.js.map +1 -1
- package/dist/encoding.d.ts +11 -8
- package/dist/encoding.d.ts.map +1 -1
- package/dist/encoding.js +123 -144
- package/dist/encoding.js.map +1 -1
- package/dist/encryption.d.ts +15 -12
- package/dist/encryption.d.ts.map +1 -1
- package/dist/encryption.js +119 -117
- package/dist/encryption.js.map +1 -1
- package/dist/explorer.d.ts +10 -7
- package/dist/explorer.d.ts.map +1 -1
- package/dist/explorer.js +51 -48
- package/dist/explorer.js.map +1 -1
- package/dist/formatters.d.ts +8 -5
- package/dist/formatters.d.ts.map +1 -1
- package/dist/formatters.js +67 -68
- package/dist/formatters.js.map +1 -1
- package/dist/index.d.ts +42 -54
- package/dist/index.js +39 -54
- package/dist/mnemonic.d.ts +99 -0
- package/dist/mnemonic.d.ts.map +1 -0
- package/dist/mnemonic.js +119 -0
- package/dist/mnemonic.js.map +1 -0
- package/dist/networks.d.ts +14 -17
- package/dist/networks.d.ts.map +1 -1
- package/dist/networks.js +40 -36
- package/dist/networks.js.map +1 -1
- package/dist/schemas.js +75 -79
- package/dist/schemas.js.map +1 -1
- package/dist/sdk.d.ts +69 -65
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +126 -117
- package/dist/sdk.js.map +1 -1
- package/dist/serialization.d.ts +8 -18
- package/dist/serialization.d.ts.map +1 -1
- package/dist/serialization.js +207 -260
- package/dist/serialization.js.map +1 -1
- package/dist/signing.js +67 -67
- package/dist/signing.js.map +1 -1
- package/dist/transaction-builder.d.ts +175 -184
- package/dist/transaction-builder.d.ts.map +1 -1
- package/dist/transaction-builder.js +295 -344
- package/dist/transaction-builder.js.map +1 -1
- package/dist/transaction-errors.d.ts +10 -12
- package/dist/transaction-errors.d.ts.map +1 -1
- package/dist/transaction-errors.js +145 -166
- package/dist/transaction-errors.js.map +1 -1
- package/dist/types.d.ts +530 -450
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +169 -183
- package/dist/types.js.map +1 -1
- package/dist/validation.d.ts +24 -26
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +194 -192
- package/dist/validation.js.map +1 -1
- package/package.json +5 -3
- package/dist/api/index.d.ts +0 -8
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -8
- package/dist/api/index.js.map +0 -1
- package/dist/contracts/abi-types.js +0 -8
- package/dist/contracts/abi-types.js.map +0 -1
- package/dist/contracts/index.d.ts +0 -7
- package/dist/contracts/index.d.ts.map +0 -1
- package/dist/contracts/index.js +0 -7
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lockup/calls.d.ts +0 -23
- package/dist/contracts/lockup/calls.d.ts.map +0 -1
- package/dist/contracts/lockup/calls.js +0 -25
- package/dist/contracts/lockup/calls.js.map +0 -1
- package/dist/contracts/lockup/index.d.ts +0 -6
- package/dist/contracts/lockup/index.d.ts.map +0 -1
- package/dist/contracts/lockup/index.js +0 -6
- package/dist/contracts/lockup/index.js.map +0 -1
- package/dist/contracts/lockup/types.js +0 -7
- package/dist/contracts/lockup/types.js.map +0 -1
- package/dist/contracts/lockup-prime/calls.d.ts +0 -53
- package/dist/contracts/lockup-prime/calls.d.ts.map +0 -1
- package/dist/contracts/lockup-prime/calls.js +0 -60
- package/dist/contracts/lockup-prime/calls.js.map +0 -1
- package/dist/contracts/lockup-prime/index.d.ts +0 -6
- package/dist/contracts/lockup-prime/index.d.ts.map +0 -1
- package/dist/contracts/lockup-prime/index.js +0 -6
- package/dist/contracts/lockup-prime/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/schemas.d.ts +0 -67
- package/dist/schemas.d.ts.map +0 -1
- package/dist/signing.d.ts +0 -39
- package/dist/signing.d.ts.map +0 -1
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { parseStateNumber } from
|
|
2
|
-
import { fromAtomicAma } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { parseStateNumber } from "../../contract-state.js";
|
|
2
|
+
import { fromAtomicAma } from "../../conversion.js";
|
|
3
|
+
import { isValidLockupPrimeTierKey } from "./types.js";
|
|
4
|
+
import { LockupPrime } from "./helpers.js";
|
|
5
|
+
//#region src/contracts/lockup-prime/parsers.ts
|
|
5
6
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
* Parse raw vault data string into intermediate format
|
|
8
|
+
* Format: {tier}-{multiplier}-{unlock_epoch}-{amount}
|
|
9
|
+
*
|
|
10
|
+
* @param dataStr - Raw vault data string from contract state
|
|
11
|
+
* @returns Parsed data or null if invalid
|
|
12
|
+
*/
|
|
13
|
+
function parseRawVaultData(dataStr) {
|
|
14
|
+
const match = dataStr.match(/^([^-]+)-(\d+)-(\d+)-(\d+)$/);
|
|
15
|
+
if (!match) return null;
|
|
16
|
+
const tier = match[1];
|
|
17
|
+
const multiplier = Number.parseInt(match[2], 10);
|
|
18
|
+
const unlockEpoch = Number.parseInt(match[3], 10);
|
|
19
|
+
const amountFlat = Number.parseInt(match[4], 10);
|
|
20
|
+
if (!isValidLockupPrimeTierKey(tier)) return null;
|
|
21
|
+
if (Number.isNaN(multiplier) || multiplier <= 0) return null;
|
|
22
|
+
if (Number.isNaN(unlockEpoch) || unlockEpoch < 0) return null;
|
|
23
|
+
if (Number.isNaN(amountFlat) || amountFlat < 0) return null;
|
|
24
|
+
return {
|
|
25
|
+
tier,
|
|
26
|
+
multiplier,
|
|
27
|
+
unlockEpoch,
|
|
28
|
+
amountFlat
|
|
29
|
+
};
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
catch {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
32
|
+
* Parse vault data from contract state into a fully resolved vault object
|
|
33
|
+
*
|
|
34
|
+
* @param vaultData - Raw vault data from contract state (string or Uint8Array)
|
|
35
|
+
* @param vaultIndex - The vault index
|
|
36
|
+
* @param network - Optional network type (defaults to mainnet)
|
|
37
|
+
* @returns Parsed vault or null if invalid
|
|
38
|
+
*/
|
|
39
|
+
function parseVaultData(vaultData, vaultIndex, network) {
|
|
40
|
+
try {
|
|
41
|
+
const rawData = parseRawVaultData(typeof vaultData === "string" ? vaultData : new TextDecoder().decode(vaultData));
|
|
42
|
+
if (!rawData) return null;
|
|
43
|
+
const { tier, multiplier, unlockEpoch, amountFlat } = rawData;
|
|
44
|
+
const amount = fromAtomicAma(amountFlat);
|
|
45
|
+
const tierDef = LockupPrime.getTier(tier, network);
|
|
46
|
+
return {
|
|
47
|
+
tier,
|
|
48
|
+
multiplier,
|
|
49
|
+
unlockEpoch,
|
|
50
|
+
lockEpoch: tierDef ? unlockEpoch - tierDef.epochs : unlockEpoch,
|
|
51
|
+
amount,
|
|
52
|
+
vaultIndex
|
|
53
|
+
};
|
|
54
|
+
} catch {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
60
57
|
}
|
|
61
58
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
* Parse contract state value to number
|
|
60
|
+
* Delegates to SDK's parseStateNumber for consistency
|
|
61
|
+
*/
|
|
62
|
+
function parseContractStateNumber(value) {
|
|
63
|
+
return parseStateNumber(value);
|
|
67
64
|
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { parseContractStateNumber, parseRawVaultData, parseVaultData };
|
|
67
|
+
|
|
68
68
|
//# sourceMappingURL=parsers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.js","
|
|
1
|
+
{"version":3,"file":"parsers.js","names":[],"sources":["../../../src/contracts/lockup-prime/parsers.ts"],"sourcesContent":["import type { NetworkType } from '../../networks'\nimport { parseStateNumber } from '../../contract-state'\nimport { fromAtomicAma } from '../../conversion'\n\nimport { LockupPrime } from './helpers'\nimport type { LockupPrimeVault, RawLockupPrimeVaultData } from './types'\nimport { isValidLockupPrimeTierKey } from './types'\n\n/**\n * Parse raw vault data string into intermediate format\n * Format: {tier}-{multiplier}-{unlock_epoch}-{amount}\n *\n * @param dataStr - Raw vault data string from contract state\n * @returns Parsed data or null if invalid\n */\nexport function parseRawVaultData(dataStr: string): RawLockupPrimeVaultData | null {\n\tconst match = dataStr.match(/^([^-]+)-(\\d+)-(\\d+)-(\\d+)$/)\n\tif (!match) return null\n\n\tconst tier = match[1]!\n\tconst multiplier = Number.parseInt(match[2]!, 10)\n\tconst unlockEpoch = Number.parseInt(match[3]!, 10)\n\tconst amountFlat = Number.parseInt(match[4]!, 10)\n\n\tif (!isValidLockupPrimeTierKey(tier)) return null\n\tif (Number.isNaN(multiplier) || multiplier <= 0) return null\n\tif (Number.isNaN(unlockEpoch) || unlockEpoch < 0) return null\n\tif (Number.isNaN(amountFlat) || amountFlat < 0) return null\n\n\treturn { tier, multiplier, unlockEpoch, amountFlat }\n}\n\n/**\n * Parse vault data from contract state into a fully resolved vault object\n *\n * @param vaultData - Raw vault data from contract state (string or Uint8Array)\n * @param vaultIndex - The vault index\n * @param network - Optional network type (defaults to mainnet)\n * @returns Parsed vault or null if invalid\n */\nexport function parseVaultData(\n\tvaultData: string | Uint8Array,\n\tvaultIndex: number,\n\tnetwork?: NetworkType\n): LockupPrimeVault | null {\n\ttry {\n\t\tconst dataStr =\n\t\t\ttypeof vaultData === 'string' ? vaultData : new TextDecoder().decode(vaultData)\n\n\t\tconst rawData = parseRawVaultData(dataStr)\n\t\tif (!rawData) return null\n\n\t\tconst { tier, multiplier, unlockEpoch, amountFlat } = rawData\n\n\t\tconst amount = fromAtomicAma(amountFlat)\n\n\t\tconst tierDef = LockupPrime.getTier(tier, network)\n\t\tconst lockEpoch = tierDef ? unlockEpoch - tierDef.epochs : unlockEpoch\n\n\t\treturn {\n\t\t\ttier: tier as LockupPrimeVault['tier'],\n\t\t\tmultiplier,\n\t\t\tunlockEpoch,\n\t\t\tlockEpoch,\n\t\t\tamount,\n\t\t\tvaultIndex\n\t\t}\n\t} catch {\n\t\treturn null\n\t}\n}\n\n/**\n * Parse contract state value to number\n * Delegates to SDK's parseStateNumber for consistency\n */\nexport function parseContractStateNumber(\n\tvalue: string | number | Uint8Array | null | undefined\n): number {\n\treturn parseStateNumber(value)\n}\n"],"mappings":";;;;;;;;;;;;AAeA,SAAgB,kBAAkB,SAAiD;CAClF,MAAM,QAAQ,QAAQ,MAAM,8BAA8B;CAC1D,IAAI,CAAC,OAAO,OAAO;CAEnB,MAAM,OAAO,MAAM;CACnB,MAAM,aAAa,OAAO,SAAS,MAAM,IAAK,GAAG;CACjD,MAAM,cAAc,OAAO,SAAS,MAAM,IAAK,GAAG;CAClD,MAAM,aAAa,OAAO,SAAS,MAAM,IAAK,GAAG;CAEjD,IAAI,CAAC,0BAA0B,KAAK,EAAE,OAAO;CAC7C,IAAI,OAAO,MAAM,WAAW,IAAI,cAAc,GAAG,OAAO;CACxD,IAAI,OAAO,MAAM,YAAY,IAAI,cAAc,GAAG,OAAO;CACzD,IAAI,OAAO,MAAM,WAAW,IAAI,aAAa,GAAG,OAAO;CAEvD,OAAO;EAAE;EAAM;EAAY;EAAa;EAAY;;;;;;;;;;AAWrD,SAAgB,eACf,WACA,YACA,SAC0B;CAC1B,IAAI;EAIH,MAAM,UAAU,kBAFf,OAAO,cAAc,WAAW,YAAY,IAAI,aAAa,CAAC,OAAO,UAAU,CAEtC;EAC1C,IAAI,CAAC,SAAS,OAAO;EAErB,MAAM,EAAE,MAAM,YAAY,aAAa,eAAe;EAEtD,MAAM,SAAS,cAAc,WAAW;EAExC,MAAM,UAAU,YAAY,QAAQ,MAAM,QAAQ;EAGlD,OAAO;GACA;GACN;GACA;GACA,WANiB,UAAU,cAAc,QAAQ,SAAS;GAO1D;GACA;GACA;SACM;EACP,OAAO;;;;;;;AAQT,SAAgB,yBACf,OACS;CACT,OAAO,iBAAiB,MAAM"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
//#region src/contracts/lockup-prime/storage-keys.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Build vault key prefix for an account
|
|
3
4
|
* Format: bic:lockup_prime:vault:{account_48bytes}:
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
declare function buildLockupPrimeVaultKeyPrefix(accountBinary: Uint8Array): Uint8Array;
|
|
6
7
|
/**
|
|
7
8
|
* Build daily streak key for an account
|
|
8
9
|
* Format: bic:lockup_prime:daily_streak:{account_48bytes}
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
declare function buildDailyStreakKey(accountBinary: Uint8Array): Uint8Array;
|
|
11
12
|
/**
|
|
12
13
|
* Build next check-in epoch key for an account
|
|
13
14
|
* Format: bic:lockup_prime:next_checkin_epoch:{account_48bytes}
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
declare function buildNextCheckinEpochKey(accountBinary: Uint8Array): Uint8Array;
|
|
16
17
|
/**
|
|
17
18
|
* Extract vault index from key
|
|
18
19
|
* Key format: bic:lockup_prime:vault:{account_48bytes}:{vault_index}
|
|
@@ -21,5 +22,7 @@ export declare function buildNextCheckinEpochKey(accountBinary: Uint8Array): Uin
|
|
|
21
22
|
* - Full key: bic:lockup_prime:vault:{account_48bytes}:{vault_index}
|
|
22
23
|
* - Suffix only: {vault_index} (just the part after the prefix)
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
declare function extractLockupPrimeVaultIndexFromKey(key: string | Uint8Array): number | null;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { buildDailyStreakKey, buildLockupPrimeVaultKeyPrefix, buildNextCheckinEpochKey, extractLockupPrimeVaultIndexFromKey };
|
|
25
28
|
//# sourceMappingURL=storage-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-keys.d.ts","
|
|
1
|
+
{"version":3,"file":"storage-keys.d.ts","names":[],"sources":["../../../src/contracts/lockup-prime/storage-keys.ts"],"mappings":";;AAsCA;;;iBAAgB,8BAAA,CAA+B,aAAA,EAAe,UAAA,GAAa,UAAA;;;;;iBAQ3D,mBAAA,CAAoB,aAAA,EAAe,UAAA,GAAa,UAAA;AAAhE;;;;AAAA,iBAQgB,wBAAA,CAAyB,aAAA,EAAe,UAAA,GAAa,UAAA;;;;;AAArE;;;;iBAYgB,mCAAA,CAAoC,GAAA,WAAc,UAAA"}
|
|
@@ -1,92 +1,76 @@
|
|
|
1
|
-
import { LockupPrime } from
|
|
1
|
+
import { LockupPrime } from "./helpers.js";
|
|
2
|
+
//#region src/contracts/lockup-prime/storage-keys.ts
|
|
2
3
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
* Generic function to build a storage key for an account
|
|
5
|
+
*/
|
|
5
6
|
function buildStorageKey(keyName, accountBinary, appendColon = false) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const result = new Uint8Array(resultLength);
|
|
17
|
-
result.set(prefixBytes, 0);
|
|
18
|
-
result.set(accountBinary, prefixBytes.length);
|
|
19
|
-
if (appendColon) {
|
|
20
|
-
result[result.length - 1] = 0x3a; // ':'
|
|
21
|
-
}
|
|
22
|
-
return result;
|
|
7
|
+
if (!LockupPrime.getStorageKey(keyName)) throw new Error(`Storage key '${keyName}' not found in ABI`);
|
|
8
|
+
const prefix = LockupPrime.getKeyPrefix(keyName);
|
|
9
|
+
if (!prefix) throw new Error(`Could not extract prefix for storage key '${keyName}'`);
|
|
10
|
+
const prefixBytes = new TextEncoder().encode(prefix);
|
|
11
|
+
const resultLength = prefixBytes.length + accountBinary.length + (appendColon ? 1 : 0);
|
|
12
|
+
const result = new Uint8Array(resultLength);
|
|
13
|
+
result.set(prefixBytes, 0);
|
|
14
|
+
result.set(accountBinary, prefixBytes.length);
|
|
15
|
+
if (appendColon) result[result.length - 1] = 58;
|
|
16
|
+
return result;
|
|
23
17
|
}
|
|
24
18
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
* Build vault key prefix for an account
|
|
20
|
+
* Format: bic:lockup_prime:vault:{account_48bytes}:
|
|
21
|
+
*/
|
|
22
|
+
function buildLockupPrimeVaultKeyPrefix(accountBinary) {
|
|
23
|
+
return buildStorageKey("vault", accountBinary, true);
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
* Build daily streak key for an account
|
|
27
|
+
* Format: bic:lockup_prime:daily_streak:{account_48bytes}
|
|
28
|
+
*/
|
|
29
|
+
function buildDailyStreakKey(accountBinary) {
|
|
30
|
+
return buildStorageKey("daily_streak", accountBinary, false);
|
|
37
31
|
}
|
|
38
32
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
* Build next check-in epoch key for an account
|
|
34
|
+
* Format: bic:lockup_prime:next_checkin_epoch:{account_48bytes}
|
|
35
|
+
*/
|
|
36
|
+
function buildNextCheckinEpochKey(accountBinary) {
|
|
37
|
+
return buildStorageKey("next_checkin_epoch", accountBinary, false);
|
|
44
38
|
}
|
|
45
39
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (lastColonIndex === -1 || lastColonIndex === keyBytes.length - 1) {
|
|
79
|
-
const wholeKeyParse = parseInt(keyStr, 10);
|
|
80
|
-
return isNaN(wholeKeyParse) ? null : wholeKeyParse;
|
|
81
|
-
}
|
|
82
|
-
// Extract vault index from after the last colon
|
|
83
|
-
const indexBytes = keyBytes.slice(lastColonIndex + 1);
|
|
84
|
-
const indexStr = new TextDecoder().decode(indexBytes);
|
|
85
|
-
const vaultIndex = parseInt(indexStr, 10);
|
|
86
|
-
return isNaN(vaultIndex) ? null : vaultIndex;
|
|
87
|
-
}
|
|
88
|
-
catch {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
40
|
+
* Extract vault index from key
|
|
41
|
+
* Key format: bic:lockup_prime:vault:{account_48bytes}:{vault_index}
|
|
42
|
+
*
|
|
43
|
+
* Note: When using prefix queries, the key might be:
|
|
44
|
+
* - Full key: bic:lockup_prime:vault:{account_48bytes}:{vault_index}
|
|
45
|
+
* - Suffix only: {vault_index} (just the part after the prefix)
|
|
46
|
+
*/
|
|
47
|
+
function extractLockupPrimeVaultIndexFromKey(key) {
|
|
48
|
+
try {
|
|
49
|
+
const keyBytes = typeof key === "string" ? new TextEncoder().encode(key) : key;
|
|
50
|
+
const keyStr = typeof key === "string" ? key : new TextDecoder().decode(key);
|
|
51
|
+
if (/^[^-]+-\d+-\d+-\d+$/.test(keyStr)) return null;
|
|
52
|
+
if (keyBytes.length < 10) {
|
|
53
|
+
const directParse = parseInt(keyStr, 10);
|
|
54
|
+
if (!isNaN(directParse) && directParse >= 0) return directParse;
|
|
55
|
+
}
|
|
56
|
+
let lastColonIndex = -1;
|
|
57
|
+
for (let i = keyBytes.length - 1; i >= 0; i--) if (keyBytes[i] === 58) {
|
|
58
|
+
lastColonIndex = i;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
if (lastColonIndex === -1 || lastColonIndex === keyBytes.length - 1) {
|
|
62
|
+
const wholeKeyParse = parseInt(keyStr, 10);
|
|
63
|
+
return isNaN(wholeKeyParse) ? null : wholeKeyParse;
|
|
64
|
+
}
|
|
65
|
+
const indexBytes = keyBytes.slice(lastColonIndex + 1);
|
|
66
|
+
const indexStr = new TextDecoder().decode(indexBytes);
|
|
67
|
+
const vaultIndex = parseInt(indexStr, 10);
|
|
68
|
+
return isNaN(vaultIndex) ? null : vaultIndex;
|
|
69
|
+
} catch {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
91
72
|
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { buildDailyStreakKey, buildLockupPrimeVaultKeyPrefix, buildNextCheckinEpochKey, extractLockupPrimeVaultIndexFromKey };
|
|
75
|
+
|
|
92
76
|
//# sourceMappingURL=storage-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-keys.js","
|
|
1
|
+
{"version":3,"file":"storage-keys.js","names":[],"sources":["../../../src/contracts/lockup-prime/storage-keys.ts"],"sourcesContent":["import { LockupPrime } from './helpers'\n\n/**\n * Generic function to build a storage key for an account\n */\nfunction buildStorageKey(\n\tkeyName: string,\n\taccountBinary: Uint8Array,\n\tappendColon = false\n): Uint8Array {\n\tconst storageKey = LockupPrime.getStorageKey(keyName)\n\tif (!storageKey) {\n\t\tthrow new Error(`Storage key '${keyName}' not found in ABI`)\n\t}\n\n\tconst prefix = LockupPrime.getKeyPrefix(keyName)\n\tif (!prefix) {\n\t\tthrow new Error(`Could not extract prefix for storage key '${keyName}'`)\n\t}\n\n\tconst prefixBytes = new TextEncoder().encode(prefix)\n\tconst resultLength = prefixBytes.length + accountBinary.length + (appendColon ? 1 : 0)\n\tconst result = new Uint8Array(resultLength)\n\n\tresult.set(prefixBytes, 0)\n\tresult.set(accountBinary, prefixBytes.length)\n\n\tif (appendColon) {\n\t\tresult[result.length - 1] = 0x3a // ':'\n\t}\n\n\treturn result\n}\n\n/**\n * Build vault key prefix for an account\n * Format: bic:lockup_prime:vault:{account_48bytes}:\n */\nexport function buildLockupPrimeVaultKeyPrefix(accountBinary: Uint8Array): Uint8Array {\n\treturn buildStorageKey('vault', accountBinary, true)\n}\n\n/**\n * Build daily streak key for an account\n * Format: bic:lockup_prime:daily_streak:{account_48bytes}\n */\nexport function buildDailyStreakKey(accountBinary: Uint8Array): Uint8Array {\n\treturn buildStorageKey('daily_streak', accountBinary, false)\n}\n\n/**\n * Build next check-in epoch key for an account\n * Format: bic:lockup_prime:next_checkin_epoch:{account_48bytes}\n */\nexport function buildNextCheckinEpochKey(accountBinary: Uint8Array): Uint8Array {\n\treturn buildStorageKey('next_checkin_epoch', accountBinary, false)\n}\n\n/**\n * Extract vault index from key\n * Key format: bic:lockup_prime:vault:{account_48bytes}:{vault_index}\n *\n * Note: When using prefix queries, the key might be:\n * - Full key: bic:lockup_prime:vault:{account_48bytes}:{vault_index}\n * - Suffix only: {vault_index} (just the part after the prefix)\n */\nexport function extractLockupPrimeVaultIndexFromKey(key: string | Uint8Array): number | null {\n\ttry {\n\t\tconst keyBytes = typeof key === 'string' ? new TextEncoder().encode(key) : key\n\t\tconst keyStr = typeof key === 'string' ? key : new TextDecoder().decode(key)\n\n\t\t// Check if key is vault data format FIRST\n\t\t// If key looks like vault data (e.g., '7d-13-10-100000000000'), don't try to extract index\n\t\tconst isVaultDataFormat = /^[^-]+-\\d+-\\d+-\\d+$/.test(keyStr)\n\t\tif (isVaultDataFormat) {\n\t\t\treturn null\n\t\t}\n\n\t\t// If the key is very short (likely just the vault index suffix from prefix query)\n\t\tif (keyBytes.length < 10) {\n\t\t\tconst directParse = parseInt(keyStr, 10)\n\t\t\tif (!isNaN(directParse) && directParse >= 0) {\n\t\t\t\treturn directParse\n\t\t\t}\n\t\t}\n\n\t\t// Find the last colon (':') byte (0x3A)\n\t\tlet lastColonIndex = -1\n\t\tfor (let i = keyBytes.length - 1; i >= 0; i--) {\n\t\t\tif (keyBytes[i] === 0x3a) {\n\t\t\t\tlastColonIndex = i\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\tif (lastColonIndex === -1 || lastColonIndex === keyBytes.length - 1) {\n\t\t\tconst wholeKeyParse = parseInt(keyStr, 10)\n\t\t\treturn isNaN(wholeKeyParse) ? null : wholeKeyParse\n\t\t}\n\n\t\t// Extract vault index from after the last colon\n\t\tconst indexBytes = keyBytes.slice(lastColonIndex + 1)\n\t\tconst indexStr = new TextDecoder().decode(indexBytes)\n\t\tconst vaultIndex = parseInt(indexStr, 10)\n\n\t\treturn isNaN(vaultIndex) ? null : vaultIndex\n\t} catch {\n\t\treturn null\n\t}\n}\n"],"mappings":";;;;;AAKA,SAAS,gBACR,SACA,eACA,cAAc,OACD;CAEb,IAAI,CADe,YAAY,cAAc,QAC9B,EACd,MAAM,IAAI,MAAM,gBAAgB,QAAQ,oBAAoB;CAG7D,MAAM,SAAS,YAAY,aAAa,QAAQ;CAChD,IAAI,CAAC,QACJ,MAAM,IAAI,MAAM,6CAA6C,QAAQ,GAAG;CAGzE,MAAM,cAAc,IAAI,aAAa,CAAC,OAAO,OAAO;CACpD,MAAM,eAAe,YAAY,SAAS,cAAc,UAAU,cAAc,IAAI;CACpF,MAAM,SAAS,IAAI,WAAW,aAAa;CAE3C,OAAO,IAAI,aAAa,EAAE;CAC1B,OAAO,IAAI,eAAe,YAAY,OAAO;CAE7C,IAAI,aACH,OAAO,OAAO,SAAS,KAAK;CAG7B,OAAO;;;;;;AAOR,SAAgB,+BAA+B,eAAuC;CACrF,OAAO,gBAAgB,SAAS,eAAe,KAAK;;;;;;AAOrD,SAAgB,oBAAoB,eAAuC;CAC1E,OAAO,gBAAgB,gBAAgB,eAAe,MAAM;;;;;;AAO7D,SAAgB,yBAAyB,eAAuC;CAC/E,OAAO,gBAAgB,sBAAsB,eAAe,MAAM;;;;;;;;;;AAWnE,SAAgB,oCAAoC,KAAyC;CAC5F,IAAI;EACH,MAAM,WAAW,OAAO,QAAQ,WAAW,IAAI,aAAa,CAAC,OAAO,IAAI,GAAG;EAC3E,MAAM,SAAS,OAAO,QAAQ,WAAW,MAAM,IAAI,aAAa,CAAC,OAAO,IAAI;EAK5E,IAD0B,sBAAsB,KAAK,OAChC,EACpB,OAAO;EAIR,IAAI,SAAS,SAAS,IAAI;GACzB,MAAM,cAAc,SAAS,QAAQ,GAAG;GACxC,IAAI,CAAC,MAAM,YAAY,IAAI,eAAe,GACzC,OAAO;;EAKT,IAAI,iBAAiB;EACrB,KAAK,IAAI,IAAI,SAAS,SAAS,GAAG,KAAK,GAAG,KACzC,IAAI,SAAS,OAAO,IAAM;GACzB,iBAAiB;GACjB;;EAIF,IAAI,mBAAmB,MAAM,mBAAmB,SAAS,SAAS,GAAG;GACpE,MAAM,gBAAgB,SAAS,QAAQ,GAAG;GAC1C,OAAO,MAAM,cAAc,GAAG,OAAO;;EAItC,MAAM,aAAa,SAAS,MAAM,iBAAiB,EAAE;EACrD,MAAM,WAAW,IAAI,aAAa,CAAC,OAAO,WAAW;EACrD,MAAM,aAAa,SAAS,UAAU,GAAG;EAEzC,OAAO,MAAM,WAAW,GAAG,OAAO;SAC3B;EACP,OAAO"}
|
|
@@ -1,116 +1,119 @@
|
|
|
1
|
+
//#region src/contracts/lockup-prime/types.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Type Definitions for LockupPrime smart contract
|
|
3
4
|
*
|
|
4
5
|
* Replaces Zod schemas with plain TypeScript types and type guards.
|
|
5
6
|
*/
|
|
6
7
|
/** Valid lockup prime tier keys */
|
|
7
|
-
|
|
8
|
+
type LockupPrimeTierKey = '7d' | '30d' | '90d' | '180d' | '365d';
|
|
8
9
|
/** Runtime array of all valid tier keys (for validation) */
|
|
9
|
-
|
|
10
|
+
declare const LOCKUP_PRIME_TIER_KEYS: readonly LockupPrimeTierKey[];
|
|
10
11
|
/** Type guard to check if a string is a valid tier key */
|
|
11
|
-
|
|
12
|
+
declare function isValidLockupPrimeTierKey(value: string): value is LockupPrimeTierKey;
|
|
12
13
|
/** Parsed LockupPrime vault */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
interface LockupPrimeVault {
|
|
15
|
+
tier: LockupPrimeTierKey;
|
|
16
|
+
multiplier: number;
|
|
17
|
+
unlockEpoch: number;
|
|
18
|
+
lockEpoch: number;
|
|
19
|
+
amount: number;
|
|
20
|
+
vaultIndex: number;
|
|
20
21
|
}
|
|
21
22
|
/** Intermediate parse result from raw vault data string */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
interface RawLockupPrimeVaultData {
|
|
24
|
+
tier: string;
|
|
25
|
+
multiplier: number;
|
|
26
|
+
unlockEpoch: number;
|
|
27
|
+
amountFlat: number;
|
|
27
28
|
}
|
|
28
29
|
/** Extended tier information with UI-specific fields */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
interface LockupTier {
|
|
31
|
+
tier: string;
|
|
32
|
+
epochs: number;
|
|
33
|
+
multiplier: number;
|
|
34
|
+
label: string;
|
|
35
|
+
durationDays: number;
|
|
36
|
+
rate?: number;
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
interface LockupPrimeAbiFunction {
|
|
39
|
+
type: 'function';
|
|
40
|
+
name: string;
|
|
41
|
+
inputs: LockupPrimeAbiInput[];
|
|
42
|
+
outputs: LockupPrimeAbiOutput[];
|
|
43
|
+
stateMutability: 'nonpayable' | 'payable' | 'view' | 'pure';
|
|
44
|
+
description?: string;
|
|
45
|
+
requirements?: string[];
|
|
46
|
+
storage?: {
|
|
47
|
+
reads?: LockupPrimeAbiStorageRead[];
|
|
48
|
+
writes?: LockupPrimeAbiStorageWrite[];
|
|
49
|
+
};
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
interface LockupPrimeAbiInput {
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
validation?: {
|
|
56
|
+
min?: string;
|
|
57
|
+
max?: string;
|
|
58
|
+
type?: string;
|
|
59
|
+
};
|
|
60
|
+
enum?: string[];
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
interface LockupPrimeAbiOutput {
|
|
63
|
+
name: string;
|
|
64
|
+
type: string;
|
|
65
|
+
description?: string;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
interface LockupPrimeAbiError {
|
|
68
|
+
name: string;
|
|
69
|
+
code: string;
|
|
70
|
+
description: string;
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
interface LockupPrimeAbiStorage {
|
|
73
|
+
keys: LockupPrimeAbiStorageKey[];
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
interface LockupPrimeAbiStorageKey {
|
|
76
|
+
name: string;
|
|
77
|
+
pattern: string;
|
|
78
|
+
type: 'mapping' | 'value' | 'array';
|
|
79
|
+
description: string;
|
|
80
|
+
valueFormat?: string;
|
|
81
|
+
valueSchema?: Record<string, any>;
|
|
82
|
+
query?: {
|
|
83
|
+
method: string;
|
|
84
|
+
endpoint: string;
|
|
85
|
+
prefix?: string;
|
|
86
|
+
key?: string;
|
|
78
87
|
description: string;
|
|
79
|
-
|
|
80
|
-
valueSchema?: Record<string, any>;
|
|
81
|
-
query?: {
|
|
82
|
-
method: string;
|
|
83
|
-
endpoint: string;
|
|
84
|
-
prefix?: string;
|
|
85
|
-
key?: string;
|
|
86
|
-
description: string;
|
|
87
|
-
};
|
|
88
|
+
};
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
interface LockupPrimeAbiStorageRead {
|
|
91
|
+
key: string;
|
|
92
|
+
description?: string;
|
|
93
|
+
value?: string;
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
interface LockupPrimeAbiStorageWrite {
|
|
96
|
+
key: string;
|
|
97
|
+
value?: string;
|
|
98
|
+
operation?: 'increment' | 'decrement' | 'create' | 'delete' | 'mint';
|
|
99
|
+
amount?: string;
|
|
100
|
+
duration?: string;
|
|
101
|
+
description?: string;
|
|
102
|
+
condition?: string;
|
|
103
|
+
writes?: LockupPrimeAbiStorageWrite[];
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
interface LockupPrimeAbiConstant {
|
|
106
|
+
tiers: Record<LockupPrimeTierKey, {
|
|
107
|
+
epochs: number;
|
|
108
|
+
multiplier: number;
|
|
109
|
+
label: string;
|
|
110
|
+
}>;
|
|
111
|
+
values: Record<string, string>;
|
|
111
112
|
}
|
|
112
113
|
/** @deprecated Use `LockupPrimeVault` instead */
|
|
113
|
-
|
|
114
|
+
type LockupPrimeVaultSchema = LockupPrimeVault;
|
|
114
115
|
/** @deprecated Use `LockupPrimeTierKey` instead */
|
|
115
|
-
|
|
116
|
+
type LockupTiersSchema = LockupPrimeTierKey;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { LOCKUP_PRIME_TIER_KEYS, LockupPrimeAbiConstant, LockupPrimeAbiError, LockupPrimeAbiFunction, LockupPrimeAbiInput, LockupPrimeAbiOutput, LockupPrimeAbiStorage, LockupPrimeAbiStorageKey, LockupPrimeAbiStorageRead, LockupPrimeAbiStorageWrite, LockupPrimeTierKey, LockupPrimeVault, LockupPrimeVaultSchema, LockupTier, LockupTiersSchema, RawLockupPrimeVaultData, isValidLockupPrimeTierKey };
|
|
116
119
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/contracts/lockup-prime/types.ts"],"mappings":";;AASA;;;;;KAAY,kBAAA;;cAGC,sBAAA,WAAiC,kBAAA;;iBAS9B,yBAAA,CAA0B,KAAA,WAAgB,KAAA,IAAS,kBAAA;AAAnE;AAAA,UAOiB,gBAAA;EAChB,IAAA,EAAM,kBAAA;EACN,UAAA;EACA,WAAA;EACA,SAAA;EACA,MAAA;EACA,UAAA;AAAA;AAND;AAAA,UAUiB,uBAAA;EAChB,IAAA;EACA,UAAA;EACA,WAAA;EACA,UAAA;AAAA;;UAIgB,UAAA;EAChB,IAAA;EACA,MAAA;EACA,UAAA;EACA,KAAA;EACA,YAAA;EACA,IAAA;AAAA;AAAA,UAKgB,sBAAA;EAChB,IAAA;EACA,IAAA;EACA,MAAA,EAAQ,mBAAA;EACR,OAAA,EAAS,oBAAA;EACT,eAAA;EACA,WAAA;EACA,YAAA;EACA,OAAA;IACC,KAAA,GAAQ,yBAAA;IACR,MAAA,GAAS,0BAAA;EAAA;AAAA;AAAA,UAIM,mBAAA;EAChB,IAAA;EACA,IAAA;EACA,WAAA;EACA,UAAA;IACC,GAAA;IACA,GAAA;IACA,IAAA;EAAA;EAED,IAAA;AAAA;AAAA,UAGgB,oBAAA;EAChB,IAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,UAGgB,mBAAA;EAChB,IAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,UAGgB,qBAAA;EAChB,IAAA,EAAM,wBAAA;AAAA;AAAA,UAGU,wBAAA;EAChB,IAAA;EACA,OAAA;EACA,IAAA;EACA,WAAA;EACA,WAAA;EACA,WAAA,GAAc,MAAA;EACd,KAAA;IACC,MAAA;IACA,QAAA;IACA,MAAA;IACA,GAAA;IACA,WAAA;EAAA;AAAA;AAAA,UAIe,yBAAA;EAChB,GAAA;EACA,WAAA;EACA,KAAA;AAAA;AAAA,UAGgB,0BAAA;EAChB,GAAA;EACA,KAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,WAAA;EACA,SAAA;EACA,MAAA,GAAS,0BAAA;AAAA;AAAA,UAGO,sBAAA;EAChB,KAAA,EAAO,MAAA,CAAO,kBAAA;IAAsB,MAAA;IAAgB,UAAA;IAAoB,KAAA;EAAA;EACxE,MAAA,EAAQ,MAAA;AAAA;;KAMG,sBAAA,GAAyB,gBAAA;;KAGzB,iBAAA,GAAoB,kBAAA"}
|