Skip to content

Commit ef12faa

Browse files
committed
Revert "fixed seeding + returned seed.rs binary + fmt"
This reverts commit a2207d5.
1 parent 09c65fa commit ef12faa

File tree

2 files changed

+8
-153
lines changed

2 files changed

+8
-153
lines changed

sentry/bin/seed.rs

Lines changed: 0 additions & 122 deletions
This file was deleted.

sentry/src/application.rs

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -316,16 +316,13 @@ pub mod seed {
316316
use axum::{Extension, Json};
317317

318318
use adapter::{
319-
ethereum::{
320-
test_util::{Erc20Token, Outpace},
321-
ChainTransport,
322-
},
319+
ethereum::{test_util::{Erc20Token, Outpace}, ChainTransport},
323320
Dummy, Ethereum,
324321
};
325322
use primitives::{
326323
sentry::campaign_create::CreateCampaign,
327324
spender::Spendable,
328-
test_util::{ADVERTISER, ADVERTISER_2, CAMPAIGNS, LEADER},
325+
test_util::{ADVERTISER, ADVERTISER_2, CAMPAIGNS, LEADER, FOLLOWER},
329326
unified_num::FromWhole,
330327
BigNum, Campaign, ChainOf, Deposit, UnifiedNum, ValidatorId,
331328
};
@@ -423,48 +420,28 @@ pub mod seed {
423420
let outpace_1337 = Outpace::new(&web3_chain_1337, campaign_1.chain.outpace);
424421
let web3_chain_1 = campaign_3.chain.init_web3()?;
425422
let token_1 = Erc20Token::new(&web3_chain_1, campaign_3.token.clone());
426-
let outpace_1 = Outpace::new(&web3_chain_1, campaign_3.chain.outpace);
423+
let outpace_1 = Outpace::new(&web3_chain_1, campaign_1.chain.outpace);
427424

428425
token_1337
429-
.set_balance(
430-
LEADER.to_bytes(),
431-
ADVERTISER.to_bytes(),
432-
&BigNum::with_precision(3_000_000, token_1337.info.precision.into()),
433-
)
426+
.set_balance(LEADER.to_bytes(), ADVERTISER.to_bytes(), &BigNum::with_precision(3_000_000, token_1337.info.precision.into()))
434427
.await
435428
.expect("Failed to set balance");
436429
outpace_1337
437-
.deposit(
438-
&campaign_1.context.channel,
439-
ADVERTISER.to_bytes(),
440-
&BigNum::with_precision(1_000_000, token_1337.info.precision.into()),
441-
)
430+
.deposit(&campaign_1.context.channel, ADVERTISER.to_bytes(), &BigNum::with_precision(1_000_000, token_1337.info.precision.into()))
442431
.await
443432
.expect("Should deposit funds");
444433
outpace_1337
445-
.deposit(
446-
&campaign_2.context.channel,
447-
ADVERTISER.to_bytes(),
448-
&BigNum::with_precision(1_000_000, token_1337.info.precision.into()),
449-
)
434+
.deposit(&campaign_2.context.channel, ADVERTISER.to_bytes(), &BigNum::with_precision(1_000_000, token_1337.info.precision.into()))
450435
.await
451436
.expect("Should deposit funds");
452437

453438
token_1
454-
.set_balance(
455-
LEADER.to_bytes(),
456-
ADVERTISER_2.to_bytes(),
457-
&BigNum::with_precision(2_000_000, token_1.info.precision.into()),
458-
)
439+
.set_balance(LEADER.to_bytes(), ADVERTISER_2.to_bytes(), &BigNum::with_precision(2_000_000, token_1.info.precision.into()))
459440
.await
460441
.expect("Failed to set balance");
461442

462443
outpace_1
463-
.deposit(
464-
&campaign_3.context.channel,
465-
ADVERTISER_2.to_bytes(),
466-
&BigNum::with_precision(1_000_000, token_1.info.precision.into()),
467-
)
444+
.deposit(&campaign_3.context.channel, ADVERTISER_2.to_bytes(), &BigNum::with_precision(1_000_000, token_1.info.precision.into()))
468445
.await
469446
.expect("Should deposit funds");
470447

0 commit comments

Comments
 (0)