Releases: gnosis/pm-js
v2.2.0
v2.1.1
v2.1.0
v2.0.1
v2.0.0
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
@gnosis.pm/gnosis-core-contracts
now apeerDependency
. Thanks @andre-meyer for giving me this idea (#114)- Custom contract set loading with
importContracts
(#110) - Lots of documentation work. Thanks @vaibhavchellani @zupino @sumukhshetty for the issue reports, and thanks @Uxio0 for cleaning up my mess 😅 (#49 #109 #112 #113 #115 bc8276b)
v1.4.0
v1.3.0
v1.2.0
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)