This website requires JavaScript.
Explore
Help
Sign In
deep-stack
/
ipld-eth-server
Watch
4
Star
0
Fork
0
forked from
cerc-io/ipld-eth-server
Code
Pull Requests
Activity
Files
4aa403d90de1a643b2aa03eeb0811d60788d01fd
ipld-eth-server
/
pkg
/
fakes
T
History
Ian Norden
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.
2018-11-03 13:49:23 -05:00
..
data.go
Add tests for pkg/geth/blockchain
2018-11-03 13:49:23 -05:00
mock_block_repository.go
Consolidate test doubles
2018-11-03 13:49:23 -05:00
mock_blockchain.go
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.
2018-11-03 13:49:23 -05:00
mock_crypto_parser.go
Sync only missing blocks on cold import
2018-05-07 16:38:04 -05:00
mock_eth_client.go
Consolidate test doubles
2018-11-03 13:49:23 -05:00
mock_ethereum_database.go
Get head block number
2018-05-04 11:03:50 -05:00
mock_fs_reader.go
Sync only missing blocks on cold import
2018-05-07 16:38:04 -05:00
mock_header_repository.go
Consolidate test doubles
2018-11-03 13:49:23 -05:00
mock_level_database_reader.go
Get head block number
2018-05-04 11:03:50 -05:00
mock_receipt_repository.go
Add cold import script
2018-05-04 10:54:00 -05:00
mock_rpc_client.go
Consolidate test doubles
2018-11-03 13:49:23 -05:00
mock_transaction_converter.go
Add cold import script
2018-05-04 10:54:00 -05:00