mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Move serai-client off serai-runtime, MIT licensing it
Uses a full-fledged serai-abi to do so. Removes use of UncheckedExtrinsic as a pointlessly (for us) length-prefixed block with a more complicated signing algorithm than advantageous. In the future, we should considering consolidating the various primitives crates. I'm not convinced we benefit from one primitives crate per pallet.
This commit is contained in:
@@ -207,7 +207,7 @@ async fn sign_test() {
|
||||
serai
|
||||
.publish(&serai.sign(
|
||||
&insecure_pair_from_name("Ferdie"),
|
||||
&SeraiCoins::transfer(address, balance),
|
||||
SeraiCoins::transfer(address, balance),
|
||||
0,
|
||||
Default::default(),
|
||||
))
|
||||
@@ -252,7 +252,7 @@ async fn sign_test() {
|
||||
// Verify the mint occurred as expected
|
||||
assert_eq!(
|
||||
serai.mint_events().await.unwrap(),
|
||||
vec![CoinsEvent::Mint { to: serai_addr.into(), balance }]
|
||||
vec![CoinsEvent::Mint { to: serai_addr, balance }]
|
||||
);
|
||||
assert_eq!(serai.coin_supply(Coin::Bitcoin).await.unwrap(), amount);
|
||||
assert_eq!(serai.coin_balance(Coin::Bitcoin, serai_addr).await.unwrap(), amount);
|
||||
@@ -269,7 +269,7 @@ async fn sign_test() {
|
||||
serai
|
||||
.publish(&serai.sign(
|
||||
&serai_pair,
|
||||
&SeraiCoins::burn_with_instruction(out_instruction.clone()),
|
||||
SeraiCoins::burn_with_instruction(out_instruction.clone()),
|
||||
0,
|
||||
Default::default(),
|
||||
))
|
||||
@@ -297,7 +297,7 @@ async fn sign_test() {
|
||||
assert_eq!(
|
||||
burn_events[0],
|
||||
CoinsEvent::BurnWithInstruction {
|
||||
from: serai_addr.into(),
|
||||
from: serai_addr,
|
||||
instruction: out_instruction.clone()
|
||||
}
|
||||
);
|
||||
|
||||
@@ -250,7 +250,7 @@ async fn mint_and_burn_test() {
|
||||
serai
|
||||
.publish(&serai.sign(
|
||||
&insecure_pair_from_name("Ferdie"),
|
||||
&SeraiCoins::transfer(address, balance),
|
||||
SeraiCoins::transfer(address, balance),
|
||||
0,
|
||||
Default::default(),
|
||||
))
|
||||
@@ -504,7 +504,7 @@ async fn mint_and_burn_test() {
|
||||
serai
|
||||
.publish(&serai.sign(
|
||||
serai_pair,
|
||||
&SeraiCoins::burn_with_instruction(out_instruction),
|
||||
SeraiCoins::burn_with_instruction(out_instruction),
|
||||
nonce,
|
||||
Default::default(),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user