Eoslime
Search…
Version 2.0.0 [TypeScript]
[Typescript support && Codebase code coverage]

Breaking changes

  • Rename Account.addAuthorityKey to Account.addOnBehalfKey
  • Rename Account.executiveAuth to Account.authority
  • A new way to access contract actions and tables
1
const tokenContract = await eoslime.Contract.at('contract name');
2
// Before
3
tokenContract.issue(params, options)
4
// Now
5
tokenContract.actions.issue([params], options)
Copied!
1
const tokenContract = await eoslime.Contract.at('contract name');
2
// Before
3
tokenContract.balances()
4
// Now
5
tokenContract.tables.balances()
Copied!
  • Contract.on('deploy')
1
// Before
2
Contract.on('deploy', (tx, contract) => {}))
3
// Now
4
Contract.on('deploy', (contract, tx) => {}))
Copied!
  • Remove AuthorityAccount
  • Deprecate Account.createSubAuthority
1
const account = await eoslime.Account.createRandom();
2
3
// ------------ [ Before ] ------------
4
5
// Add subAuthority and return an instance of AuthorityAccount
6
const subAuthorityAccount = await account.createSubAuthority('subauthority');
7
8
// Add what actions the new authority could access
9
await subAuthorityAccount.setAuthorityAbilities([
10
{ action: 'produce', contract: faucetContract.name }
11
]);
12
13
// ------------ [ Now ] ------------
14
15
// Add subAuthority and return tx receipt
16
const tx = await account.addAuthority('subauthority');
17
18
// Add what actions the new authority could access
19
await account.setAuthorityAbilities('subauthority', [
20
{ action: 'produce', contract: faucetContract.name }
21
]);
22
23
const subAuthorityAccount = eoslime.Account.load('name', 'key', 'subauthority');
Copied!

News

  • Typescript support
  • Refactor CLI commands
  • Fix nodeos pre-loaded accounts to have different keys
  • Unit tests for all CLI commands
  • Return transaction receipts on every chain iteraction
  • Use logger instead console.log
  • Update Kylin network endpoint
  • Add Jungle3 support
  • Remove the check requiring an executor to be provided on contract instantiation. Without executor, one could fetch only the data from the contract tables
  • contract.action.sign(params)
1
// Before
2
contract.action.sign(params)
3
4
// Now
5
// Options are the same like the ones for contract.action(params, options)
6
contract.actions.action.sign([params], options)
Copied!
  • contract.action.getRawTransaction(params)
1
// Before
2
contract.action.getRawTransaction(params)
3
4
// Now
5
// Options are the same like the ones for contract.action(params, options)
6
contract.actions.action.getRawTransaction([params], options)
Copied!
Last modified 1yr ago
Copy link