Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parentchainsInfo getter #118

Merged
merged 2 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.16.0-alpha.0"
"version": "0.16.0-alpha.1"
}
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.16.0-alpha.0",
"version": "0.16.0-alpha.1",
"main": "index.js",
"dependencies": {
"@encointer/types": "^0.16.0-alpha.0",
"@encointer/types": "^0.16.0-alpha.1",
"@polkadot/api": "^11.2.1",
"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.16.0-alpha.0",
"version": "0.16.0-alpha.1",
"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
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.16.0-alpha.0",
"version": "0.16.0-alpha.1",
"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.16.0-alpha.0",
"version": "0.16.0-alpha.1",
"main": "index.js",
"dependencies": {
"@encointer/node-api": "^0.16.0-alpha.0",
"@encointer/types": "^0.16.0-alpha.0",
"@encointer/util": "^0.16.0-alpha.0",
"@encointer/node-api": "^0.16.0-alpha.1",
"@encointer/types": "^0.16.0-alpha.1",
"@encointer/util": "^0.16.0-alpha.1",
"@peculiar/webcrypto": "^1.4.6",
"@polkadot/api": "^11.2.1",
"@polkadot/keyring": "^12.6.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/worker-api/src/integriteeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
IntegriteeTrustedCallSigned,
IntegriteeGetter,
GuessTheNumberInfo,
GuessTheNumberTrustedCall, GuessTheNumberPublicGetter, GuessTheNumberTrustedGetter, AttemptsArg,
GuessTheNumberTrustedCall, GuessTheNumberPublicGetter, GuessTheNumberTrustedGetter, AttemptsArg, ParentchainsInfo,
} from '@encointer/types';
import {
type ISubmittableGetter,
Expand Down Expand Up @@ -46,11 +46,11 @@ export class IntegriteeWorker extends Worker {
return await submittableTrustedGetter<IntegriteeWorker, AccountInfo>(this, 'account_info', accountOrPubKey, trustedGetterArgs, asString(accountOrPubKey), 'AccountInfo');
}

public parentchainsInfoGetter(shard: string): SubmittableGetter<IntegriteeWorker, GuessTheNumberInfo> {
public parentchainsInfoGetter(shard: string): SubmittableGetter<IntegriteeWorker, ParentchainsInfo> {
const publicGetterArgs = {
shard: shard,
}
return submittablePublicGetter<IntegriteeWorker, GuessTheNumberInfo>(this, 'parentchains_info', publicGetterArgs, null, 'ParentchainsInfo');
return submittablePublicGetter<IntegriteeWorker, ParentchainsInfo>(this, 'parentchains_info', publicGetterArgs, null, 'ParentchainsInfo');
}

public guessTheNumberInfoGetter(shard: string): SubmittableGetter<IntegriteeWorker, GuessTheNumberInfo> {
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.16.0-alpha.0, @encointer/node-api@workspace:packages/node-api":
"@encointer/node-api@npm:^0.16.0-alpha.1, @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.16.0-alpha.0"
"@encointer/types": "npm:^0.16.0-alpha.1"
"@polkadot/api": "npm:^11.2.1"
"@polkadot/util-crypto": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft

"@encointer/types@npm:^0.16.0-alpha.0, @encointer/types@workspace:packages/types":
"@encointer/types@npm:^0.16.0-alpha.1, @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.16.0-alpha.0, @encointer/util@workspace:packages/util":
"@encointer/util@npm:^0.16.0-alpha.1, @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.16.0-alpha.0"
"@encointer/types": "npm:^0.16.0-alpha.0"
"@encointer/util": "npm:^0.16.0-alpha.0"
"@encointer/node-api": "npm:^0.16.0-alpha.1"
"@encointer/types": "npm:^0.16.0-alpha.1"
"@encointer/util": "npm:^0.16.0-alpha.1"
"@peculiar/webcrypto": "npm:^1.4.6"
"@polkadot/api": "npm:^11.2.1"
"@polkadot/keyring": "npm:^12.6.2"
Expand Down
Loading