Skip to content

Releases: FhenixProtocol/cofhesdk

@cofhe/mock-contracts@0.3.1

06 Mar 08:44
a516302

Choose a tag to compare

Patch Changes

@cofhe/hardhat-plugin@0.3.2

06 Mar 17:33
6948630

Choose a tag to compare

Patch Changes

  • d4e86ea: Aligns with CTA encrypted variables bytes32 representation.

    • @cofhe/hardhat-plugin: hre.cofhe.mocks.getTestBed(), getMockTaskManager(), getMockACL(), getMockThresholdNetwork(), and getMockZkVerifier() now return typed contracts (typechain interfaces) instead of untyped Contract. getPlaintext(ctHash) and expectPlaintext(ctHash, value) now accept bytes32 ctHashes as string support cofhe-contracts 0.1.0 CTA changes.
    • @cofhe/mock-contracts: Export typechain-generated contract types (TestBed, MockACL, MockTaskManager, MockZkVerifier, MockThresholdNetwork) for use with the hardhat plugin. Typechain is run from artifact ABIs only; factory files are not generated.
    • @cofhe/abi: CTA-related types use bytes32 (string) instead of uint256. Decryption and return-type helpers aligned with cofhe-contracts 0.1.0.
    • @cofhe/sdk: Decryption APIs (decryptForTx, decryptForView, and related builders) now also accept string for ciphertext hashes (bytes32) as well as bigint.
  • Updated dependencies [d4e86ea]

  • Updated dependencies [0feaf3f]

    • @cofhe/sdk@0.3.2
    • @cofhe/mock-contracts@0.3.2

@cofhe/hardhat-plugin@0.3.1

06 Mar 08:44
a516302

Choose a tag to compare

Patch Changes

  • 370f0c7: no-op
  • Updated dependencies [370f0c7]
    • @cofhe/mock-contracts@0.3.1
    • @cofhe/sdk@0.3.1

@cofhe/abi@0.3.2

06 Mar 17:33
6948630

Choose a tag to compare

Patch Changes

  • d4e86ea: Aligns with CTA encrypted variables bytes32 representation.

    • @cofhe/hardhat-plugin: hre.cofhe.mocks.getTestBed(), getMockTaskManager(), getMockACL(), getMockThresholdNetwork(), and getMockZkVerifier() now return typed contracts (typechain interfaces) instead of untyped Contract. getPlaintext(ctHash) and expectPlaintext(ctHash, value) now accept bytes32 ctHashes as string support cofhe-contracts 0.1.0 CTA changes.
    • @cofhe/mock-contracts: Export typechain-generated contract types (TestBed, MockACL, MockTaskManager, MockZkVerifier, MockThresholdNetwork) for use with the hardhat plugin. Typechain is run from artifact ABIs only; factory files are not generated.
    • @cofhe/abi: CTA-related types use bytes32 (string) instead of uint256. Decryption and return-type helpers aligned with cofhe-contracts 0.1.0.
    • @cofhe/sdk: Decryption APIs (decryptForTx, decryptForView, and related builders) now also accept string for ciphertext hashes (bytes32) as well as bigint.
  • Updated dependencies [d4e86ea]

  • Updated dependencies [0feaf3f]

    • @cofhe/sdk@0.3.2

@cofhe/abi@0.3.1

06 Mar 08:44
a516302

Choose a tag to compare

Patch Changes

@cofhe/sdk@0.3.0

05 Mar 11:07
b1fcb9e

Choose a tag to compare

Minor Changes

  • 35024b6: Remove sdk from function names and exported types. Rename:

    • createCofhesdkConfig -> createCofheConfig
    • createCofhesdkClient -> createCofheClient
    • hre.cofhesdk.* -> hre.cofhe.*
    • hre.cofhesdk.createCofheConfig()hre.cofhe.createConfig()
    • hre.cofhesdk.createCofheClient()hre.cofhe.createClient()
    • hre.cofhesdk.createBatteriesIncludedCofheClient()hre.cofhe.createClientWithBatteries()
  • 29c2401: implement decrypt-with-proof flows and related tests:

    • Implement production decryptForTx backed by Threshold Network POST /decrypt, with explicit permit vs global-allowance selection.
    • Rename mocks “Query Decrypter” -> “Threshold Network” and update SDK constants/contracts/artifacts accordingly.
    • Extend mock contracts + hardhat plugin to publish & verify decryption results on-chain, and add end-to-end integration tests.
  • 650ea48: Align builder patterns in cofhe client api (client.encryptInputs(..).encrypt() and client.decryptHandles(..).decrypt()) to use the same terminator function .execute() instead of .encrypt()/.decrypt().

    Rename setStepCallback of encryptInputs builder to onStep to improve ergonomics.

