@acala-network/chopsticks-utils 0.12.2 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/package.json +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +3 -1
- package/package.json +9 -11
package/dist/cjs/index.d.ts
CHANGED
|
@@ -84,10 +84,10 @@ export declare function defer<T>(): {
|
|
|
84
84
|
reject: (reason: any) => void;
|
|
85
85
|
promise: Promise<T>;
|
|
86
86
|
};
|
|
87
|
-
export declare const sendTransaction: (tx: Promise<SubmittableExtrinsic<
|
|
87
|
+
export declare const sendTransaction: (tx: Promise<SubmittableExtrinsic<"promise">>) => Promise<{
|
|
88
88
|
events: Promise<Codec[]>;
|
|
89
89
|
}>;
|
|
90
|
-
export declare const testingPairs: (keyringType?:
|
|
90
|
+
export declare const testingPairs: (keyringType?: "ed25519" | "sr25519", ss58Format?: number) => {
|
|
91
91
|
alice: import("@polkadot/keyring/types").KeyringPair;
|
|
92
92
|
bob: import("@polkadot/keyring/types").KeyringPair;
|
|
93
93
|
charlie: import("@polkadot/keyring/types").KeyringPair;
|
package/dist/cjs/index.js
CHANGED
|
@@ -171,7 +171,9 @@ const sendTransaction = async (tx)=>{
|
|
|
171
171
|
const signed = await tx;
|
|
172
172
|
const deferred = defer();
|
|
173
173
|
await signed.send((status)=>{
|
|
174
|
-
logger.debug(
|
|
174
|
+
logger.debug({
|
|
175
|
+
status: status.status.toHuman()
|
|
176
|
+
}, 'Transaction status');
|
|
175
177
|
if (status.isInBlock || status.isFinalized) {
|
|
176
178
|
deferred.resolve(status.events);
|
|
177
179
|
}
|
package/dist/cjs/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type": "commonjs"}
|
|
1
|
+
{ "type": "commonjs" }
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -84,10 +84,10 @@ export declare function defer<T>(): {
|
|
|
84
84
|
reject: (reason: any) => void;
|
|
85
85
|
promise: Promise<T>;
|
|
86
86
|
};
|
|
87
|
-
export declare const sendTransaction: (tx: Promise<SubmittableExtrinsic<
|
|
87
|
+
export declare const sendTransaction: (tx: Promise<SubmittableExtrinsic<"promise">>) => Promise<{
|
|
88
88
|
events: Promise<Codec[]>;
|
|
89
89
|
}>;
|
|
90
|
-
export declare const testingPairs: (keyringType?:
|
|
90
|
+
export declare const testingPairs: (keyringType?: "ed25519" | "sr25519", ss58Format?: number) => {
|
|
91
91
|
alice: import("@polkadot/keyring/types").KeyringPair;
|
|
92
92
|
bob: import("@polkadot/keyring/types").KeyringPair;
|
|
93
93
|
charlie: import("@polkadot/keyring/types").KeyringPair;
|
package/dist/esm/index.js
CHANGED
|
@@ -125,7 +125,9 @@ export const sendTransaction = async (tx)=>{
|
|
|
125
125
|
const signed = await tx;
|
|
126
126
|
const deferred = defer();
|
|
127
127
|
await signed.send((status)=>{
|
|
128
|
-
logger.debug(
|
|
128
|
+
logger.debug({
|
|
129
|
+
status: status.status.toHuman()
|
|
130
|
+
}, 'Transaction status');
|
|
129
131
|
if (status.isInBlock || status.isFinalized) {
|
|
130
132
|
deferred.resolve(status.events);
|
|
131
133
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
9
|
-
"build": "yarn clean &&
|
|
10
|
-
"build:cjs": "swc ./src --config-file ../../.cjsswcrc -d dist/cjs && tsc -p tsconfig.json --declarationDir dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
|
|
11
|
-
"build:esm": "swc ./src --config-file ../../.esmswcrc -d dist/esm && tsc -p tsconfig.json --declarationDir dist/esm",
|
|
9
|
+
"build": "yarn clean && ../../package-build.sh",
|
|
12
10
|
"depcheck": "npx depcheck"
|
|
13
11
|
},
|
|
14
12
|
"dependencies": {
|
|
15
|
-
"@acala-network/chopsticks": "0.
|
|
16
|
-
"@polkadot/api": "^
|
|
17
|
-
"@polkadot/api-base": "^
|
|
13
|
+
"@acala-network/chopsticks": "0.13.1",
|
|
14
|
+
"@polkadot/api": "^12.1.1",
|
|
15
|
+
"@polkadot/api-base": "^12.1.1",
|
|
18
16
|
"@polkadot/keyring": "^12.6.2",
|
|
19
|
-
"@polkadot/types": "^
|
|
17
|
+
"@polkadot/types": "^12.1.1",
|
|
20
18
|
"@polkadot/util": "^12.6.2"
|
|
21
19
|
},
|
|
22
20
|
"devDependencies": {
|
|
23
|
-
"@swc/cli": "0.
|
|
24
|
-
"@swc/core": "^1.
|
|
25
|
-
"typescript": "^5.
|
|
21
|
+
"@swc/cli": "0.4.0",
|
|
22
|
+
"@swc/core": "^1.6.7",
|
|
23
|
+
"typescript": "^5.5.3"
|
|
26
24
|
},
|
|
27
25
|
"files": [
|
|
28
26
|
"dist/esm/**",
|