Skip to content

Commit

Permalink
chore: update blockchain configuration and bump package version to 1.…
Browse files Browse the repository at this point in the history
…1.0; improve test reliability with delay
  • Loading branch information
truethari committed Dec 16, 2024
1 parent 8475667 commit 7ddcf4d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config = {
RPC_URL: "https://sepolia.base.org",
CHAIN_ID: 84532,
CONTRACT_ADDRESS: "0x9237084a3bd3c113f26f589d703321080d9532f9",
RPC_URL: "https://polygon-rpc.com",
CHAIN_ID: 137,
CONTRACT_ADDRESS: "0x6e9216e6f48b23b922cb84eac8490a8dde5703fb",
};
exports.default = config;
1 change: 1 addition & 0 deletions dist/test/modules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test("getTimestamp", () => __awaiter(void 0, void 0, void 0, function* () {
}));
test("encryptMessage", () => __awaiter(void 0, void 0, void 0, function* () {
const timestamp = yield index_1.default.getTimestamp();
yield new Promise((resolve) => setTimeout(resolve, 1000));
const encryptedMessage = yield index_1.default.encryptMessage("test", timestamp);
expect(typeof encryptedMessage).toBe("string");
}));
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "timecipher",
"discription": "TimeCipher is a blockchain-based time-locked messaging system that securely encrypts messages with a timestamp, ensuring they can only be decrypted after the specified time. This innovative solution combines privacy and delayed access, perfect for secure future communication.",
"version": "1.0.1",
"version": "1.1.0",
"keywords": [
"timecipher",
"blockchain",
Expand Down
6 changes: 3 additions & 3 deletions src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const config = {
RPC_URL: "https://sepolia.base.org",
CHAIN_ID: 84532,
CONTRACT_ADDRESS: "0x9237084a3bd3c113f26f589d703321080d9532f9",
RPC_URL: "https://polygon-rpc.com",
CHAIN_ID: 137,
CONTRACT_ADDRESS: "0x6e9216e6f48b23b922cb84eac8490a8dde5703fb",
};

export default config;
1 change: 1 addition & 0 deletions test/modules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ test("getTimestamp", async () => {

test("encryptMessage", async () => {
const timestamp = await timeciper.getTimestamp();
await new Promise((resolve) => setTimeout(resolve, 1000));
const encryptedMessage = await timeciper.encryptMessage("test", timestamp);
expect(typeof encryptedMessage).toBe("string");
});
Expand Down

0 comments on commit 7ddcf4d

Please sign in to comment.