Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
91e9a8a9
Commit
91e9a8a9
authored
Jun 14, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Included PaymentStateMachine from TB
parent
867f0193
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
352 additions
and
1 deletion
+352
-1
ExternalServices.cs
Breeze/src/Breeze.TumbleBit.Client/ExternalServices.cs
+39
-0
PaymentStateMachine.cs
Breeze/src/Breeze.TumbleBit.Client/PaymentStateMachine.cs
+290
-0
TransactionType.cs
Breeze/src/Breeze.TumbleBit.Client/TransactionType.cs
+22
-0
TumblingState.cs
Breeze/src/Breeze.TumbleBit.Client/TumblingState.cs
+1
-1
No files found.
Breeze/src/Breeze.TumbleBit.Client/ExternalServices.cs
0 → 100644
View file @
91e9a8a9
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
NBitcoin
;
using
NTumbleBit
;
namespace
Breeze.TumbleBit.Client
{
public
class
ExternalServices
{
public
Transaction
FundTransaction
(
TxOut
txOut
,
FeeRate
feeRate
)
{
return
null
;
}
public
void
Track
(
Script
scriptPubkey
)
{
}
public
bool
Broadcast
(
Transaction
tx
)
{
return
true
;
}
public
void
TrustedBroadcast
(
int
cycleStart
,
TransactionType
transactionType
,
uint
correlation
,
TrustedBroadcastRequest
broadcast
)
{
}
public
TransactionInformation
[]
GetTransactions
(
Script
scriptPubKey
,
bool
withProof
)
{
return
null
;
}
public
FeeRate
GetFeeRate
()
{
return
null
;
}
}
}
Breeze/src/Breeze.TumbleBit.Client/PaymentStateMachine.cs
0 → 100644
View file @
91e9a8a9
This diff is collapsed.
Click to expand it.
Breeze/src/Breeze.TumbleBit.Client/TransactionType.cs
0 → 100644
View file @
91e9a8a9
namespace
Breeze.TumbleBit.Client
{
public
enum
TransactionType
:
int
{
TumblerEscrow
,
TumblerRedeem
,
/// <summary>
/// The transaction that cashout tumbler's escrow (go to client)
/// </summary>
TumblerCashout
,
ClientEscrow
,
ClientRedeem
,
ClientOffer
,
ClientEscape
,
/// <summary>
/// The transaction that cashout client's escrow (go to tumbler)
/// </summary>
ClientFulfill
,
ClientOfferRedeem
}
}
Breeze/src/Breeze.TumbleBit.Client/TumblingState.cs
View file @
91e9a8a9
...
@@ -13,7 +13,7 @@ using Stratis.Bitcoin.Wallet;
...
@@ -13,7 +13,7 @@ using Stratis.Bitcoin.Wallet;
namespace
Breeze.TumbleBit.Client
namespace
Breeze.TumbleBit.Client
{
{
public
class
TumblingState
:
IStateMachine
public
partial
class
TumblingState
:
IStateMachine
{
{
private
const
string
StateFileName
=
"tumblebit_state.json"
;
private
const
string
StateFileName
=
"tumblebit_state.json"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment