Skip to content

Commit

Permalink
Update reputation enum for pallets >= 6.1.0 (#103)
Browse files Browse the repository at this point in the history
* udpate reputation enum

* v0.14.0-alpha.0

* [GA] run encointer node in docker image in CI
  • Loading branch information
clangenb authored May 13, 2024
1 parent fdc979f commit ad709c4
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"publishConfig": {
"directory": "build"
},
"version": "0.13.1"
"version": "0.14.0-alpha.0"
}
4 changes: 2 additions & 2 deletions packages/node-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
},
"sideEffects": false,
"type": "module",
"version": "0.13.1",
"version": "0.14.0-alpha.0",
"main": "index.js",
"dependencies": {
"@encointer/types": "^0.13.1",
"@encointer/types": "^0.14.0-alpha.0",
"@polkadot/api": "^11.0.2",
"tslib": "^2.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.13.1",
"version": "0.14.0-alpha.0",
"main": "index.js",
"scripts": {
"generate:defs": "node --experimental-specifier-resolution=node --loader ts-node/esm ../../node_modules/.bin/polkadot-types-from-defs --package @encointer/types/interfaces --input ./src/interfaces",
Expand Down
7 changes: 6 additions & 1 deletion packages/types/src/interfaces/ceremony/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export default {
]
},
Reputation: {
_enum: ['Unverified', 'UnverifiedReputable', 'VerifiedUnlinked', 'VerifiedLinked']
_enum: {
unverified: null,
unverifiedReputable: null,
verifiedUnlinked: null,
verifiedLinked: 'CeremonyIndexType',
}
},
CommunityReputation: {
communityIdentifier: 'CommunityIdentifier',
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/interfaces/ceremony/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export interface Reputation extends Enum {
readonly isUnverifiedReputable: boolean;
readonly isVerifiedUnlinked: boolean;
readonly isVerifiedLinked: boolean;
readonly asVerifiedLinked: CeremonyIndexType;
readonly type: 'Unverified' | 'UnverifiedReputable' | 'VerifiedUnlinked' | 'VerifiedLinked';
}

Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"sideEffects": false,
"type": "module",
"types": "./index.d.ts",
"version": "0.13.1",
"version": "0.14.0-alpha.0",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
Expand Down
8 changes: 4 additions & 4 deletions packages/worker-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"sideEffects": false,
"type": "module",
"types": "./index.d.ts",
"version": "0.13.1",
"version": "0.14.0-alpha.0",
"main": "index.js",
"dependencies": {
"@encointer/node-api": "^0.13.1",
"@encointer/types": "^0.13.1",
"@encointer/util": "^0.13.1",
"@encointer/node-api": "^0.14.0-alpha.0",
"@encointer/types": "^0.14.0-alpha.0",
"@encointer/util": "^0.14.0-alpha.0",
"@peculiar/webcrypto": "^1.4.6",
"@polkadot/api": "^11.0.2",
"@polkadot/keyring": "^12.6.2",
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -755,18 +755,18 @@ __metadata:
languageName: node
linkType: hard

"@encointer/node-api@npm:^0.13.1, @encointer/node-api@workspace:packages/node-api":
"@encointer/node-api@npm:^0.14.0-alpha.0, @encointer/node-api@workspace:packages/node-api":
version: 0.0.0-use.local
resolution: "@encointer/node-api@workspace:packages/node-api"
dependencies:
"@encointer/types": "npm:^0.13.1"
"@encointer/types": "npm:^0.14.0-alpha.0"
"@polkadot/api": "npm:^11.0.2"
"@polkadot/util-crypto": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft

"@encointer/types@npm:^0.13.1, @encointer/types@workspace:packages/types":
"@encointer/types@npm:^0.14.0-alpha.0, @encointer/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@encointer/types@workspace:packages/types"
dependencies:
Expand All @@ -781,7 +781,7 @@ __metadata:
languageName: unknown
linkType: soft

"@encointer/util@npm:^0.13.1, @encointer/util@workspace:packages/util":
"@encointer/util@npm:^0.14.0-alpha.0, @encointer/util@workspace:packages/util":
version: 0.0.0-use.local
resolution: "@encointer/util@workspace:packages/util"
dependencies:
Expand All @@ -798,9 +798,9 @@ __metadata:
version: 0.0.0-use.local
resolution: "@encointer/worker-api@workspace:packages/worker-api"
dependencies:
"@encointer/node-api": "npm:^0.13.1"
"@encointer/types": "npm:^0.13.1"
"@encointer/util": "npm:^0.13.1"
"@encointer/node-api": "npm:^0.14.0-alpha.0"
"@encointer/types": "npm:^0.14.0-alpha.0"
"@encointer/util": "npm:^0.14.0-alpha.0"
"@peculiar/webcrypto": "npm:^1.4.6"
"@polkadot/api": "npm:^11.0.2"
"@polkadot/keyring": "npm:^12.6.2"
Expand Down

0 comments on commit ad709c4

Please sign in to comment.