A tool to store a file perpetually on Filecoin.
Please see here for the intro to this protocol:
https://pl-strflt.notion.site/Perpetual-Storage-on-Filecoin-7803c92462f54e50a985369a41449495
In the following, we assume that the Bounty Contract is live on Ethereum.
The Perpetual Storage Contract is a smart contract on the Ethereum blockchain with the following data and functions:
ActivactionList
: list of addresses that can call ActivateDeal
;DepositList
: list of addresses that can call DepositTo
.DepositTo(amount)
: This function adds tokens to the internal balance of the perpetual storage contract:
DepositList
), if yes amount
is moved from the caller's account to the contract (add to contract_balance
).ActivatePerpetualStorage(file_id)
: This function is used to activate the contract (???). Repeat the following RP
times:
CreateBounty(file_id, Filecoin, dealers, oracle_addresses, duration, price) -> bounty_id
; and then start listening to the logs,
BountyAccepted(bount_id)
event, then get the bounty_id_start_epoch
and go to step 2,current_epoch = bounty_id_start_epoch
, call Renewal(bounty_id)-->new_bounty_id
;dealTerminated(bounty_id)
event is on chain, call Renewal(bounty_id)-->new_bounty_id
;Renewal
:
BountyContract.CreateBounty
;TBD
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.
Do you want to remove this version name and description?
Syncing