From 84c50fe09ba2fa2551aa1be72f93640c31444505 Mon Sep 17 00:00:00 2001 From: amanusk Date: Wed, 16 Dec 2020 13:34:40 +0200 Subject: [PATCH 1/2] Add rinkeby and kovan testnets --- src/ts/forwarders/forwarderFactory.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ts/forwarders/forwarderFactory.ts b/src/ts/forwarders/forwarderFactory.ts index c8f9648..2fe912f 100644 --- a/src/ts/forwarders/forwarderFactory.ts +++ b/src/ts/forwarders/forwarderFactory.ts @@ -11,6 +11,8 @@ export enum ReplayProtectionType { export enum ChainID { MAINNET = 1, ROPSTEN = 3, + RINKEBY = 4, + KOVAN = 42, } export enum ForwarderType { From 1c261834a36115e6b3081f6da4950ec792852fa9 Mon Sep 17 00:00:00 2001 From: amanusk Date: Wed, 16 Dec 2020 13:40:39 +0200 Subject: [PATCH 2/2] Update networks in proxy and gnosis --- gnosisSafe.md | 4 +++- proxyAccounts.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gnosisSafe.md b/gnosisSafe.md index 295dcd9..8238cec 100644 --- a/gnosisSafe.md +++ b/gnosisSafe.md @@ -19,9 +19,11 @@ import { ChainID } from "@anydotcrypto/metatransactions"; Our library currently supports MAINNET or ROPSTEN. ``` -// Blockchain ID (Mainnet = 3) +// Blockchain ID (Mainnet = 1) ChainID.MAINNET; ChainID.ROPSTEN; +ChainID.RINKEBY; +ChainID.KOVAN; ``` The Gnosis Safe library only supports NONCE replay protection. Check out our [wallet contracts](proxyAccounts) for more exotic replay protection. diff --git a/proxyAccounts.md b/proxyAccounts.md index 6db32a3..7fa1907 100644 --- a/proxyAccounts.md +++ b/proxyAccounts.md @@ -19,9 +19,11 @@ import { ChainID, ReplayProtectionType } from "@anydotcrypto/metatransactions"; Our library currently supports MAINNET or ROPSTEN. ``` -// Blockchain ID (Mainnet = 3) +// Blockchain ID (Mainnet = 1) ChainID.MAINNET; ChainID.ROPSTEN; +ChainID.RINKEBY; +ChainID.KOVAN; ``` Our library has three types of replay protection (and more in-depth information can be [found here](https://github.com/PISAresearch/metamask-comp)):