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: make NotesBucketInfo fields options #121

Merged
merged 4 commits into from
Nov 9, 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.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
Loading