mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 01:40:55 +01:00
Offer.offerCollateralSatoshis to offerCollateral (#4148)
This commit is contained in:
parent
6b7058af4a
commit
6e87eb1480
@ -790,8 +790,7 @@ object Picklers {
|
||||
"fundingPubKey" -> Str(fundingPubKey.hex),
|
||||
"payoutSPK" -> Str(payoutSPK.hex),
|
||||
"payoutSerialId" -> Num(payoutSerialId.toBigInt.toDouble),
|
||||
"offerCollateralSatoshis" -> Num(
|
||||
totalCollateralSatoshis.toLong.toDouble),
|
||||
"offerCollateral" -> Num(totalCollateralSatoshis.toLong.toDouble),
|
||||
"fundingInputs" -> fundingInputs.map(i => writeJs(i)),
|
||||
"changeSPK" -> Str(changeSPK.hex),
|
||||
"changeSerialId" -> Str(changeSerialId.toBigInt.toString()),
|
||||
|
@ -89,7 +89,7 @@ bitcoin-s-cli decodeoffer a71a006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c
|
||||
"fundingPubKey": "02279cf17c387d7101b08d90b2aeef46231957d9d3558f5871e62781a68e7d75c9",
|
||||
"payoutSPK": "1600148dc81a3097bf28c6020eaf89cefae69c5f31aceb",
|
||||
"payoutSerialId": 6729888050161701888,
|
||||
"offerCollateralSatoshis": 37000,
|
||||
"offerCollateral": 37000,
|
||||
"fundingInputs": [
|
||||
{
|
||||
"inputSerialId": 7093787203812804608,
|
||||
|
@ -202,7 +202,7 @@ the offer before sending it to him you can use `decodeoffer`
|
||||
"fundingPubKey": "02869f5d3931620521f3eef85c0e7adf64a4db330d2dfde3aa871172274f210fe0",
|
||||
"payoutSPK": "1600141df0a84b2d2e611dd595101bfed6320143c47ebb",
|
||||
"payoutSerialId": 1.2572776984081695E19,
|
||||
"offerCollateralSatoshis": 60000,
|
||||
"offerCollateral": 60000,
|
||||
"fundingInputs": [
|
||||
{
|
||||
"inputSerialId": 9.751703500876681E18,
|
||||
|
@ -311,7 +311,7 @@ You can decode the offer above with `decodeoffer`
|
||||
"fundingPubKey": "03a63505d00a2f927904f9c7d3cd28b59cb105b8d028fc1b715ef243351cea0f33",
|
||||
"payoutSPK": "1600148cd33b6fadc74aaca3982d3fd1891b1100a01e99",
|
||||
"payoutSerialId": 7520084828858968064,
|
||||
"offerCollateralSatoshis": 50000,
|
||||
"offerCollateral": 50000,
|
||||
"fundingInputs": [
|
||||
{
|
||||
"inputSerialId": 3740391543456242688,
|
||||
|
Loading…
Reference in New Issue
Block a user