Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit cd2c8b5

Browse files
authored
Merge pull request #186 from Bitcoin-com/stage
v3.3.1
2 parents 78780ea + f725a85 commit cd2c8b5

5 files changed

Lines changed: 49 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "developer.bitcoin.com",
33
"description": "Bitcoin.com developer resources and documentation",
4-
"version": "3.3.0",
4+
"version": "3.3.1",
55
"author": "Peter <peter@bitcoin.com> and Gabriel Cardona <gabriel@bitcoin.com>",
66
"dependencies": {
77
"badger-components-react": "^0.1.3",

src/data/docs/slp/tokentype1.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,45 @@ sendId `String`. The txid of your sent tokens
134134

135135
// returns
136136
76fb0f1d3d8a010720f8f24c19476e16fa96735e5c215b12773a65608017bd25
137+
138+
### `burnAll`
139+
140+
Burn all tokens for an address by tokenId
141+
142+
**CAUTION: THIS WILL BURN ALL OF YOUR TOKENS FOR A TOKENID. PLEASE USE WITH CARE**
143+
144+
#### Arguments
145+
146+
1. burnAllConfig `Object` required
147+
148+
##### Valid config properties
149+
150+
- `fundingAddress`: `String`. legacy, cash or slp address format
151+
- `fundingWif`: `String`. : compressed WIF format. Available via `SLP.HDNode.toWIF`
152+
- `tokenId`: `String`. tokenId of token to burn all of
153+
- `bchChangeReceiverAddress` : `String.` legacy, cash or slp address format
154+
155+
#### Result
156+
157+
txid `String`. The txid of your burned tokens
158+
159+
#### Examples
160+
161+
(async () => {
162+
try {
163+
let iBurnAllConfig = {
164+
fundingAddress: "bchtest:qqjfqa7qsmydeuctqvddppjnkr53vchseuv49mhsxa",
165+
fundingWif: "cNbbGFfSG8xvrH4HXJLcoENEmtkDAvPoC21qVhjntUc18XBzhGGe",
166+
tokenId:
167+
"3125ee6e4b051a19996a58cd876dade21a0a891d16845ada7d441573805c08db",
168+
bchChangeReceiverAddress: "bchtest:qp5e2laasex4m2qkrtel3skamsftvu0gaswsmdxcd2"
169+
};
170+
let burnAll = await SLP.TokenType1.burnAll(iBurnAllConfig);
171+
console.log(burnAll);
172+
} catch (error) {
173+
console.error(error);
174+
}
175+
})();
176+
177+
// returns
178+
8d2a6aad3de38e79718c043c6f83a960807787efec92d6a1d9940e2ed04d2169

src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ const IndexPage = ({ location, data }: Props) => (
250250
</BubbleImg>
251251
<Text>
252252
Build the foundation of knowledge needed to create world changing
253-
apps. Tutorials, blog posts, video streams and code snippets to help
254-
you go from being a hobbyist to a professional step by step.
253+
apps. Access tutorials, blog posts, video streams and code snippets
254+
to help you go from being a hobbyist to a professional step by step.
255255
</Text>
256256
<StyledLink to="/learn">
257257
<Button round>Learn</Button>

src/pages/learn.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Learn = ({ location, data }: Props) => (
4545
'Learning center and resources for all of your Bitcoin Cash development needs'
4646
}
4747
keywords={
48-
'learn, bitbox, tutorials, developer tools, bitcoin, bitcoin cash, BCH, sdk, api'
48+
'learn, bitbox, bitcoin cash tutorials, developer tools, bitcoin, bitcoin cash, bitcoin sdk, BCH, sdk, bitcoin cash api'
4949
}
5050
location={location}
5151
/>
@@ -63,7 +63,7 @@ const Learn = ({ location, data }: Props) => (
6363
to="/tutorials"
6464
title="Tutorials"
6565
text="Step by step instructions to build Bitcoin Cash apps from scratch.
66-
See real world examples get built and have your own working copies
66+
See real world examples built and have your own working copies
6767
to bootstrap your project from."
6868
cta="View"
6969
/>
@@ -78,7 +78,7 @@ const Learn = ({ location, data }: Props) => (
7878
to="/mastering-bitcoin-cash"
7979
title="Mastering Bitcoin Cash"
8080
text="Based on Mastering Bitcoin by Andreas M. Antonopoulos, Mastering
81-
Bitcoin Cash is the ultimate guide to the bring your knowledge from
81+
Bitcoin Cash is the ultimate guide to bring your knowledge from
8282
beginner to professional step by step."
8383
cta="Read"
8484
/>

src/pages/tutorials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const Tutorials = ({ location, data }: Props) => {
6464
'Tutorials for the building on Bitcoin Cash, utilizing the Bitbox and SLP SDKs'
6565
}
6666
keywords={
67-
'bitbox, tutorials, developer tools, bitcoin, bitcoin cash, BCH, sdk, api'
67+
'bitbox, tutorials, developer tools, bitcoin, bitcoin cash, bitcoin cash tutorials, BCH, sdk, api'
6868
}
6969
location={location}
7070
/>

0 commit comments

Comments
 (0)