Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Uplift to the latest polkadot.js
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 9, 2024
1 parent 6608754 commit a32721a
Show file tree
Hide file tree
Showing 12 changed files with 3,176 additions and 2,756 deletions.
Binary file modified .DS_Store
Binary file not shown.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bugs": "https://github.com/AstarNetwork/astar.js/issues",
"engines": {
"yarn": "^1.10.1"
"node": ">=18"
},
"homepage": "https://github.com/AstarNetwork/astar.js#readme",
"license": "Apache-2.0",
Expand All @@ -12,7 +12,7 @@
"url": "https://github.com/AstarNetwork/astar.js.git"
},
"sideEffects": false,
"version": "0.2.9",
"version": "0.3.0",
"workspaces": [
"packages/*",
"examples/*"
Expand All @@ -39,15 +39,15 @@
"@babel/runtime": "^7.23.2",
"@open-web3/dev-config": "^0.1.14",
"@open-web3/util": "^2.0.1",
"@polkadot/api": "10.9.1",
"@polkadot/api-augment": "10.9.1",
"@polkadot/api-contract": "10.9.1",
"@polkadot/api-derive": "10.9.1",
"@polkadot/dev": "^0.67.178",
"@polkadot/rpc-core": "10.9.1",
"@polkadot/typegen": "10.9.1",
"@polkadot/types": "10.9.1",
"@polkadot/types-codec": "10.9.1",
"@polkadot/api": "12.3.1",
"@polkadot/api-augment": "12.3.1",
"@polkadot/api-contract": "12.3.1",
"@polkadot/api-derive": "12.3.1",
"@polkadot/dev": "^0.79.3",
"@polkadot/rpc-core": "12.3.1",
"@polkadot/typegen": "12.3.1",
"@polkadot/types": "12.3.1",
"@polkadot/types-codec": "12.3.1",
"@types/jest": "27.4.0",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"jest": "^27.5.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/astar-api-derive",
"version": "0.2.9",
"version": "0.3.0",
"description": "Astar JS API",
"main": "index.js",
"author": "Astar Network <[email protected]>",
Expand All @@ -19,9 +19,9 @@
},
"homepage": "https://github.com/AstarNetwork/astar.js",
"dependencies": {
"@astar-network/astar-types": "0.2.6",
"@astar-network/astar-types": "0.3.0",
"@babel/runtime": "^7.23.2",
"@open-web3/orml-types": "^1.0.2-0",
"@polkadot/api-derive": "10.9.1"
"@polkadot/api-derive": "12.3.1"
}
}
8 changes: 4 additions & 4 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/astar-api",
"version": "0.2.9",
"version": "0.3.0",
"description": "Astar JS API",
"main": "index.js",
"author": "Astar Network <[email protected]>",
Expand All @@ -19,11 +19,11 @@
},
"homepage": "https://github.com/AstarNetwork/astar.js",
"dependencies": {
"@astar-network/astar-api-derive": "0.2.6",
"@astar-network/astar-types": "0.2.6",
"@astar-network/astar-api-derive": "0.3.0",
"@astar-network/astar-types": "0.3.0",
"@babel/runtime": "^7.23.2",
"@open-web3/orml-api-derive": "^1.0.2-0",
"@polkadot/api": "10.9.1"
"@polkadot/api": "12.3.1"
},
"peerDependencies": {
"@polkadot/api": "10.9.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/astar-sdk-core",
"version": "0.2.9",
"version": "0.3.0",
"description": "the core for astar SDK",
"main": "index.js",
"author": "Astar Network <[email protected]>",
Expand All @@ -23,8 +23,8 @@
},
"dependencies": {
"@ethersproject/bignumber": "^5.6.2",
"@polkadot/util": "^12.3.2",
"@polkadot/util-crypto": "^12.3.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"axios": "^1.6.8",
"bn.js": "^5.2.1",
"ethers": "^5.6.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/astar-type-definitions",
"version": "0.2.9",
"version": "0.3.0",
"description": "Polkadot.js type definitions for astar Network",
"main": "index.js",
"author": "Astar Network <[email protected]>",
Expand Down
10 changes: 5 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/astar-types",
"version": "0.2.9",
"version": "0.3.0",
"description": "Polkadot.js type definitions for Astar Network",
"main": "index.js",
"author": "Astar Network <[email protected]>",
Expand All @@ -19,13 +19,13 @@
},
"homepage": "https://github.com/AstarNetwork/astar.js",
"dependencies": {
"@astar-network/astar-type-definitions": "0.2.6",
"@astar-network/astar-type-definitions": "0.3.0",
"@babel/runtime": "^7.23.2",
"@open-web3/api-mobx": "^1.0.2-0",
"@open-web3/orml-types": "^1.0.2-0",
"@polkadot/api": "10.9.1",
"@polkadot/typegen": "10.9.1",
"@polkadot/types": "10.9.1"
"@polkadot/api": "12.3.1",
"@polkadot/typegen": "12.3.1",
"@polkadot/types": "12.3.1"
},
"devDependencies": {
"@types/websocket": "^1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/types/src/interfaces/augment-api-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f6
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
Expand Down Expand Up @@ -80,9 +80,9 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
**/
getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
/**
* Returns the block most recently finalized by BEEFY, alongside side its justification.
* Returns the block most recently finalized by BEEFY, alongside its justification.
**/
subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;
subscribeJustifications: AugmentedRpc<() => Observable<BeefyVersionedFinalityProof>>;
};
chain: {
/**
Expand Down
53 changes: 47 additions & 6 deletions packages/types/src/interfaces/augment-types.ts

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions packages/types/src/interfaces/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ export interface EncodedJustification extends Bytes {}
/** @name Evm */
export interface Evm extends H160 {}

/** @name ExtrinsicInclusionMode */
export interface ExtrinsicInclusionMode extends Enum {
readonly isAllExtrinsics: boolean;
readonly isOnlyInherents: boolean;
readonly type: 'AllExtrinsics' | 'OnlyInherents';
}

/** @name ExtrinsicsWeight */
export interface ExtrinsicsWeight extends Struct {
readonly normal: Weight;
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"references": [
{ "path": "./packages/api/tsconfig.build.json" },
{ "path": "./packages/types/tsconfig.build.json" },
{ "path": "./packages/sdk-core/tsconfig.build.json" }
{ "path": "./packages/sdk-core/tsconfig.build.json" },
{ "path": "./packages/api-derive/tsconfig.build.json" },
{ "path": "./packages/type-definitions/tsconfig.build.json" }
]
}
Loading

0 comments on commit a32721a

Please sign in to comment.