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
e77df3ad
Commit
e77df3ad
authored
May 15, 2017
by
Jeremy Bokobza
Committed by
GitHub
May 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #55 from bokobza/master
Added transactionId to the "build transaction" return message
parents
4bb45a35
d0019951
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
ApiSpecification.md
Breeze.Documentation/ApiSpecification.md
+2
-1
WalletController.cs
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
+2
-1
IWalletManager.cs
Breeze/src/Breeze.Wallet/IWalletManager.cs
+1
-1
WalletBuildTransactionModel.cs
...e/src/Breeze.Wallet/Models/WalletBuildTransactionModel.cs
+5
-2
WalletManager.cs
Breeze/src/Breeze.Wallet/WalletManager.cs
+2
-2
No files found.
Breeze.Documentation/ApiSpecification.md
View file @
e77df3ad
...
@@ -297,7 +297,8 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
...
@@ -297,7 +297,8 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
```
```
{
{
"fee": "0.0001",
"fee": "0.0001",
"hex": "0100000002d9dced2b6fc80c706d3564670cb6706afe7a798863a9218efcdcf415d58f0f82000000006a473044022030b8bea478444bd52f08de33b082cde1176d3137111f506eefefa91b47b1f6bf02204f12746abd1aeac5805872d163592cf145967fa0619339a9c5348d674852ef4801210224ec1e4c270ce373e6999eebfa01d0a7e7db3c537c026f265233350d5aab81fbfeffffffa0706db65c5e3594d43df5a2a8b6dfd3c9ee506b678f8c26f7820b324b26aa0f000000006a473044022061b718034f876590d6d80bac77a63248b2548d934849acd02c4f4236309e853002201aded6b24f553b6902cf571276b37b12f76b75650164d8738c74469b4edd547e012103d649294a0ca4db920a69eacd6a75cb8a38ae1b81129900621ce45e6ba3438a7bfeffffff0280a90300000000001976a914d0965947ebb329b776328624ebde8f8b32dc639788ac1cc80f00000000001976a914c2a420d34fc86cff932b8c3191549a0ddfd2b0d088acba770f00"
"hex": "0100000002d9dced2b6fc80c706d3564670cb6706afe7a798863a9218efcdcf415d58f0f82000000006a473044022030b8bea478444bd52f08de33b082cde1176d3137111f506eefefa91b47b1f6bf02204f12746abd1aeac5805872d163592cf145967fa0619339a9c5348d674852ef4801210224ec1e4c270ce373e6999eebfa01d0a7e7db3c537c026f265233350d5aab81fbfeffffffa0706db65c5e3594d43df5a2a8b6dfd3c9ee506b678f8c26f7820b324b26aa0f000000006a473044022061b718034f876590d6d80bac77a63248b2548d934849acd02c4f4236309e853002201aded6b24f553b6902cf571276b37b12f76b75650164d8738c74469b4edd547e012103d649294a0ca4db920a69eacd6a75cb8a38ae1b81129900621ce45e6ba3438a7bfeffffff0280a90300000000001976a914d0965947ebb329b776328624ebde8f8b32dc639788ac1cc80f00000000001976a914c2a420d34fc86cff932b8c3191549a0ddfd2b0d088acba770f00",
"transactionId": "86f348bce07b04b2f7a00d882349e66d98765e935484516ce5fca97685566155"
}
}
```
```
...
...
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
View file @
e77df3ad
...
@@ -280,7 +280,8 @@ namespace Breeze.Wallet.Controllers
...
@@ -280,7 +280,8 @@ namespace Breeze.Wallet.Controllers
var
model
=
new
WalletBuildTransactionModel
var
model
=
new
WalletBuildTransactionModel
{
{
Hex
=
transactionResult
.
hex
,
Hex
=
transactionResult
.
hex
,
Fee
=
transactionResult
.
fee
Fee
=
transactionResult
.
fee
,
TransactionId
=
transactionResult
.
transactionId
};
};
return
this
.
Json
(
model
);
return
this
.
Json
(
model
);
}
}
...
...
Breeze/src/Breeze.Wallet/IWalletManager.cs
View file @
e77df3ad
...
@@ -135,7 +135,7 @@ namespace Breeze.Wallet
...
@@ -135,7 +135,7 @@ namespace Breeze.Wallet
/// <param name="feeType">The type of fee to be included.</param>
/// <param name="feeType">The type of fee to be included.</param>
/// <param name="allowUnconfirmed">Whether or not we allow this transaction to rely on unconfirmed outputs.</param>
/// <param name="allowUnconfirmed">Whether or not we allow this transaction to rely on unconfirmed outputs.</param>
/// <returns></returns>
/// <returns></returns>
(
string
hex
,
Money
fee
)
BuildTransaction
(
string
walletName
,
string
accountName
,
CoinType
coinType
,
string
password
,
string
destinationAddress
,
Money
amount
,
string
feeType
,
bool
allowUnconfirmed
);
(
string
hex
,
uint256
transactionId
,
Money
fee
)
BuildTransaction
(
string
walletName
,
string
accountName
,
CoinType
coinType
,
string
password
,
string
destinationAddress
,
Money
amount
,
string
feeType
,
bool
allowUnconfirmed
);
/// <summary>
/// <summary>
/// Sends a transaction to the network.
/// Sends a transaction to the network.
...
...
Breeze/src/Breeze.Wallet/Models/WalletBuildTransactionModel.cs
View file @
e77df3ad
...
@@ -14,5 +14,8 @@ namespace Breeze.Wallet.Models
...
@@ -14,5 +14,8 @@ namespace Breeze.Wallet.Models
[
JsonProperty
(
PropertyName
=
"hex"
)]
[
JsonProperty
(
PropertyName
=
"hex"
)]
public
string
Hex
{
get
;
set
;
}
public
string
Hex
{
get
;
set
;
}
[
JsonProperty
(
PropertyName
=
"transactionId"
)]
public
uint256
TransactionId
{
get
;
set
;
}
}
}
}
}
Breeze/src/Breeze.Wallet/WalletManager.cs
View file @
e77df3ad
...
@@ -325,7 +325,7 @@ namespace Breeze.Wallet
...
@@ -325,7 +325,7 @@ namespace Breeze.Wallet
}
}
/// <inheritdoc />
/// <inheritdoc />
public
(
string
hex
,
Money
fee
)
BuildTransaction
(
string
walletName
,
string
accountName
,
CoinType
coinType
,
string
password
,
string
destinationAddress
,
Money
amount
,
string
feeType
,
bool
allowUnconfirmed
)
public
(
string
hex
,
uint256
transactionId
,
Money
fee
)
BuildTransaction
(
string
walletName
,
string
accountName
,
CoinType
coinType
,
string
password
,
string
destinationAddress
,
Money
amount
,
string
feeType
,
bool
allowUnconfirmed
)
{
{
if
(
amount
==
Money
.
Zero
)
if
(
amount
==
Money
.
Zero
)
{
{
...
@@ -388,7 +388,7 @@ namespace Breeze.Wallet
...
@@ -388,7 +388,7 @@ namespace Breeze.Wallet
throw
new
Exception
(
"Could not build transaction, please make sure you entered the correct data."
);
throw
new
Exception
(
"Could not build transaction, please make sure you entered the correct data."
);
}
}
return
(
tx
.
ToHex
(),
calculationResult
.
fee
);
return
(
tx
.
ToHex
(),
tx
.
GetHash
(),
calculationResult
.
fee
);
}
}
/// <summary>
/// <summary>
...
...
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