You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ See [docs](https://docs.token.im/tokenlon-mmsk/)
6
6
7
7
## Setup
8
8
9
-
Require Node.JS v10 as runtime.
9
+
Require Node.JS v12 as runtime.
10
10
11
11
Program setup,
12
12
- Create a wallet as order signer, and save it as keystore or private key
@@ -20,8 +20,15 @@ Program setup,
20
20
- PROVIDER_URL, point to ethereum node, like your infura endpoint
21
21
- WALLET_ADDRESS, as your signer wallet address
22
22
- WALLET_PRIVATE_KEY, private key of above wallet, or use WALLET_KEYSTORE
23
+
- WALLET_TYPE, a market maker's wallet smart contract.
24
+
- types.WalletType.MMP_VERSION_4 (compatible with PMM protocol, see [example contract](https://gist.github.com/NIC619/a3db1a743175bf592f2db983f17680dd#file-mmpv4-sol-L1236))
25
+
- types.WalletType.MMP_VERSION_5
26
+
- types.WalletType.ERC1271
27
+
- types.WalletType.EOA
28
+
- SIGNING_URL, If you wanna sign orders in your own service instead of the mmsk,
29
+
please set the SIGNING_URL to your service endpoint. the mmsk would post every unsigned RFQ orders to your service. Remember to set the WALLET_ADDRESS as well.
23
30
- HTTP_SERVER_ENDPOINT, your backend http server
24
-
- CHAIN_ID, 1 for mainnet, 42 for testnet(kovan)
31
+
- CHAIN_ID, 1 for mainnet, 5 for testnet(Goerli)
25
32
- Testing with `node app/check.js`
26
33
- Register contract address & signer address & MMSK server url to Tokenlon team
0 commit comments