Fixup: HTLC Object
This commit is contained in:
parent
9f36ae2ad0
commit
492851edfc
1 changed files with 13 additions and 16 deletions
29
bsip-0044.md
29
bsip-0044.md
|
@ -174,23 +174,20 @@ Bob has now observed the `preimage` Alice used to "unlock" his HTLC, and he will
|
|||
## **Objects**
|
||||
|
||||
```
|
||||
htlc_obj
|
||||
id // int
|
||||
depositor // account object
|
||||
quantity // int
|
||||
symbol // string
|
||||
recipient // account object
|
||||
hash_algorithm // enum
|
||||
preimage_hash // string
|
||||
preimage_length // int
|
||||
preimage_tx_id // reference to transaction object containing the preimage used for htlc_redeem
|
||||
timeout_threshold // datetime
|
||||
class htlc_object : public graphene::db::abstract_object<htlc_object> {
|
||||
public:
|
||||
static const uint8_t space_id = implementation_ids;
|
||||
static const uint8_t type_id = impl_htlc_object_type;
|
||||
|
||||
// Constructor
|
||||
Set: id = next available
|
||||
Initialize other fields = NULL
|
||||
|
||||
return contract
|
||||
account_id_type depositor;
|
||||
account_id_type recipient;
|
||||
asset amount;
|
||||
fc::time_point_sec expiration;
|
||||
asset pending_fee;
|
||||
vector<unsigned char> preimage_hash;
|
||||
uint16_t preimage_size;
|
||||
transaction_id_type preimage_tx_id;
|
||||
};
|
||||
```
|
||||
|
||||
## **Operations**
|
||||
|
|
Loading…
Reference in a new issue