@sentio/cli 1.37.5-rc.7 → 2.0.0-development

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.
Files changed (68) hide show
  1. package/lib/index.js +125 -0
  2. package/package.json +42 -41
  3. package/lib/build.d.ts +0 -2
  4. package/lib/build.js +0 -86
  5. package/lib/build.js.map +0 -1
  6. package/lib/cli.d.ts +0 -2
  7. package/lib/cli.js +0 -186
  8. package/lib/cli.js.map +0 -1
  9. package/lib/commands/login-server.d.ts +0 -7
  10. package/lib/commands/login-server.js +0 -133
  11. package/lib/commands/login-server.js.map +0 -1
  12. package/lib/commands/run-create.d.ts +0 -1
  13. package/lib/commands/run-create.js +0 -121
  14. package/lib/commands/run-create.js.map +0 -1
  15. package/lib/commands/run-login.d.ts +0 -1
  16. package/lib/commands/run-login.js +0 -136
  17. package/lib/commands/run-login.js.map +0 -1
  18. package/lib/commands/run-version.d.ts +0 -1
  19. package/lib/commands/run-version.js +0 -69
  20. package/lib/commands/run-version.js.map +0 -1
  21. package/lib/config.d.ts +0 -14
  22. package/lib/config.js +0 -64
  23. package/lib/config.js.map +0 -1
  24. package/lib/key.d.ts +0 -2
  25. package/lib/key.js +0 -44
  26. package/lib/key.js.map +0 -1
  27. package/lib/upload.d.ts +0 -2
  28. package/lib/upload.js +0 -189
  29. package/lib/upload.js.map +0 -1
  30. package/lib/utils.d.ts +0 -2
  31. package/lib/utils.js +0 -28
  32. package/lib/utils.js.map +0 -1
  33. package/lib/webpack.config.js +0 -50
  34. package/src/build.ts +0 -99
  35. package/src/cli.ts +0 -184
  36. package/src/commands/login-server.ts +0 -119
  37. package/src/commands/run-create.ts +0 -126
  38. package/src/commands/run-login.ts +0 -111
  39. package/src/commands/run-version.ts +0 -38
  40. package/src/config.ts +0 -72
  41. package/src/key.ts +0 -43
  42. package/src/upload.ts +0 -214
  43. package/src/utils.ts +0 -21
  44. package/src/webpack.config.js +0 -50
  45. package/templates/aptos/abis/aptos/souffle.json +0 -389
  46. package/templates/aptos/jest.config.js +0 -7
  47. package/templates/aptos/package.json +0 -21
  48. package/templates/aptos/sentio.yaml +0 -1
  49. package/templates/aptos/src/processor.ts +0 -13
  50. package/templates/aptos/tsconfig.json +0 -20
  51. package/templates/evm/abis/evm/x2y2.json +0 -296
  52. package/templates/evm/jest.config.js +0 -7
  53. package/templates/evm/package.json +0 -20
  54. package/templates/evm/sentio.yaml +0 -3
  55. package/templates/evm/src/processor.ts +0 -29
  56. package/templates/evm/tsconfig.json +0 -20
  57. package/templates/raw/jest.config.js +0 -7
  58. package/templates/raw/package.json +0 -20
  59. package/templates/raw/sentio.yaml +0 -3
  60. package/templates/raw/src/processor.ts +0 -0
  61. package/templates/raw/tsconfig.json +0 -20
  62. package/templates/raw/yarn.lock +0 -4095
  63. package/templates/solana/jest.config.js +0 -7
  64. package/templates/solana/package.json +0 -21
  65. package/templates/solana/sentio.yaml +0 -3
  66. package/templates/solana/src/processor.ts +0 -16
  67. package/templates/solana/tsconfig.json +0 -20
  68. package/templates/solana/yarn.lock +0 -4918
@@ -1,7 +0,0 @@
1
- /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
-
3
- module.exports = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'node',
6
- modulePathIgnorePatterns: ["<rootDir>/dist/"]
7
- };
@@ -1,21 +0,0 @@
1
- {
2
- "name": "template-solana",
3
- "private": true,
4
- "version": "1.0.0",
5
- "scripts": {
6
- "test": "jest",
7
- "gen": "sentio gen",
8
- "build": "sentio build",
9
- "upload": "sentio upload"
10
- },
11
- "dependencies": {
12
- "@sentio/sdk": "^1.0.0-development",
13
- "@sentio/sdk-solana": "^1.0.0-development"
14
- },
15
- "devDependencies": {
16
- "@types/jest": "^29.0.0",
17
- "jest": "^29.0.0",
18
- "ts-jest": "^29.0.0",
19
- "typescript": "^4.9.0"
20
- }
21
- }
@@ -1,3 +0,0 @@
1
- # Project name could be $org_or_user/$project_name or $project_name
2
- # If latter, will be treated the owner as api key's owner
3
- project: default
@@ -1,16 +0,0 @@
1
- import { SPLTokenProcessor } from '@sentio/sdk-solana/lib/builtin'
2
-
3
- SPLTokenProcessor.bind({
4
- address: 'wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb',
5
- processInnerInstruction: true,
6
- })
7
- .onMintTo((data, ctx) => {
8
- if (data.mint === '7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs') {
9
- ctx.meter.Counter('totalWeth_supply').add(data.amount as number)
10
- }
11
- })
12
- .onBurn((data, ctx) => {
13
- if (data.mint === '7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs') {
14
- ctx.meter.Counter('totalWeth_supply').sub(data.amount as number)
15
- }
16
- })
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "alwaysStrict": true,
4
- "sourceMap": true,
5
- "target": "esnext",
6
- "esModuleInterop": true,
7
- "noImplicitReturns": true,
8
- "noImplicitAny": true,
9
- "module": "commonjs",
10
- "moduleResolution": "node",
11
- "strictNullChecks": true,
12
- "stripInternal": true,
13
- "noFallthroughCasesInSwitch": true,
14
- "noEmitOnError": true,
15
- "outDir": "dist",
16
- "rootDir": "./src",
17
- "skipLibCheck": true
18
- },
19
- "exclude": ["dist"]
20
- }