Skip to content

Releases: Carbonable/carbon-protocol

v2.1.0

19 Jan 16:55
d8b3f22
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

22 Sep 07:16
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v2.0.0

v1.0.0

30 Aug 13:16
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v1.0.0

v1.0.0-alpha

20 Mar 10:39
77bc87d
Compare
Choose a tag to compare
v1.0.0-alpha Pre-release
Pre-release

What's Changed

Full Changelog: v0.5.0-alpha...v1.0.0-alpha

v0.6.0-alpha

20 Mar 09:26
Compare
Choose a tag to compare
v0.6.0-alpha Pre-release
Pre-release

What's Changed

Full Changelog: v0.5.0-alpha...v0.6.0-alpha

v0.5.0-alpha

11 Jan 16:57
Compare
Choose a tag to compare
v0.5.0-alpha Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.4.0-alpha...v0.5.0-alpha

v0.4.0-alpha

13 Dec 13:54
Compare
Choose a tag to compare
v0.4.0-alpha Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.3.1-alpha...v0.4.0-alpha

v0.3.1-alpha

30 Sep 16:27
Compare
Choose a tag to compare
v0.3.1-alpha Pre-release
Pre-release

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

14 Sep 18:13
Compare
Choose a tag to compare
v0.2.0-alpha Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.1.0-alpha...v0.2.0-alpha

v0.1.0-alpha

17 Aug 07:40
Compare
Choose a tag to compare
v0.1.0-alpha Pre-release
Pre-release

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
  • Approve the Minter contract to spend the admin payment tokens
    • How: Voyager > Write contract > approve
    • Verifiy: Voyager > Read contract > allowance
  • Buy NFT through the Minter contract
    • How: Voyager > Write contract > buy
    • Verifiy: Voyager > Read contract > balanceOf (of the NFT contract)

πŸ“„ License

carbonable-starknet-protocol is released under the MIT.