-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the demo vasp to use uma 1.0 (#74)
* WIP: Update the demo vasp to use uma 1.0 - Switch to new counterparty data format - Add the payeedata fields - Add required new signature fields * Switch to the new LUD-21 spec * Add improved non-UMA LNURL compatibility * Update demo vasp for v0 backwards compatibility. * Go get * Add posttxhooks to the demo vasp * Use certs in demo vasp (#91) * Change receiving currency param name to match other vasps * Unifying the sending vasp demo api surface * Bump sdk ref * Update to released version --------- Co-authored-by: Shreya Vissamsetti <[email protected]>
- Loading branch information
Showing
13 changed files
with
512 additions
and
1,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package main | ||
|
||
import ( | ||
umaprotocol "github.com/uma-universal-money-address/uma-go-sdk/uma/protocol" | ||
) | ||
|
||
var SatsCurrency = umaprotocol.Currency{ | ||
Code: "SAT", | ||
Name: "Satoshis", | ||
Symbol: "SAT", | ||
MillisatoshiPerUnit: 1000, | ||
Convertible: umaprotocol.ConvertibleCurrency{ | ||
MinSendable: 1, | ||
MaxSendable: 100_000_000, | ||
}, | ||
Decimals: 0, | ||
} | ||
|
||
var UsdCurrency = umaprotocol.Currency{ | ||
Code: "USD", | ||
Name: "US Dollars", | ||
Symbol: "$", | ||
MillisatoshiPerUnit: MillisatoshiPerUsd, | ||
Convertible: umaprotocol.ConvertibleCurrency{ | ||
MinSendable: 1, | ||
MaxSendable: 1_000, | ||
}, | ||
Decimals: 2, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.