Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
800
Issues
800
List
Boards
Labels
Service Desk
Milestones
Merge Requests
57
Merge Requests
57
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
bce6e2e8
Commit
bce6e2e8
authored
3 hours ago
by
Emiliano Balbuena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(refactor): Payments
parent
67cdf6a1
goal/boost-campaigns-e24
1 merge request
!387
WIP: Boost Campaigns (&24)
Pipeline
#69643554
passed with stages
in 31 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
campaign-payments.service.ts
src/app/modules/boost/campaigns/campaign-payments.service.ts
+2
-1
campaigns.type.ts
src/app/modules/boost/campaigns/campaigns.type.ts
+1
-0
No files found.
src/app/modules/boost/campaigns/campaign-payments.service.ts
View file @
bce6e2e8
...
...
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import
{
Web3WalletService
}
from
'
../../blockchain/web3-wallet.service
'
;
import
{
OverlayModalService
}
from
'
../../../services/ux/overlay-modal
'
;
import
{
GetMetamaskComponent
}
from
'
../../blockchain/metamask/getmetamask.component
'
;
import
{
Campaign
,
Campaign
BudgetType
,
Campaign
Payment
}
from
'
./campaigns.type
'
;
import
{
Campaign
,
CampaignPayment
}
from
'
./campaigns.type
'
;
import
{
TokenContractService
}
from
'
../../blockchain/contracts/token-contract.service
'
;
@
Injectable
()
...
...
@@ -61,6 +61,7 @@ export class CampaignPaymentsService {
return
{
address
:
await
this
.
web3Wallet
.
getCurrentWallet
(
true
)
as
string
,
txHash
:
await
this
.
tokenContract
.
transfer
(
this
.
campaignWallet
,
amount
),
amount
,
};
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/boost/campaigns/campaigns.type.ts
View file @
bce6e2e8
...
...
@@ -38,4 +38,5 @@ export type Campaign = {
export
type
CampaignPayment
=
{
address
:
string
,
txHash
:
string
,
amount
:
number
,
};
This diff is collapsed.
Click to expand it.
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