Skip to content

Commit

Permalink
Fix: make NotesBucketInfo fields options (#121)
Browse files Browse the repository at this point in the history
* [types] fix `NotesBucketInfo` type

* change integration test such that it works on a blank worker state

* skip test again

* v0.17.0-alpha.1
  • Loading branch information
clangenb authored Nov 9, 2024
1 parent 8cf38d6 commit 3b980dc
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 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.17.0-alpha.0"
"version": "0.17.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.17.0-alpha.0",
"version": "0.17.0-alpha.1",
"main": "index.js",
"dependencies": {
"@encointer/types": "^0.17.0-alpha.0",
"@encointer/types": "^0.17.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.17.0-alpha.0",
"version": "0.17.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
4 changes: 2 additions & 2 deletions packages/types/src/interfaces/integriteeWorker/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export default {
bytes: 'u32',
},
NotesBucketInfo: {
first: 'BucketInfo',
last: 'BucketInfo',
first: 'Option<BucketInfo>',
last: 'Option<BucketInfo>',
},
GuessTheNumberPublicGetter: {
_enum: {
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/interfaces/integriteeWorker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ export interface NoteIndex extends u64 {}

/** @name NotesBucketInfo */
export interface NotesBucketInfo extends Struct {
readonly first: BucketInfo;
readonly last: BucketInfo;
readonly first: Option<BucketInfo>;
readonly last: Option<BucketInfo>;
}

/** @name NotesForArgs */
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.17.0-alpha.0",
"version": "0.17.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.17.0-alpha.0",
"version": "0.17.0-alpha.1",
"main": "index.js",
"dependencies": {
"@encointer/node-api": "^0.17.0-alpha.0",
"@encointer/types": "^0.17.0-alpha.0",
"@encointer/util": "^0.17.0-alpha.0",
"@encointer/node-api": "^0.17.0-alpha.1",
"@encointer/types": "^0.17.0-alpha.1",
"@encointer/util": "^0.17.0-alpha.1",
"@peculiar/webcrypto": "^1.4.6",
"@polkadot/api": "^11.2.1",
"@polkadot/keyring": "^12.6.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/worker-api/src/integriteeWorker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ describe('worker', () => {
it('should return balance transfer with note as note', async () => {
const shard = network.shard;
const result = await worker.trustedBalanceTransfer(
charlie,
alice,
shard,
network.mrenclave,
charlie.address,
alice.address,
charlie.address,
1100000000000,
"My test note"
);
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.17.0-alpha.0, @encointer/node-api@workspace:packages/node-api":
"@encointer/node-api@npm:^0.17.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.17.0-alpha.0"
"@encointer/types": "npm:^0.17.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.17.0-alpha.0, @encointer/types@workspace:packages/types":
"@encointer/types@npm:^0.17.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.17.0-alpha.0, @encointer/util@workspace:packages/util":
"@encointer/util@npm:^0.17.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.17.0-alpha.0"
"@encointer/types": "npm:^0.17.0-alpha.0"
"@encointer/util": "npm:^0.17.0-alpha.0"
"@encointer/node-api": "npm:^0.17.0-alpha.1"
"@encointer/types": "npm:^0.17.0-alpha.1"
"@encointer/util": "npm:^0.17.0-alpha.1"
"@peculiar/webcrypto": "npm:^1.4.6"
"@polkadot/api": "npm:^11.2.1"
"@polkadot/keyring": "npm:^12.6.2"
Expand Down

0 comments on commit 3b980dc

Please sign in to comment.