Skip to content

Releases: gnosis/pm-js

v2.2.0

18 Jan 20:03
@cag cag
Compare
Choose a tag to compare

Changelog

v2.1.1

04 Dec 15:30
@cag cag
Compare
Choose a tag to compare

Changelog

  • Experimented with web3 versions 😵 (#125 #128 )
  • Docs now redirect to Apollo (da62a8f)
  • Added creation transaction hash onto contract abstraction instances (#127 #129 )

v2.1.0

08 May 21:07
@cag cag
Compare
Choose a tag to compare

This should have been the last release -_-

Changelog

  • Finish renaming stuff (#122)

v2.0.1

08 May 20:55
@cag cag
Compare
Choose a tag to compare

Changelog

  • Moved docs to Read the Docs (#117)
  • Docs now express install in a Powershell-compatible manner (#118)
  • Typo fix - thanks @fvictorio! (#119)
  • Some calculation edge cases considered (#120)
  • Renamed the whole project (#121)

v2.0.0

05 Apr 16:07
@cag cag
Compare
Choose a tag to compare

Migration guide from v1.x to v2.x

Hey, welcome to the first set of breaking changes! They're not terribly radical, and require only a few small steps to ensure a smooth transition. Here's the lowdown:

@gnosis.pm/gnosis-core-contracts is now a peerDependency

This mainly affects Node.JS users. Make sure that you install and list the core contracts package separately as a dependency in your project's package.json:

npm install --save @gnosis.pm/gnosis-core-contracts

With v2.x, we plan on supporting a new set of the Gnosis prediction market contracts. With that said, we don't plan on dropping support for the existing contract set! We will leave it up to your application to decide which contract set you wish to use. Stay tuned for the release of v2 of gnosis-contracts, when we will release a corresponding version here which will be compatible.

For the users of the precompiled gnosis.js file, the core contract artifacts are already compiled into the file, so you shouldn't have to change anything.

olympia-token contracts no longer a dependency

This change affects all users depending on the olympiaToken or olympiaAddressRegistry instance variables. If desired, the original Olympia-related contracts now must be imported separately:

npm install --save @gnosis.pm/olympia-token

To emulate 1.x behavior, the following additional code will have to be included:

import olympiaArtifacts from '@gnosis.pm/olympia-token'
// or for CJS:
// const olympiaArtifacts = require('@gnosis.pm/olympia-token')

// ... then, once you have a gnosis = await Gnosis.create(...)
await gnosis.importContracts(olympiaArtifacts, {
    OlympiaToken: 'olympiaToken',
    AddressRegistry: 'olympiaAddressRegistry',
})

Changelog

v1.4.0

29 Mar 14:47
@cag cag
Compare
Choose a tag to compare

Changelog

  • Web3 1.0 beta support! Thanks for pointing out the possibility @mmvsha (#111)

v1.3.0

20 Mar 22:55
@cag cag
Compare
Choose a tag to compare

Changelog

  • Correction to doc links. Thanks @ronidavelman! (#105)
  • Bump versions. BigDecimal is at v10 now (#107)
  • Split up the giant test file into smaller test files (#108)
  • Tweak docs a little as well (#108)

v1.2.0

09 Mar 23:32
@cag cag
Compare
Choose a tag to compare

Changelog

  • Docs are better! Thanks @Uxio0 (#98 #102)
  • Docs are now on ReadTheDocs! Thanks @germartinez (#103)
  • Docs now actually kinda work as prescribed! Thanks @anxolin and @zupino for the issue reports (#100)
  • This is now under the MIT License (#102)
  • npm run dev can be run without a provider already running with the contracts deployed and the artifacts referenced by the app containing network locations (#102)

v1.1.3

21 Feb 21:00
@cag cag
Compare
Choose a tag to compare

Changelog

  • Update docs to be copy-pastable into node shell by wrapping awaited operations in async functions (all thanks to @denisgranha) (#97)

v1.1.2

18 Feb 14:06
@cag cag
Compare
Choose a tag to compare

Changelog

  • Garden variety dependency updates (#92)
  • Some more docs in readme about gas stats (#93)
  • Fixed issue with webpack bundle not including gas stats causing some calls to fail (#90 #95)