Skip to content

Releases: JoinColony/colonyJS

v1.6.0

07 Sep 10:11
Compare
Choose a tag to compare

Maintenance

  • General updates for interacting with ColonyNetwork contracts.

Enhancements

  • All events logged during method calls are now parsed according to their specifications on the ContractClient, without specifying event handlers (@colony/colony-js-adapter-ethers, @colony/colony-js-contract-client, @colony/colony-js-client)
  • Event data in method responses is now provided in a flat format (where property names might collide) and in a format nested under the event name; e.g. { taskId: 1, potId: 2 } becomes { taskId: 1, potId: 2, TaskAdded: { taskId: 1 }, PotAdded: { potId: 2 } }.
  • Event property names are now more specific (e.g. taskId rather than id) (@colony/colony-js-client)

Documentation

  • The documentation has been updated to include more information about contract events, and the event data available in method calls.

v1.5.4

05 Jul 13:08
Compare
Choose a tag to compare

Released Thu, 05 Jul 2018 13:07:42 GMT

Features

  • Adapter.getTransactionReceipt now waits for an in-progress transaction to be mined before attempting to get the receipt (@colony/colony-js-adapter-ethers, @colony/colony-js-client)
  • Adapter.getTransactionReceipt and Adapter.waitForTransaction now accept a timeout argument (default: 5 minutes) (@colony/colony-js-adapter-ethers)

Bug fixes

  • Partial empty hex strings (e.g. 0x0) are now padded to full-length, which resolves an issue with EthersAdapter (@colony/colony-js-contract-client)
  • The isEmptyHexString utility function now evaluates the input type (@colony/colony-js-utils)

Maintenance

  • Add extra validation for ColonyClient.createTask; the given domain ID for the task is now confirmed to exist before proceeding (@colony/colony-js-client)
  • Default values for methods are now specified separately from the parameters; this simplfies the parameter conversion (@colony/colony-js-contract-client)
  • Add a DomainAdded event, which is emitted when calling ColonyClient.addDomain (@colony/colony-js-client)
  • Add a PotAdded event, which is emitted when calling ColonyClient.addDomain and ColonyClient.createTask (@colony/colony-js-client)
  • Add the TaskDeliverableSubmitted and TaskWorkRatingRevealed events, which are available to listen on via ColonyClient.events (@colony/colony-js-client)

v1.5.3

22 Jun 17:40
Compare
Choose a tag to compare

Bug fixes

  • Remove the address property of the Wallet interface, because it is not universal (@colony/colony-js-adapter)
  • Clarify that the getAddress method of the Wallet interface is asynchronous
  • Use the getAddress method to get the current address when signing multisig operations (@colony/colony-js-contract-client)
  • Add a hexString type to fix the type conversion of the secret created by generateSecret (@colony/colony-js-contract-client, @colony/colony-js-client)

v1.5.2

21 Jun 15:39
Compare
Choose a tag to compare

Released Tue, 21 June 2018 15:36:06 GMT

Bug fixes

  • getTokenInfo won't throw anymore if one of the properties symbol, name or decimals is not implemented on the token contract. Instead it will just report null for the values which are not defined (@colony/colony-js-client)
  • Fixed a bug where authority.getUserRole would only report null for every role by converting the output values from hex numbers first (@colony/colony-js-client)

Documentation

  • Clarified the naming of parameters involving token addresses (@colony/colony-js-contract-client, @colony/colony-js-client)

v1.5.1

19 Jun 19:17
Compare
Choose a tag to compare

Bug fixes

  • Actually wait for transaction receipt in Token contract deployment. This fixes issues with real-life environments like testnets or mainnet (@colony/colony-js-client)

v1.5.0

19 Jun 12:09
Compare
Choose a tag to compare

Released Tue, 19 June 2018 12:01:38 GMT

New features

  • Add getTokenInfo caller to TokenClient to get the token's name, symbol and decimals (@colony/colony-js-contract-client, @colony/colony-js-client)

Enhancements

  • Wait for in-progress transactions when getting the transaction receipt (@colony/colony-js-contract-client, @colony/colony-js-adapter-ethers)
  • Made the default timeout for sending transactions dependent on the network: 1 hour for mainnet, 5 minutes otherwise (@colony/colony-js-contract-client)

v1.4.1

15 Jun 16:06
Compare
Choose a tag to compare

Bug fixes

  • Enabled the networkId to be passed from the contract loading query through to the loader transform function; reintroduced support for specifying the networkId in truffleTransform (@colony/colony-js-contract-loader)

v1.4.0

15 Jun 10:02
Compare
Choose a tag to compare

New features

  • Added new ContractEvent events subscription to ContractClient, allowing for simple events subscription (@colony/colony-js-contract-client)
  • Added new task lifecycle events to ColonyClient, using new event subscriptions (@colony/colony-js-contract-client)
  • Added support for sending multisig operations for tasks with one signature alone (when no other signatures are required) (@colony/colony-js-client)
  • Added support for per-task nonce values for multisig operations; multisig operations can now be run in parallel (for different tasks) (@colony/colony-js-client)
  • Added TokenClient, a means of interacting with a colony's token contract (@colony/colony-js-client)
  • Added AuthorityClient, a means of interacting with a colony's authority contract (@colony/colony-js-client)
  • Get token and authority when initializing a ColonyClient (@colony/colony-js-client)

Enhancements

  • Refactored contract parameter validation and conversion to allow for events subscriptions (@colony/colony-js-contract-client)
  • Refactored the contracts interface and EthersContract to allow for events subscription with optional transaction hashes (@colony/colony-js-adapter, @colony/colony-js-adapter-ethers)
  • Ignore parameters that aren't in the spec when validating parameters (@colony/colony-js-contract-client)

Documentation

  • Specify which users can call addGlobalSkill, addDomain, setTaskRoleUser, setTaskDomain and setTaskSkill (@colony/colony-js-client)

v1.3.0

07 Jun 19:10
Compare
Choose a tag to compare

New features

Added colony-js-contract-loader-fs: load contracts from the local file-system in node.

v1.2.1

05 Jun 13:07
Compare
Choose a tag to compare

Documentation

  • Updated 'Getting Started', removed 'Quickstart' and reordered sections

Enhancements

  • Validation errors in contract methods now contain the method name (@colony/colony-js-contract-client)
  • Add a release command for the project, streamlined prepublish hooks, simplified and improved babel config

Bug fixes

  • Fixed a bug where methods with default values were not validated properly (@colony/colony-js-contract-client)
  • Fixed a bug where timestamps were not converted correctly (@colony/colony-js-contract-client)