@dedot/contracts 0.0.1-next.cb041b89.17 → 0.0.1-next.cfee875e.21
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.
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConstructorQueryExecutor = void 0;
|
|
4
4
|
const utils_1 = require("@dedot/utils");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
class ConstructorQueryExecutor extends
|
|
5
|
+
const utils_js_1 = require("../utils.js");
|
|
6
|
+
const Executor_js_1 = require("./Executor.js");
|
|
7
|
+
class ConstructorQueryExecutor extends Executor_js_1.Executor {
|
|
8
8
|
code;
|
|
9
9
|
constructor(api, registry, code) {
|
|
10
10
|
super(api, registry);
|
|
@@ -32,7 +32,7 @@ class ConstructorQueryExecutor extends Executor_1.Executor {
|
|
|
32
32
|
return callFn;
|
|
33
33
|
}
|
|
34
34
|
#findConstructorMeta(constructor) {
|
|
35
|
-
return this.metadata.spec.constructors.find((one) => (0,
|
|
35
|
+
return this.metadata.spec.constructors.find((one) => (0, utils_js_1.normalizeLabel)(one.label) === constructor);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
exports.ConstructorQueryExecutor = ConstructorQueryExecutor;
|
|
@@ -2,9 +2,9 @@ import { ISubstrateClient } from '@dedot/api';
|
|
|
2
2
|
import { Hash } from '@dedot/codecs';
|
|
3
3
|
import { GenericSubstrateApi } from '@dedot/types';
|
|
4
4
|
import { HexString } from '@dedot/utils';
|
|
5
|
-
import { TypinkRegistry } from '../TypinkRegistry';
|
|
5
|
+
import { TypinkRegistry } from '../TypinkRegistry.js';
|
|
6
6
|
import { GenericConstructorQueryCall } from '../types/index.js';
|
|
7
|
-
import { Executor } from './Executor';
|
|
7
|
+
import { Executor } from './Executor.js';
|
|
8
8
|
export declare class ConstructorQueryExecutor<ChainApi extends GenericSubstrateApi> extends Executor<ChainApi> {
|
|
9
9
|
#private;
|
|
10
10
|
protected readonly code: Hash | Uint8Array | HexString | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assert, concatU8a, hexToU8a, isWasm, u8aToHex } from '@dedot/utils';
|
|
2
|
-
import { normalizeLabel } from '../utils';
|
|
3
|
-
import { Executor } from './Executor';
|
|
2
|
+
import { normalizeLabel } from '../utils.js';
|
|
3
|
+
import { Executor } from './Executor.js';
|
|
4
4
|
export class ConstructorQueryExecutor extends Executor {
|
|
5
5
|
code;
|
|
6
6
|
constructor(api, registry, code) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/contracts",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.cfee875e.21+cfee875",
|
|
4
4
|
"description": "Delightful ink! Contract APIs",
|
|
5
5
|
"author": "Tung Vu <tung@coongcrafts.io>",
|
|
6
6
|
"main": "./cjs/index.js",
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
"test": "vitest --watch=false"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@dedot/api": "0.0.1-next.
|
|
16
|
-
"@dedot/codecs": "0.0.1-next.
|
|
17
|
-
"@dedot/types": "0.0.1-next.
|
|
18
|
-
"@dedot/utils": "0.0.1-next.
|
|
15
|
+
"@dedot/api": "0.0.1-next.cfee875e.21+cfee875",
|
|
16
|
+
"@dedot/codecs": "0.0.1-next.cfee875e.21+cfee875",
|
|
17
|
+
"@dedot/types": "0.0.1-next.cfee875e.21+cfee875",
|
|
18
|
+
"@dedot/utils": "0.0.1-next.cfee875e.21+cfee875"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public",
|
|
22
22
|
"directory": "dist"
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "cfee875eafba07e0fbb8a72556ca549a62ddceff",
|
|
26
26
|
"module": "./index.js",
|
|
27
27
|
"types": "./index.d.ts",
|
|
28
28
|
"exports": {
|
package/types/shared.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface ContractSource {
|
|
|
3
3
|
wasm?: string;
|
|
4
4
|
language: string;
|
|
5
5
|
compiler: string;
|
|
6
|
-
|
|
6
|
+
build_info: BuildInfo;
|
|
7
7
|
}
|
|
8
8
|
export interface ContractInformation {
|
|
9
9
|
name: string;
|
|
@@ -11,14 +11,14 @@ export interface ContractInformation {
|
|
|
11
11
|
authors: string[];
|
|
12
12
|
}
|
|
13
13
|
export interface BuildInfo {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
build_mode: string;
|
|
15
|
+
cargo_contract_version: string;
|
|
16
|
+
rust_toolchain: string;
|
|
17
|
+
wasm_opt_settings: WasmOptSettings;
|
|
18
18
|
}
|
|
19
19
|
export interface WasmOptSettings {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
keep_debug_symbols: boolean;
|
|
21
|
+
optimization_passes: string;
|
|
22
22
|
}
|
|
23
23
|
export interface ContractMessageArg {
|
|
24
24
|
label: string;
|
package/types/v4.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface ContractSpecV4 {
|
|
|
12
12
|
docs: string[];
|
|
13
13
|
environment: ContractEnvironmentV4;
|
|
14
14
|
events: ContractEventV4[];
|
|
15
|
-
|
|
15
|
+
lang_error: ContractTypeInfo;
|
|
16
16
|
messages: ContractMessage[];
|
|
17
17
|
}
|
|
18
18
|
export interface ContractEventV4 {
|