Repository navigation
bitsafe-token 0.1.0
The first release. bitsafe-token replaces cbtc-lib and adds BETH.
Added
tokens::cbtcandtokens::beth: the mint and burn flows of both assets,
with one API shape. Each module maps aNetworkto its own registrar.tokens::beth::mint::deposit_call: builds thedepositETHtransaction
for a deposit account. It checks the network, the account id, the amount,
the wei unit and the account limits. It sends nothing.check_dars: compares one asset's DAR set underdars/with a
participant.dars/: the DAR packages for CBTC and BETH, anddars/upload_dars.sh <asset>, which uploads them and stops at the first failed upload.- Examples for both assets, a localnet integration suite and a contract test
of the live BitSafe API.
Changed from cbtc-lib
- The crate is
bitsafe-token(bitsafe_tokenin code), notcbtc. - The CBTC flows move from
mint_redeemtotokens::cbtc::{mint, redeem},
andCBTC_TICKERis nowtokens::cbtc::TICKER. - The DAR folder
cbtc-dars/is nowdars/.upload_dars.shtakes the
asset as its argument, and readsjwt_tokenandcanton_admin_api_url
from the environment. - The crate uses
canton-lib0.10.0 instead of 0.9.0. Its active-contract
queries and update streams sendeventFormatandupdateFormat, which
Canton 3.6.1 requires. Theledgerre-export no longer has
submit::wait_for_transaction_treeorcommon::TransactionFilter. - The dependency DAR set changed:
splice-amulet0.1.16 instead of 0.1.17,
splice-util0.1.4 instead of 0.1.5, and newer Canton Network Utility
versions. - The
check_darsexample readsASSET, as every Token Standard example
does. - The
cbtc_redeem_flowexample requiresDESTINATION_BTC_ADDRESS, and
reuses only a withdraw account with that destination.
Removed from cbtc-lib
- The template-id constants of
mint_redeem::constants, such as
DEPOSIT_ACCOUNT_TEMPLATE_ID. mint_redeem::attestor::get_token_standard_contracts.- The deprecated
issuer_credentialof the BitSafe API. The burn sends an
emptyissuer-credentialslist. cbtc-tui, the terminal UI.