From fcdf7b6f475166ad5304ec7f64586edbd590d7e7 Mon Sep 17 00:00:00 2001 From: Olivier van den Biggelaar Date: Fri, 5 Oct 2018 13:25:49 +0100 Subject: [PATCH] Adding Argent Specs --- DEMOS/Demo-meta-tx-format.md | 1 + DEMOS/argent.im.md | 48 ++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 DEMOS/argent.im.md diff --git a/DEMOS/Demo-meta-tx-format.md b/DEMOS/Demo-meta-tx-format.md index 8ae5eab..0155fcb 100644 --- a/DEMOS/Demo-meta-tx-format.md +++ b/DEMOS/Demo-meta-tx-format.md @@ -19,6 +19,7 @@ For now, join us on telegram for the discussion -> Found in the agenda above ^^^ [Gnosis Safe](safe.gnosis.io.md) +[Argent Wallet](https://github.com/Meta-tx/Harbour-MVP/blob/master/DEMOS/argent.im.md) ## Important problems to solve diff --git a/DEMOS/argent.im.md b/DEMOS/argent.im.md new file mode 100644 index 0000000..65605e3 --- /dev/null +++ b/DEMOS/argent.im.md @@ -0,0 +1,48 @@ +# Argent + +**Project Name**: + +- Argent Wallet + +**Links of project**: + +- https://www.argent.im +- https://medium.com/argenthq/decentralised-and-seedless-wallet-recovery-5fcf7dddd78d + +## Code + +### Meta-tx format + +#### Format +``` +{ + address module, // the address of the wallet module that the relayer needs to call + address wallet, // the address of the wallet on behalf of which the call is made + bytes data, // the data of the call + uint256 nonce, // a nonce to prevent replayability of the transaction + bytes signature // the concatenated signatures of the agents authorizing the transaction + uint256 gasPrice, // the gasPrice to use to refund the relayer (0 if no refund required) +} +``` + + +### Contract interface + Execution function +``` +contract RelayerModule { + function execute( + address _wallet, + bytes _data, + uint256 _nonce, + bytes _signatures, + uint256 _gasPrice + ) + external + returns (bool success); +} +contract SomeWalletModule is RelayerModule { + +} +``` + + +