Skip to content

Commit c0d5408

Browse files
authored
Bump deps (w/ latest util) (polkadot-js#5729)
* Bump deps (w/ latest util) * CHANGELOG * Fix typo
1 parent 700812a commit c0d5408

File tree

19 files changed

+299
-291
lines changed

19 files changed

+299
-291
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Contributed:
1010
- Add runtime `AssetConversionApi` (Thanks to https://github.com/jsidorenko)
1111
- Adjust types for runtime `AssetConversionApi` (Thanks to https://github.com/jsidorenko)
1212
- Expand test cases for `Int` conversions (Thanks to https://github.com/peetzweg)
13+
- Add `isEthereum` to chain properties (Thanks to https://github.com/fgamundi)
14+
- Allow RiscV contracts via check (Thanks to https://github.com/statictype)
1315

1416
Changes:
1517

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"test:one": "polkadot-dev-run-test --env node"
4141
},
4242
"devDependencies": {
43-
"@polkadot/dev": "^0.76.22",
43+
"@polkadot/dev": "^0.76.25",
4444
"@polkadot/typegen": "workspace:packages/typegen",
45-
"@types/node": "^20.5.7"
45+
"@types/node": "^20.6.0"
4646
},
4747
"resolutions": {
4848
"typescript": "^5.1.6"

packages/api-augment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@polkadot/types": "10.9.2-25-x",
2727
"@polkadot/types-augment": "10.9.2-25-x",
2828
"@polkadot/types-codec": "10.9.2-25-x",
29-
"@polkadot/util": "^12.4.2",
29+
"@polkadot/util": "^12.5.1",
3030
"tslib": "^2.6.2"
3131
}
3232
}

packages/api-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"dependencies": {
2424
"@polkadot/rpc-core": "10.9.2-25-x",
2525
"@polkadot/types": "10.9.2-25-x",
26-
"@polkadot/util": "^12.4.2",
26+
"@polkadot/util": "^12.5.1",
2727
"rxjs": "^7.8.1",
2828
"tslib": "^2.6.2"
2929
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"@polkadot/types": "10.9.2-25-x",
2727
"@polkadot/types-codec": "10.9.2-25-x",
2828
"@polkadot/types-create": "10.9.2-25-x",
29-
"@polkadot/util": "^12.4.2",
30-
"@polkadot/util-crypto": "^12.4.2",
29+
"@polkadot/util": "^12.5.1",
30+
"@polkadot/util-crypto": "^12.5.1",
3131
"rxjs": "^7.8.1",
3232
"tslib": "^2.6.2"
3333
},
3434
"devDependencies": {
3535
"@polkadot/api-augment": "10.9.2-25-x",
36-
"@polkadot/keyring": "^12.4.2"
36+
"@polkadot/keyring": "^12.5.1"
3737
}
3838
}

packages/api-contract/src/base/Code.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { AbiConstructor, BlueprintOptions } from '../types.js';
1212
import type { MapConstructorExec } from './types.js';
1313

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

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

37-
function isRiscV (bytes: unknown): bytes is Uint8Array {
38-
const ELF_MAGIC = new Uint8Array([0x7f, 0x45, 0x4c, 0x46]); // ELF magic bytes: 0x7f, 'E', 'L', 'F'
39-
40-
return isU8a(bytes) && u8aEq(bytes.subarray(0, 4), ELF_MAGIC);
41-
}
42-
37+
// checks to see if the code (or at least the header)
38+
// is a valid/supported format
4339
function isValidCode (code: Uint8Array): boolean {
4440
return isWasm(code) || isRiscV(code);
4541
}

packages/api-derive/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"@polkadot/rpc-core": "10.9.2-25-x",
2828
"@polkadot/types": "10.9.2-25-x",
2929
"@polkadot/types-codec": "10.9.2-25-x",
30-
"@polkadot/util": "^12.4.2",
31-
"@polkadot/util-crypto": "^12.4.2",
30+
"@polkadot/util": "^12.5.1",
31+
"@polkadot/util-crypto": "^12.5.1",
3232
"rxjs": "^7.8.1",
3333
"tslib": "^2.6.2"
3434
},

packages/api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@polkadot/api-augment": "10.9.2-25-x",
2525
"@polkadot/api-base": "10.9.2-25-x",
2626
"@polkadot/api-derive": "10.9.2-25-x",
27-
"@polkadot/keyring": "^12.4.2",
27+
"@polkadot/keyring": "^12.5.1",
2828
"@polkadot/rpc-augment": "10.9.2-25-x",
2929
"@polkadot/rpc-core": "10.9.2-25-x",
3030
"@polkadot/rpc-provider": "10.9.2-25-x",
@@ -33,8 +33,8 @@
3333
"@polkadot/types-codec": "10.9.2-25-x",
3434
"@polkadot/types-create": "10.9.2-25-x",
3535
"@polkadot/types-known": "10.9.2-25-x",
36-
"@polkadot/util": "^12.4.2",
37-
"@polkadot/util-crypto": "^12.4.2",
36+
"@polkadot/util": "^12.5.1",
37+
"@polkadot/util-crypto": "^12.5.1",
3838
"eventemitter3": "^5.0.1",
3939
"rxjs": "^7.8.1",
4040
"tslib": "^2.6.2"

packages/rpc-augment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@polkadot/rpc-core": "10.9.2-25-x",
2525
"@polkadot/types": "10.9.2-25-x",
2626
"@polkadot/types-codec": "10.9.2-25-x",
27-
"@polkadot/util": "^12.4.2",
27+
"@polkadot/util": "^12.5.1",
2828
"tslib": "^2.6.2"
2929
}
3030
}

packages/rpc-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"@polkadot/rpc-augment": "10.9.2-25-x",
2525
"@polkadot/rpc-provider": "10.9.2-25-x",
2626
"@polkadot/types": "10.9.2-25-x",
27-
"@polkadot/util": "^12.4.2",
27+
"@polkadot/util": "^12.5.1",
2828
"rxjs": "^7.8.1",
2929
"tslib": "^2.6.2"
3030
},
3131
"devDependencies": {
32-
"@polkadot/keyring": "^12.4.2",
32+
"@polkadot/keyring": "^12.5.1",
3333
"@polkadot/rpc-augment": "10.9.2-25-x"
3434
}
3535
}

0 commit comments

Comments
 (0)