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
753d3eee
Commit
753d3eee
authored
May 15, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add transaction building and sending
parent
1cd49669
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
transaction-building.ts
Breeze.UI/src/app/shared/classes/transaction-building.ts
+22
-0
transaction-sending.ts
Breeze.UI/src/app/shared/classes/transaction-sending.ts
+8
-0
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+14
-0
No files found.
Breeze.UI/src/app/shared/classes/transaction-building.ts
0 → 100644
View file @
753d3eee
export
class
TransactionBuilding
{
constructor
(
walletName
:
string
,
coinType
:
number
,
accountName
:
string
,
password
:
string
,
destinationAddress
:
string
,
amount
:
string
,
feeType
:
string
,
allowUnconfirmed
:
boolean
)
{
this
.
walletName
=
walletName
;
this
.
coinType
=
coinType
;
this
.
accountName
=
accountName
;
this
.
password
=
password
;
this
.
destinationAddress
=
destinationAddress
;
this
.
amount
=
amount
;
this
.
feeType
=
feeType
;
this
.
allowUnconfirmed
=
allowUnconfirmed
;
}
walletName
:
string
;
coinType
:
number
;
accountName
:
string
;
password
:
string
;
destinationAddress
:
string
;
amount
:
string
;
feeType
:
string
;
allowUnconfirmed
:
boolean
;
}
Breeze.UI/src/app/shared/classes/transaction-sending.ts
0 → 100644
View file @
753d3eee
export
class
TransactionSending
{
constructor
(
hex
:
string
)
{
this
.
hex
=
hex
;
}
hex
:
string
;
}
Breeze.UI/src/app/shared/services/api.service.ts
View file @
753d3eee
...
@@ -9,6 +9,8 @@ import { WalletRecovery } from '../classes/wallet-recovery';
...
@@ -9,6 +9,8 @@ import { WalletRecovery } from '../classes/wallet-recovery';
import
{
WalletLoad
}
from
'../classes/wallet-load'
;
import
{
WalletLoad
}
from
'../classes/wallet-load'
;
import
{
WalletInfo
}
from
'../classes/wallet-info'
;
import
{
WalletInfo
}
from
'../classes/wallet-info'
;
import
{
Mnemonic
}
from
'../classes/mnemonic'
;
import
{
Mnemonic
}
from
'../classes/mnemonic'
;
import
{
TransactionBuilding
}
from
'../classes/transaction-building'
;
import
{
TransactionSending
}
from
'../classes/transaction-sending'
;
/**
/**
* For information on the API specification have a look at our Github:
* For information on the API specification have a look at our Github:
...
@@ -106,4 +108,16 @@ export class ApiService {
...
@@ -106,4 +108,16 @@ export class ApiService {
.
get
(
this
.
webApiUrl
+
'/wallet/address'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
get
(
this
.
webApiUrl
+
'/wallet/address'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
map
((
response
:
Response
)
=>
response
);
.
map
((
response
:
Response
)
=>
response
);
}
}
buildTransaction
(
data
:
TransactionBuilding
):
Observable
<
any
>
{
return
this
.
http
.
post
(
this
.
webApiUrl
+
'/wallet/build-transaction/'
,
JSON
.
stringify
(
data
),
{
headers
:
this
.
headers
})
.
map
((
response
:
Response
)
=>
response
);
}
sendTransaction
(
data
:
TransactionSending
):
Observable
<
any
>
{
return
this
.
http
.
post
(
this
.
webApiUrl
+
'/wallet/send-transaction/'
,
JSON
.
stringify
(
data
),
{
headers
:
this
.
headers
})
.
map
((
response
:
Response
)
=>
response
);
}
}
}
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