Skip to content

Commit

Permalink
update sdk, add missing files, adjust deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 committed Apr 13, 2023
1 parent d8d7e26 commit 2728155
Show file tree
Hide file tree
Showing 98 changed files with 422 additions and 556 deletions.
3 changes: 0 additions & 3 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"scripts": {
"build": "tsc -p ."
},
"devDependencies": {
"typescript": "^4.7.2"
},
"exports": {
".": "./dist/index.js",
"./aptos": "./dist/aptos/index.js"
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
],
"type": "module",
"dependencies": {
"@sentio/sdk": "^2.12.1",
"@sentio/sdk": "^v2.12.2",
"node-fetch": "^3.3.1"
},
"resolutions": {
"ethers": "npm:@sentio/ethers@6.3.0-patch.4"
},
"devDependencies": {
"@sentio/cli": "^2.6.3",
"@sentio/cli": "^2.6.4",
"ts-node": "^10.9.1",
"typescript": "^4.9.0"
"typescript": "^5.0.4"
},
"scripts": {
"new": "yarn sentio create -p -d projects"
}
}
5 changes: 1 addition & 4 deletions projects/1inch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
2 changes: 1 addition & 1 deletion projects/@WIP/dotbit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@types/jest": "^29.0.0",
"jest": "^29.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.7.2"
"typescript": "^5.0.4"
}
}
2 changes: 1 addition & 1 deletion projects/@WIP/dotbit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/@WIP/dydx/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/@WIP/ens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"@types/jest": "^29.0.0",
"jest": "^29.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.7.2"
"typescript": "^5.0.4"
}
}
2 changes: 1 addition & 1 deletion projects/@WIP/ens/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/@WIP/inv/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/@WIP/lido/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/@WIP/opensea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@types/jest": "^29.0.0",
"jest": "^29.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.7.2"
"typescript": "^5.0.4"
}
}
2 changes: 1 addition & 1 deletion projects/@WIP/opensea/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/@WIP/pyth-solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@types/jest": "^29.0.0",
"jest": "^29.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.7.2"
"typescript": "^5.0.4"
}
}
2 changes: 1 addition & 1 deletion projects/@WIP/stETH/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"@types/jest": "^29.0.0",
"jest": "^29.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.7.2"
"typescript": "^5.0.4"
}
}
2 changes: 1 addition & 1 deletion projects/@WIP/stETH/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
5 changes: 1 addition & 4 deletions projects/aave/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
14 changes: 14 additions & 0 deletions projects/aave/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TestProcessorServer } from '@sentio/sdk/testing'

describe('Test Processor', () => {
const service = new TestProcessorServer(()=> import('./processor.js'))

beforeAll(async () => {
await service.start()
})

test('has config', async () => {
const config = await service.getConfig({})
expect(config.contractConfigs.length > 0)
})
})
2 changes: 1 addition & 1 deletion projects/anyswap/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/aptos-overview/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
5 changes: 1 addition & 4 deletions projects/aptos-webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
14 changes: 14 additions & 0 deletions projects/aptos-webhook/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TestProcessorServer } from '@sentio/sdk/testing'

describe('Test Processor', () => {
const service = new TestProcessorServer(()=> import('./processor.js'))

beforeAll(async () => {
await service.start()
})

test('has config', async () => {
const config = await service.getConfig({})
expect(config.contractConfigs.length > 0)
})
})
2 changes: 1 addition & 1 deletion projects/arb/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
5 changes: 1 addition & 4 deletions projects/arthswap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
14 changes: 14 additions & 0 deletions projects/arthswap/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TestProcessorServer } from '@sentio/sdk/testing'

describe('Test Processor', () => {
const service = new TestProcessorServer(()=> import('./processor.js'))

beforeAll(async () => {
await service.start()
})

test('has config', async () => {
const config = await service.getConfig({})
expect(config.contractConfigs.length > 0)
})
})
2 changes: 1 addition & 1 deletion projects/arthswap/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
5 changes: 1 addition & 4 deletions projects/astar-webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
3 changes: 2 additions & 1 deletion projects/aux-exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"devDependencies": {
"@sentio-processor/common": "1.0.0"
},
"type": "module", "dependencies": {
"type": "module",
"dependencies": {
}
}
2 changes: 1 addition & 1 deletion projects/aux-exchange/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
5 changes: 1 addition & 4 deletions projects/balancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
5 changes: 1 addition & 4 deletions projects/bancor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
14 changes: 14 additions & 0 deletions projects/bancor/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TestProcessorServer } from '@sentio/sdk/testing'

describe('Test Processor', () => {
const service = new TestProcessorServer(()=> import('./processor.js'))

beforeAll(async () => {
await service.start()
})

test('has config', async () => {
const config = await service.getConfig({})
expect(config.contractConfigs.length > 0)
})
})
5 changes: 1 addition & 4 deletions projects/baseNFT/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
14 changes: 14 additions & 0 deletions projects/baseNFT/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TestProcessorServer } from '@sentio/sdk/testing'

describe('Test Processor', () => {
const service = new TestProcessorServer(()=> import('./processor.js'))

beforeAll(async () => {
await service.start()
})

test('has config', async () => {
const config = await service.getConfig({})
expect(config.contractConfigs.length > 0)
})
})
5 changes: 1 addition & 4 deletions projects/bend-dao/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
3 changes: 0 additions & 3 deletions projects/blur/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@
"build": "sentio build",
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"devDependencies": {
"typescript": "^4.9.0"
}
}
2 changes: 1 addition & 1 deletion projects/circle/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
2 changes: 1 addition & 1 deletion projects/coinbase/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["dist", "tsconfig.json"]
"exclude": ["dist", "jest.config.ts"]
}
5 changes: 1 addition & 4 deletions projects/compound/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"upload": "sentio upload",
"postinstall": "sentio gen"
},
"dependencies": {},
"devDependencies": {
"typescript": "^4.9.0"
}
"dependencies": {}
}
14 changes: 14 additions & 0 deletions projects/compound/src/processor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TestProcessorServer } from '@sentio/sdk/testing'

describe('Test Processor', () => {
const service = new TestProcessorServer(()=> import('./processor.js'))

beforeAll(async () => {
await service.start()
})

test('has config', async () => {
const config = await service.getConfig({})
expect(config.contractConfigs.length > 0)
})
})
Loading

0 comments on commit 2728155

Please sign in to comment.