Releases: Carbonable/carbon-protocol
v2.1.0
What's Changed
- β¨ Two steps pay by @bal7hazar in #246
- Feat: Add component provider by @tekkac in #250
- π₯ Remove detailed price management externals by @bal7hazar in #251
- backward ERC-721 Camelcase compatible by @cloudvenger in #258
- fix: get_apr times u256 conversion by @MartianGreed in #259
- Fix other support interface by @cloudvenger in #260
- fix-apr by @cloudvenger in #261
- adding event declaration by @cloudvenger in #266
- Fix: Testnet bugs by @tekkac in #272
- Feat: Add APR test by @tekkac in #281
- chore: [Farming tests] - Farming_deposit_and_withdraw (Offsetter) by @rmzlb in #293
- chore: [Farming test] WIP: Farming claiming reward by @rmzlb in #294
- chore: [farming testnet] Farming deposit withdraw yielder by @tekkac in #295
- chore: [Farming test] Verify Cumsale in Yielder by @tekkac in #296
- chore: [Farming test] Price Config Accounting by @tekkac in #297
- Chore: Test approval deposit usage by @tekkac in #298
- Chore: [Doc] WIP contract interface docs by @tekkac in #299
- chore: [test scenarios] Farming Reward Claims by @tekkac in #300
- Fix absorption calculation and add test for Las Delicias scenario by @cloudvenger in #303
- Chore: Test max absorption by @tekkac in #304
- Chore: claim tests by @tekkac in #305
- Add debug logging and fix to be support on macos scripts by @cloudvenger in #311
- fix bug script for linux by @cloudvenger in #312
New Contributors
- @MartianGreed made their first contribution in #259
- @rmzlb made their first contribution in #293
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- π½οΈ Upgrade protocol to Cairo 2 by @bal7hazar in #225
- Feat: Add Metadata URIs component by @tekkac in #241
- Fix/fix u64 overflow update deps by @bal7hazar in #242
Full Changelog: v1.0.0...v2.0.0
v1.0.0
What's Changed
- βͺ Revert main to before migrator extension by @bal7hazar in #187
- β¨ ERC 3525 Migration by @bal7hazar in #168
- On-chain Dynamic Metadata + SVG by @tekkac in #197
- β¨ Remove vester contract and improve snapshot system by @bal7hazar in #199
- π Fix issue by @bal7hazar in #201
- Refactor: Metadata by @tekkac in #202
- 200 yielder getclaimableof must return 0 before first snapshot by @bal7hazar in #203
- Fix add ProjectValue by @tekkac in #211
- Fix farming methods by @tekkac in #214
- Error overflow by @bal7hazar in #216
- Update yielder mechanism by @bal7hazar in #221
- π Fix issue by @bal7hazar in #223
Full Changelog: v0.6.0...v1.0.0
v1.0.0-alpha
What's Changed
- π Fix failing views by @bal7hazar in #142
- Feat-access-control by @tekkac in #147
- π± Add project assets by @bal7hazar in #143
- π± Update testnet assets by @bal7hazar in #149
- Accesscontrol getminters and minor naming changes by @bal7hazar in #155
- π± Update manjarisoa names by @bal7hazar in #151
- Converting docstrings to NatSpec format by @Marchand-Nicolas in #160
- β¨ Add releasedOf view by @bal7hazar in #162
- π Fix issues by @bal7hazar in #166
- π± Update mainnet and testnet metdata by @bal7hazar in #164
- Update deployment instructions by @tekkac in #170
- β¨ Add migrator extension to minter by @bal7hazar in #181
- βͺ Revert main to before migrator extension by @bal7hazar in #187
- β¨ ERC 3525 Migration by @bal7hazar in #168
Full Changelog: v0.5.0-alpha...v1.0.0-alpha
v0.6.0-alpha
What's Changed
- π Fix failing views by @bal7hazar in #142
- Feat-access-control by @tekkac in #147
- π± Add project assets by @bal7hazar in #143
- π± Update testnet assets by @bal7hazar in #149
- Accesscontrol getminters and minor naming changes by @bal7hazar in #155
- π± Update manjarisoa names by @bal7hazar in #151
- Converting docstrings to NatSpec format by @Marchand-Nicolas in #160
- β¨ Add releasedOf view by @bal7hazar in #162
- π Fix issues by @bal7hazar in #166
- π± Update mainnet and testnet metdata by @bal7hazar in #164
- Update deployment instructions by @tekkac in #170
- β¨ Add migrator extension to minter by @bal7hazar in #181
Full Changelog: v0.5.0-alpha...v0.6.0-alpha
v0.5.0-alpha
What's Changed
- 122 create the juno projects by @bal7hazar in #123
- Adding the possibility of minting tokens by @Marchand-Nicolas in #117
- π± update project metadata by @bal7hazar in #133
- β¨ implement new offseter and new yielder by @bal7hazar in #110
- 130 upgradable badge contract by @bal7hazar in #135
- β¨ Update badge and project metadata by @bal7hazar in #137
- π update metadata by @bal7hazar in #138
New Contributors
- @Marchand-Nicolas made their first contribution in #117
Full Changelog: v0.4.0-alpha...v0.5.0-alpha
v0.4.0-alpha
What's Changed
- π Smart Contract - Implement dev documentation by @bal7hazar in #67
- β»οΈ Smart Contract - Refactoring code and dependancies upgrade by @bal7hazar in #68
- fix typo (Externals instead of Exernals) by @adrien-vieilleribiere in #69
- β¨ Implement farming feature by @bal7hazar in #72
- 90 upgradable contracts by @bal7hazar in #100
- β¨ add offset features + unit tests by @bal7hazar in #102
- 89 impl starkvest vestings by @cloudvenger in #105
- 103 upgradable starkvest by @cloudvenger in #111
- π± add testnet assets by @bal7hazar in #116
New Contributors
- @adrien-vieilleribiere made their first contribution in #69
Full Changelog: v0.3.1-alpha...v0.4.0-alpha
v0.3.1-alpha
What's Changed
- π½οΈ Smart Contract - Upgrade cairo lang to latest version by @bal7hazar in #60
- β¨ Badge - Improve markplaces and wallet integration by @bal7hazar in #62
- π± Update badge assets by @bal7hazar in #64
- π± Update ipfs link by @bal7hazar in #66
Full Changelog: v0.2.0-alpha...v0.3.1-alpha
v0.2.0-alpha
What's Changed
- π₯ remove duplicate function by @abdelhamidbakhta in #28
- π store claimed slots by @abdelhamidbakhta in #29
- π uptate protostar version in protostar.toml file by @bal7hazar in #35
- Add BDD documentation by @abdelhamidbakhta in #36
- β¨ init yield manager by @abdelhamidbakhta in #38
- β¨ implement decrease reserved supply feature by @bal7hazar in #39
- π add readme missing step by @bal7hazar in #44
- β»οΈ tests refactoring by @bal7hazar in #41
- π§βπ» improve deploy script by @bal7hazar in #43
- Add config files for Issues Template and Issues Labels by @cloudvenger in #49
- π· add option to fix protostar version in CI by @bal7hazar in #51
- β¨ add metadata to erc721 collection by @bal7hazar in #45
- π· deploy github actions by @bal7hazar in #52
- β¨ Smart Contract - Implement badge contracts by @bal7hazar in #57
New Contributors
- @cloudvenger made their first contribution in #49
Full Changelog: v0.1.0-alpha...v0.2.0-alpha
v0.1.0-alpha
Set up the project
π¦ Install the requirements
βοΈ Compile
protostar build
π‘οΈ Test
# Run all tests
protostar test
# Run only unit tests
protostar test tests/units
# Run only integration tests
protostar test tests/integrations
Test account
If you want a fresh account for tests, you can deploy an account with the following command:
starknet deploy_account --network=<network>
It will generate the account information into the ~/.starknet_accounts/starknet_open_zeppelin_accounts.json
file.
See also starknet documentation for more details.
π Format code
cairo-format -i src/**/*.cairo tests/**/*.cairo
Deployment
# On testnet
./scripts/deploy.sh -p testnet -a carbonable
With:
testnet
profile defined in protostar config file (testnet for alpha-goerli)carbonable
alias to the admin account (optional if it is your__default__
acount, see also starknet account documentation)
Contract addresses will be logged into the prompt.
Inputs
To manage inputs sent to constructor during the deployment, you can customize the config files.
Prepare the contracts before tests
After deployment, the admin account (according to parameters) is the owner of all contracts.
So far, you have to do the following actions manually:
- Change the NFT contract owner from admin to Minter contract
- How: Voyager > Write contract >
transferOwnership
- Verifiy: Voyager > Read contract >
owner
- How: Voyager > Write contract >
- Approve the Minter contract to spend the admin payment tokens
- How: Voyager > Write contract >
approve
- Verifiy: Voyager > Read contract >
allowance
- How: Voyager > Write contract >
- Buy NFT through the Minter contract
- How: Voyager > Write contract >
buy
- Verifiy: Voyager > Read contract >
balanceOf
(of the NFT contract)
- How: Voyager > Write contract >
π License
carbonable-starknet-protocol is released under the MIT.