-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add NanoContractTransaction screen [12] #440
feat: add NanoContractTransaction screen [12] #440
Conversation
1e13c7d
to
593332c
Compare
6a6e1e7
to
a0caced
Compare
593332c
to
d0fd277
Compare
a0caced
to
f823c2b
Compare
30f3fe4
to
82141bb
Compare
a946e8f
to
12d5cc2
Compare
const isHeightLocked = this.isHeightLocked(tx.height, nowHeight, rewardLock); | ||
|
||
for (const output of tx.outputs) { | ||
// Removed isAddressMine filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this comment? Removed from where?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File removed.
} | ||
|
||
for (const input of tx.inputs) { | ||
// Removed isAddressMine filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File removed.
* @param {string} tokenUid Token hash | ||
* @param {Object[]} tokens Registered tokens from redux store | ||
*/ | ||
function getTokenValue(tokenUid, tokens) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to getTokenSymbol
? Value is misleading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File removed.
85e37f7
to
43a9a85
Compare
72a5b61
to
4da4f91
Compare
33a6d7a
to
34fffb2
Compare
src/components/NanoContract/NanoContractTransactionHeader.component.js
Outdated
Show resolved
Hide resolved
src/components/NanoContract/NanoContractTransactionHeader.component.js
Outdated
Show resolved
Hide resolved
src/components/NanoContract/NanoContractTransactionActionList.component.js
Outdated
Show resolved
Hide resolved
src/components/NanoContract/NanoContractTransactionActionList.component.js
Outdated
Show resolved
Hide resolved
src/components/NanoContract/NanoContractTransactionActionListItem.component.js
Outdated
Show resolved
Hide resolved
src/components/NanoContract/NanoContractTransactionActionListItem.component.js
Outdated
Show resolved
Hide resolved
locale/pt-br/texts.po
Outdated
|
||
#: src/components/NanoContract/NanoContractTransactionBalanceListItem.component.js:109 | ||
msgid "Sent ${ tokenValue }" | ||
msgstr "Enviado ${ symbol }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? Variable names is different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
useEffect(() => { | ||
// TODO: implement fetchActions to get actions of a transaction | ||
const fetchActions = async () => { | ||
// TODO: getActions must be implemented in the lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And should also be a saga
Will this PR wait until the lib is updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. But I can rip off this component until we have the actions on each nano contract transaction.
<PrimaryTextButton title={t`See transaction details`} onPress={navigatesToExplorer} /> | ||
</TwoActionsWrapper> | ||
</View> | ||
{/* TODO: add <ArrowUpIcon /> when action list is ready to be showed */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a TODO? Will this PR be merged or wait the getActions method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be merged. But I will rip off this reference to actions. I believe it will be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
chore: rename NanoContractTransactionScreen.js chore: some tweaks lint: comply with rules fix: small fixes
- Add FeedbackContent for no input/ouput on NanoContractTransactionBalanceList - Minor fix on NanoContractTransactionHeader
34fffb2
to
a9caff1
Compare
* feat: add nano contract transaction screen * feat: add nano contract transaction components * Add FeedbackContent for no input/output on NanoContractTransactionBalanceList * fix: navigation to NanoContractTransactionScreen
Acceptance Criteria
It should add
NanoContractTransaction
screenIt should add a
NanoContractTransactionHeader
componentIt should improve
FeedbackContent
component by adding a wrapper layer with overflowscroll
It should add icon
Received.icon
componentIt should add icon
Sent.icon
componentIt should improve
TextValue
by adding title optionIt should add
NanoContractTransactionActionList
componentIt should add
NanoContractTransactionActionListItem
componentWarning
The action components are not being used because it requires new methods at wallet-lib that are not yet implemented.
Warning
I already changed the screen title, despite the recording and screenshots is steel showing the old title.
Nano Contract Transaction Screen showing a bet transaction
nc-transaction-recording.mp4
Nano Contract Transaction header expaned
![](https://private-user-images.githubusercontent.com/5992210/336533136-78a8bf0d-2cc3-4f7b-8ced-1c5ff8a10499.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDMyMDIsIm5iZiI6MTczOTYwMjkwMiwicGF0aCI6Ii81OTkyMjEwLzMzNjUzMzEzNi03OGE4YmYwZC0yY2MzLTRmN2ItOGNlZC0xYzVmZjhhMTA0OTkuanBlZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA3MDE0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM2ZTYyMDZiNDQ0MzBjYWJiNjU1N2QwZjQwN2U1OWY3ZjJiMWFlNjc5OGUxZTE0NjIyZThmN2M4MjI3OTBmYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lDPh4y92zQUmrAs7_fnJxkr2iFnibPjspX72rm6XBuE)
Note
It depends on:
Security Checklist