Skip to content

Commit

Permalink
Merge pull request #490 from oasisprotocol/matevz/feature/contracts-0…
Browse files Browse the repository at this point in the history
….2.12

contracts: Prepare 0.2.12 release
  • Loading branch information
matevz authored Feb 3, 2025
2 parents 9b74727 + aa49997 commit fd1bc99
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ The format is inspired by [Keep a Changelog].

[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/

## 0.2.12 (2025-01)

### Added

* HMAC using SHA512-256
* Calldata encryption
* `EIP1159Signer` and `EIP2930Signer` contracts

### Changed

* Data location of `token` parameter in `auth/SiweAuth.sol:authMsgSender`
changed from `calldata` to `memory` for convenience e.g. to allow passing
string literal
* New prefixes for SIWE related errors
* Move CBOR parser into separate `CBOR.sol` module

### Fixed

* `avalanche-fuji` chain ID

### Removed

* `goerli`, `polygon-mumbai` and `arbitrum-testnet` deprecated OPL/Celer
endpoints

## 0.2.11 (2024-09)

### Added
Expand Down
8 changes: 4 additions & 4 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ Once installed, you can import and use the Sapphire contracts as follows:
```solidity
pragma solidity ^0.8.13;
import "@oasisprotocol/sapphire-contracts/contracts/Sapphire.sol";
import {Sapphire} from "@oasisprotocol/sapphire-contracts/contracts/Sapphire.sol";
contract RandomNumber {
function generateNumber() public view returns (uint) {
return uint(bytes32(Sapphire.randomBytes(32, "")));
}
function generateNumber() public view returns (uint) {
return uint(bytes32(Sapphire.randomBytes(32, "")));
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oasisprotocol/sapphire-contracts",
"version": "0.2.11",
"version": "0.2.12",
"license": "Apache-2.0",
"description": "Solidity smart contract library for confidential contract development",
"homepage": "https://github.com/oasisprotocol/sapphire-paratime/tree/main/contracts",
Expand Down

0 comments on commit fd1bc99

Please sign in to comment.