@@ -3,15 +3,15 @@ title: Working with sBTC
33description : Clarinet helps with building, testing, and deploying contracts that use sBTC.
44---
55
6- Make sure to use Clarinet 2.15.0 or later.
6+ To take advantage of these features, make sure to use Clarinet 2.15.0 or later.
77
88## About sBTC
99
1010sBTC is a fungible token on the Stacks blockchain. It follows the
1111[ SIP-010 standard] ( https://github.com/stacksgov/sips/blob/main/sips/sip-010/sip-010-fungible-token-standard.md )
1212for fungible tokens.
1313
14- Even though it's * just* a fungible token. Clarinet has some helpers to make it easier to work with.
14+ Even though it's * just* a fungible token, Clarinet has some helpers to make it easier to work with.
1515
1616## Using sBTC in your contract
1717
@@ -28,12 +28,13 @@ smart contract to your project, along with it's dependencies:
2828- [ ` sbtc-token ` ] ( https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token )
2929- [ ` sbtc-registry ` ] ( https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-registry )
3030
31- When Clarinet detects the ` sbtc-deposit ` contract, it will automatically fund the test wallets with
32- sBTC that you can use to test your contract in the Simnet and Devnet .
31+ When Clarinet detects the ` sbtc-deposit ` contract, it will automatically fund your test wallets with
32+ sBTC that you can use to test your contract in Clarinet simnet and devnet .
3333
3434## Using sBTC in your contract
3535
36- As a SIP-010 token, sBTC let you call the ` transfer ` function to transfer tokens from one address to another.
36+ As a SIP-010 token, sBTC let you call the ` transfer ` function to transfer tokens from one address to another.
37+
3738Let's say we have an NFT contract that allows users to mint an NFT by spending sBTC.
3839
3940
@@ -64,22 +65,22 @@ Let's say we have an NFT contract that allows users to mint an NFT by spending s
6465```
6566
6667Because Clarinet already took care of funding the test wallets with sBTC, you can call the
67- ` mint-one-with-sbtc ` function with one of the test wallets.
68+ ` mint-one-with-sbtc ` function with one of your test wallets.
6869
69- In the Simnet (unit tests or ` clarinet console ` ), the deployer address of the contract will remain
70- ` SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4 ` , but in Devnet , like every otehr requirements, it will
71- be deployed by the default deployer address. You don't have to care about it, Clarinet always make
70+ In simnet (unit tests or ` clarinet console ` ), the deployer address of the contract will remain
71+ ` SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4 ` , but in devnet , like every other requirements, the contract will
72+ be deployed by the default deployer address. You don't have to worry about this— Clarinet always make
7273sure that your contracts call the right address.
7374
74- ## Deploying your contract on Testnet
75+ ## Deploying your contract on testnet
7576
7677On testnet, the official Hiro sBTC contract is
7778[ ST1F7QA2MDF17S807EPA36TSS8AMEFY4KA9TVGWXT.sbtc-token] ( https://explorer.hiro.so/txid/ST1F7QA2MDF17S807EPA36TSS8AMEFY4KA9TVGWXT.sbtc-token?chain=testnet ) .
7879This is the contract that is linked to the sBTC faucet: ` ST1F7QA2MDF17S807EPA36TSS8AMEFY4KA9TVGWXT.sbtc-deposit ` .
7980
8081Again, Clarinet will make sure that your contracts call this address when being deployed on mainnet.
81- You can see the of the sbtc-contract being re-mapped in the testnet deployment plan.
82+ You can see the address of the sbtc-contract being re-mapped in the testnet deployment plan.
8283
83- ## Deploying your contract on Mainnet
84+ ## Deploying your contract on mainnet
8485
8586On mainnet, your contract will remain unchanged and call the one and only sBTC contract.
0 commit comments