-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathinput.js
74 lines (65 loc) · 1.67 KB
/
input.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//define your account addresss
const WANADDR = '0xf796ec9ae2491216163f1fe409a26f32a7abf8ba';
const ETHADDR = '0x19879b986d8bc1849804f46b1d4f4c6242df068c';
const E20TOKENADDR = '0x00f58d6d585f84b2d7267940cede30ce2fe6eae8';
const SYMBOL = 'MKR';
const WSYMBOL = 'WMKR';
//define your wanchain gas parameter
const WAN_PARA = {
gasPrice: '180',
gasLimit: '470000',
password: 'qazwsx'
};
//define your ethereum gas parameter
const ETH_PARA = {
gasPrice: '10',
gasLimit: '470000',
password: 'qazwsx'
};
// ============================== Instance INPUT ======================================
const ethInboundInput = {
lockInput: Object.assign({}, {
from: ETHADDR,
to: WANADDR,
amount: '0.00113',
}, ETH_PARA),
redeemInput: WAN_PARA,
revokeInput: ETH_PARA
};
const ethOutboundInput = {
lockInput: Object.assign({}, {
from: WANADDR,
to: ETHADDR,
amount: '0.0003',
}, WAN_PARA),
redeemInput: ETH_PARA,
revokeInput: WAN_PARA
};
const e20InboundInput = {
symbol: SYMBOL,
tokenAddr: E20TOKENADDR,
lockInput: Object.assign({}, {
from: ETHADDR,
to: WANADDR,
amount: '0.00113',
}, ETH_PARA),
redeemInput: WAN_PARA,
revokeInput: ETH_PARA
}
const e20OutboundInput = {
symbol: SYMBOL,
tokenAddr: E20TOKENADDR,
lockInput: Object.assign({}, {
from: WANADDR,
to: ETHADDR,
amount: '0.05'
}, WAN_PARA),
redeemInput: ETH_PARA,
revokeInput: WAN_PARA
}
module.exports = {
e20InboundInput,
e20OutboundInput,
ethInboundInput,
ethOutboundInput,
};