Skip to content

Commit

Permalink
Slight documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Apr 24, 2024
1 parent d1474e9 commit d57fef8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions coins/ethereum/src/deployer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl Deployer {
let to_block = BlockNumberOrTag::Latest;

// Find the first log using this init code (where the init code is binding to the key)
// TODO: Make an abstraction for event filtering (de-duplicating common code)
let filter =
Filter::new().from_block(0).to_block(to_block).address(Address::from(Self::address()));
let filter = filter.event_signature(abi::Deployment::SIGNATURE_HASH);
Expand Down
1 change: 1 addition & 0 deletions processor/src/multisigs/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub enum ScannerEvent<N: Network> {
outputs: Vec<N::Output>,
},
// Eventuality completion found on-chain
// TODO: Move this from a tuple
Completed(
Vec<u8>,
usize,
Expand Down
1 change: 1 addition & 0 deletions processor/src/multisigs/scheduler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub trait Scheduler<N: Network>: Sized + Clone + PartialEq + Debug {
txn: &mut D::Transaction<'_>,
utxos: Vec<N::Output>,
payments: Vec<Payment<N>>,
// TODO: Tighten this to multisig_for_any_change
key_for_any_change: <N::Curve as Ciphersuite>::G,
force_spend: bool,
) -> Vec<Plan<N>>;
Expand Down
12 changes: 7 additions & 5 deletions spec/integrations/Ethereum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

### Addresses

Ethereum addresses are 20-byte hashes.
Ethereum addresses are 20-byte hashes, identical to Ethereum proper.

### In Instructions

Ethereum In Instructions are present via being appended to the calldata
transferring funds to Serai. `origin` is automatically set to the party from
which funds are being transferred. For an ERC20, this is `from`. For ETH, this
is the caller.
In Instructions may be created in one of two ways.

1) Have an EOA call `transfer` or `transferFrom` on an ERC20, appending the
encoded InInstruction directly after the calldata. `origin` defaults to the
party transferred from.
2) Call `inInstruction` on the Router. `origin` defaults to `msg.sender`.

### Out Instructions

Expand Down

0 comments on commit d57fef8

Please sign in to comment.