@sentio/sdk 2.0.0-rc.22 → 2.0.0-rc.24
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/lib/aptos/{run-codegen.d.ts → codegen/run.d.ts} +0 -0
- package/lib/aptos/{run-codegen.js → codegen/run.js} +2 -2
- package/lib/aptos/codegen/run.js.map +1 -0
- package/lib/eth/{run-codegen.d.ts → codegen/run.d.ts} +0 -0
- package/lib/eth/{run-codegen.js → codegen/run.js} +2 -2
- package/lib/eth/codegen/run.js.map +1 -0
- package/lib/solana/{run-codegen.d.ts → codegen/run.d.ts} +0 -0
- package/lib/solana/{run-codegen.js → codegen/run.js} +2 -2
- package/lib/solana/codegen/run.js.map +1 -0
- package/package.json +11 -11
- package/src/aptos/{run-codegen.ts → codegen/run.ts} +1 -1
- package/src/aptos/codegen/tsconfig.json +1 -1
- package/src/eth/{run-codegen.ts → codegen/run.ts} +1 -1
- package/src/eth/codegen/tsconfig.json +1 -1
- package/src/solana/{run-codegen.ts → codegen/run.ts} +1 -2
- package/src/solana/codegen/tsconfig.json +1 -1
- package/lib/aptos/run-codegen.js.map +0 -1
- package/lib/eth/run-codegen.js.map +0 -1
- package/lib/solana/run-codegen.js.map +0 -1
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// #!/usr/bin/env node
|
|
2
|
-
import { codegen } from './codegen
|
|
2
|
+
import { codegen } from './codegen.js';
|
|
3
3
|
if (process.argv.length > 3) {
|
|
4
4
|
const abisDir = process.argv[2];
|
|
5
5
|
const targetDir = process.argv[3];
|
|
@@ -9,4 +9,4 @@ else {
|
|
|
9
9
|
console.error('Not enough argument');
|
|
10
10
|
process.exit(1);
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=run
|
|
12
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/aptos/codegen/run.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAEjC,MAAM,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;CAClC;KAAM;IACL,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB","sourcesContent":["// #!/usr/bin/env node\n\nimport { codegen } from './codegen.js'\n\nif (process.argv.length > 3) {\n const abisDir = process.argv[2]\n const targetDir = process.argv[3]\n\n await codegen(abisDir, targetDir)\n} else {\n console.error('Not enough argument')\n process.exit(1)\n}\n"]}
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { codegen } from './
|
|
2
|
+
import { codegen } from './index.js';
|
|
3
3
|
if (process.argv.length > 3) {
|
|
4
4
|
const abisDir = process.argv[2];
|
|
5
5
|
const targetDir = process.argv[3];
|
|
@@ -9,4 +9,4 @@ else {
|
|
|
9
9
|
console.error('Not enough argument');
|
|
10
10
|
process.exit(1);
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=run
|
|
12
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/eth/codegen/run.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjC,MAAM,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;CAClC;KAAM;IACL,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB","sourcesContent":["#!/usr/bin/env node\n\nimport { codegen } from './index.js'\n\nif (process.argv.length > 3) {\n const abisDir = process.argv[2]\n const targetDir = process.argv[3]\n await codegen(abisDir, targetDir)\n} else {\n console.error('Not enough argument')\n process.exit(1)\n}\n"]}
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { codegen } from './codegen
|
|
2
|
+
import { codegen } from './codegen.js';
|
|
3
3
|
if (process.argv.length > 3) {
|
|
4
4
|
const abisDir = process.argv[2];
|
|
5
5
|
const targetDir = process.argv[3];
|
|
@@ -9,4 +9,4 @@ else {
|
|
|
9
9
|
console.error('Not enough argument');
|
|
10
10
|
process.exit(1);
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=run
|
|
12
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/solana/codegen/run.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;CAC5B;KAAM;IACL,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB","sourcesContent":["#!/usr/bin/env node\n\nimport { codegen } from './codegen.js'\n\nif (process.argv.length > 3) {\n const abisDir = process.argv[2]\n const targetDir = process.argv[3]\n codegen(abisDir, targetDir)\n} else {\n console.error('Not enough argument')\n process.exit(1)\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/sdk",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.0.0-rc.
|
|
4
|
+
"version": "2.0.0-rc.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"compile": "tsc -p . && cp src/utils/*.csv lib/utils && cp src/tsup.config.ts lib",
|
|
8
8
|
"build": "yarn gen:eth && yarn gen:aptos && yarn gen:solana && yarn compile",
|
|
9
9
|
"build_all": "yarn lerna run --scope=@sentio/sdk build --include-dependencies",
|
|
10
10
|
"test": "NODE_OPTIONS=--experimental-vm-modules yarn jest",
|
|
11
|
-
"gen:eth": "ts-node-esm
|
|
12
|
-
"gen:eth_test": "ts-node-esm
|
|
13
|
-
"gen:aptos": "ts-node-esm
|
|
14
|
-
"gen:aptos_test": "ts-node-esm
|
|
15
|
-
"gen:solana": "ts-node-esm
|
|
11
|
+
"gen:eth": "ts-node-esm src/eth/codegen/run.ts src/eth/abis src/eth/builtin && yarn gen:eth_test",
|
|
12
|
+
"gen:eth_test": "ts-node-esm src/eth/codegen/run.ts src/tests/abis/eth ./src/tests/types/eth",
|
|
13
|
+
"gen:aptos": "ts-node-esm src/aptos/codegen/run.ts src/aptos/abis src/aptos/builtin && yarn gen:aptos_test",
|
|
14
|
+
"gen:aptos_test": "ts-node-esm src/aptos/codegen/run.ts src/aptos/tests/abis src/aptos/tests/types",
|
|
15
|
+
"gen:solana": "ts-node-esm src/solana/codegen/run.ts src/solana/tests/abis src/solana/tests/types"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@project-serum/anchor": "^0.26.0",
|
|
19
19
|
"@sentio/bigdecimal": "^9.1.1-patch.3",
|
|
20
20
|
"@sentio/ethers-v6": "^1.0.24",
|
|
21
|
-
"@sentio/protos": "^2.0.0-rc.
|
|
22
|
-
"@sentio/runtime": "^2.0.0-rc.
|
|
23
|
-
"@sentio/sdk": "^2.0.0-rc.
|
|
21
|
+
"@sentio/protos": "^2.0.0-rc.24",
|
|
22
|
+
"@sentio/runtime": "^2.0.0-rc.24",
|
|
23
|
+
"@sentio/sdk": "^2.0.0-rc.24",
|
|
24
24
|
"@solana/web3.js": "^1.47.3",
|
|
25
25
|
"@types/prettier": "^2.7.2",
|
|
26
26
|
"aptos-sdk": "npm:@sentio/aptos@^1.6.0",
|
|
27
27
|
"bs58": "^5.0.0",
|
|
28
28
|
"chalk": "^5.2.0",
|
|
29
29
|
"csv-parse": "^5.3.0",
|
|
30
|
-
"ethers": "npm:@sentio/ethers@^6.0.
|
|
30
|
+
"ethers": "npm:@sentio/ethers@^6.0.2",
|
|
31
31
|
"lodash-es": "^4.17.21",
|
|
32
32
|
"mkdirp": "^2.1.3",
|
|
33
33
|
"p-queue": "^7.3.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typedoc": {
|
|
72
72
|
"entryPoint": "./src/index.ts"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "8c70ba39793bdfdecb15d4461f5e391fdf78a299"
|
|
75
75
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-codegen.js","sourceRoot":"","sources":["../../src/aptos/run-codegen.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAE9C,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAEjC,MAAM,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;CAClC;KAAM;IACL,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB","sourcesContent":["// #!/usr/bin/env node\n\nimport { codegen } from './codegen/codegen.js'\n\nif (process.argv.length > 3) {\n const abisDir = process.argv[2]\n const targetDir = process.argv[3]\n\n await codegen(abisDir, targetDir)\n} else {\n console.error('Not enough argument')\n process.exit(1)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-codegen.js","sourceRoot":"","sources":["../../src/eth/run-codegen.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjC,MAAM,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;CAClC;KAAM;IACL,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB","sourcesContent":["#!/usr/bin/env node\n\nimport { codegen } from './codegen/index.js'\n\nif (process.argv.length > 3) {\n const abisDir = process.argv[2]\n const targetDir = process.argv[3]\n await codegen(abisDir, targetDir)\n} else {\n console.error('Not enough argument')\n process.exit(1)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-codegen.js","sourceRoot":"","sources":["../../src/solana/run-codegen.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAE9C,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;CAC5B;KAAM;IACL,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAChB","sourcesContent":["#!/usr/bin/env node\n\nimport path from 'path'\nimport { codegen } from './codegen/codegen.js'\n\nif (process.argv.length > 3) {\n const abisDir = process.argv[2]\n const targetDir = process.argv[3]\n codegen(abisDir, targetDir)\n} else {\n console.error('Not enough argument')\n process.exit(1)\n}\n"]}
|