Skip to content

Commit

Permalink
Bump deps (w/ latest util) (#5729)
Browse files Browse the repository at this point in the history
* Bump deps (w/ latest util)

* CHANGELOG

* Fix typo
  • Loading branch information
jacogr committed Sep 15, 2023
1 parent 700812a commit c0d5408
Show file tree
Hide file tree
Showing 19 changed files with 299 additions and 291 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Contributed:
- Add runtime `AssetConversionApi` (Thanks to https://github.com/jsidorenko)
- Adjust types for runtime `AssetConversionApi` (Thanks to https://github.com/jsidorenko)
- Expand test cases for `Int` conversions (Thanks to https://github.com/peetzweg)
- Add `isEthereum` to chain properties (Thanks to https://github.com/fgamundi)
- Allow RiscV contracts via check (Thanks to https://github.com/statictype)

Changes:

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.76.22",
"@polkadot/dev": "^0.76.25",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.5.7"
"@types/node": "^20.6.0"
},
"resolutions": {
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-augment": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/api-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@polkadot/rpc-core": "10.9.2-25-x",
"@polkadot/types": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/types-create": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "10.9.2-25-x",
"@polkadot/keyring": "^12.4.2"
"@polkadot/keyring": "^12.5.1"
}
}
10 changes: 3 additions & 7 deletions packages/api-contract/src/base/Code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { AbiConstructor, BlueprintOptions } from '../types.js';
import type { MapConstructorExec } from './types.js';

import { SubmittableResult } from '@polkadot/api';
import { BN_ZERO, compactAddLength, isU8a, isUndefined, isWasm, u8aEq, u8aToU8a } from '@polkadot/util';
import { BN_ZERO, compactAddLength, isRiscV, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';

import { applyOnEvent } from '../util.js';
import { Base } from './Base.js';
Expand All @@ -34,12 +34,8 @@ export class CodeSubmittableResult<ApiType extends ApiTypes> extends Submittable
}
}

function isRiscV (bytes: unknown): bytes is Uint8Array {
const ELF_MAGIC = new Uint8Array([0x7f, 0x45, 0x4c, 0x46]); // ELF magic bytes: 0x7f, 'E', 'L', 'F'

return isU8a(bytes) && u8aEq(bytes.subarray(0, 4), ELF_MAGIC);
}

// checks to see if the code (or at least the header)
// is a valid/supported format
function isValidCode (code: Uint8Array): boolean {
return isWasm(code) || isRiscV(code);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@polkadot/rpc-core": "10.9.2-25-x",
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@polkadot/api-augment": "10.9.2-25-x",
"@polkadot/api-base": "10.9.2-25-x",
"@polkadot/api-derive": "10.9.2-25-x",
"@polkadot/keyring": "^12.4.2",
"@polkadot/keyring": "^12.5.1",
"@polkadot/rpc-augment": "10.9.2-25-x",
"@polkadot/rpc-core": "10.9.2-25-x",
"@polkadot/rpc-provider": "10.9.2-25-x",
Expand All @@ -33,8 +33,8 @@
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/types-create": "10.9.2-25-x",
"@polkadot/types-known": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@polkadot/rpc-core": "10.9.2-25-x",
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2"
}
}
4 changes: 2 additions & 2 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"@polkadot/rpc-augment": "10.9.2-25-x",
"@polkadot/rpc-provider": "10.9.2-25-x",
"@polkadot/types": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.4.2",
"@polkadot/keyring": "^12.5.1",
"@polkadot/rpc-augment": "10.9.2-25-x"
}
}
18 changes: 9 additions & 9 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"version": "10.9.2-25-x",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.4.2",
"@polkadot/keyring": "^12.5.1",
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-support": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/x-fetch": "^12.4.2",
"@polkadot/x-global": "^12.4.2",
"@polkadot/x-ws": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"@polkadot/x-fetch": "^12.5.1",
"@polkadot/x-global": "^12.5.1",
"@polkadot/x-ws": "^12.5.1",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.2.1",
"mock-socket": "^9.3.1",
"nock": "^13.3.3",
"tslib": "^2.6.2"
},
"devDependencies": {
"@substrate/connect": "0.7.31"
"@substrate/connect": "0.7.32"
},
"optionalDependencies": {
"@substrate/connect": "0.7.31"
"@substrate/connect": "0.7.32"
}
}
6 changes: 3 additions & 3 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/types-create": "10.9.2-25-x",
"@polkadot/types-support": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/x-ws": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"@polkadot/x-ws": "^12.5.1",
"handlebars": "^4.7.8",
"tslib": "^2.6.2",
"yargs": "^17.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/types-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2"
}
}
6 changes: 3 additions & 3 deletions packages/types-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"version": "10.9.2-25-x",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.4.2",
"@polkadot/x-bigint": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/x-bigint": "^12.5.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-augment": "10.9.2-25-x",
"@polkadot/types-support": "10.9.2-25-x",
"@polkadot/util-crypto": "^12.4.2"
"@polkadot/util-crypto": "^12.5.1"
}
}
2 changes: 1 addition & 1 deletion packages/types-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/types-known/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"version": "10.9.2-25-x",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.4.2",
"@polkadot/networks": "^12.5.1",
"@polkadot/types": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/types-create": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/types-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"version": "10.9.2-25-x",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.4.2",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2"
}
}
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"version": "10.9.2-25-x",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.4.2",
"@polkadot/keyring": "^12.5.1",
"@polkadot/types-augment": "10.9.2-25-x",
"@polkadot/types-codec": "10.9.2-25-x",
"@polkadot/types-create": "10.9.2-25-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.4.2",
"@polkadot/keyring": "^12.5.1",
"@polkadot/types-support": "10.9.2-25-x"
}
}
Loading

0 comments on commit c0d5408

Please sign in to comment.