Patch Changes

  • 5467d77: Adds config.mocks.encryptDelay: number | [number, number, number, number, number] to allow configurable mock encryption delay. Defaults to 0 delay on hardhat to keep tests quick.
  • 73b1502: Add cofheClient.connection getter which exposes inner connection state without using getSnapshot() reactive utility.

@cofhe/react@0.3.0

05 Mar 11:07
b1fcb9e

Choose a tag to compare

Minor Changes

  • 35024b6: Remove sdk from function names and exported types. Rename:

    • createCofhesdkConfig -> createCofheConfig
    • createCofhesdkClient -> createCofheClient
    • hre.cofhesdk.* -> hre.cofhe.*
    • hre.cofhesdk.createCofheConfig()hre.cofhe.createConfig()
    • hre.cofhesdk.createCofheClient()hre.cofhe.createClient()
    • hre.cofhesdk.createBatteriesIncludedCofheClient()hre.cofhe.createClientWithBatteries()
  • 29c2401: implement decrypt-with-proof flows and related tests:

    • Implement production decryptForTx backed by Threshold Network POST /decrypt, with explicit permit vs global-allowance selection.
    • Rename mocks “Query Decrypter” -> “Threshold Network” and update SDK constants/contracts/artifacts accordingly.
    • Extend mock contracts + hardhat plugin to publish & verify decryption results on-chain, and add end-to-end integration tests.
  • 650ea48: Align builder patterns in cofhe client api (client.encryptInputs(..).encrypt() and client.decryptHandles(..).decrypt()) to use the same terminator function .execute() instead of .encrypt()/.decrypt().

    Rename setStepCallback of encryptInputs builder to onStep to improve ergonomics.

Patch Changes

@cofhe/mock-contracts@0.3.0

05 Mar 11:07
b1fcb9e

Choose a tag to compare

Minor Changes

  • 35024b6: Remove sdk from function names and exported types. Rename:

    • createCofhesdkConfig -> createCofheConfig
    • createCofhesdkClient -> createCofheClient
    • hre.cofhesdk.* -> hre.cofhe.*
    • hre.cofhesdk.createCofheConfig()hre.cofhe.createConfig()
    • hre.cofhesdk.createCofheClient()hre.cofhe.createClient()
    • hre.cofhesdk.createBatteriesIncludedCofheClient()hre.cofhe.createClientWithBatteries()
  • 29c2401: implement decrypt-with-proof flows and related tests:

    • Implement production decryptForTx backed by Threshold Network POST /decrypt, with explicit permit vs global-allowance selection.
    • Rename mocks “Query Decrypter” -> “Threshold Network” and update SDK constants/contracts/artifacts accordingly.
    • Extend mock contracts + hardhat plugin to publish & verify decryption results on-chain, and add end-to-end integration tests.

@cofhe/hardhat-plugin@0.3.0

05 Mar 11:07
b1fcb9e

Choose a tag to compare

Minor Changes

  • 35024b6: Remove sdk from function names and exported types. Rename:

    • createCofhesdkConfig -> createCofheConfig
    • createCofhesdkClient -> createCofheClient
    • hre.cofhesdk.* -> hre.cofhe.*
    • hre.cofhesdk.createCofheConfig()hre.cofhe.createConfig()
    • hre.cofhesdk.createCofheClient()hre.cofhe.createClient()
    • hre.cofhesdk.createBatteriesIncludedCofheClient()hre.cofhe.createClientWithBatteries()
  • 29c2401: implement decrypt-with-proof flows and related tests:

    • Implement production decryptForTx backed by Threshold Network POST /decrypt, with explicit permit vs global-allowance selection.
    • Rename mocks “Query Decrypter” -> “Threshold Network” and update SDK constants/contracts/artifacts accordingly.
    • Extend mock contracts + hardhat plugin to publish & verify decryption results on-chain, and add end-to-end integration tests.

Patch Changes

  • 5467d77: Adds config.mocks.encryptDelay: number | [number, number, number, number, number] to allow configurable mock encryption delay. Defaults to 0 delay on hardhat to keep tests quick.
  • Updated dependencies [35024b6]
  • Updated dependencies [5467d77]
  • Updated dependencies [73b1502]
  • Updated dependencies [29c2401]
  • Updated dependencies [650ea48]
    • @cofhe/mock-contracts@0.3.0
    • @cofhe/sdk@0.3.0

@cofhe/abi@0.3.0

05 Mar 11:07
b1fcb9e

Choose a tag to compare

Patch Changes