1
1
[ ![ npm version] ( https://badge.fury.io/js/eoslime.svg )] ( https://badge.fury.io/js/eoslime.svg )
2
2
[ ![ codecov] ( https://codecov.io/gh/LimeChain/eoslime/branch/master/graph/badge.svg )] ( https://codecov.io/gh/LimeChain/eoslime )
3
+ [ ![ support typescript] ( https://badgen.net/badge/Support/TypeScript/cyan )] ( https://badgen.net/badge/Support/TypeScript/cyan )
3
4
4
5
eoslime.js
5
6
============
@@ -23,13 +24,103 @@ Thanks these wonderful people for helping improve EOSLime
23
24
<td align="center"><a href="https://github.com/Avm07"><img src="https://avatars1.githubusercontent.com/u/24969602?s=400&u=c2ab916dba523284faa1310b363fed7ef27634f2&v=4" width="100px;" alt=""/><br/><sub><b>Artem</b></sub></a><br/>
24
25
<a href="https://github.com/LimeChain/eoslime/issues/53" title="Ideas">💡</a>
25
26
</td>
27
+ <td align="center"><a href="https://github.com/prcolaco"><img src="https://avatars2.githubusercontent.com/u/3846701?s=460&v=4" width="100px;" alt=""/><br/><sub><b>Pedro Reis Colaço</b></sub></a><br/>
28
+ <a href="https://github.com/LimeChain/eoslime/pulls/prcolaco" title="Code">💻</a>
29
+ </td>
26
30
</tr >
27
31
</table >
28
32
29
33
30
34
31
35
# Change log
32
36
37
+ ## Version 2.0.0 change log
38
+ ## [ Typescript support && Codebase code coverage]
39
+ ### Breaking changes
40
+ * Rename ** Account.addAuthorityKey** to ** Account.addOnBehalfKey**
41
+ * Rename ** Account.executiveAuth** to ** Account.authority**
42
+ * New way to access contract actions and tables
43
+ ** Actions**
44
+ ```
45
+ const tokenContract = await eoslime.Contract.at('contract name');
46
+ // Before
47
+ tokenContract.issue(params, options)
48
+ // Now
49
+ tokenContract.actions.issue([params], options)
50
+ ```
51
+ **Tables**
52
+ ```
53
+ const tokenContract = await eoslime.Contract.at('contract name');
54
+ // Before
55
+ tokenContract.balances()
56
+ // Now
57
+ tokenContract.tables.balances()
58
+ ```
59
+ * Contract.on('deploy')
60
+ ```
61
+ // Before
62
+ Contract.on('deploy', (tx, contract) => {}))
63
+ // Now
64
+ Contract.on('deploy', (contract, tx) => {}))
65
+ ```
66
+ * Remove AuthorityAccount
67
+ * Deprecate **Account.createSubAuthority**
68
+ * Replace **createSubAuthority** with **addAuthority**
69
+ ```
70
+ const account = await eoslime.Account.createRandom();
71
+
72
+ // ------------ [ Before ] ------------
73
+
74
+ // Add subAuthority and return an instance of AuthorityAccount
75
+ const subAuthorityAccount = await account.createSubAuthority('subauthority');
76
+
77
+ // Add what actions the new authority could access
78
+ await subAuthorityAccount.setAuthorityAbilities([
79
+ { action: 'produce', contract: faucetContract.name }
80
+ ]);
81
+
82
+ // ------------ [ Now ] ------------
83
+
84
+ // Add subAuthority and return tx receipt
85
+ const tx = await account.addAuthority('subauthority');
86
+
87
+ // Add what actions the new authority could access
88
+ await account.setAuthorityAbilities('subauthority', [
89
+ { action: 'produce', contract: faucetContract.name }
90
+ ]);
91
+
92
+ const subAuthorityAccount = eoslime.Account.load('name', 'key', 'subauthority');
93
+ ```
94
+
95
+ ### News
96
+ * Typescript support
97
+ * Refactor CLI commands
98
+ * Fix nodeos pre-loaded accounts to have different keys
99
+ * Unit tests for all CLI commands
100
+ * Return transaction receipts on every chain iteraction
101
+ * Use logger instead console.log
102
+ * Update Kylin network endpoint
103
+ * Add Jungle3 support
104
+ * Remove the check requiring an executor to be provided on contract instantiation. Without executor, one could fetch only the data from the contract tables
105
+ * contract.action.sign(params)
106
+ ```
107
+ // Before
108
+ contract.action.sign(params)
109
+
110
+ // Now
111
+ // Options are the same like the ones for contract.action(params, options)
112
+ contract.actions.action.sign([params], options)
113
+ ```
114
+ * contract.action.getRawTransaction(params)
115
+ ```
116
+ // Before
117
+ contract.action.getRawTransaction(params)
118
+
119
+ // Now
120
+ // Options are the same like the ones for contract.action(params, options)
121
+ contract.actions.action.getRawTransaction([params], options)
122
+ ```
123
+
33
124
## Version 1.0.4 change log
34
125
35
126
* **eoslime nodeos**
@@ -91,7 +182,7 @@ EOSLIME was able to be initialized only with pre-configured providers connection
91
182
const eoslime = require('eoslime').init('bos', { url: 'Your url', chainId: 'Your chainId' });
92
183
// ... any other supported netwok ...
93
184
```
94
- * ** Allow read-only contracts** - You are able now to instantiate a contract withouth a signer/executor and read the contract's tables
185
+ * **Allow read-only contracts** - You are able now to instantiate a contract without a signer/executor and read the contract's tables
95
186
* **Add Tutorial section in the documentation**
96
187
* **Describe how examples in the documentation could be run**
97
188
* **Increase the code coverage from 46% to 90+ %**
0 commit comments