Skip to content

Commit

Permalink
chore: upgrade @polkadot/*.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdethier committed May 7, 2024
1 parent 0d1dada commit 4e2d316
Show file tree
Hide file tree
Showing 7 changed files with 249 additions and 207 deletions.
6 changes: 3 additions & 3 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logion/extension",
"version": "0.8.0",
"version": "0.8.1-1",
"description": "logion SDK for Polkadot JS extension",
"main": "dist/index.js",
"packageManager": "[email protected]",
Expand All @@ -22,8 +22,8 @@
"author": "Logion Team",
"license": "Apache-2.0",
"dependencies": {
"@logion/extension-compat-metamask": "^0.46.9",
"@polkadot/extension-dapp": "^0.46.9"
"@polkadot/extension-compat-metamask": "^0.47.3",
"@polkadot/extension-dapp": "^0.47.3"
},
"peerDependencies": {
"@logion/client-browser": "0.x"
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/Extension.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { web3Enable, web3EnablePromise, web3Accounts } from '@polkadot/extension-dapp';
import initMetaMask from "@logion/extension-compat-metamask/bundle";
import initMetaMask from "@polkadot/extension-compat-metamask/bundle";
import { InjectedAccountWithMeta, InjectedExtension } from '@polkadot/extension-inject/types';

export async function isExtensionAvailable(appName: string): Promise<boolean> {
Expand Down
6 changes: 3 additions & 3 deletions packages/node-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logion/node-api",
"version": "0.29.0",
"version": "0.29.1-1",
"description": "logion API",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -43,7 +43,7 @@
"author": "Logion Team",
"license": "Apache-2.0",
"dependencies": {
"@polkadot/api": "^10.12.2",
"@polkadot/api": "^11.0.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@types/uuid": "^9.0.2",
Expand All @@ -56,7 +56,7 @@
},
"homepage": "https://github.com/logion-network/logion-api/packages/node-api#readme",
"devDependencies": {
"@polkadot/typegen": "^10.12.2",
"@polkadot/typegen": "^11.0.2",
"@tsconfig/node18": "^1.0.1",
"@types/jasmine": "^4.0.3",
"@types/node": "^18.6.1",
Expand Down
18 changes: 17 additions & 1 deletion packages/node-api/src/interfaces/augment-api-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import '@polkadot/api-base/types/calls';

import type { TokenIssuance } from '@logion/node-api/dist/interfaces/default';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Vec, u32 } from '@polkadot/types-codec';
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { CollationInfo } from '@polkadot/types/interfaces/cumulus';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Balance, Block, Call, Header, Index, KeyTypeId, SlotDuration, Weight } from '@polkadot/types/interfaces/runtime';
Expand Down Expand Up @@ -121,6 +122,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
**/
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
/**
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
**/
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/2 */
metadata: {
/**
Expand Down
Loading

0 comments on commit 4e2d316

Please sign in to comment.