@sentio/cli 1.37.5-rc.6 → 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.
- package/lib/index.js +125 -0
- package/package.json +42 -41
- package/lib/build.d.ts +0 -2
- package/lib/build.js +0 -86
- package/lib/build.js.map +0 -1
- package/lib/cli.d.ts +0 -2
- package/lib/cli.js +0 -186
- package/lib/cli.js.map +0 -1
- package/lib/commands/login-server.d.ts +0 -7
- package/lib/commands/login-server.js +0 -133
- package/lib/commands/login-server.js.map +0 -1
- package/lib/commands/run-create.d.ts +0 -1
- package/lib/commands/run-create.js +0 -121
- package/lib/commands/run-create.js.map +0 -1
- package/lib/commands/run-login.d.ts +0 -1
- package/lib/commands/run-login.js +0 -136
- package/lib/commands/run-login.js.map +0 -1
- package/lib/commands/run-version.d.ts +0 -1
- package/lib/commands/run-version.js +0 -69
- package/lib/commands/run-version.js.map +0 -1
- package/lib/config.d.ts +0 -14
- package/lib/config.js +0 -64
- package/lib/config.js.map +0 -1
- package/lib/key.d.ts +0 -2
- package/lib/key.js +0 -44
- package/lib/key.js.map +0 -1
- package/lib/upload.d.ts +0 -2
- package/lib/upload.js +0 -189
- package/lib/upload.js.map +0 -1
- package/lib/utils.d.ts +0 -2
- package/lib/utils.js +0 -28
- package/lib/utils.js.map +0 -1
- package/lib/webpack.config.js +0 -50
- package/src/build.ts +0 -99
- package/src/cli.ts +0 -184
- package/src/commands/login-server.ts +0 -119
- package/src/commands/run-create.ts +0 -126
- package/src/commands/run-login.ts +0 -111
- package/src/commands/run-version.ts +0 -38
- package/src/config.ts +0 -72
- package/src/key.ts +0 -43
- package/src/upload.ts +0 -214
- package/src/utils.ts +0 -21
- package/src/webpack.config.js +0 -50
- package/templates/aptos/abis/aptos/souffle.json +0 -389
- package/templates/aptos/jest.config.js +0 -7
- package/templates/aptos/package.json +0 -21
- package/templates/aptos/sentio.yaml +0 -1
- package/templates/aptos/src/processor.ts +0 -13
- package/templates/aptos/tsconfig.json +0 -20
- package/templates/evm/abis/evm/x2y2.json +0 -296
- package/templates/evm/jest.config.js +0 -7
- package/templates/evm/package.json +0 -20
- package/templates/evm/sentio.yaml +0 -3
- package/templates/evm/src/processor.ts +0 -29
- package/templates/evm/tsconfig.json +0 -20
- package/templates/raw/jest.config.js +0 -7
- package/templates/raw/package.json +0 -20
- package/templates/raw/sentio.yaml +0 -3
- package/templates/raw/src/processor.ts +0 -0
- package/templates/raw/tsconfig.json +0 -20
- package/templates/raw/yarn.lock +0 -4095
- package/templates/solana/jest.config.js +0 -7
- package/templates/solana/package.json +0 -21
- package/templates/solana/sentio.yaml +0 -3
- package/templates/solana/src/processor.ts +0 -16
- package/templates/solana/tsconfig.json +0 -20
- package/templates/solana/yarn.lock +0 -4918
|
@@ -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,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
|
-
}
|