@indigo-labs/indigo-sdk 0.3.18 → 0.3.20

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.
@@ -156,17 +156,19 @@ describe('Treasury', () => {
156
156
  MAINNET_PROTOCOL_PARAMETERS,
157
157
  );
158
158
  context.lucid = await Lucid(context.emulator, 'Custom');
159
+
160
+ context.lucid.selectWallet.fromSeed(context.users.admin.seedPhrase);
159
161
  });
160
162
 
161
163
  test<MyContext>('Merge (3 lovelace UTxOs)', async (context: MyContext) => {
162
- context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
163
-
164
164
  const [sysParams, __] = await init(
165
165
  context.lucid,
166
166
  [iusdInitialAssetCfg()],
167
167
  context.emulator.slot,
168
168
  );
169
169
 
170
+ context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
171
+
170
172
  await benchmarkAndAwaitTx(
171
173
  'Treasury - Merge (3 lovelace UTxOs)',
172
174
  await treasuryMergeTx(context, sysParams, [
@@ -180,14 +182,14 @@ describe('Treasury', () => {
180
182
  });
181
183
 
182
184
  test<MyContext>('Merge (3 INDY UTxOs)', async (context: MyContext) => {
183
- context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
184
-
185
185
  const [sysParams, __] = await init(
186
186
  context.lucid,
187
187
  [iusdInitialAssetCfg()],
188
188
  context.emulator.slot,
189
189
  );
190
190
 
191
+ context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
192
+
191
193
  await benchmarkAndAwaitTx(
192
194
  'Treasury - Merge (3 INDY UTxOs)',
193
195
  await treasuryMergeTx(context, sysParams, [
@@ -210,14 +212,14 @@ describe('Treasury', () => {
210
212
  });
211
213
 
212
214
  test<MyContext>('Merge (fail, 1 lovelace, 2 INDY UTxOs)', async (context: MyContext) => {
213
- context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
214
-
215
215
  const [sysParams, __] = await init(
216
216
  context.lucid,
217
217
  [iusdInitialAssetCfg()],
218
218
  context.emulator.slot,
219
219
  );
220
220
 
221
+ context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
222
+
221
223
  await expectScriptFailure(
222
224
  'All inputs have to contain the same merging assets',
223
225
  treasuryMergeTx(context, sysParams, [
@@ -235,14 +237,14 @@ describe('Treasury', () => {
235
237
  });
236
238
 
237
239
  test<MyContext>('Split (12 assets)', async (context: MyContext) => {
238
- context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
239
-
240
240
  const [sysParams, __] = await init(
241
241
  context.lucid,
242
242
  [iusdInitialAssetCfg()],
243
243
  context.emulator.slot,
244
244
  );
245
245
 
246
+ context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
247
+
246
248
  await benchmarkAndAwaitTx(
247
249
  'Treasury - Split (12 assets)',
248
250
  await treasurySplitTx(
@@ -269,14 +271,14 @@ describe('Treasury', () => {
269
271
  });
270
272
 
271
273
  test<MyContext>('Split (fail, lovelace only)', async (context: MyContext) => {
272
- context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
273
-
274
274
  const [sysParams, __] = await init(
275
275
  context.lucid,
276
276
  [iusdInitialAssetCfg()],
277
277
  context.emulator.slot,
278
278
  );
279
279
 
280
+ context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
281
+
280
282
  await expectScriptFailure(
281
283
  'All inputs must have more than 1 non-ADA asset or 1 non-ADA asset and more than 2x ADA buffer',
282
284
  treasurySplitTx(context, sysParams, mkLovelacesOf(5_000_000n)),
@@ -284,14 +286,14 @@ describe('Treasury', () => {
284
286
  });
285
287
 
286
288
  test<MyContext>('Collect non-positive amount or negative extra lovelaces fails', async (context: MyContext) => {
287
- context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
288
-
289
289
  const [sysParams, __] = await init(
290
290
  context.lucid,
291
291
  [iusdInitialAssetCfg()],
292
292
  context.emulator.slot,
293
293
  );
294
294
 
295
+ context.lucid.selectWallet.fromSeed(context.users.user.seedPhrase);
296
+
295
297
  const treasuryUTxO = await findRandomTreasuryUtxoWithOnlyAda(
296
298
  context.lucid,
297
299
  sysParams,