@indigo-labs/indigo-sdk 0.1.21 → 0.1.23
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/.github/workflows/ci.yml +3 -8
- package/.github/workflows/test.yml +44 -0
- package/dist/index.d.mts +670 -1291
- package/dist/index.d.ts +670 -1291
- package/dist/index.js +2240 -4669
- package/dist/index.mjs +2221 -4618
- package/eslint.config.mjs +1 -7
- package/package.json +4 -9
- package/src/contracts/cdp.ts +746 -0
- package/src/contracts/collector.ts +98 -0
- package/src/contracts/gov.ts +1 -0
- package/src/contracts/interest-oracle.ts +149 -0
- package/src/contracts/{lrp/transactions.ts → lrp.ts} +14 -14
- package/src/contracts/{one-shot/transactions.ts → one-shot.ts} +3 -3
- package/src/contracts/stability-pool.ts +690 -0
- package/src/contracts/staking.ts +348 -0
- package/src/contracts/treasury.ts +112 -0
- package/src/helpers/asset-helpers.ts +63 -0
- package/src/{utils → helpers}/helper-txs.ts +0 -1
- package/src/{utils/utils.ts → helpers/helpers.ts} +10 -0
- package/src/{contracts/interest-oracle/helpers.ts → helpers/interest-oracle.ts} +9 -37
- package/src/{contracts/stability-pool/helpers.ts → helpers/stability-pool-helpers.ts} +6 -110
- package/src/helpers/staking-helpers.ts +94 -0
- package/src/helpers/time-helpers.ts +4 -0
- package/src/{utils → helpers}/value-helpers.ts +0 -10
- package/src/index.ts +33 -38
- package/src/{validators → scripts}/cdp-creator-validator.ts +50 -4
- package/src/{validators → scripts}/cdp-validator.ts +5 -3
- package/src/{validators → scripts}/collector-validator.ts +3 -2
- package/src/scripts/execute-validator.ts +52 -0
- package/src/{validators/governance-validator.ts → scripts/gov-validator.ts} +40 -3
- package/src/{validators → scripts}/interest-oracle-validator.ts +20 -4
- package/src/scripts/lrp-validator.ts +40 -0
- package/src/{contracts/one-shot/scripts.ts → scripts/one-shot-policy.ts} +1 -1
- package/src/scripts/poll-manager-validator.ts +52 -0
- package/src/{validators → scripts}/poll-shard-validator.ts +43 -3
- package/src/{contracts/price-oracle/scripts.ts → scripts/price-oracle-validator.ts} +4 -1
- package/src/{validators → scripts}/stability-pool-validator.ts +57 -4
- package/src/{validators → scripts}/staking-validator.ts +3 -2
- package/src/{validators → scripts}/treasury-validator.ts +3 -2
- package/src/{validators → scripts}/version-record-policy.ts +23 -4
- package/src/{validators/execute-validator.ts → scripts/version-registry.ts} +11 -3
- package/src/types/generic.ts +60 -78
- package/src/{contracts/cdp-creator/types.ts → types/indigo/cdp-creator.ts} +4 -6
- package/src/types/indigo/cdp.ts +88 -0
- package/src/types/indigo/execute.ts +21 -0
- package/src/types/indigo/gov.ts +51 -0
- package/src/{contracts/interest-oracle/types.ts → types/indigo/interest-oracle.ts} +1 -1
- package/src/{contracts/lrp/types.ts → types/indigo/lrp.ts} +2 -2
- package/src/types/indigo/poll-manager.ts +21 -0
- package/src/types/indigo/poll-shard.ts +16 -0
- package/src/{contracts/price-oracle/types.ts → types/indigo/price-oracle.ts} +4 -16
- package/src/types/indigo/stability-pool.ts +233 -0
- package/src/types/indigo/staking.ts +99 -0
- package/src/{contracts/version-registry/types.ts → types/indigo/version-record.ts} +1 -1
- package/src/types/on-chain-decimal.ts +0 -22
- package/src/types/system-params.ts +11 -22
- package/tests/datums.test.ts +108 -125
- package/tests/endpoints/initialize.ts +338 -240
- package/tests/hash-checks.test.ts +21 -26
- package/tests/indigo-test-helpers.ts +55 -1
- package/tests/initialize.test.ts +5 -10
- package/tests/interest-calculations.test.ts +18 -18
- package/tests/interest-oracle.test.ts +18 -20
- package/tests/lrp.test.ts +65 -191
- package/tests/queries/governance-queries.ts +16 -19
- package/tests/queries/iasset-queries.ts +23 -46
- package/tests/queries/interest-oracle-queries.ts +6 -3
- package/tests/queries/lrp-queries.ts +2 -2
- package/tests/queries/price-oracle-queries.ts +22 -5
- package/tests/queries/stability-pool-queries.ts +8 -10
- package/tests/queries/staking-queries.ts +19 -28
- package/tests/stability-pool.test.ts +71 -186
- package/tests/staking.test.ts +23 -30
- package/tests/test-helpers.ts +2 -11
- package/tsconfig.json +1 -3
- package/vitest.config.ts +1 -1
- package/src/contracts/cdp/helpers.ts +0 -167
- package/src/contracts/cdp/scripts.ts +0 -33
- package/src/contracts/cdp/transactions.ts +0 -1310
- package/src/contracts/cdp/types.ts +0 -161
- package/src/contracts/cdp-creator/scripts.ts +0 -39
- package/src/contracts/collector/scripts.ts +0 -32
- package/src/contracts/collector/transactions.ts +0 -44
- package/src/contracts/execute/scripts.ts +0 -48
- package/src/contracts/execute/types.ts +0 -57
- package/src/contracts/gov/helpers.ts +0 -157
- package/src/contracts/gov/scripts.ts +0 -34
- package/src/contracts/gov/transactions.ts +0 -1224
- package/src/contracts/gov/types-new.ts +0 -115
- package/src/contracts/gov/types.ts +0 -89
- package/src/contracts/interest-oracle/scripts.ts +0 -18
- package/src/contracts/interest-oracle/transactions.ts +0 -149
- package/src/contracts/lrp/scripts.ts +0 -27
- package/src/contracts/poll/helpers.ts +0 -55
- package/src/contracts/poll/scripts.ts +0 -72
- package/src/contracts/poll/types-poll-manager.ts +0 -38
- package/src/contracts/poll/types-poll-shard.ts +0 -38
- package/src/contracts/poll/types-poll.ts +0 -88
- package/src/contracts/price-oracle/transactions.ts +0 -112
- package/src/contracts/stability-pool/scripts.ts +0 -46
- package/src/contracts/stability-pool/transactions.ts +0 -660
- package/src/contracts/stability-pool/types-new.ts +0 -208
- package/src/contracts/stability-pool/types.ts +0 -42
- package/src/contracts/staking/helpers.ts +0 -116
- package/src/contracts/staking/scripts.ts +0 -41
- package/src/contracts/staking/transactions.ts +0 -268
- package/src/contracts/staking/types-new.ts +0 -81
- package/src/contracts/staking/types.ts +0 -41
- package/src/contracts/treasury/scripts.ts +0 -37
- package/src/contracts/treasury/transactions.ts +0 -44
- package/src/contracts/treasury/types.ts +0 -55
- package/src/contracts/version-registry/scripts.ts +0 -29
- package/src/contracts/version-registry/types-new.ts +0 -19
- package/src/contracts/vesting/helpers.ts +0 -267
- package/src/types/evolution-schema-options.ts +0 -16
- package/src/utils/bigint-utils.ts +0 -7
- package/src/utils/time-helpers.ts +0 -4
- package/src/validators/lrp-validator.ts +0 -7
- package/src/validators/poll-manager-validator.ts +0 -7
- package/src/validators/version-registry-validator.ts +0 -7
- package/tests/cdp.test.ts +0 -1565
- package/tests/gov.test.ts +0 -1874
- package/tests/mock/assets-mock.ts +0 -59
- package/tests/queries/cdp-queries.ts +0 -144
- package/tests/queries/collector-queries.ts +0 -26
- package/tests/queries/execute-queries.ts +0 -46
- package/tests/queries/poll-queries.ts +0 -97
- package/tests/queries/treasury-queries.ts +0 -19
- package/tests/utils/asserts.ts +0 -13
- package/tests/utils/index.ts +0 -50
- /package/src/{utils → helpers}/indigo-helpers.ts +0 -0
- /package/src/{utils → helpers}/lucid-utils.ts +0 -0
- /package/src/{contracts/price-oracle/helpers.ts → helpers/price-oracle-helpers.ts} +0 -0
- /package/src/{contracts/one-shot/types.ts → types/one-shot.ts} +0 -0
package/tests/datums.test.ts
CHANGED
|
@@ -2,34 +2,27 @@ import { describe, expect, it } from 'vitest';
|
|
|
2
2
|
import {
|
|
3
3
|
CDPContent,
|
|
4
4
|
IAssetContent,
|
|
5
|
-
|
|
5
|
+
parseCDPDatum,
|
|
6
|
+
parseIAssetDatum,
|
|
6
7
|
parseInterestOracleDatum,
|
|
7
8
|
parsePriceOracleDatum,
|
|
9
|
+
parseStabilityPoolDatum,
|
|
10
|
+
serialiseCDPDatum,
|
|
8
11
|
serialiseFeedInterestOracleRedeemer,
|
|
9
12
|
serialiseIAssetDatum,
|
|
10
13
|
serialiseInterestOracleDatum,
|
|
11
14
|
serialisePriceOracleDatum,
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
serialiseStabilityPoolDatum,
|
|
16
|
+
StabilityPoolContent,
|
|
14
17
|
} from '../src/index';
|
|
15
|
-
import { fromHex, fromText } from '@lucid-evolution/lucid';
|
|
16
18
|
import {
|
|
17
19
|
parseStakingManagerDatum,
|
|
18
|
-
|
|
20
|
+
parseStakingPositionDatum,
|
|
19
21
|
serialiseStakingDatum,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from '../src/
|
|
23
|
-
import {
|
|
24
|
-
AccountContent,
|
|
25
|
-
parseAccountDatum,
|
|
26
|
-
parseSnapshotEpochToScaleToSumDatum,
|
|
27
|
-
parseStabilityPoolDatum,
|
|
28
|
-
serialiseStabilityPoolDatum,
|
|
29
|
-
SnapshotEpochToScaleToSumContent,
|
|
30
|
-
StabilityPoolContent,
|
|
31
|
-
} from '../src/contracts/stability-pool/types-new';
|
|
32
|
-
import { option as O } from 'fp-ts';
|
|
22
|
+
StakingManagerContent,
|
|
23
|
+
StakingPositionContent,
|
|
24
|
+
} from '../src/types/indigo/staking';
|
|
25
|
+
import { fromText } from '@lucid-evolution/lucid';
|
|
33
26
|
|
|
34
27
|
describe('Datum checks', () => {
|
|
35
28
|
it('Price Oracle', () => {
|
|
@@ -90,8 +83,8 @@ describe('Datum checks', () => {
|
|
|
90
83
|
},
|
|
91
84
|
},
|
|
92
85
|
};
|
|
93
|
-
expect(
|
|
94
|
-
expect(
|
|
86
|
+
expect(serialiseCDPDatum(activeCDPObject)).toEqual(activeCDPDatum);
|
|
87
|
+
expect(parseCDPDatum(activeCDPDatum)).toEqual(activeCDPObject);
|
|
95
88
|
|
|
96
89
|
// Frozen CDP
|
|
97
90
|
const frozenCDPDatum =
|
|
@@ -107,8 +100,8 @@ describe('Datum checks', () => {
|
|
|
107
100
|
},
|
|
108
101
|
},
|
|
109
102
|
};
|
|
110
|
-
expect(
|
|
111
|
-
expect(
|
|
103
|
+
expect(parseCDPDatum(frozenCDPDatum)).toEqual(frozenCDPObject);
|
|
104
|
+
expect(serialiseCDPDatum(frozenCDPObject)).toEqual(frozenCDPDatum);
|
|
112
105
|
});
|
|
113
106
|
|
|
114
107
|
it('iAsset', () => {
|
|
@@ -118,8 +111,8 @@ describe('Datum checks', () => {
|
|
|
118
111
|
assetName: fromText('iETH'),
|
|
119
112
|
price: {
|
|
120
113
|
Oracle: {
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
oracleNft: {
|
|
115
|
+
asset: {
|
|
123
116
|
currencySymbol:
|
|
124
117
|
'6c9497ffd7e8baf86c3c0d6fcd43c524daa49ad5fceba26d715468e9',
|
|
125
118
|
tokenName: fromText('iETH20221219191302'),
|
|
@@ -145,13 +138,13 @@ describe('Datum checks', () => {
|
|
|
145
138
|
nextIAsset: fromText('iSOL'),
|
|
146
139
|
};
|
|
147
140
|
expect(serialiseIAssetDatum(assetObject)).toEqual(assetDatum);
|
|
148
|
-
expect(
|
|
141
|
+
expect(parseIAssetDatum(assetDatum)).toEqual(assetObject);
|
|
149
142
|
});
|
|
150
143
|
|
|
151
144
|
it('Staking Manager', () => {
|
|
152
145
|
const stakingManagerDatum =
|
|
153
146
|
'd8799fd8799f1b000009c04704429ed8799f1b000001402802fec1ffffff';
|
|
154
|
-
const stakingManagerObject:
|
|
147
|
+
const stakingManagerObject: StakingManagerContent = {
|
|
155
148
|
totalStake: 10721429832350n,
|
|
156
149
|
managerSnapshot: {
|
|
157
150
|
snapshotAda: 1375060819649n,
|
|
@@ -161,40 +154,40 @@ describe('Datum checks', () => {
|
|
|
161
154
|
expect(parseStakingManagerDatum(stakingManagerDatum)).toEqual(
|
|
162
155
|
stakingManagerObject,
|
|
163
156
|
);
|
|
164
|
-
expect(
|
|
165
|
-
|
|
166
|
-
|
|
157
|
+
expect(
|
|
158
|
+
serialiseStakingDatum({
|
|
159
|
+
StakingManager: { content: stakingManagerObject },
|
|
160
|
+
}),
|
|
161
|
+
).toEqual(stakingManagerDatum);
|
|
167
162
|
});
|
|
168
163
|
|
|
169
164
|
it('Staking Position', () => {
|
|
170
165
|
const stakingPositionDatum =
|
|
171
|
-
'
|
|
172
|
-
const stakingPositionObject:
|
|
173
|
-
owner:
|
|
174
|
-
|
|
175
|
-
),
|
|
176
|
-
lockedAmount: new Map([
|
|
177
|
-
[83n, { voteAmt: 1552686331n, votingEnd: 1744135722000n }],
|
|
178
|
-
]),
|
|
166
|
+
'd87a9fd8799f581cd45527a088a92fd31f42b5777fe39c40f810e0f79d13c6d77eeb7f43bf1853d8799f1a5c8c1cfb1b0000019616971410ffffd8799f1b0000013a7ed5b0fdffffff';
|
|
167
|
+
const stakingPositionObject: StakingPositionContent = {
|
|
168
|
+
owner: 'd45527a088a92fd31f42b5777fe39c40f810e0f79d13c6d77eeb7f43',
|
|
169
|
+
lockedAmount: new Map([[83n, [1552686331n, 1744135722000n]]]),
|
|
179
170
|
positionSnapshot: {
|
|
180
171
|
snapshotAda: 1350747664637n,
|
|
181
172
|
},
|
|
182
173
|
};
|
|
183
174
|
|
|
184
|
-
expect(
|
|
175
|
+
expect(parseStakingPositionDatum(stakingPositionDatum)).toEqual(
|
|
185
176
|
stakingPositionObject,
|
|
186
177
|
);
|
|
187
|
-
expect(
|
|
188
|
-
|
|
189
|
-
|
|
178
|
+
expect(
|
|
179
|
+
serialiseStakingDatum({
|
|
180
|
+
StakingPosition: { content: stakingPositionObject },
|
|
181
|
+
}),
|
|
182
|
+
).toEqual(stakingPositionDatum);
|
|
190
183
|
});
|
|
191
184
|
|
|
192
185
|
it('Stability Pool', () => {
|
|
193
186
|
const stabilityPoolDatum =
|
|
194
187
|
'd8799fd8799f4469555344d8799fd8799f1b0a37ad5c452ffb2affd8799fc24d1f94ac680ce6b48ea21bb122baffd8799f1b0fde3bba456cd5deff0100ffa2d8799f0000ffd8799f1b084494e2d23b2b7effd8799f0100ffd8799f1b0fde3bba456cd5deffffff';
|
|
195
188
|
const stabilityPoolObject: StabilityPoolContent = {
|
|
196
|
-
asset:
|
|
197
|
-
|
|
189
|
+
asset: fromText('iUSD'),
|
|
190
|
+
snapshot: {
|
|
198
191
|
productVal: { value: 736247675907734314n },
|
|
199
192
|
depositVal: { value: 2502085246000826468068228145850n },
|
|
200
193
|
sumVal: { value: 1143417026613401054n },
|
|
@@ -210,94 +203,84 @@ describe('Datum checks', () => {
|
|
|
210
203
|
stabilityPoolObject,
|
|
211
204
|
);
|
|
212
205
|
expect(
|
|
213
|
-
serialiseStabilityPoolDatum({
|
|
206
|
+
serialiseStabilityPoolDatum({
|
|
207
|
+
StabilityPool: { content: stabilityPoolObject },
|
|
208
|
+
}),
|
|
214
209
|
).toEqual(stabilityPoolDatum);
|
|
215
210
|
});
|
|
216
211
|
|
|
217
|
-
it('Stability Pool Account', () => {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
request: null,
|
|
233
|
-
};
|
|
212
|
+
// it('Stability Pool Account', () => {
|
|
213
|
+
// const stabilityPoolDatum =
|
|
214
|
+
// 'd87a9fd8799f581c12c646d4c6d7a35c14788d15f0f6142f6148975d8932592fbd625f674469555344d8799fd8799f1b0a37ad5c452ffb2affd8799fc24c39fa2838b1f7dd38267f0a6dffd8799f1b0fde3b75c28ab489ff0100ffd87a80ffff';
|
|
215
|
+
// const stabilityPoolObject: AccountContent = {
|
|
216
|
+
// owner: '12c646d4c6d7a35c14788d15f0f6142f6148975d8932592fbd625f67',
|
|
217
|
+
// asset: fromText('iUSD'),
|
|
218
|
+
// snapshot: {
|
|
219
|
+
// productVal: { value: 736247675907734314n },
|
|
220
|
+
// depositVal: { value: 17943066955221270821727046253n },
|
|
221
|
+
// sumVal: { value: 1143416732359767177n },
|
|
222
|
+
// epoch: 1n,
|
|
223
|
+
// scale: 0n,
|
|
224
|
+
// },
|
|
225
|
+
// request: null,
|
|
226
|
+
// };
|
|
234
227
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
});
|
|
228
|
+
// expect(parseAccountDatum(stabilityPoolDatum)).toEqual(stabilityPoolObject);
|
|
229
|
+
// expect(
|
|
230
|
+
// serialiseStabilityPoolDatum({ Account: { content: stabilityPoolObject } }),
|
|
231
|
+
// ).toEqual(stabilityPoolDatum);
|
|
232
|
+
// });
|
|
240
233
|
|
|
241
|
-
it('Stability Pool Account w/ Adjust Request', () => {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
'75a4f9204b9308a92a09b0e22b94125e56f24b73bb85e2795f176c6a',
|
|
269
|
-
),
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
},
|
|
274
|
-
},
|
|
275
|
-
};
|
|
234
|
+
// it('Stability Pool Account w/ Adjust Request', () => {
|
|
235
|
+
// const stabilityPoolDatum =
|
|
236
|
+
// 'd87a9fd8799f581c90e40129516ee738fa6aa9183cf57b45c46946496e1590d34ca1b15c4469555344d8799fd8799f1b0a374472be304a62ffd8799fc24b01aef07f96e5ce00f80000ffd8799f1b0f88aa07a1048079ff0100ffd8799fd87a9f3a0007c359d8799fd8799f581c90e40129516ee738fa6aa9183cf57b45c46946496e1590d34ca1b15cffd8799fd8799fd8799f581c75a4f9204b9308a92a09b0e22b94125e56f24b73bb85e2795f176c6affffffffffffffff';
|
|
237
|
+
// const stabilityPoolObject: AccountContent = {
|
|
238
|
+
// owner: '90e40129516ee738fa6aa9183cf57b45c46946496e1590d34ca1b15c',
|
|
239
|
+
// asset: fromText('iUSD'),
|
|
240
|
+
// snapshot: {
|
|
241
|
+
// productVal: { value: 736132323706161762n },
|
|
242
|
+
// depositVal: { value: 2035054000000000000000000n },
|
|
243
|
+
// sumVal: { value: 1119331457144488057n },
|
|
244
|
+
// epoch: 1n,
|
|
245
|
+
// scale: 0n,
|
|
246
|
+
// },
|
|
247
|
+
// request: {
|
|
248
|
+
// Adjust: {
|
|
249
|
+
// amount: -508762n,
|
|
250
|
+
// outputAddress: {
|
|
251
|
+
// paymentCredential: {
|
|
252
|
+
// PublicKeyCredential: ['90e40129516ee738fa6aa9183cf57b45c46946496e1590d34ca1b15c'],
|
|
253
|
+
// },
|
|
254
|
+
// stakeCredential: {
|
|
255
|
+
// Inline: [{PublicKeyCredential: ['75a4f9204b9308a92a09b0e22b94125e56f24b73bb85e2795f176c6a']}],
|
|
256
|
+
// },
|
|
257
|
+
// },
|
|
258
|
+
// },
|
|
259
|
+
// },
|
|
260
|
+
// };
|
|
276
261
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
});
|
|
262
|
+
// expect(parseAccountDatum(stabilityPoolDatum)).toEqual(stabilityPoolObject);
|
|
263
|
+
// expect(
|
|
264
|
+
// serialiseStabilityPoolDatum({ Account: { content: stabilityPoolObject } }),
|
|
265
|
+
// ).toEqual(stabilityPoolDatum);
|
|
266
|
+
// });
|
|
282
267
|
|
|
283
|
-
it('Stability Pool SnapshotEpochToScaleToSum', () => {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
268
|
+
// it('Stability Pool SnapshotEpochToScaleToSum', () => {
|
|
269
|
+
// const stabilityPoolDatum =
|
|
270
|
+
// 'd87b9fd8799f4469555344bfd8799f0000ffd8799f1b084494e2d23b2b7effd8799f0100ffd8799f1b0fde3bba456cd5deffffffff';
|
|
271
|
+
// const stabilityPoolObject: SnapshotEpochToScaleToSumContent = {
|
|
272
|
+
// asset: fromText('iUSD'),
|
|
273
|
+
// snapshot: new Map([
|
|
274
|
+
// [{ epoch: 0n, scale: 0n }, { sum: 595764752630360958n }],
|
|
275
|
+
// [{ epoch: 1n, scale: 0n }, { sum: 1143417026613401054n }],
|
|
276
|
+
// ]),
|
|
277
|
+
// };
|
|
293
278
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
).toEqual(stabilityPoolDatum);
|
|
302
|
-
});
|
|
279
|
+
// expect(parseSnapshotEpochToScaleToSumDatum(stabilityPoolDatum)).toEqual(stabilityPoolObject);
|
|
280
|
+
// expect(
|
|
281
|
+
// serialiseStabilityPoolDatum({
|
|
282
|
+
// SnapshotEpochToScaleToSum: { content: stabilityPoolObject },
|
|
283
|
+
// }),
|
|
284
|
+
// ).toEqual(stabilityPoolDatum);
|
|
285
|
+
// });
|
|
303
286
|
});
|