Skip to content

Conversation

@tylerlevine
Copy link
Contributor

A common use case in the front end is building a URL to a block explorer
for a specific transaction, so a user can see the status of their
transaction on chain.

For some account coins, fees are paid from the Enterprise, instead of
from the wallet itself. For those coins, we'd like to be able to:

  1. Know that this is one of those coins where the enterprise pays fees
  2. How to build an explorer URL so a user can look at the on chain
    balance of their Enterprise fee address

This commit adds the ENTEPRISE_PAYS_FEES coin feature, and adds this
feature to XTZ and ETH (the only two coins which currently pay fees from
the Enterprise gas tank). This solves for case #1.

This commit also adds a new optional field to AccountNetwork called
accountExplorerUrl. This can be used for building urls just like the
explorerUrl, and therefore solves case #2 above.

Ticket: BG-19107

A common use case in the front end is building a URL to a block explorer
for a specific transaction, so a user can see the status of their
  transaction on chain.

For some account coins, fees are paid from the Enterprise, instead of
from the wallet itself. For those coins, we'd like to be able to:
1) Know that this is one of those coins where the enterprise pays fees
2) How to build an explorer URL so a user can look at the on chain
balance of their Enterprise fee address

This commit adds the ENTEPRISE_PAYS_FEES coin feature, and adds this
feature to XTZ and ETH (the only two coins which currently pay fees from
the Enterprise gas tank). This solves for case #1.

This commit also adds a new optional field to `AccountNetwork` called
`accountExplorerUrl`. This can be used for building urls just like the
`explorerUrl`, and therefore solves case #2 above.

Ticket: BG-19107
@codecov
Copy link

codecov bot commented Mar 25, 2020

Codecov Report

Merging #713 into master will increase coverage by 19.29%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #713       +/-   ##
===========================================
+ Coverage   36.38%   55.68%   +19.29%     
===========================================
  Files          79       80        +1     
  Lines        8937     8942        +5     
  Branches     1781     1781               
===========================================
+ Hits         3252     4979     +1727     
+ Misses       5177     3264     -1913     
- Partials      508      699      +191     
Flag Coverage Δ
#integration ?
#unit 55.68% <ø> (?)
Impacted Files Coverage Δ
src/v2/webhooks.ts 28.20% <0.00%> (-48.72%) ⬇️
src/v2/coins/erc20Token.ts 30.09% <0.00%> (-41.75%) ⬇️
src/v2/markets.ts 52.63% <0.00%> (-31.58%) ⬇️
src/v2/pendingApproval.ts 14.15% <0.00%> (-23.01%) ⬇️
src/v2/wallets.ts 42.66% <0.00%> (-20.65%) ⬇️
src/bitgo.ts 48.46% <0.00%> (-5.74%) ⬇️
src/wallets.ts 13.88% <0.00%> (-3.89%) ⬇️
src/v2/internal/util.ts 57.30% <0.00%> (-2.25%) ⬇️
src/v2/coinFactory.ts 88.23% <0.00%> (-1.48%) ⬇️
src/v2/trading/trade.ts 100.00% <0.00%> (ø)
... and 53 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update baf6d9b...95185ff. Read the comment docs.

@tylerlevine tylerlevine merged commit 946a291 into master Mar 30, 2020
@0xabrarhussain 0xabrarhussain deleted the BG-19107-add-enterprise-pays-fees-feature branch October 14, 2021 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants