mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-21 23:47:57 +00:00
fix: update pezkuwi mainnet genesis hash and remove npm token from repo
- Update genesis hash to mainnet value - Remove npmAuthToken from .yarnrc.yml (use GitHub Secrets instead) - Add pezsp_* and pezframe_* path support in PortableRegistry
This commit is contained in:
@@ -12,4 +12,5 @@ logFilters:
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.6.0.cjs
|
||||
|
||||
+9
-8
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.10",
|
||||
"versions": {
|
||||
"git": "16.5.9",
|
||||
"npm": "16.5.9"
|
||||
@@ -40,16 +40,17 @@
|
||||
"test:one": "pezkuwi-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pezkuwi/dev": "^0.85.3",
|
||||
"@pezkuwi/dev-test": "^0.85.3",
|
||||
"@pezkuwi/dev-ts": "^0.85.3",
|
||||
"@pezkuwi/dev": "0.85.7",
|
||||
"@pezkuwi/dev-test": "0.85.7",
|
||||
"@pezkuwi/dev-ts": "0.85.7",
|
||||
"@pezkuwi/typegen": "workspace:*",
|
||||
"@types/node": "^22.10.5"
|
||||
"@types/node": "^22.10.5",
|
||||
"@types/yargs": "^17.0.35"
|
||||
},
|
||||
"resolutions": {
|
||||
"@pezkuwi/dev": "portal:../pezkuwi-dev/packages/dev",
|
||||
"@pezkuwi/dev-test": "portal:../pezkuwi-dev/packages/dev-test",
|
||||
"@pezkuwi/dev-ts": "portal:../pezkuwi-dev/packages/dev-ts",
|
||||
"@pezkuwi/dev": "^0.85.7",
|
||||
"@pezkuwi/dev-test": "^0.85.7",
|
||||
"@pezkuwi/dev-ts": "^0.85.7",
|
||||
"@pezkuwi/hw-ledger": "14.0.11",
|
||||
"@pezkuwi/hw-ledger-transports": "14.0.11",
|
||||
"@pezkuwi/keyring": "14.0.11",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/api-augment', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/api-augment', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/api-base', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/api-base', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -7,10 +7,10 @@ import fs from 'node:fs';
|
||||
|
||||
import { toPromiseMethod } from '@pezkuwi/api';
|
||||
|
||||
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' assert { type: 'json' };
|
||||
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' assert { type: 'json' };
|
||||
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' assert { type: 'json' };
|
||||
import v6contractErc20 from '../test/contracts/ink/v6/erc20.contract.json' assert { type: 'json' };
|
||||
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' with { type: 'json' };
|
||||
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' with { type: 'json' };
|
||||
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' with { type: 'json' };
|
||||
import v6contractErc20 from '../test/contracts/ink/v6/erc20.contract.json' with { type: 'json' };
|
||||
import { Code } from './Code.js';
|
||||
import { mockApi, mockReviveApi } from './mock.js';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { ApiPromise } from '@pezkuwi/api';
|
||||
import { BlueprintPromise, ContractPromise } from '@pezkuwi/api-contract';
|
||||
import { createTestPairs } from '@pezkuwi/keyring/testingPairs';
|
||||
|
||||
import abiIncrementer from './test/contracts/ink/v0/incrementer.json' assert { type: 'json' };
|
||||
import abiIncrementer from './test/contracts/ink/v0/incrementer.json' with { type: 'json' };
|
||||
|
||||
async function checkBlueprint (api: ApiPromise, pairs: TestKeyringMapBizinikiwi): Promise<void> {
|
||||
const blueprint = new BlueprintPromise(api, abiIncrementer as Record<string, unknown>, '0x1234');
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/api-contract', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/api-contract', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as delegator } from './delegator.json' assert { type: 'json' };
|
||||
export { default as dns } from './dns.json' assert { type: 'json' };
|
||||
export { default as erc20 } from './erc20.json' assert { type: 'json' };
|
||||
export { default as erc721 } from './erc721.json' assert { type: 'json' };
|
||||
export { default as flipperBundle } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.json' assert { type: 'json' };
|
||||
export { default as incrementer } from './incrementer.json' assert { type: 'json' };
|
||||
export { default as multisigPlain } from './multisig_plain.json' assert { type: 'json' };
|
||||
export { default as delegator } from './delegator.json' with { type: 'json' };
|
||||
export { default as dns } from './dns.json' with { type: 'json' };
|
||||
export { default as erc20 } from './erc20.json' with { type: 'json' };
|
||||
export { default as erc721 } from './erc721.json' with { type: 'json' };
|
||||
export { default as flipperBundle } from './flipper.contract.json' with { type: 'json' };
|
||||
export { default as flipper } from './flipper.json' with { type: 'json' };
|
||||
export { default as incrementer } from './incrementer.json' with { type: 'json' };
|
||||
export { default as multisigPlain } from './multisig_plain.json' with { type: 'json' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.contract.json' with { type: 'json' };
|
||||
// A complex contract example with traits.
|
||||
export { default as psp22 } from './psp22_minter_pauser.contract.json' assert { type: 'json' };
|
||||
export { default as psp22 } from './psp22_minter_pauser.contract.json' with { type: 'json' };
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20 } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as erc20 } from './erc20.contract.json' with { type: 'json' };
|
||||
export { default as flipper } from './flipper.contract.json' with { type: 'json' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.contract.json' with { type: 'json' };
|
||||
// A complex contract example with traits.
|
||||
export { default as traitErc20 } from './trait_erc20.contract.json' assert { type: 'json' };
|
||||
export { default as traitErc20 } from './trait_erc20.contract.json' with { type: 'json' };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
||||
export { default as erc20Contract } from './erc20.contract.json' with { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' with { type: 'json' };
|
||||
export { default as flipperContract } from './flipper.contract.json' with { type: 'json' };
|
||||
export { default as flipperMetadata } from './flipper.json' with { type: 'json' };
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||
export { default as erc20AnonymousTransferMetadata } from './erc20_anonymous_transfer.json' assert { type: 'json' };
|
||||
export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
|
||||
export { default as erc20Contract } from './erc20.contract.json' with { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' with { type: 'json' };
|
||||
export { default as erc20AnonymousTransferMetadata } from './erc20_anonymous_transfer.json' with { type: 'json' };
|
||||
export { default as flipperContract } from './flipper.contract.json' with { type: 'json' };
|
||||
export { default as flipperMetadata } from './flipper.json' with { type: 'json' };
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
|
||||
export { default as erc20Contract } from './erc20.contract.json' with { type: 'json' };
|
||||
export { default as erc20Metadata } from './erc20.json' with { type: 'json' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as ints256 } from './ints256.json' assert { type: 'json' };
|
||||
export { default as ints256 } from './ints256.json' with { type: 'json' };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as assetTransfer } from './assetTransfer.json' assert { type: 'json' };
|
||||
export { default as enumExample } from './enumExample.json' assert { type: 'json' };
|
||||
export { default as recursive } from './recursive.contract.json' assert { type: 'json' };
|
||||
export { default as withString } from './withString.json' assert { type: 'json' };
|
||||
export { default as assetTransfer } from './assetTransfer.json' with { type: 'json' };
|
||||
export { default as enumExample } from './enumExample.json' with { type: 'json' };
|
||||
export { default as recursive } from './recursive.contract.json' with { type: 'json' };
|
||||
export { default as withString } from './withString.json' with { type: 'json' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as ask } from './ask.json' assert { type: 'json' };
|
||||
export { default as ask } from './ask.json' with { type: 'json' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as events } from './events.contract.json' assert { type: 'json' };
|
||||
export { default as events } from './events.contract.json' with { type: 'json' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"dependencies": {
|
||||
|
||||
@@ -47,7 +47,8 @@ export function subscribeFinalizedHeads (instanceId: string, api: DeriveApi): ()
|
||||
const endHash = prevHash;
|
||||
const startHash = header.parentHash;
|
||||
|
||||
prevHash = header.createdAtHash = header.hash;
|
||||
header.createdAtHash = header.hash as unknown as typeof header.createdAtHash;
|
||||
prevHash = header.hash as unknown as Hash;
|
||||
|
||||
return endHash === null || startHash.eq(endHash)
|
||||
? of(header)
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/api-derive', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/api-derive', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.12",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/api', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/api', path: 'auto', type: 'auto', version: '16.5.12' };
|
||||
|
||||
@@ -54,7 +54,8 @@ function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions
|
||||
}
|
||||
|
||||
return makeSignOptions(api, partialOptions, {
|
||||
blockHash: header.hash,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
blockHash: header.hash as any,
|
||||
era: registry.createTypeUnsafe<ExtrinsicEra>('ExtrinsicEra', [{
|
||||
current: header.number,
|
||||
period: partialOptions.era || mortalLength
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@noble/hashes": "^2.0.1",
|
||||
"@pezkuwi/papi-utils": "1.0.0",
|
||||
"@scure/base": "^2.0.0",
|
||||
"scale-ts": "^1.6.1",
|
||||
"@pezkuwi/papi-utils": "1.0.0"
|
||||
"scale-ts": "^1.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@pezkuwi/metadata-builders": "1.0.0",
|
||||
"@pezkuwi/bizinikiwi-bindings": "1.0.0",
|
||||
"@pezkuwi/metadata-builders": "1.0.0",
|
||||
"@pezkuwi/papi-utils": "1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"repository": {
|
||||
"directory": "packages/papi-utils",
|
||||
"type": "git",
|
||||
"url": "https://github.com/pezkuwichain/pezkuwi-api.git"
|
||||
"url": "git+https://github.com/pezkuwichain/pezkuwi-api.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/rpc-augment', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/rpc-augment', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/rpc-core', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/rpc-core', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -13,8 +13,8 @@ import { EventEmitter } from 'eventemitter3';
|
||||
import { createTestKeyring } from '@pezkuwi/keyring/testing';
|
||||
import { decorateStorage, Metadata } from '@pezkuwi/types';
|
||||
import jsonrpc from '@pezkuwi/types/interfaces/jsonrpc';
|
||||
import rpcHeader from '@pezkuwi/types-support/json/Header.004.json' assert { type: 'json' };
|
||||
import rpcSignedBlock from '@pezkuwi/types-support/json/SignedBlock.004.immortal.json' assert { type: 'json' };
|
||||
import rpcHeader from '@pezkuwi/types-support/json/Header.004.json' with { type: 'json' };
|
||||
import rpcSignedBlock from '@pezkuwi/types-support/json/SignedBlock.004.immortal.json' with { type: 'json' };
|
||||
import rpcMetadata from '@pezkuwi/types-support/metadata/static-bizinikiwi';
|
||||
import { BN, bnToU8a, logger, u8aToHex } from '@pezkuwi/util';
|
||||
import { randomAsU8a } from '@pezkuwi/util-crypto';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/rpc-provider', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/rpc-provider', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"bin": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/typegen', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/typegen', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/types-augment', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/types-augment', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -26,7 +26,7 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @description This ensures that operators such as clice, filter, map, etc. return
|
||||
* new Array instances (without this we need to apply overrides)
|
||||
*/
|
||||
static get [Symbol.species] (): typeof Array {
|
||||
static override get [Symbol.species] (): typeof Array {
|
||||
return Array;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/types-codec', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/types-codec', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/types-create', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/types-create', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/types-known', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/types-known', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
@@ -16,7 +16,7 @@ const NET_EXTRA: Record<string, { genesisHash: HexString[] }> = {
|
||||
genesisHash: ['0xd9d3cd7c1e5d890d969b957f4c5b71a111bbeeabc968f1d0d4538c2663f080a7']
|
||||
},
|
||||
pezkuwi: {
|
||||
genesisHash: ['0x41693961995d879073269a008d0a52832caa3e0ae73869f02127f3d5daa4934c']
|
||||
genesisHash: ['0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75']
|
||||
},
|
||||
zagros: {
|
||||
genesisHash: ['0x297f5a4d105b4b28312586ff1915572ffe4ee015ff772b76399ecbff25a22026']
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.12",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/types-support', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/types-support', path: 'auto', type: 'auto', version: '16.5.12' };
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"types": "./build/index.d.ts",
|
||||
"version": "16.5.9",
|
||||
"version": "16.5.11",
|
||||
"main": "./build/cjs/index.js",
|
||||
"module": "./build/index.js",
|
||||
"exports": {
|
||||
|
||||
@@ -342,10 +342,10 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
|
||||
*/
|
||||
public override get hash (): CodecHash {
|
||||
if (!this.#hashCache) {
|
||||
this.#hashCache = super.hash;
|
||||
this.#hashCache = super.hash as CodecHash;
|
||||
}
|
||||
|
||||
return this.#hashCache;
|
||||
return this.#hashCache!;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import { Raw } from '@pezkuwi/types-codec';
|
||||
import jsonVec from '@pezkuwi/types-support/json/AccountIdVec.001.json' assert { type: 'json' };
|
||||
import jsonVec from '@pezkuwi/types-support/json/AccountIdVec.001.json' with { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
import type { BlockValue } from './Block.js';
|
||||
|
||||
import block00300 from '@pezkuwi/types-support/json/SignedBlock.003.00.json' assert { type: 'json' };
|
||||
import block00300 from '@pezkuwi/types-support/json/SignedBlock.003.00.json' with { type: 'json' };
|
||||
import metadataStatic from '@pezkuwi/types-support/metadata/static-bizinikiwi';
|
||||
import { stringify } from '@pezkuwi/util';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import type { ExtrinsicStatus } from './types.js';
|
||||
|
||||
import rpc from '@pezkuwi/types-support/json/ExtrinsicStatus.001.json' assert { type: 'json' };
|
||||
import rpc from '@pezkuwi/types-support/json/ExtrinsicStatus.001.json' with { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import json3 from '@pezkuwi/types-support/json/GrandpaRoundstate.001.json' assert { type: 'json' };
|
||||
import json3 from '@pezkuwi/types-support/json/GrandpaRoundstate.001.json' with { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import json3 from '@pezkuwi/types-support/json/Header.003.json' assert { type: 'json' };
|
||||
import json3 from '@pezkuwi/types-support/json/Header.003.json' with { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import json1 from '@pezkuwi/types-support/json/Header.001.json' assert { type: 'json' };
|
||||
import json2 from '@pezkuwi/types-support/json/Header.002.json' assert { type: 'json' };
|
||||
import json3 from '@pezkuwi/types-support/json/Header.003.json' assert { type: 'json' };
|
||||
import block00300 from '@pezkuwi/types-support/json/SignedBlock.003.00.json' assert { type: 'json' };
|
||||
import block00301 from '@pezkuwi/types-support/json/SignedBlock.003.01.json' assert { type: 'json' };
|
||||
import json1 from '@pezkuwi/types-support/json/Header.001.json' with { type: 'json' };
|
||||
import json2 from '@pezkuwi/types-support/json/Header.002.json' with { type: 'json' };
|
||||
import json3 from '@pezkuwi/types-support/json/Header.003.json' with { type: 'json' };
|
||||
import block00300 from '@pezkuwi/types-support/json/SignedBlock.003.00.json' with { type: 'json' };
|
||||
import block00301 from '@pezkuwi/types-support/json/SignedBlock.003.01.json' with { type: 'json' };
|
||||
import { BN } from '@pezkuwi/util';
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import type { RuntimeVersion } from './types.js';
|
||||
|
||||
import rpc from '@pezkuwi/types-support/json/RuntimeVersion.002.json' assert { type: 'json' };
|
||||
import rpc from '@pezkuwi/types-support/json/RuntimeVersion.002.json' with { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import { TypeRegistry } from '@pezkuwi/types/create';
|
||||
import json from '@pezkuwi/types-support/json/StorageChangeSet.001.json' assert { type: 'json' };
|
||||
import json from '@pezkuwi/types-support/json/StorageChangeSet.001.json' with { type: 'json' };
|
||||
|
||||
describe('StorageChangeSet', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import json1 from '@pezkuwi/types-support/json/EventRecord.001.json' assert { type: 'json' };
|
||||
import json3 from '@pezkuwi/types-support/json/EventRecord.003.json' assert { type: 'json' };
|
||||
import json1 from '@pezkuwi/types-support/json/EventRecord.001.json' with { type: 'json' };
|
||||
import json3 from '@pezkuwi/types-support/json/EventRecord.003.json' with { type: 'json' };
|
||||
import rpcMetadata from '@pezkuwi/types-support/metadata/static-bizinikiwi';
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
@@ -53,29 +53,38 @@ const PRIMITIVE_ALIAS: Record<string, string> = {
|
||||
const PATHS_ALIAS = splitNamespace([
|
||||
// full matching on exact names...
|
||||
// these are well-known types with additional encoding
|
||||
'sp_core::crypto::AccountId32',
|
||||
'sp_runtime::generic::era::Era',
|
||||
'sp_runtime::multiaddress::MultiAddress',
|
||||
'pezsp_core::crypto::AccountId32',
|
||||
'sp_core::crypto::AccountId32', // upstream compatibility
|
||||
'pezsp_runtime::generic::era::Era',
|
||||
'sp_runtime::generic::era::Era', // upstream compatibility
|
||||
'pezsp_runtime::multiaddress::MultiAddress',
|
||||
'sp_runtime::multiaddress::MultiAddress', // upstream compatibility
|
||||
// ethereum overrides (Frontier, Moonbeam, Pezkuwi claims)
|
||||
'fp_account::AccountId20',
|
||||
'account::AccountId20',
|
||||
'pezkuwi_runtime_common::claims::EthereumAddress',
|
||||
// weights 2 is a structure, however for 1.5. with a single field it
|
||||
// should be flatenned (can appear in Compact<Weight> extrinsics)
|
||||
'frame_support::weights::weight_v2::Weight',
|
||||
'sp_weights::weight_v2::Weight',
|
||||
'pezframe_support::weights::weight_v2::Weight',
|
||||
'frame_support::weights::weight_v2::Weight', // upstream compatibility
|
||||
'pezsp_weights::weight_v2::Weight',
|
||||
'sp_weights::weight_v2::Weight', // upstream compatibility
|
||||
// wildcard matching in place...
|
||||
// these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
|
||||
'*_democracy::vote::Vote',
|
||||
'*_conviction_voting::vote::Vote',
|
||||
'*_identity::types::Data',
|
||||
// these are opaque Vec<u8> wrappers
|
||||
'sp_core::OpaqueMetadata',
|
||||
'sp_core::OpaquePeerId',
|
||||
'sp_core::offchain::OpaqueMultiaddr',
|
||||
'pezsp_core::OpaqueMetadata',
|
||||
'sp_core::OpaqueMetadata', // upstream compatibility
|
||||
'pezsp_core::OpaquePeerId',
|
||||
'sp_core::OpaquePeerId', // upstream compatibility
|
||||
'pezsp_core::offchain::OpaqueMultiaddr',
|
||||
'sp_core::offchain::OpaqueMultiaddr', // upstream compatibility
|
||||
// shorten some well-known types
|
||||
'primitive_types::*',
|
||||
'sp_arithmetic::per_things::*',
|
||||
'pezsp_arithmetic::per_things::*',
|
||||
'sp_arithmetic::per_things::*', // upstream compatibility
|
||||
// runtime
|
||||
'*_runtime::RuntimeCall',
|
||||
'*_runtime::RuntimeEvent',
|
||||
@@ -173,7 +182,7 @@ function matchParts (first: string[], second: (string | Text)[]): boolean {
|
||||
function getAliasPath ({ def, path }: SiType): string | null {
|
||||
// specific logic for weights - we override when non-complex struct
|
||||
// (as applied in Weight 1.5 where we also have `Compact<{ refTime: u64 }>)
|
||||
if (['frame_support::weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
||||
if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
||||
return !def.isComposite || def.asComposite.fields.length === 1
|
||||
? 'WeightV1'
|
||||
: null;
|
||||
@@ -419,7 +428,7 @@ function registerTypes (lookup: PortableRegistry, lookups: Record<string, string
|
||||
const siSignature = lookup.getSiType(sigParam.type.unwrap());
|
||||
const nsSignature = siSignature.path.join('::');
|
||||
let nsAccountId = siAddress.path.join('::');
|
||||
const isMultiAddress = nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
||||
const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
||||
|
||||
// With multiaddress, we check the first type param again
|
||||
if (isMultiAddress) {
|
||||
@@ -437,7 +446,7 @@ function registerTypes (lookup: PortableRegistry, lookups: Record<string, string
|
||||
Address: isMultiAddress
|
||||
? 'MultiAddress'
|
||||
: 'AccountId',
|
||||
ExtrinsicSignature: ['sp_runtime::MultiSignature'].includes(nsSignature)
|
||||
ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
|
||||
? 'MultiSignature'
|
||||
: names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
|
||||
});
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/types', path: 'auto', type: 'auto', version: '16.5.9' };
|
||||
export const packageInfo = { name: '@pezkuwi/types', path: 'auto', type: 'auto', version: '16.5.11' };
|
||||
|
||||
Reference in New Issue
Block a user