Commit Graph

  • 0ab5ea1b25 Refactor more repo tests (#101) Elizabeth 2018-11-06 10:51:26 -06:00
  • a4abf3781e Refactor repository tests (#99) Elizabeth 2018-11-06 10:30:31 -06:00
  • bfe4531d7e Common transformer tests (#97) Elizabeth 2018-11-06 10:30:11 -06:00
  • 2cc9826be9 create integration toml file Taka Goto 2018-11-05 21:34:13 -06:00
  • b459cf35ed beginning work on method polling; first need to generate list of token holder address in a completely generic/contratc agnostic fashion. Created address retriever that can iterate through any given contract's watched events, finding the inputs/arguments with address type, and generate a list from those values. Edit: Contract objects now cache every event emitted address as its event logs are transformed into the repo to grow a list of contract associated addresses as we go Ian Norden 2018-11-04 15:26:39 -06:00
  • e9dbd771e5 tests and fixes for fetcher, parser, retriever, converter, and repository; update cmd and watcher Ian Norden 2018-11-03 14:02:31 -05:00
  • 5307de2b97 modify go-etheruem vendor lib with methods that allow for unpacking of events into maps of interfaces Ian Norden 2018-11-03 14:01:41 -05:00
  • 8ce75fe5ad Generic watcher that takes a contract address, grabs the contract abi and starting block number, creates custom event filters, and extracts and transforms event data into postgres. Can configure to look at only a subset of events through CLI flag. Building but needs testing. Ian Norden 2018-11-03 14:00:25 -05:00
  • 57820ff473 change transformer interface and watcher so that contract config is now fed into AddTransformers such that a single watcher can be loaded with transformers that use different cofigs Ian Norden 2018-09-19 12:22:05 -05:00
  • 44177e0772 reorganizing contract-specific modules into event_triggered contract directories Ian Norden 2018-09-18 22:15:49 -05:00
  • d66e50dad6 Changes to address Rob's comments. Added generic/event_triggered transformer, tests, and repo migrations for Burn and Mint events Ian Norden 2018-08-31 14:48:43 -05:00
  • 4aa403d90d event_triggered transformer, transformer tests, and integrations tests for Transfer and Approval events Ian Norden 2018-08-28 16:03:55 -05:00
  • aa2068bd08 adjust retriever to pull token holder addresses from Transfer and Approval events (iterating over Approvals might be redundant); edit Makefile to import new missing dependencies of go-ethereum/accounts/keystore, organizing mocks and adding event related mocks and filters Ian Norden 2018-08-28 12:50:53 -05:00
  • ada872404e Transfer and Approval event repo and repo tests + db migrations for these events. Ian Norden 2018-08-28 11:45:31 -05:00
  • 55a73c5797 work on erc20 event_triggered functionality and generic helper for log unpacking and converting. helpers.ConvertToLog and helpers.createTopics have been adjusted to be variadic to work with event logs with any number of topics. Also uncovered issue with Dai and TrueUSD that means they doesn't really conform to the ERC20 standard. this is because they named their arguments to standard events like Approval and Trasnfer differently (e.g. Approval(src address, guy address, wad uint) and Approval(owner address, spender address, value uint) instead of the standard which is Approval(tokenOwner address, spender address, tokens uint)). This causes incompatibility with generic ERC20 entities and converters for these events. Ian Norden 2018-08-26 21:55:09 -05:00
  • 44e0a8d303 retriever for generating list of all token holder addresses + updated transformer to use said addresses to populate balanceOf and allowance information and added database migrations for balance and allowance tables Ian Norden 2018-08-22 14:11:15 -05:00
  • 1d50a0ace0 fixed tests for getting balanceOf and allowance, added balanceOf and allowance to the repo and repo tests and updated sql schema with new token_balance and token_allowance tables to accept this data Ian Norden 2018-08-22 13:10:23 -05:00
  • 9b41000b88 Moved fetcher to generic directory (methods have to remain public since it is in seperate package now), added FetchHash method, created ERC20 and generic getters which call the fetcher with specific contract methods (GetTotalSupply, GetBalance, GetAllowance for ERC20 getter, and GetOwner, GetStoppedStatus, GetStringName, GetHashName, GetStringSymbol, GetHashSymbol, and GetDecimals for generic getter). Getter tests cover all but GetBalance and GetAllowance, and also cover all of the Fetcher methods- but with only nil methodArgs. GetAllowance and GetBalance tests are not working against infura and these are the only contract method calls with arguments passed in so I suspect this might be where the issue lies. Have tested GetBalance using previous version of FetchContractData without the variadic input to the Pack method and it fails with the same error so I don’t think it is due to those changes. Ian Norden 2018-08-14 23:17:22 -05:00
  • 99e549b3df changes to repo and repo tests so that supply table is organized and accessed by token_address Ian Norden 2018-08-12 15:35:23 -05:00
  • bea712ba10 fetcher tests for FetchBool and FetchAddress Ian Norden 2018-08-09 12:23:42 -05:00
  • ccd21f73c9 adjusted FetchContractData to work with variable number of contract method arguments, changed fetcher's FetchSupply method to more general FetchBigInt method and added FetchBool and FetchAddress methods Ian Norden 2018-08-09 11:58:06 -05:00
  • 93960e7c4e Add several improvements to README.md (#28) James Christie 2018-08-06 10:25:31 -05:00
  • ba071ef13f Consolidate test doubles Rob Mulholand 2018-07-20 11:37:46 -05:00
  • 5fe6394406 Add tests for pkg/geth/blockchain Rob Mulholand 2018-07-18 15:59:40 -05:00
  • 05186634bd Add light sync command Rob Mulholand 2018-07-17 16:23:07 -05:00
  • b6f93e735f Add ERC20 token watcher example Elizabeth Engelman 2018-05-05 15:25:54 -05:00
  • b18d1de4fe dockerfiles/rinkeby: added named volume for pg container Maxim Krasilnikov 2018-06-25 23:34:49 +03:00
  • 7b507667f8 Added user and password to db config Maxim Krasilnikov 2018-06-22 18:28:34 +03:00
  • 2201efc347 Rename dev_env to rinkeby_env, added make commands description to readme Maxim Krasilnikov 2018-06-21 22:21:34 +03:00
  • 0d4aa71d6d Dockerized dev environment, geth rinkeby Maxim Krasilnikov 2018-06-21 19:10:56 +03:00
  • 0d325afbfb flop kick transformer factory (#98) Takayuki Goto 2018-11-02 09:13:10 -05:00
  • 981393d0a7 Use transformer factory for FlipKick (#96) Elizabeth 2018-11-02 09:12:51 -05:00
  • 929643132a Squash price feed trigger update into original migration Elizabeth Engelman 2018-11-01 15:12:04 -05:00
  • 99dc12c1fd Squash changes to tend and dent tables Elizabeth Engelman 2018-11-01 15:03:08 -05:00
  • 21239a986d Checking in new schema for reference Elizabeth Engelman 2018-11-01 14:56:36 -05:00
  • 8ce6ac9b7c Update vow_flog migration for consistency Elizabeth Engelman 2018-11-01 14:55:56 -05:00
  • aedcafe488 Update create_vat_heal down migration Elizabeth Engelman 2018-11-01 14:11:09 -05:00
  • 504cb0ec2d Change timestamp on create_checked_headers_table migration Elizabeth Engelman 2018-11-01 14:10:43 -05:00
  • 3b722c132e integration tests hits self hosted parity kovan node: Taka Goto 2018-11-01 10:24:03 -05:00
  • ab4e904713 Frob transformer factory (#95) Elizabeth 2018-10-29 15:08:00 -05:00
  • 78b8173b37 Improve test coverage for event method signature lookups Rob Mulholand 2018-10-26 14:51:59 -05:00
  • 602802e5f4 Don't test order of DB results Rob Mulholand 2018-10-26 14:35:39 -05:00
  • ed624330f6 Rename Flog pack to Vow flog Rob Mulholand 2018-10-26 14:31:02 -05:00
  • 1b680d2a4b Use transformer factory for Drip drip Rob Mulholand 2018-10-26 13:31:40 -05:00
  • f3a82e6ba1 VDB-184 Refactor Dent (#91) Edvard Hübinette 2018-10-26 20:56:49 +02:00
  • d1ee501f12 Use transformer factory for Bite (#89) Rob Mulholand 2018-10-26 13:26:10 -05:00
  • 0e5b23993a Discard log output from Vat heal during tests Rob Mulholand 2018-10-26 11:50:24 -05:00
  • 45a52a59f9 Add repository tests for Deal Rob Mulholand 2018-10-26 11:49:12 -05:00
  • 0e1675354f Update tests for deal transformer Edvard 2018-10-26 14:36:07 +02:00
  • 35a8009410 Refactor deal transformer to use factory Edvard 2018-10-26 14:31:25 +02:00
  • d522d33531 Update vat heal to use transformer factory (#88) Elizabeth 2018-10-26 11:40:24 -05:00
  • 5de949f4c5 Add cat file repository tests Rob Mulholand 2018-10-26 11:15:40 -05:00
  • 00bb48bafb Fix whitespace errors Edvard 2018-10-25 17:30:03 +02:00
  • e6e2ed3308 Update cat file transformer tests Edvard 2018-10-25 17:27:14 +02:00
  • 28ab5f92ab Factorise cat_file transformers Edvard 2018-10-25 17:16:21 +02:00
  • 47a3c35938 Use transformer factory for Price Feed events Rob Mulholand 2018-10-25 13:25:36 -05:00
  • bd428e752a Update vat grab to use transformer factory (#85) Elizabeth 2018-10-26 11:02:39 -05:00
  • 745b3a460e Add test for updating existing checked header row Rob Mulholand 2018-10-25 11:31:00 -05:00
  • e37447ae9a Use transformer factory for Vat fold Rob Mulholand 2018-10-25 10:55:03 -05:00
  • 0e7f316568 flip kick integration test (#83) Takayuki Goto 2018-10-26 10:26:22 -05:00
  • 78ad436228 Rename flog -> vow_flog Edvard 2018-10-26 15:42:18 +02:00
  • 77c7c9b453 Squash frob checked_headers Edvard 2018-10-26 15:26:36 +02:00
  • 6610821833 Squash cat_file checked_headers Edvard 2018-10-26 15:25:27 +02:00
  • d87371cb11 Squash tend checked_headers Edvard 2018-10-26 15:24:03 +02:00
  • 058ab85518 Squash flip_kick checked_headers Edvard 2018-10-26 15:22:27 +02:00
  • 393c5297b2 Squash bite checked_headers Edvard 2018-10-26 15:21:04 +02:00
  • 000c504603 Remove _table from combined vat_init migration Edvard 2018-10-26 15:19:44 +02:00
  • 48525203f3 Squash dent checked_headers Edvard 2018-10-26 15:17:30 +02:00
  • 07a0c4f097 Squash deal checked_headers Edvard 2018-10-26 15:16:07 +02:00
  • 8eb6767da9 Squash drip_drip checked_headers Edvard 2018-10-26 15:14:17 +02:00
  • 60fec86881 Squash drip_file checked_headers Edvard 2018-10-26 15:12:41 +02:00
  • a865aa1aea Squash pit_file checked_headers Edvard 2018-10-26 15:09:16 +02:00
  • 46a26f5bd9 Squash vat_init checked_headers Edvard 2018-10-26 15:08:58 +02:00
  • ba0113c2eb Remove integration package from unit test suite and add to integration tests (#82) Elizabeth 2018-10-25 15:02:33 -05:00
  • 3ec5b4afab Remove unused param in integration test helper Rob Mulholand 2018-10-24 21:26:54 -05:00
  • 8831586fba Extract shared mock converter and repository Rob Mulholand 2018-10-24 20:37:12 -05:00
  • f5b9a21a8c Use transformer factory for Vat slip Rob Mulholand 2018-10-24 19:42:42 -05:00
  • 1e7ee08af5 Use transformer factory for Vat toll Rob Mulholand 2018-10-24 19:21:14 -05:00
  • 6d662a6ce7 Add test for can't create Vat tune of wrong type Rob Mulholand 2018-10-24 16:44:35 -05:00
  • a0cae99437 Use transformer factory for Vat flux Rob Mulholand 2018-10-24 16:40:31 -05:00
  • be249437c2 VDB-117: Add Vow.flog transformer (#80) Edvard Hübinette 2018-10-25 12:19:46 +02:00
  • 78d746bb5b Use transformer factory for Vat tune Rob Mulholand 2018-10-24 10:55:55 -05:00
  • 5682ee988b Add log index to various events (#78) Elizabeth 2018-10-23 16:33:04 -05:00
  • 28f8861f81 Merge pull request #71 from 8thlight/VDB-150-vat-flux-integration-test Takayuki Goto 2018-10-23 16:01:42 -05:00
  • 42d60c3cbd Add log index to Vat move Rob Mulholand 2018-10-23 11:49:13 -05:00
  • 4ac896c246 Add log index to Vat init Rob Mulholand 2018-10-22 16:48:27 -05:00
  • 702f90367a Add log index to Vat heal Rob Mulholand 2018-10-22 16:39:49 -05:00
  • 650bbf5874 Add log index to Vat grab Rob Mulholand 2018-10-22 16:29:02 -05:00
  • 1e74c73591 Add log index to Vat fold Rob Mulholand 2018-10-22 16:18:40 -05:00
  • db52955669 Add log index to Tend Rob Mulholand 2018-10-22 16:07:19 -05:00
  • e0253cce55 Add log index to Price Feed events Rob Mulholand 2018-10-22 14:54:09 -05:00
  • a0a86871b5 Add log index to Frob Rob Mulholand 2018-10-22 14:37:59 -05:00
  • b3d00fe3c5 Add log index to Pit file events Rob Mulholand 2018-10-22 14:06:06 -05:00
  • f10bddf353 Merge pull request #73 from 8thlight/transformer-refactoring Takayuki Goto 2018-10-23 13:43:19 -05:00
  • a0deb5eb62 Add and use transformer labels in shared constants Edvard 2018-10-23 11:19:36 +02:00
  • f55449d0e5 Replace GinkgoRandomSeed with proper randomisation Edvard 2018-10-22 16:14:02 +02:00
  • 794a7e5f99 Nuke some leftover converter interfaces Edvard 2018-10-22 15:51:05 +02:00
  • 6d9547a888 Fix invalidated test for tend repository Edvard 2018-10-22 15:45:56 +02:00
  • 7ee3329baf Privatise DB repository field and add transformer test Edvard 2018-10-22 15:03:41 +02:00
  • cb74cbe990 Add cast error checking to refactored transformers Edvard 2018-10-22 14:19:53 +02:00