From e159ceee44e91f216533a16e9f14cfd91dee0e02 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 16 Dec 2025 07:19:52 +0100 Subject: [PATCH] Rename Codex to Logos Storage (#262) --- .github/workflows/docker-dist-tests.yml | 2 +- .github/workflows/docker.yml | 2 +- Readme.md | 10 +++++----- contracts/Groth16Verifier.sol | 2 +- contracts/Proofs.sol | 8 ++++---- ignition/README.md | 8 ++++---- package-lock.json | 4 ++-- package.json | 2 +- test/GasUsage.test.js | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docker-dist-tests.yml b/.github/workflows/docker-dist-tests.yml index 37a85b0..2f12900 100644 --- a/.github/workflows/docker-dist-tests.yml +++ b/.github/workflows/docker-dist-tests.yml @@ -20,7 +20,7 @@ on: jobs: build-and-push: name: Build and Push - uses: codex-storage/github-actions/.github/workflows/docker-reusable.yml@master + uses: logos-storage/github-actions/.github/workflows/docker-reusable.yml@master with: docker_file: docker/deploy.Dockerfile dockerhub_repo: codexstorage/codex-contracts-eth diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dabb13d..8c64c57 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -20,7 +20,7 @@ on: jobs: build-and-push: name: Build and Push - uses: codex-storage/github-actions/.github/workflows/docker-reusable.yml@master + uses: logos-storage/github-actions/.github/workflows/docker-reusable.yml@master with: docker_file: docker/Dockerfile dockerhub_repo: codexstorage/codex-contracts-eth diff --git a/Readme.md b/Readme.md index 6b93f5f..ea9c5b8 100644 --- a/Readme.md +++ b/Readme.md @@ -1,7 +1,7 @@ -Codex Contracts +Logos Storage Contracts ================ -An experimental implementation of the smart contracts that underlay the Codex +An experimental implementation of the smart contracts that underlay the Logos Storage storage network. Its goal is to experiment with the rules around the bidding process, the storage contracts, the storage proofs and the host collateral. Neither completeness nor correctness are guaranteed at this moment in time. @@ -64,7 +64,7 @@ You can run Certora's specs with the provided `npm` script: Overview -------- -The Codex storage network depends on hosts offering storage to clients of the +The Logos Storage storage network depends on hosts offering storage to clients of the network. The smart contracts in this repository handle interactions between client and hosts as they negotiate and fulfill a contract to store data for a certain amount of time. @@ -146,10 +146,10 @@ References ---------- * [A marketplace for storage - durability](https://github.com/codex-storage/codex-research/blob/master/design/marketplace.md) + durability](https://github.com/logos-storage/logos-storage-research/blob/master/design/marketplace.md) (design document) * [Timing of Storage - Proofs](https://github.com/codex-storage/codex-research/blob/master/design/storage-proof-timing.md) + Proofs](https://github.com/logos-storage/logos-storage-research/blob/master/design/storage-proof-timing.md) (design document) To Do diff --git a/contracts/Groth16Verifier.sol b/contracts/Groth16Verifier.sol index 4b3fcda..9974c19 100644 --- a/contracts/Groth16Verifier.sol +++ b/contracts/Groth16Verifier.sol @@ -1,6 +1,6 @@ // Copyright 2017 Christian Reitwiessner // Copyright 2019 OKIMS -// Copyright 2024 Codex +// Copyright 2025 Logos Storage // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights diff --git a/contracts/Proofs.sol b/contracts/Proofs.sol index 1dfc7ce..338c27e 100644 --- a/contracts/Proofs.sol +++ b/contracts/Proofs.sol @@ -80,7 +80,7 @@ abstract contract Proofs is Periods { * @param id Slot's ID for which the pointer should be calculated * @param period Period for which the pointer should be calculated * @return Uint8 pointer that is stable over current Period, ie an integer offset [0-255] of the last 256 blocks, pointing to a block that remains constant for the entire Period's duration. - * @dev For more information see [timing of storage proofs](https://github.com/codex-storage/codex-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md) + * @dev For more information see [timing of storage proofs](https://github.com/logos-storage/logos-storage-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md) */ function _getPointer(SlotId id, Period period) internal view returns (uint8) { uint256 blockNumber = block.number % 256; @@ -94,7 +94,7 @@ abstract contract Proofs is Periods { /** * @param id Slot's ID for which the pointer should be calculated * @return Uint8 pointer that is stable over current Period, ie an integer offset [0-255] of the last 256 blocks, pointing to a block that remains constant for the entire Period's duration. - * @dev For more information see [timing of storage proofs](https://github.com/codex-storage/codex-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md) + * @dev For more information see [timing of storage proofs](https://github.com/logos-storage/logos-storage-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md) */ function getPointer(SlotId id) public view returns (uint8) { return _getPointer(id, _blockPeriod()); @@ -147,7 +147,7 @@ abstract contract Proofs is Periods { bytes32 challenge = _getChallenge(pointer); /// Scaling of the probability according the downtime configuration - /// See: https://github.com/codex-storage/codex-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md#pointer-downtime + /// See: https://github.com/logos-storage/logos-storage-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md#pointer-downtime uint256 probability = slotProbability(id); isRequired = probability == 0 || uint256(challenge) % probability == 0; } @@ -179,7 +179,7 @@ abstract contract Proofs is Periods { * in downtime (hence no proof required now) and at the same time the proof * will be required later on in the Period. * - * @dev for more info about downtime see [timing of storage proofs](https://github.com/codex-storage/codex-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md#pointer-downtime) + * @dev for more info about downtime see [timing of storage proofs](https://github.com/logos-storage/logos-storage-research/blob/41c4b4409d2092d0a5475aca0f28995034e58d14/design/storage-proof-timing.md#pointer-downtime) * @param id SlotId for which the proof requirements should be checked. If the Slot's state is other than Filled, `false` is always returned. * @return bool */ diff --git a/ignition/README.md b/ignition/README.md index 9396b5a..f745854 100644 --- a/ignition/README.md +++ b/ignition/README.md @@ -24,10 +24,10 @@ Then we can run: npx hardhat ignition deploy ignition/modules/migration/token.js --network taiko_test ``` -**Note:** Check [this comment](https://github.com/codex-storage/codex-contracts-eth/pull/231#issuecomment-2808996517) for more context. +**Note:** Check [this comment](https://github.com/logos-storage/logos-storage-contracts-eth/pull/231#issuecomment-2808996517) for more context. Here is the list of previous commits containing the ABI contracts that were deployed: -- [Taiko](https://github.com/codex-storage/codex-contracts-eth/commit/1854dfba9991a25532de5f6a53cf50e66afb3c8b) -- [Testnet](https://github.com/codex-storage/codex-contracts-eth/commit/449d64ffc0dc1478d0690d36f037358084a17b09) -- [Linea](https://github.com/codex-storage/codex-contracts-eth/pull/226/commits/2dddc260152b6e9c24ae372397f9b9b2d27ce8e4) +- [Taiko](https://github.com/logos-storage/logos-storage-contracts-eth/commit/1854dfba9991a25532de5f6a53cf50e66afb3c8b) +- [Testnet](https://github.com/logos-storage/logos-storage-contracts-eth/commit/449d64ffc0dc1478d0690d36f037358084a17b09) +- [Linea](https://github.com/logos-storage/logos-storage-contracts-eth/pull/226/commits/2dddc260152b6e9c24ae372397f9b9b2d27ce8e4) diff --git a/package-lock.json b/package-lock.json index da57f6a..e3763fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,10 @@ { - "name": "codex-contracts-eth", + "name": "logos-storage-contracts-eth", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "codex-contracts-eth", + "name": "logos-storage-contracts-eth", "license": "MIT", "devDependencies": { "@nomicfoundation/hardhat-chai-matchers": "^2.0.8", diff --git a/package.json b/package.json index 8d972d4..d8945fa 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "codex-contracts-eth", + "name": "logos-storage-contracts-eth", "license": "MIT", "scripts": { "test": "npm run lint && hardhat test", diff --git a/test/GasUsage.test.js b/test/GasUsage.test.js index 9a19c1c..4fa776e 100644 --- a/test/GasUsage.test.js +++ b/test/GasUsage.test.js @@ -24,7 +24,7 @@ const MarketplaceModule = require("../ignition/modules/marketplace") // more than a certain percentage. // The percentages from these tests should be used to pad the gas estimates in // market.nim, for example when calling fillSlot: -// https://github.com/codex-storage/nim-codex/blob/6db6bf5f72a0038b77d02f48dcf128b4d77b469a/codex/contracts/market.nim#L278 +// https://github.com/logos-storage/logos-storage-nim/blob/6db6bf5f72a0038b77d02f48dcf128b4d77b469a/codex/contracts/market.nim#L278 describe("Marketplace gas estimates", function () { let marketplace let token