@initia/initia.js 1.0.2 → 1.0.4
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/client/rest/api/IbcAPI.d.ts +3 -3
- package/dist/core/ibc/core/channel/Channel.d.ts +4 -1
- package/dist/core/ibc/core/channel/IdentifiedChannel.d.ts +43 -0
- package/dist/core/ibc/core/channel/index.d.ts +1 -0
- package/dist/index.cjs +23 -2
- package/dist/index.mjs +97904 -0
- package/dist/util/bcs.d.ts +2 -1
- package/package.json +6 -8
- package/dist/index.js +0 -27985
package/dist/util/bcs.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export declare const bcs: {
|
|
|
16
16
|
u256(options?: BcsTypeOptions<string, number | bigint | string>): import('@mysten/bcs').BcsType<string, string | number | bigint>;
|
|
17
17
|
bool(options?: BcsTypeOptions<boolean>): import('@mysten/bcs').BcsType<boolean, boolean>;
|
|
18
18
|
uleb128(options?: BcsTypeOptions<number>): import('@mysten/bcs').BcsType<number, number>;
|
|
19
|
-
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): import('@mysten/bcs').BcsType<Uint8Array
|
|
19
|
+
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): import('@mysten/bcs').BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>>;
|
|
20
|
+
byteVector(options?: BcsTypeOptions<Uint8Array, Iterable<number>>): import('@mysten/bcs').BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>>;
|
|
20
21
|
string(options?: BcsTypeOptions<string>): import('@mysten/bcs').BcsType<string, string>;
|
|
21
22
|
fixedArray<T, Input>(size: number, type: import('@mysten/bcs').BcsType<T, Input>, options?: BcsTypeOptions<T[], Iterable<Input> & {
|
|
22
23
|
length: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@initia/initia.js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "The JavaScript SDK for Initia",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Initia Foundation",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"url": "https://github.com/initia-labs/initia.js"
|
|
10
10
|
},
|
|
11
11
|
"main": "dist/index.cjs",
|
|
12
|
-
"module": "dist/index.
|
|
12
|
+
"module": "dist/index.mjs",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"require": "./dist/index.cjs",
|
|
18
|
-
"import": "./dist/index.
|
|
18
|
+
"import": "./dist/index.mjs"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "vite build",
|
|
29
|
-
"test": "
|
|
29
|
+
"test": "vitest",
|
|
30
30
|
"lint": "npx eslint . --fix",
|
|
31
31
|
"prepare": "husky",
|
|
32
32
|
"prepublishOnly": "rm -rf ./dist && npm run build"
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@eslint/js": "^9.5.0",
|
|
36
36
|
"@types/eslint": "^8.56.10",
|
|
37
37
|
"@types/eslint__js": "^8.42.3",
|
|
38
|
-
"@types/jest": "^29.0.3",
|
|
39
38
|
"@types/node": "^22.7.7",
|
|
40
39
|
"@types/ripemd160": "^2.0.0",
|
|
41
40
|
"@types/secp256k1": "^4.0.6",
|
|
@@ -48,15 +47,14 @@
|
|
|
48
47
|
"eslint-plugin-import": "^2.29.0",
|
|
49
48
|
"eslint-plugin-prettier": "^5.1.3",
|
|
50
49
|
"husky": "^9.0.11",
|
|
51
|
-
"jest": "^29.1.1",
|
|
52
50
|
"lint-staged": "^15.4.3",
|
|
53
51
|
"prettier": "^3.1.1",
|
|
54
|
-
"ts-jest": "^29.2.5",
|
|
55
52
|
"ts-node": "^10.9.2",
|
|
56
53
|
"typescript": "^5.4.5",
|
|
57
54
|
"typescript-eslint": "^7.13.1",
|
|
58
55
|
"vite": "^6.2.0",
|
|
59
|
-
"vite-plugin-dts": "^4.2.3"
|
|
56
|
+
"vite-plugin-dts": "^4.2.3",
|
|
57
|
+
"vitest": "^3.0.9"
|
|
60
58
|
},
|
|
61
59
|
"dependencies": {
|
|
62
60
|
"@bitcoinerlab/secp256k1": "^1.1.1",
|