Skip to content

Commit ad9d4c4

Browse files
Release 2.0.0 experimental.33 (#475)
* publish in daostack namespace * Package version 2.0.0-experimental.32 * fix react-native import error * Package version 2.0.0-experimental.33 * Package version 2.0.0-experimental.33 * fix release script
1 parent 5b7d6d5 commit ad9d4c4

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@daostack/arc.js",
3-
"version": "2.0.0-experimental.32",
3+
"version": "2.0.0-experimental.33",
44
"description": "",
55
"keywords": [],
66
"main": "dist/lib/index.js",

release.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ echo "Creating a new release"
44
npm ci
55
package_version=$(cat package.json | jq -r '.version')
66

7-
# publish to npm
8-
echo "publish to npm"
9-
npm publish --access public
10-
117
# tag on github
128
echo "create tag ${package_version}"
13-
git ci -a -m "Package version ${package_version}"
9+
git ci -a -m "Package version ${package_version}" --allow-empty
1410
git tag -a $package_version -m "Release of version $package_version"
1511
git push --tags
1612

13+
# publish to npm
14+
echo "publish to npm"
15+
npm publish --access public
16+
1717
# done
1818
echo "Done"
1919
echo "Please update the releases tab here: https://github.com/daostack/arc.js/releases"

src/plugins/pluginManager/plugin.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Interface } from 'ethers/utils'
1+
// we cannot import from 'ethers/utils` as this will run into a compile error in react-native
2+
import { utils } from 'ethers'
23
import gql from 'graphql-tag'
34
import {
45
Address,
@@ -138,15 +139,15 @@ export class PluginManagerPlugin extends ProposalPlugin<
138139

139140
if (options.add) {
140141

141-
let abiInterface: Interface
142+
let abiInterface: utils.Interface
142143

143144
if (options.add.pluginName === 'Competition') {
144-
abiInterface = new Interface(this.context.getABI({
145+
abiInterface = new utils.Interface(this.context.getABI({
145146
abiName: 'ContributionRewardExt',
146147
version: LATEST_ARC_VERSION
147148
}))
148149
} else {
149-
abiInterface = new Interface(this.context.getABI({
150+
abiInterface = new utils.Interface(this.context.getABI({
150151
abiName: options.add.pluginName,
151152
version: LATEST_ARC_VERSION
152153
}))

0 commit comments

Comments
 (0)