@tezos-x/octez.js-rpc 0.9.0
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/README.md +54 -0
- package/dist/lib/octez.js-rpc.js +1085 -0
- package/dist/lib/opkind.js +49 -0
- package/dist/lib/rpc-client-interface.js +59 -0
- package/dist/lib/rpc-client-modules/rpc-cache.js +1235 -0
- package/dist/lib/types.js +114 -0
- package/dist/lib/utils/utils.js +62 -0
- package/dist/lib/version.js +8 -0
- package/dist/octez.js-rpc.es6.js +2536 -0
- package/dist/octez.js-rpc.es6.js.map +1 -0
- package/dist/octez.js-rpc.umd.js +2544 -0
- package/dist/octez.js-rpc.umd.js.map +1 -0
- package/dist/types/octez.js-rpc.d.ts +473 -0
- package/dist/types/opkind.d.ts +45 -0
- package/dist/types/rpc-client-interface.d.ts +124 -0
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +468 -0
- package/dist/types/types.d.ts +2352 -0
- package/dist/types/utils/utils.d.ts +14 -0
- package/dist/types/version.d.ts +4 -0
- package/package.json +104 -0
- package/signature.json +219 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Casts object/array items to BigNumber
|
|
3
|
+
* @param data input object or array
|
|
4
|
+
* @param keys keys for processing or all items if not defined
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare function castToBigNumber(data: any, keys?: any): object;
|
|
8
|
+
/**
|
|
9
|
+
* Casts object/array BigNumber items to strings for readability
|
|
10
|
+
* @param data input object or array
|
|
11
|
+
* @param keys keys for processing or all items if not defined
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare function castToString(data: any, keys?: any): object;
|
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tezos-x/octez.js-rpc",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tezos",
|
|
7
|
+
"blockchain",
|
|
8
|
+
"rpc"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/octez.js-rpc.umd.js",
|
|
11
|
+
"module": "dist/octez.js-rpc.es6.js",
|
|
12
|
+
"typings": "dist/types/octez.js-rpc.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"signature.json",
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"author": "Simon Boissonneault-Robert <simon@ecadlabs.com>",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/trilitech/octez.js.git"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=20"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "jest --coverage",
|
|
31
|
+
"test:watch": "jest --coverage --watch",
|
|
32
|
+
"test:prod": "npm run lint && npm run test -- --no-cache",
|
|
33
|
+
"lint": "eslint --ext .js,.ts .",
|
|
34
|
+
"precommit": "lint-staged",
|
|
35
|
+
"prebuild": "rimraf dist",
|
|
36
|
+
"version-stamp": "node ../octez.js/version-stamping.js",
|
|
37
|
+
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts --bundleConfigAsCjs",
|
|
38
|
+
"start": "rollup -c rollup.config.ts --bundleConfigAsCjs -w"
|
|
39
|
+
},
|
|
40
|
+
"lint-staged": {
|
|
41
|
+
"{src,test}/**/*.ts": [
|
|
42
|
+
"prettier --write",
|
|
43
|
+
"eslint --fix"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"jest": {
|
|
47
|
+
"transform": {
|
|
48
|
+
".(ts|tsx)": "ts-jest"
|
|
49
|
+
},
|
|
50
|
+
"testEnvironment": "node",
|
|
51
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
52
|
+
"moduleFileExtensions": [
|
|
53
|
+
"ts",
|
|
54
|
+
"tsx",
|
|
55
|
+
"js"
|
|
56
|
+
],
|
|
57
|
+
"moduleNameMapper": {
|
|
58
|
+
"^@tezos-x/octez.js-http-utils$": "<rootDir>/../octez.js-http-utils/src/octez.js-http-utils.ts"
|
|
59
|
+
},
|
|
60
|
+
"coveragePathIgnorePatterns": [
|
|
61
|
+
"/node_modules/",
|
|
62
|
+
"/test/"
|
|
63
|
+
],
|
|
64
|
+
"collectCoverageFrom": [
|
|
65
|
+
"src/**/*.{js,ts}"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@tezos-x/octez.js-core": "*",
|
|
70
|
+
"@tezos-x/octez.js-http-utils": "*",
|
|
71
|
+
"@tezos-x/octez.js-utils": "*",
|
|
72
|
+
"bignumber.js": "^9.1.2",
|
|
73
|
+
"whatwg-url": "^15.1.0"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@types/bluebird": "^3.5.42",
|
|
77
|
+
"@types/jest": "^29.5.12",
|
|
78
|
+
"@types/node": "^20",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
80
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
81
|
+
"colors": "^1.4.0",
|
|
82
|
+
"coveralls": "^3.1.1",
|
|
83
|
+
"cross-env": "^7.0.3",
|
|
84
|
+
"eslint": "^8.57.0",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"jest-config": "^29.7.0",
|
|
87
|
+
"lint-staged": "^15.2.7",
|
|
88
|
+
"lodash.camelcase": "^4.3.0",
|
|
89
|
+
"prettier": "^3.3.3",
|
|
90
|
+
"prompt": "^1.3.0",
|
|
91
|
+
"replace-in-file": "^8.1.0",
|
|
92
|
+
"rimraf": "^6.0.1",
|
|
93
|
+
"rollup": "^4.22.4",
|
|
94
|
+
"rollup-plugin-json": "^4.0.0",
|
|
95
|
+
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
96
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
97
|
+
"shelljs": "^0.8.5",
|
|
98
|
+
"ts-jest": "^29.2.3",
|
|
99
|
+
"ts-node": "^10.9.2",
|
|
100
|
+
"ts-toolbelt": "^9.6.0",
|
|
101
|
+
"typescript": "~5.5.4"
|
|
102
|
+
},
|
|
103
|
+
"gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
|
|
104
|
+
}
|
package/signature.json
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
{
|
|
4
|
+
"entry": "files/v1alpha2",
|
|
5
|
+
"value": {
|
|
6
|
+
"files": [
|
|
7
|
+
{
|
|
8
|
+
"path": "dist/lib/opkind.js",
|
|
9
|
+
"sha512": "0e60d8f65513650e544e857ef89c748fd0974a7cf0cc35caff5a5b07a631d4596f08b6dec30c8bf1a9bfc489dd935fd6268e0b2498dcd3b5fcff919f37020e78"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"path": "dist/octez.js-rpc.es5.js",
|
|
13
|
+
"sha512": "788082fb28a66b77bf242ae03a1ce12ef396885279aec22794e4cd9ba21f0fc932f6abbf0f0f148ba381cd9df42b6524352cbe430e510176aa054743e8983236"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "dist/lib/octez.js-rpc.js",
|
|
17
|
+
"sha512": "539a668372f3c2b9279a3e66822d6ba62f4727d120c10c43cab2979ca5474c031982bec60027e9eb3b27523789e72e97fdfb80fef21da07d726afbdd3f6f2627"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "dist/octez.js-rpc.umd.js",
|
|
21
|
+
"sha512": "a93ffe6e57854717ab4a115532c0432936289a8edada56f9f876e3dae52c5b15036e6e60daae4fc9561b63548076dfa61d8de2e46004d61754e2e9c6e75195f7"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "dist/lib/types.js",
|
|
25
|
+
"sha512": "9e153af0176a3eb9c340bc30c016b6fc5410466e8f4cd5ce09a73fdb98265c937c30677fbacf526ff7555c93e7da855c8a170fd76798a74693e3fdbcc182380a"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "dist/lib/utils/utils.js",
|
|
29
|
+
"sha512": "368fc6e948d268cf36adcadf6f95f3bec041b242ccd334381e6491ae0566f59b3f8d7b4688c2dc29220efa2cb1f38ec523c5815c042e351aa967086e9e80521c"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "dist/lib/opkind.js.map",
|
|
33
|
+
"sha512": "08c6f08341a04d079da0a7cf6b5d063892f7b4de8ae863725846c6bf38dd01607b750047ec065bb8764a2b66ed1c86bfc6313b4cc3b8bc817d0333b055c27c25"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "dist/octez.js-rpc.es5.js.map",
|
|
37
|
+
"sha512": "9819b574b325a5e9c31d1caefbaf7fc1d3aafaf438bd66cf0c7d3cca26ed7278c5de0adddd08b619b8ae25503442dacb2b9faa998f24fb733536f8b1613a36f3"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "dist/lib/octez.js-rpc.js.map",
|
|
41
|
+
"sha512": "bf12d5a4ae75c7767f1dcc34ae7f4b3c7ec116a06390c2a4611a8be2ed4f1411050f0a61c65efb152070efac7bae1fac65c3c74c11e02867c789611fbc974d56"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "dist/octez.js-rpc.umd.js.map",
|
|
45
|
+
"sha512": "884b5fecbac5744551abc7cf48d10e1ae126476568368a1eafe4bb43a79955ad96019df7f32de6e832a9d2fe86f5a5619fc629784597d78ea75cf08c85226093"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "dist/lib/types.js.map",
|
|
49
|
+
"sha512": "74f2b583fe48066885b78689d02c463274b52b71becdb19f1306fb1c7bbaf63fa7987695f725babcb58a23d772b032877b80340181d70d0b612f49a9d0e3d0e2"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "dist/lib/utils/utils.js.map",
|
|
53
|
+
"sha512": "f1c37cdece493de301df86245baf12314dbbd389fddf5b870257f979d6d6ea01ea67a9b271c8b8645134c0b1fe0eb012ec93e85ed42d42e350ee6ccd60c3f719"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "README.md",
|
|
57
|
+
"sha512": "b36cb4ca675118a195dc72909bb47a45fdc7e6ace50d764d3647c25ae51a0afe01307d835bd76068c0c2d6c15087382f2ec40dbc5a4e117a88326692a4d530b9"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "dist/types/opkind.d.ts",
|
|
61
|
+
"sha512": "617d0d0568a701e211020509a7302fb7747588e661536a9b39e2234a9c0e62fdafcf72c295590a34dbfca16cde378f96557dd87be5ac731642b6d57ebb922c5a"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "dist/types/octez.js-rpc.d.ts",
|
|
65
|
+
"sha512": "34cafdca77482b39989bfe32c75dee83791021c45af7efa2c4bee5695e9ec21959451c1834de6c756a45dbb313e038f17ee3703df97f55391476fae0f2bc95a9"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "dist/types/types.d.ts",
|
|
69
|
+
"sha512": "22f689a72332c8718a1ed5bf1dd59962a713a38da5ad73d08238766cf1ce3ed8a0cef30ddb3a7f997ee2516d3228a75d3f4f09e4116278f3451540d129bf3293"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "dist/types/utils/utils.d.ts",
|
|
73
|
+
"sha512": "5006fab10ab85ea4034195bc95d5fbc8e51f374e9fd76b9b6b9d0bc091471209755644247475a153be6ee21fdb6cd6a350512a81e52be321cf0ff56f92acebae"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"entry": "identity/v1alpha2",
|
|
80
|
+
"value": {
|
|
81
|
+
"identity": {
|
|
82
|
+
"keybaseUser": "jevonearth"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"entry": "npmCompatiblePackageJson/v1alpha2",
|
|
88
|
+
"value": {
|
|
89
|
+
"packageJsonProperties": [
|
|
90
|
+
"author",
|
|
91
|
+
"dependencies",
|
|
92
|
+
"description",
|
|
93
|
+
"devDependencies",
|
|
94
|
+
"engines",
|
|
95
|
+
"files",
|
|
96
|
+
"gitHead",
|
|
97
|
+
"jest",
|
|
98
|
+
"keywords",
|
|
99
|
+
"license",
|
|
100
|
+
"lint-staged",
|
|
101
|
+
"main",
|
|
102
|
+
"module",
|
|
103
|
+
"name",
|
|
104
|
+
"publishConfig",
|
|
105
|
+
"repository",
|
|
106
|
+
"scripts",
|
|
107
|
+
"typings",
|
|
108
|
+
"version"
|
|
109
|
+
],
|
|
110
|
+
"sha512": "2317247803f1176714b7fab235762e5fdcff1b064773b9debb3d42aa34a1f27ec83e5eb77e75228f9348be5430faf6fd2ccae6c67cacf1460bafd242c45a4514"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"entry": "packageJson/v1alpha2",
|
|
115
|
+
"value": {
|
|
116
|
+
"packageJson": {
|
|
117
|
+
"name": "@tezos-x/octez.js-rpc",
|
|
118
|
+
"version": "8.0.4-beta.0",
|
|
119
|
+
"description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",
|
|
120
|
+
"keywords": [
|
|
121
|
+
"tezos",
|
|
122
|
+
"blockchain",
|
|
123
|
+
"rpc"
|
|
124
|
+
],
|
|
125
|
+
"main": "dist/octez.js-rpc.umd.js",
|
|
126
|
+
"module": "dist/octez.js-rpc.es5.js",
|
|
127
|
+
"typings": "dist/types/octez.js-rpc.d.ts",
|
|
128
|
+
"files": [
|
|
129
|
+
"signature.json",
|
|
130
|
+
"dist"
|
|
131
|
+
],
|
|
132
|
+
"publishConfig": {
|
|
133
|
+
"access": "public"
|
|
134
|
+
},
|
|
135
|
+
"author": "Simon Boissonneault-Robert <simon@ecadlabs.com>",
|
|
136
|
+
"repository": {
|
|
137
|
+
"type": "git",
|
|
138
|
+
"url": ""
|
|
139
|
+
},
|
|
140
|
+
"license": "MIT",
|
|
141
|
+
"engines": {
|
|
142
|
+
"node": ">=18"
|
|
143
|
+
},
|
|
144
|
+
"scripts": {
|
|
145
|
+
"test": "jest --coverage",
|
|
146
|
+
"test:watch": "jest --coverage --watch",
|
|
147
|
+
"test:prod": "npm run lint && npm run test -- --no-cache",
|
|
148
|
+
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
|
149
|
+
"precommit": "lint-staged",
|
|
150
|
+
"prebuild": "rimraf dist",
|
|
151
|
+
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts",
|
|
152
|
+
"start": "rollup -c rollup.config.ts -w"
|
|
153
|
+
},
|
|
154
|
+
"lint-staged": {
|
|
155
|
+
"{src,test}/**/*.ts": [
|
|
156
|
+
"prettier --write",
|
|
157
|
+
"tslint --fix"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"jest": {
|
|
161
|
+
"transform": {
|
|
162
|
+
".(ts|tsx)": "ts-jest"
|
|
163
|
+
},
|
|
164
|
+
"testEnvironment": "node",
|
|
165
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
166
|
+
"moduleFileExtensions": [
|
|
167
|
+
"ts",
|
|
168
|
+
"tsx",
|
|
169
|
+
"js"
|
|
170
|
+
],
|
|
171
|
+
"moduleNameMapper": {
|
|
172
|
+
"^@tezos-x/octez.js-http-utils$": "<rootDir>/../octez.js-http-utils/src/octez.js-http-utils.ts"
|
|
173
|
+
},
|
|
174
|
+
"coveragePathIgnorePatterns": [
|
|
175
|
+
"/node_modules/",
|
|
176
|
+
"/test/"
|
|
177
|
+
],
|
|
178
|
+
"collectCoverageFrom": [
|
|
179
|
+
"src/**/*.{js,ts}"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"dependencies": {
|
|
183
|
+
"@tezos-x/octez.js-http-utils": "^8.0.4-beta.0",
|
|
184
|
+
"bignumber.js": "^9.0.1",
|
|
185
|
+
"lodash": "^4.17.20"
|
|
186
|
+
},
|
|
187
|
+
"devDependencies": {
|
|
188
|
+
"@types/jest": "^26.0.16",
|
|
189
|
+
"@types/lodash": "^4.14.165",
|
|
190
|
+
"@types/node": "^18",
|
|
191
|
+
"colors": "^1.4.0",
|
|
192
|
+
"coveralls": "^3.1.0",
|
|
193
|
+
"cross-env": "^7.0.2",
|
|
194
|
+
"jest": "^26.6.3",
|
|
195
|
+
"jest-config": "^26.6.3",
|
|
196
|
+
"lint-staged": "^10.4.0",
|
|
197
|
+
"lodash.camelcase": "^4.3.0",
|
|
198
|
+
"prettier": "^2.1.2",
|
|
199
|
+
"prompt": "^1.0.0",
|
|
200
|
+
"replace-in-file": "^6.1.0",
|
|
201
|
+
"rimraf": "^3.0.2",
|
|
202
|
+
"rollup": "^2.28.2",
|
|
203
|
+
"rollup-plugin-json": "^4.0.0",
|
|
204
|
+
"rollup-plugin-typescript2": "^0.27.3",
|
|
205
|
+
"shelljs": "^0.8.4",
|
|
206
|
+
"ts-jest": "^26.4.4",
|
|
207
|
+
"ts-node": "^9.1.1",
|
|
208
|
+
"tslint": "^6.1.3",
|
|
209
|
+
"tslint-config-prettier": "^1.18.0",
|
|
210
|
+
"tslint-config-standard": "^9.0.0",
|
|
211
|
+
"typescript": "~4.1.5"
|
|
212
|
+
},
|
|
213
|
+
"gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJgN/UFCRAD9Qy5GYHsngAA4OMQABBJUQMVjjoSYtm9JL/He9c9\ngjqPUgJ3emzVtAagfOB1eNHr2nD0U+r2NSBj20NE+wF3eLBmlnRvIJFsvjakMj5E\nbRMUV+vcB3SWBGZLG8MhC6OShcrWk8Zy08qRkMkOEMhb9v6CQfHJ+y6vyc1iDOhF\njkrPpEviqwLrbiG2m1Bh20DLzG+W8L1q/ndaY1XlhObps1d9th2YbCb+gBExQEbg\nCKb/mGuj1XfU8rG4t3R2EDKlnVpwiEtSolzboznt3vnJN2S73K7Td/i8PzrxWSNX\nDkA5GBqaDa+RQ8k7IqVOAeAQzdcCSzD++LXR0IzbTUfYUneGtwhsr3at65wkYuMS\nT4Dv57S8rcS50xijuOhPWKuSH+mVnkJmd/tpHsVYt9vwjudRtFe3JeJ/xXFymJVs\ntOWhlBNMs+zRMfRtnHM/Nn1nbgXWpyIyLIKh6pFuQTPvQhCGcS7BVs1oNZP6dPcX\n0KCI+O2NcVPSALc5ZmEdZsZ7AWkvuqDFLkLo+M7oPrJOrWxwIq4Zjr+sOLpaesN5\nCX0l8e+QC/kV0tnoILBhitHNQ9d3j0fxrl4h3q9k5XvnbwyfnqPy1uszqHRsExJo\nMQmeyRhNeO5UrtqtVv8dudq9XaD0tSV8PsJdg/Ao/LKi3Wut9PsV6NypMYl1N1k5\nQOXEoWtq2i9XVePw9TNk\n=mjPP\n-----END PGP SIGNATURE-----\n"
|
|
219
|
+
}
|