Skip to content

Commit da38a75

Browse files
authored
Wiki describing how to add transaction (#152)
* quick wiki describing how to add transactions * added token paramters value
1 parent 58b9ed0 commit da38a75

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/Orchestrator.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
### Adding transactions
2+
3+
1) Use the truffle console to encode the function call as follows.
4+
5+
```
6+
# Sync tx
7+
web3.eth.abi.encodeFunctionCall({
8+
name: 'sync',
9+
type: 'function',
10+
inputs: [],
11+
}, []);
12+
13+
14+
# Gulp tx
15+
web3.eth.abi.encodeFunctionCall({
16+
name: 'gulp',
17+
type: 'function',
18+
inputs: [{
19+
type: 'address',
20+
name: 'token'
21+
}],
22+
}, ['0xD46bA6D942050d489DBd938a2C909A5d5039A161']);
23+
```
24+
25+
2) Admin invokes `addTransaction` with the destination contract address and `bytes`
26+
as encoded from step 1.
27+
28+
### Current list of transactions
29+
30+
1. UniswapV2 (AMPL-DAI): sync() => `0x08a564924C26D8289503bbaA18714B9C366dF9a5`: `0xfff6cae9`
31+
2. UniswapV2 (AMPL-ETH): sync() => `0xc5be99A02C6857f9Eac67BbCE58DF5572498F40c`: `0xfff6cae9`
32+
3. Balancer Bpool (AMPL-ETH): gulp('0xD46bA6D942050d489DBd938a2C909A5d5039A161') => `0xeefb11cA05c6F0d5252757Dbe35fFC4458108e89`: `0x8c28cbe8000000000000000000000000d46ba6d942050d489dbd938a2c909a5d5039a161`
33+
34+

0 commit comments

Comments
 (0)