protocol-substrate
protocol-substrate copied to clipboard
Webb protocol implementation in Substrate.
**Summary of changes** Changes introduced in this pull request: -Basic pallet & tests for rewards swapping AP & Rewards similar to Tornado anon mining AMM
**Issue summary** Still need to augment the extrinsic to support conditional wrap/unwrap when there is a valid token. We will use the largest `T::AssetId` to indicate NO unwrapping, i.e.: -...
https://github.com/webb-tools/protocol-substrate/blob/831117d132ed7dd867ae0acd5d27ea7a3f369932/pallets/signature-bridge/src/lib.rs#L222-L229
**Issue summary** The signature bridge is maintained by a `maintainer`, currently a uncompressed ECDSA public key. This key can potentially change from external pallets or logic such as through the...
Since we are using AccountId([u8; 32]) as out account ids, we should not use `truncate_and_pad` which will replace last 12 bytes with zeros, leaving for potential to collisions, which can...
# Overview - [ ] Add `withdrawal` test to xanchor, you can view existing tests [here](https://github.com/webb-tools/protocol-substrate/blob/main/pallets/xanchor/src/tests.rs#L222)
## Types - **r_id (resource ID)** - 32 byte string: - Last 6 bytes reserved for **chain id type** (2 bytes chain type + 4 bytes chain identifier) - Last...
We should consider consolidating our utility functions into one place that can be used by both Typescript/Rust repos. One way we can do this is by adding functions to `wasm-utils`...