Commit Graph

56 Commits

Author SHA1 Message Date
Agustin Pane 551db136f3
(Feature) #1515 Gas estimation for NON-GETH nodes (#1523)
* Remove unnecesary await

* Implement gas calculation for NON-GETH nodes

* Add tests

* Refactor estimateSafeTxGas: now getGasEstimationTxResponse calculates gas or throws errors based on the current node

* Refactor getOpenEthereumErrorDataResult to make it works with Nethermind
Updates tests

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-28 17:03:14 +01:00
nicolas 0278722645
Add config for EWC and Volta (#1513)
* Add config for EWC and Volta

* Join tests in same file

* change price oracle in volta

* add travis config for volta and ewc

* Update travis to build xDai only in master or version release

* Add PR environment by network

* simplify some constants assignments

* Add PUBLIC_URL overwrite for PRs

* Change PULL_REQUEST condition test

* Use absolute path for PUBLIC_URL

* Fix missing https://

* Adapt EWC/Volta config to use new gasPriceOracle format

* disable openZeppeling in volta and EWC

* Deploy EWC to staging

* Fix Portis, Fortmatic and Blocknative key refactor

* Set EWC deployment to release/2.14.0

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-28 13:10:40 +01:00
Mikhail Mikheev 56430b5966
Feature #1440: Handle transactions with set safeTxGas from Safe Apps (#1442)
* sdk version update

* point sdk to a newer commit

* Update iframe message handler

* ConfirmTransactionModal tweaks to support params

* handle sendTransactionsWithParams, display safeTxGas in app tx modal

* new sdk version

* yarn lock update

* install libudev in travis

* update sdk version

* Estimating safeTxGas for Safe Apps Txs WIP

* safetxgas estimation warning wip

* gas estimation in confirm transaction modal

* yarn lock update

* review fixes

* Change estimation loading msg, use imported vars to index payload type

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-10-22 17:43:59 +04:00
Daniel Sanchez bc5878b5d4 Remove release/v2.13.0 branch from travis file 2020-10-20 17:53:47 +02:00
Daniel Sanchez c00ece45b4 Add Google Analytics parameters 2020-10-19 13:38:12 +02:00
Daniel Sanchez 037235a024 Update xDai staging based on release/v2.13.0 2020-10-18 21:52:11 +02:00
Fernando 9ca9007105
(Feature) - xDai Compatibility (#1476)
* feat: Support for Volta and EWC

* chore: Store network ID in the ETHEREUM_NETWORK enum itself

* chore: forward tx and address to non-etherscan explorers

* fix test, avoid assigning enum to const

* (Feature) [xDai] - Create network-based configurations (#1420)

Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>

* (Feature) [xDai] Use generic config (#1422)

Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>

* fix function name after merge development

* (Feature) [xDai] - Contract interaction abi lookup (#1429)

* Filter Apps by network (#1433)

* Filter apps by network

* (Feature) [xDai] - Parametrize ethscan values (#1424)

* (Feature) [xDai] - Use parametrized network values (#1437)

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) [xDai] - Use tx service for loading token info (#1435)

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) [xDai] - Visually differentiate networks (#1431)

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>

* (Feature) [xDai] - Cosmetic fixes (#1449)

* Add staging configuration for deployment using xDai (#1459)

* Add staging xDai deployment to travis

* Add safe apps production url for xdai

* Add travis rule to build xDai on master or integration branch

* (Bugfix) Set min height to ListContentLayout wrapper #1447 (#1451)

* fix min-height app container and margin to info text at
bottom

* change css unit from % to vh

Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* disable OpenZepplin in xDai (#1465)

* remove any in config/index.ts (#1462)

* [xDai] Parametrize Native Coin (#1444)

* fix `generateBatchRequest` calls

* Fix some ETH harcoded values + Add tests

* Fix null or undefined value

* Move nativeCoin outside component + fix toTokenInput function

* Remove native coin from useEffect

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) [xDai] - Disable safe sections based on network config (#1468)

* Adds FEATURES enum
Renames features to disabledFeatures

* Uses FEATURES enum instead of hard-coded contract features

* Refactor enabledFeatures function, now checks that there are not disabled features by config before return the enabledFeatures result

* Adds SAFE_APPS and CONTRACT_INTERACTION to FEATURES enum

* Remove SAFE_APPS from sidebar if disabled

* Redirect user from /apps if safe apps are disabled

* Disables contract interaction from config

* Remove !remoteOwners

* Move settings to a constant

* Deploy from xDai integration branch only to xDai staging

* Fix .travis.yml warnings

* Update branch and condition for staging deployment

* Update xDai depoy condition

* (Feature) [xDai] - Fetch collectibles from Gnosis services (#1460)

* Add https to safe-xdai apps link

* make getExplorerInfo return values per network (#1470)

* (Fix) "Approve transaction" modal closes (#1477)

* add equality function to prevent re-renders

- I left the inline equalityFn, as an ad-hoc solution.
First, because we're going to remove this when https://github.com/gnosis/safe-react/issues/1479 is done
Second, because this way it infers the types defined in the useSelector generics

* (Fix) xDai feature issues (#1484)

Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* RPC interactions errors (#1475)

* Add options to httpProvider

* Add log when generateatchRequest fails

* add types to generateBarchRequest

* fix types in `generateBatchRequests`

* add `.d` for imports of definition files

* add `undefined` alternative value for `generateBatchRequests` ReturnValues

- also, fixed typing errors in related functions

* fix return values for `generateBatchRequests` in tests

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* (Feature) xDai configs (#1489)

* (Feature) - Replaces ETH with network native coin (#1491)

* Remove networkInfo from the components

* Replaces humanReadableValue to fromTokenUnit

Co-authored-by: JosephBagaric <bagaricjos@gmail.com>
Co-authored-by: Matias Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-10-18 21:48:22 +02:00
Daniel Sanchez 8057ebfbae New patch version with travis release tweak 2020-09-29 17:14:30 +02:00
Daniel Sanchez 171b6d9ddc
Update travis script to execute tests (#1382)
* Update travis script to execute tests

* Update ReviewInformation components to remove type error

* Fix tests and import types without .d

* Upgrade dependencies with minor changes
2020-09-24 16:04:35 +02:00
Mikhail Mikheev e7ba2b12c6 bump node in travis to 12 2020-08-12 15:04:12 +04:00
Agustin Pane 82772ae9c7 Adds coveralls to travis
Adds coverage foldero gitignore
2020-06-24 11:18:14 -03:00
Agustin Pane 63193d2429
(Fix) [Contract Interaction] boolean fields (#976)
* Replaces checkbox component with safe apps components

* Refactor input params to use checkbox component for boolean types

* Remove "anys"
Fix boolean values display on review tx

* Remove any

* Fix ts issues

* Exports boolean fn to util function

* Extract input component rendering to another component

* Fixs imports
Add types

* Remove old checkbox component

* Add types

* Add types

* fix `data` string not being updated after modifying a reviewed tx

* fixes required for typescript 3.9.3 upgrade

* bump typescript version

* add travis_wait for build command

* add cache for yarn

* travis wait fix

* remove travis_wait

* Revert "fix `data` string not being updated after modifying a reviewed tx"

This reverts commit 49356054cd93726b058073d3cd2e7a0244fd5914.

* Revert "Revert "fix `data` string not being updated after modifying a reviewed tx""

This reverts commit f2572e68dc59c01d8e4b1eccf975faf4006cd7a7.

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-06-04 10:56:55 -03:00
Mikhail Mikheev d9e62adc26
Bug: fix build directory for deployment, remove unused code (#937)
* fix build dir, remove unused code

* fix public path & remove unused code
2020-05-21 08:42:11 -03:00
nicolas 982d79c0d0
Migrating to Typescript and bringing back react-scripts (#933)
* remove flow from src

* remove unused files

* remove rules from eslint

* replace absolute paths

* add tsconfig

* update package.json

* remove babel-polyfill

* eslint fix

* remove jsconfig.json

* replace .scss by .module.scss

* Revert "replace absolute paths"

This reverts commit e430c71263a1a4c190d50e72271bba7ea6356bc4.

* replace ~/ by src/

* js fixes

* scss fixes

* fix unused vars

* adding eslint

* adding back config folder

* fix eslint and prettier

* force build

* fix baseUrl

* rename js/jsx to ts/tsx

* some rules

* rename files with jsx syntax to tsx

* fix app build

* Revert "fix baseUrl"

This reverts commit 523f29c7b61e14dd6be0ffc3cd199ff399157467.

* some fixes

* replace ts to tsx

* some TS fixes

* more tsc changes

* more tsc fixes

* more fixes

* more ts fixes

* more fixes

* last fix

* fixes

* prettier fix

* some fixes

* fix safe information aligment

* add yarn.lock

* fix blockies and build memory space

* include blockies in tsconfig

* fix blockies

* fix blockies import

* fix Identicon component

* fix build command

* Fix ref type in Identicon

* add libusb-1.0-0-dev to travis

* build command fix [2]

* build command fix [3]

* fix margin layout

* Update  yarn lock

* remove @ts-ignore

* hide Critial dependency

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
2020-05-20 16:15:21 -03:00
Giacomo Licari 664fcd7bc0 Handle REACT_APP_GNOSIS_APPS_URL env variable on Travis CI configuration 2020-04-29 10:18:57 +02:00
David Albela Pérez aee2a1fefb
Feature/travis ci s3 region (#789)
* Add region to travis CI develop

Enable region for s3 provider to allow upload development environment to different S3 regions

* Enable region for staging s3 providers
2020-04-22 16:42:08 +04:00
David Albela Pérez 66dc95411d
Add region to travis CI develop (#787)
Enable region for s3 provider to allow upload development environment to different S3 regions
2020-04-22 13:17:22 +02:00
Richard Meissner dd27cd48bf
Sync master dev (#656)
* v1.7.3 (#611)

* Fix #597: USD value not load (#609)

* Converts all the addresses to checksum values

* Fix for empty address

* fix the order of transactions, change updateSafe to upgradeSafe to avoid naming confusion with the updateSafe action (#610)

* Fix #596: Notification when safe is already updated (#599)

* Fix notification of update if the safe is already updated

* Makes the notification clickable
Displays the notification for owners only

* Identify upgrade tx

* Add red badge to Settings tab

* Fixs Padding
Removes the red dot if the user is not an owner

Co-authored-by: Fernando <fernando.greco@gmail.com>

Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>

* Update package.json (#612)

* Add public url to prod webpack config (#615)

* add public url to prod webpack config

* modify travis/webpack config to add public url

* add slash

* cherry pick new travis yml merge commit (#620)

* V1.7.5 release (#641)

* use hash history

* update package json

* BUG: App index.html cached on production (#642)

* remove caching for webapp index.html

* keep --delete flag

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>
2020-03-11 14:23:16 +04:00
David Albela Pérez 2a1082b9dc Fix NODE_ENV development definition
- Define develop build for development branches.
  - Use POSIX standard to call shell scripts in travis file.
2020-03-10 17:58:52 +01:00
Mikhail Mikheev 2c019d1931
Repare new dev and staging enviroments to deploy (#618)
* Repare new dev and staging enviroments to deploy

  - Add to `deploy_pull_requests.sh` to the new path.
  - Replace upload-dir to deploy staging to the new path.

* add /app/ public path for the webapp, remove duplicate yarn build from travis

* add basename to app

* deploy pr to /app

* update travis

* linter error fixes

* fix travis build script

Co-authored-by: David Albela Pérez <3659067+davidalbela@users.noreply.github.com>
2020-02-27 16:21:17 +01:00
Fernando f1437d55a4
(Feature) Add checks into CI (#594) 2020-02-27 11:09:35 -03:00
Mikhail Mikheev 65f4d98266 add react_app_version to build script 2019-12-18 16:23:48 +04:00
Mikhail Mikheev 858505db68 add REACT_APP_APP_VERSION global env var 2019-12-18 16:10:27 +04:00
Mikhail Mikheev 308639e6ea add apt-get update to travis yml 2019-12-16 16:26:21 +04:00
Mikhail Mikheev 46b99d803a Remove deployment of storybook 2019-12-03 18:57:12 +04:00
Mikhail Mikheev c06e8bdb20 exclude unneeded stuff from travis.yml 2019-11-19 16:36:53 +04:00
David Albela Pérez 3f6fb06660 Add travis condition `NOT type = pull_request` for mainnet build 2019-09-30 13:03:37 +02:00
David Albela Pérez 0dfb1d6d81 Fix travis matrix build
- Add global env for docker-composer install.
  - Add matrix condition for mainnet build.
  - Set `REACT_APP_ENV` to production when tag is present.
2019-09-26 11:41:33 +02:00
David Albela Pérez 100cb17cc3 Add Prepare production deployment to travis 2019-09-25 19:06:41 +02:00
David Albela Pérez 89a07676bd Add Build Matrix to setup `mainnet` and `rinkeby` builds 2019-09-24 18:24:03 +02:00
Germán Martínez 98293e5629 Add xenial dist to travis.yml 2019-04-30 17:20:37 +02:00
Germán Martínez 2d9e938d46 Fix build issue with truffle 2019-04-30 16:48:24 +02:00
Germán Martínez 1385e108c8 Fix build issue with truffle 2019-04-30 16:20:36 +02:00
Germán Martínez 5901b6b7fc Fix build issue with truffle 2019-04-30 16:09:40 +02:00
mmv c79ea88b73 update node version in travis 2019-03-06 18:14:08 +04:00
apanizo cfe3e3b55d Create custom script in travis for avoid tests temporarily 2018-09-28 09:34:48 +02:00
apanizo c5f8dc94d4 Cleanup of travis config and some internal logs 2018-08-09 13:45:38 +02:00
apanizo b4664d8b35 Awaiting in travis 2018-08-09 13:32:43 +02:00
apanizo fbd427a73c Force stop postgres 2018-08-09 13:13:13 +02:00
apanizo 026ff0e0f2 Showing docker instances 2018-08-09 12:58:14 +02:00
apanizo d4ad4a95f1 Stopping docker when finished 2018-08-09 12:37:16 +02:00
apanizo ba354c5f62 Adding docker-compose version 2018-08-09 12:15:38 +02:00
apanizo d3e54b2c1b Print docker-compose version 2018-08-09 12:11:54 +02:00
apanizo 0e91b9800d Print docker-compose version 2018-08-09 12:06:25 +02:00
apanizo 72611895a2 Updating to the latest docker-compose version 2018-08-09 12:00:02 +02:00
apanizo c05785387c Adding tx history project in travis 2018-08-09 11:53:05 +02:00
apanizo e65cdf3866 Travis modifications 2018-08-09 11:38:43 +02:00
Raul 2b6bf9f8b8 Add AWS deployments and PR dynamic environments 2018-08-01 15:37:54 +02:00
apanizo 37954975ef WA-234 Installing a specific truffle version 2018-06-15 12:32:17 +02:00
apanizo bbd346a753 WA-234 Clearing yarn cache travis 2018-06-15 12:20:16 +02:00