-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a5faae
commit d2c93f7
Showing
10 changed files
with
180 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CALIBRATION_LOTUS_PROVIDER_URL = "https://api.calibration.node.glif.io/rpc/v1" | ||
CALIBRATION_LOTUS_API_ENDPOINT = "https://api.calibration.node.glif.io/rpc/v1" | ||
CALIBRATION_LOTUS_TOKEN = "" | ||
CALIBRATION_MONGO_URL = "mongodb://127.0.0.1:27017/messagehub_calibration" | ||
|
||
MAIN_LOTUS_PROVIDER_URL = "https://api.node.glif.io/rpc/v1" | ||
MAIN_LOTUS_API_ENDPOINT = "https://api.node.glif.io/rpc/v1" | ||
MAIN_LOTUS_TOKEN = "" | ||
MAIN_MONGO_URL = "mongodb://127.0.0.1:27017/messagehub_main" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/******************************************************************************* | ||
* (c) 2024 dataswap | ||
* | ||
* Licensed under either the MIT License (the "MIT License") or the Apache License, Version 2.0 | ||
* (the "Apache License"). You may not use this file except in compliance with one of these | ||
* licenses. You may obtain a copy of the MIT License at | ||
* | ||
* https://opensource.org/licenses/MIT | ||
* | ||
* Or the Apache License, Version 2.0 at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the MIT License or the Apache License for the specific language governing permissions and | ||
* limitations under the respective licenses. | ||
********************************************************************************/ | ||
import { DatasetMetadataEvm } from '@dataswapjs/dataswapjs'; | ||
import datasetMetaAbi from '@dataswapcore/contracts/abi/v0.8/Datasets.json'; | ||
import * as dotenv from 'dotenv'; | ||
dotenv.config(); | ||
|
||
export const datasetMetadataEvm_Calibration = new DatasetMetadataEvm( | ||
datasetMetaAbi, | ||
'0x023e4b966b943c830b7d4cae84fe761641b29003', | ||
process.env.CALIBRATION_LOTUS_PROVIDER_URL, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { calibrationBgTask } from '../../src/config/backgroundTask'; | ||
|
||
describe('BackgroundTask', () => { | ||
beforeAll(() => { | ||
calibrationBgTask.start(); | ||
}); | ||
|
||
afterAll(() => { | ||
calibrationBgTask.stop(); | ||
}); | ||
|
||
it('should stop the background task', () => { | ||
expect(calibrationBgTask.isRunning()).toBe(true); | ||
calibrationBgTask.stop(); | ||
expect(calibrationBgTask.isRunning()).toBe(false); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"declaration": true, | ||
"removeComments": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"allowSyntheticDefaultImports": true, | ||
"target": "ES2021", | ||
"sourceMap": true, | ||
"outDir": "./dist", | ||
"baseUrl": "./", | ||
"incremental": true, | ||
"skipLibCheck": true, | ||
"strictNullChecks": false, | ||
"noImplicitAny": false, | ||
"strictBindCallApply": false, | ||
"forceConsistentCasingInFileNames": false, | ||
"noFallthroughCasesInSwitch": false | ||
"noFallthroughCasesInSwitch": false, | ||
"outDir": "./dist-test", | ||
"declaration": true, | ||
"target": "ES2015", | ||
"forceConsistentCasingInFileNames": true, | ||
"esModuleInterop": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": false, | ||
"experimentalDecorators": true, | ||
"jsx": "react", | ||
"skipLibCheck": true, | ||
"incremental": false, | ||
} | ||
} |