Skip to content

Latest commit

 

History

History
264 lines (169 loc) · 7.68 KB

CHANGELOG.md

File metadata and controls

264 lines (169 loc) · 7.68 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.17.1 - 2024-09-24

Changed

  • Increase SCRATCH_BUF_BYTES to 1024

0.17.0 - 2024-09-04

Added

  • Add emit_raw and feed_raw functions
  • Add ContractError::DoesNotExist variant

Changed

  • Remove 'static bound on emit topics

0.16.0 - 2024-08-01

Added

  • Add impl PartialEq<[u8; 32]> for ContractId #375

Changed

  • Change callee function to return Option<ContractId>
  • Change callee ABI to return an integer

0.15.0 - 2024-07-03

Fixed

  • Fix incomplete removal of economic protocol functionality

0.14.0 - 2024-06-26

Removed

  • Remove all economic protocol-related functionality
  • Removed the 'charge' portion of the economic protocol #365

0.13.0 - 2024-06-05

Added

  • Add support for metadata elements: free limit and free price hint #357

0.12.0 - 2024-05-08

Added

  • Add contract charge setting method #353
  • Add contract allowance setting method and a corresponding passing mechanism #350

0.11.0 - 2024-02-14

Added

  • Add wrap_call_unchecked function for calls with no argument checking #324

Changed

  • Change wrap_call function to support bytecheck-based integrity check of arguments #324

0.10.0 - 2024-01-24

Added

  • Add self_owner function returning the owner of the calling contract

Changed

  • Change owner function to take a ContractId as argument and return an Option<[u8; N]>
  • Change owner extern to take a *const u8 argument signifying the contract ID

0.9.0 - 2023-12-13

Added

  • Add ContractError::to_parts and ContractError::from_parts functions #301
  • Add fn_name and fn_arg as an argument to call_raw and call_raw_with_limit #301

Changed

  • Change variable names and documentation to match the gas terminology as opposed to points
  • Rename ContractError::Other to ContractError::Unknown #301
  • Change Display for ContractError to display messages #301
  • Change ContractError variants to be CamelCase #301

Removed

  • Remove ContractError::from_code function #301
  • Remove raw_call as an argument of call_raw and call_raw_with_limit #301
  • Remove RawCall and RawResult #301

0.8.0 - 2023-10-11

Added

  • Add call to panic in panic handler #271
  • Add panic extern #271

Changed

  • Change return of owner and self_id to ()

Removed

  • Remove call to hdebug on panic #271

0.7.1 - 2023-09-13

Added

  • Expose arg_buf::with_arg_buf to allow for custom argument buffer handling #268

0.7.0 - 2023-07-19

Added

  • Add contract validation during deployment #157
  • Add more comprehensive documentation of the whole crate #189&#190
  • Add feed extern #243

Changed

  • Rename Event::target to Event::source #243

Removed

  • Remove EventTarget struct #243

0.6.1 - 2023-07-03

Fixed

  • Prevent macro expansion in panic handler without the debug feature

0.6.0 - 2023-06-28

Added

  • Add Event struct according to spec
  • Impl fmt::Display for ContractError
  • Emit debug line on panic handler #222
  • Add debug feature #222

Changed

  • Change emit extern to include topic
  • Rename MODULE_ID_BYTES to CONTRACT_ID_BYTES
  • Expose externs only on feature abi #222
  • Rename std feature to abi #222
  • Rename host_debug to hdebug and use arg buffer #222

Removed

  • Remove unused height extern #222
  • Remove unused snap extern #222

0.5.0 - 2023-06-07

Added

  • Add call_with_limit and call_raw_with_limit #216

Changed

  • Include points_limit in the c external #216

0.4.0 - 2023-05-17

Added

  • Add call and associated functions and structs #136
  • Add dlmalloc feature #199
  • Add crate-specific README #174

Changed

  • Change module named functions and items to contract #207
  • Change signature of owner to return [u8; N] instead of [u8; 32] #201

Removed

  • Remove State struct #209
  • Remove query and transact and associated functions and structs #136
  • Remove wee_alloc feature #199

0.3.0 - 2023-04-26

Added

  • Add documentation for piecrust-uplink::types #139

Changed

  • Rename ModuleError enum variants to be upper case

Removed

  • Remove deprecated alloc_error_handler #192

0.1.0 - 2023-03-15

  • First piecrust-uplink release