-
Notifications
You must be signed in to change notification settings - Fork 3
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: Transaction details page hints #331
Conversation
Deployed to https://pr-331-aescan.stg.aepps.com |
140a2c0
to
ffac685
Compare
@marc0olo I invited you for a review of the next large part of the hints |
src/utils/hints/contractsHints.js
Outdated
createdBy: 'Keyblock height and exact date and time when the smart contract was created.', | ||
hash: 'The transaction hash of a ContractCreateTx that was executed to create the smart contract on the blockchain.', | ||
creator: 'Account that created the smart contract on the blockchain.', | ||
status: 'Status of the transaction', |
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.
status: 'Status of the transaction', | |
status: 'Status of the transaction.', |
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
src/utils/hints/contractsHints.js
Outdated
smartContract: 'Unique identifier for a smart contract instance that lives on the blockchain.', | ||
caller: 'Account that called the smart contract.', | ||
amount: 'Amount of AE coins that was transferred to smart contract address.', | ||
entryPoint: 'The entry point of the smart contract that has been called.', |
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.
entryPoint: 'The entry point of the smart contract that has been called.', | |
entryPoint: 'The entrypoint of the smart contract that has been called.', |
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 all over the app
src/utils/hints/contractsHints.js
Outdated
caller: 'Account that called the smart contract.', | ||
amount: 'Amount of AE coins that was transferred to smart contract address.', | ||
entryPoint: 'The entry point of the smart contract that has been called.', | ||
arguments: 'Arguments that was passed to entry point call with the call.', |
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.
arguments: 'Arguments that was passed to entry point call with the call.', | |
arguments: 'Arguments that were passed to the entrypoint.', |
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
src/utils/hints/contractsHints.js
Outdated
amount: 'Amount of AE coins that was transferred to smart contract address.', | ||
entryPoint: 'The entry point of the smart contract that has been called.', | ||
arguments: 'Arguments that was passed to entry point call with the call.', | ||
return: 'Value that has been emitted after the call to entry point.', |
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.
return: 'Value that has been emitted after the call to entry point.', | |
return: 'Value that was returned by the entrypoint.', |
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
src/utils/hints/contractsHints.js
Outdated
entryPoint: 'The entry point of the smart contract that has been called.', | ||
arguments: 'Arguments that was passed to entry point call with the call.', | ||
return: 'Value that has been emitted after the call to entry point.', | ||
gasLimit: 'Maximum amount of gas that will be paid for transaction.', |
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.
gasLimit: 'Maximum amount of gas that will be paid for transaction.', | |
gasLimit: 'Maximum amount of gas to be consumed by this transaction.', |
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
src/utils/hints/transactionsHints.js
Outdated
gaAttachTxStatus: 'Status of the transaction.', | ||
gaAttachTxAccount: 'Account that was generalized.', | ||
gaAttachTxSmartContractId: 'Unique identifier of the smart contract that was attached to the account.', | ||
gaAttachTxGasLimit: 'Maximum amount of gas that will be paid for transaction.', |
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.
gaAttachTxGasLimit: 'Maximum amount of gas that will be paid for transaction.', | |
gaAttachTxGasLimit: 'Maximum amount of gas to be consumed by this transaction.', |
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
src/utils/hints/transactionsHints.js
Outdated
gaAttachTxAccount: 'Account that was generalized.', | ||
gaAttachTxSmartContractId: 'Unique identifier of the smart contract that was attached to the account.', | ||
gaAttachTxGasLimit: 'Maximum amount of gas that will be paid for transaction.', | ||
gaAttachTxAuthFunction: 'Name of the smart contract function that was called to generalize the account.', |
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.
gaAttachTxAuthFunction: 'Name of the smart contract function that was called to generalize the account.', | |
gaAttachTxAuthFunction: 'Name of the smart contract entrypoint that in the future handles the authorization logic of the account.', |
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
src/utils/hints/transactionsHints.js
Outdated
gaAttachTxSmartContractId: 'Unique identifier of the smart contract that was attached to the account.', | ||
gaAttachTxGasLimit: 'Maximum amount of gas that will be paid for transaction.', | ||
gaAttachTxAuthFunction: 'Name of the smart contract function that was called to generalize the account.', | ||
gaAttachTxArguments: 'Arguments that were passed to the smart contract call.', |
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.
gaAttachTxArguments: 'Arguments that were passed to the smart contract call.', | |
gaAttachTxArguments: 'Arguments that were passed to initialize the attached smart contract.', |
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
src/utils/hints/transactionsHints.js
Outdated
gaAttachTxAuthFunction: 'Name of the smart contract function that was called to generalize the account.', | ||
gaAttachTxArguments: 'Arguments that were passed to the smart contract call.', | ||
gaAttachTxGasPrice: 'Price for one unit of gas.', | ||
gaAttachTxGasUsed: 'Amount of gas that was paid for interaction with the smart contract.', |
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.
gaAttachTxGasUsed: 'Amount of gas that was paid for interaction with the smart contract.', | |
gaAttachTxGasUsed: 'Amount of gas that was consumed for attaching the smart contract to the account.', |
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
src/utils/hints/transactionsHints.js
Outdated
gaAttachTxArguments: 'Arguments that were passed to the smart contract call.', | ||
gaAttachTxGasPrice: 'Price for one unit of gas.', | ||
gaAttachTxGasUsed: 'Amount of gas that was paid for interaction with the smart contract.', | ||
gaAttachTxGasCost: 'Price in AE that was paid for interaction with the smart contract.', |
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.
gaAttachTxGasCost: 'Price in AE that was paid for interaction with the smart contract.', | |
gaAttachTxGasCost: 'The AE paid for attaching the smart contract to the account.', |
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
@janmichek for the state channel tx-hints I think it would be good to let @velzevur and/or @uwiger have a look. I actually didn't review the state channel hints so far. |
Thanks for the great suggestions, all accepted. |
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.
Looks pretty good to me =)
responderCloseAmount: 'Final balance for the responder.', | ||
responderSettleAmount: 'Unsigned amount of coins the responder gets from the channel.', | ||
settledBy: 'Participant of the channel that posts the settling transaction.', | ||
snapshotRound: 'Channel\'s next round.', |
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.
I am not sure if this is a bit misleading and it could be misleading, maybe try:
snapshotRound: 'Channel\'s next round.', | |
snapshotRound: 'Channel snapshot\'s round.', |
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.
accepted
slashedRound: 'The round in which the slash was triggered.', | ||
slashedBy: 'The account that slashed (disputed) malicious ChannelCloseSoloTx or ChannelForceProgressTx.', | ||
initiatorCreateAmount: 'Unsigned amount of coins the initiator commits to the channel.', | ||
initiatorCloseAmount: 'Final balance for the initiator.', |
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 the difference between initiatorCloseAmount
and initiatorSettleAmount
? In what context are they being used?
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.
The context changes per tx type
vs
CLOSE MUTUAL
https://pr-331-aescan.stg.aepps.com/transactions/th_2Fm4TFh1z8nMNhzBCLR62raVdnqKRjcQ2Gh8FH1fr2SUAyzUBB
forcedBy: 'Participant or a delegate of the channel that posts the force progress transaction.', | ||
depositor: 'Account that deposited funds to the state channel.', | ||
depositRound: 'The channel\'s internal round that applies the deposit.', | ||
depositAmount: 'Amount deposited to the state channels.', |
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.
depositAmount: 'Amount deposited to the state channels.', | |
depositAmount: 'Amount deposited to the state channel.', |
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
closeRound: 'The round in which the state channel was proposed to be closed.', | ||
closeProposedBy: 'The participant of the channel that posts the closing transaction.', | ||
sentBy: 'State channel participant or delegate that posts the slashing transaction.', | ||
channelReserve: 'The minimum amount of AE coins that must remain locked in the channel.', |
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.
channelReserve: 'The minimum amount of AE coins that must remain locked in the channel.', | |
channelReserve: 'The minimum amount of AE coins that must remain locked in any of the off-chain accounts in the channel.', |
It is not the total amount locked in the channel but a minimum threshold for both accounts independently
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.
thanks, accepted
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.
Good job, I left some suggestions.
Thank you, all fixed |
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.
Thanks for the fixes and the really good job. 👏
Description
resolves #231
Demo
Checklist: