or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Swap Test Guide (deprecated)
this guide is deprecated, please use the generic guide.
This sets up 2 swarm nodes in a private network with balances on their bzzaccounts on a local blockchain. The nodes use the datadirs
./s1
and./s2
. Requiresganache-cli
andwebsocat
to be installed. (https://www.npmjs.com/package/ganache-cli)Ganache session
Start a ganache instance with a specific seed (do not change it).
This
ERC20Mintable
(0x41ca78f7fd9e745beabb2145a9ffd60992a96a28
)SimpleSwapFactory
and point to the recently deployed ERC20 contract (0x713f67f1e26d44deb9e7c7165dc47dedc5ab69cb
)Note: There are
&&
at the end of the first 3 lines. Copy all 4 lines at once!Start the nodes (in the swarm repo folder)
This will populate the datadirs of the swarm nodes with the accounts already prefunded by ganache. It will also use predefined nodekeys. If you want to reset balances to 0 simply execute the entire code again. If you want the datadir to persist only execute the last line (in that case make sure
DATADIR1
and/orDATADIR2
is defined).Start the first node (with syncing disabled) with
and the second node with this:
Generate a random file and upload
This generates a 1.6MB file, pushes it to one nodes and then retrieves it one the other one which should be large enough to immediately trigger a cheque.
Query Balances
Query all balances:
Query a specific balance:
Other Clients
Generic Test Guide
https://hackmd.io/K8ye4VwURvWLR6F-fOiIHA?view