Skip to content
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

Feature/3582 better trace detection #3740

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

tjayrush
Copy link
Member

@tjayrush tjayrush commented Jun 2, 2024

No description provided.

@tjayrush tjayrush merged commit 9a09afc into develop Jun 3, 2024
3 checks passed
@tjayrush tjayrush deleted the feature/3582-better-trace-detection branch June 3, 2024 03:22
tjayrush added a commit that referenced this pull request Jun 5, 2024
* Uses new format for key responses

* Makes interface into API parsing more generic

* First version of auto-generated goLang SDK

* First use of the new GoLang SDK

* Better comments, fix writer

* Creates the sdk at the root of the `core` repo

* Establishes the sdk at ./sdk/go and first attempt at CmdOptions type interface for Blocks

* Better example

* Starting to add sdk to top folder

* Further hand edits

* Cleaning up auto-code gen a bit

* Further hand edits

* Saving up

* Implements auto-code gen for fields and enums of each command

* More work on sdk

* Implements each command in the SDK

* Corrects spelling mistake

* Removes hidden items from go SDK

* Some cleaning

* Cleans

* Working on automating capabilities

* Starts to implement capabilities for auto-gen

* Clean up capabilities in the GoLang code auto-gen

* Fixes caps

* Fixes global caps across all sdks and docs

* Fixes small issue with sdk

* Shows RPC endpoint when scraper starts

* Updating README

* Fixing tests

* Improves messaging to make debugging accounting easier

* Cleans up some enums especially chifra tokens

* Modify logger.Progress to never print when testing

* Better handling of proxy address when validating

* Limiting some tests to produce less records

* Enable testing in the inner sdk code

* Auto code gen improvements for goLang sdk to allow for better testing

* Adds sdkTester code to test SDK

* Cleaning tests

* Updates tests

* chore: fix some comments

Signed-off-by: avoidaway <cmoman@126.com>

* Adds an example for optimism

* Removes unused code

* Adds a placeholder for goMaker

* Removes unused code

* Adds goMaker to the build

* Adds a VERSION file and moves some code

* Moves data files to ./other/data-models. Adds usage field (unused) to endpoints data. Cleaning

* Fixes a few things with the old code generator

* Removes generation of all SDK code from the C++. Does not yet replace it.

* Removes no longer needed templates

* Tidys the go.mod file in goMaker

* Removes --sdk from build commands

* Cleans up (by hand) formatting using gofmt (new autogen will use gofmt)

* Cleans up (by hand) formatting for typescript SDK

* Cleans up (by hand) python SDK. Removes redundant option.

* Renames help_text.go to helpfile.go

* Hand edits in anticipation of the new auto-gen code

* Hand edits in anticipation of the new auto-gen code

* Hand edits in anticipation of the new auto-gen code

* Hand edits in anticipation of the new auto-gen code

* Removes all GoLang generation (other than data structures) from C++ code.

* Touching

* Adds new goMaker auto-gen tool - works but only reports for now

* Removes  a large amount of C++ code.

* From first working version of goMaker, updates headers only but produces identical code

* First working version of new goMaker

* Fixes lints

* Moves types into its own package for goMaker

* Cleaning

* Cleaning

* Produce docs.go file in internal folders

* Adds, but does not enable build for, balanceChart example

* Adds an existing code block to golang sdk

* Progress reporting for chifra when

* Updates optimism1 example but doesn't enable it (requires SDK)

* Updates usesSDK example but still uses old SDK

* Better reporting and better at catching up to timestamps on new chains

* Adds KnownBlock FirstTrace to enable optimism tracing

* Fixes a bug when walking monthly block ranges

* Mild cleaning

* Updates balanceChart example but still does not build it

* Outputs amount of prefund with chifra names --prefund --expand plus tests

* Encapsulates all use of big.Float behind type Ether

* Cleans balanceChart example

* Removes unused code

* Fixes build

* Starts to get control of the Wei type

* Add temporary type MyWei to ease encapsulating big.Int. Start by defining a few funcs on the type.

* Starts porting to MyWei by first altering block reward calcs. No cached types needed to change

* A small amount of linting

* Adds more testing and Json unmarshaling to Ether type

* Cleans up Ether type a bit in preparation for removing big.Int from ToEther

* Remove unneeded return item from MyWei.Float64

* Starts to my away from Wei towards MyWei

* Gets better control of our Ether type as a string.

* Encapsulate ToEther to use MyWei

* Finished Ether with solid tests

* chore: fix typos

* Removes a few unused options from makeClass and testRunner

* Recognizes IsContractAtLatest to simplify an interface

* Fixes build

* Cleaning

* Various minor cleaning

* Starting to migrate to the new version of Wei. Step 1 remove direct use of big.Int for its alias base.Wei

* Removes more direct use of big.Int in favor of base.Wei

* Change FormattedValue to take a pointer instead of making a copy

* Completely captures big.Int and big.Float so we can Unmarshal hex and string versions of those items from CSV and Json

* Fixes cpp code - fin?

* Removes old makeClass cpp code (#3562)

* Removes old makeClass cpp code

* Cleaning

* Cleaning

* Cleaning

* Cleaning

* Feature/sdk examples 2 (#3563)

* Removes old makeClass code entirely

* Removes a lot of unused cpp code from testRunner

* Removes unused files from docs folder

* Moves all templates (including classDefinitions) to goMaker/templates

* Cleaning up sdkTester a bit

* Makes all necessary changes to goMaker

* Renames various templates files, deletes unused files

* Adds new template files and removes unused ones

* Updates examples for API file

* Updates template notes

* Update readme intros for new maker

* Updates all classDefinitions

* Updates remainder of templates

* Updates the codebase level templates

* Updates the document level templates

* Updates the sdk level templates

* Updates the internals level templates

* Updates the types level templates

* Final touchups. Ready to merge.

* Updates for final version

* Bump vite from 4.5.2 to 4.5.3 in /sdk/typescript (#3565)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.3/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "Revert "Fix Typos in Comments"" (#3572)

* Fix Typos in Comments (#3569)

* modified readme.md in bin

* cacheing to caching example fix

* test commit again

* Fix typos

* Fix typos

* Fix typos

---------

Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Revert "Fix Typos in Comments (#3569)" (#3570)

This reverts commit 1b95049.

* Revert "Revert "Fix Typos in Comments (#3569)" (#3570)"

This reverts commit f45e0b2.

---------

Co-authored-by: Gary Snipes <77077163+G-Snipes@users.noreply.github.com>
Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Adds Stringer interface to all types (#3568)

* Adds Stringer interface to all types

* Moves a few types out of internal

* Moves MetaData to types

* Fixes build and regenerates

* Moves ipfspina nd reportcheck to types

* Fixes build

* Fixing build

* Moves a few types out of internal

* Upper case AppearanceTable

* Moved the last type to pkg

* Fixing build

* Trying to remove index.AddressRecord and index.AppearanceRecord as dups

* Removes index.AppearanceRecord in favor of types.SimpleAppRecord

* Cleaning

* Removes the idea of goOutput folder for auto-gen

* Fix Typos in Comments (#3569)

* modified readme.md in bin

* cacheing to caching example fix

* test commit again

* Fix typos

* Fix typos

* Fix typos

---------

Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Revert "Fix Typos in Comments (#3569)" (#3570)

This reverts commit 1b95049.

* Cleaning

---------

Co-authored-by: Gary Snipes <77077163+G-Snipes@users.noreply.github.com>
Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Updates auto code gen to produce different endpoints in SDK for different return types (#3574)

* Update goMaker and other dev_tools code

* Runs auto code gen with new configs

* Final cleanup

* Remove old cpp testRunner (#3576)

* Various small cleanups to go code

* Near complete re-write of cpp testRunner including removal of most of the unused CPP code

* Begings work on the GoLang testRunner

* Fixes test cases

* Enable daemon sdk (#3578)

* Trying to expose daemon to the SDK

* Cleaning

* Adds --silent to chifra daemon

* Key working again

* Added Key support

* Removed duplicated code

* Cleanup

* Fixed linter errors

* Fixed API keys in unit tests

* Another fix for tests

* Added Covalent provider

* Fixed tests

* Bump golang.org/x/net from 0.10.0 to 0.23.0 in /src/apps/chifra (#3586)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.23.0.
- [Commits](golang/net@v0.10.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Don't call fatal in handler

* Fixing

* Remove all cpp code 3 (#3591)

* Updating test cases as a submodule

* Small various cleanups. All smoke, no fire.

* Small various cleanups. All smoke, no fire.

* Removes cpp test runner, replaces it with goLang tester

* FInal

* Removes Simple throughout (#3593)

* Removes Simple throughout

* Fixes tests

* Fixes tests (#3594)

* Bump golang.org/x/net from 0.10.0 to 0.23.0 in /src/apps/chifra (#3589)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.23.0.
- [Commits](golang/net@v0.10.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Updating all tests cases to best version yet

* Cleaning

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Puts back Simple in a few places (#3598)

* Feature/more examples (#3599)

* Removes old code from ./src/other

* Cleans up some go.mod files

* Adds examples as a submodule

* Improves examples by making them in a submodule

* Creates an examples submodule to make building examples easier.

* Fixes example submodule

* Trying to fix examples

* Updates examples

* Fixing incorrect go.mod files for the SDK (#3602)

* Feature/fix location of sdk 2 (#3603)

* Fixes code generator

* Removes existing examples folder to examples repo

* Changes go.mod to sdk/v2

* Uses trueblocks-core/sdk

* Tries to use semantic versioning for SDK (#3601)

* Tries to use semantic versioning for SDK

* Tries to use semantic versioning for SDK

* Still working

* Remove examples submodule

* First working version of examples using SDK

* Added Alchemy provider

* Cleans up the build, adds examples, other cleaning (#3610)

* Lot's of smoke, no fire. Removes unused enabledForCmds and EnableCommand which were all true anyway.

* Moves all build scripts into the ./scripts folder to make them easier to control

* Adds and/or cleans up some of the example code.

* Fixes build

* Fixes issue #3600 (#3611)

* Fixes issue #3600

* Fixes build

* Fixes build

* Fixes lints (#3616)

* feature/more-examples-6 (#3615)

* Updates a few of the build scripts

* Adds, but does not implement, chifra init --examples

* There should be no files other than .gitignore files in working folder

* Adds back missing working folders

* Fixes tests

* Adds UnmarshalJSON to both base.Address and base.Hash

* Improves the testRunner a bit

* Implements chifra init --example <name>

* De-lints

* Adds usesSDK example

* Makes output for Blocks.baseFeePerGas into Wei not uint64 - breaking

* Working on usesSDK

* Stringer for types is now non-pointer

* Stringer for types is now non-pointer

* Fixes lints

* Added slurp setup instructions (#3608)

* Added slurp setup instructions

* Moved config instructions

* Updated tests

* Added missing support for page and per_page flags

* Post-merge fixes

* Reenabled slurp help test

* Updated tests submodule

* Fixed unit test

* Updated tests

* feature/improve-examples-7 (#3620)

* Updates linter and turns off linting in _test files (as we used to do)

* Changes NO_USERQUERY to TB_NO_USERQUERY

* Removes Fatal from SDK in favor or returning the error

* Exposes Cacher interface through SDK

* Improves make-go-work.sh script

* Updates usesSdk

* Fixes chifra when tests (#3623)

* Feature/better sdk 2 (#3625)

* Change ChunkPinReport to ChunkPin

* Cleaning

* Separates command line options with returns to Functions in SDK

* Makes types.Message a full auto-gen type (#3627)

* Fixes issue 3631 (#3632)

* Fixes issue 3631

* Fixes issue 3631 and brings tests in line

* Fixes issue 3631 and brings tests in line

* Feature/better sdk 4 (#3633)

* Changes String method in SDK options types to non-pointer method

* Updates docs to better reflect contained_by, contains, produced_by, produces

* Improves names endpoint in SDK

* Improves chunks endpoint in SDK

* Adds an existing_code block to SDK

* Protects against a concurrent map write

* Numerous improvements to the usesSdk example code

* 3638 i need a way to change the cache without requiring a re query of the node (#3640)

* Changes the word 'version' to 'vers' in types package to make importing version package easier

* Implements NeedsUpgrade portion of issue #3638.

* Fixes issue #3638

* Fixes tests

* Fixes tests

* Feature/better-sdk-6 (#3641)

* Changes String method in SDK options types to non-pointer method

* Updates docs to better reflect contained_by, contains, produced_by, produces

* Improves names endpoint in SDK

* Improves chunks endpoint in SDK

* Adds an existing_code block to SDK

* Protects against a concurrent map write

* Numerous improvements to the usesSdk example code

* Fixes (temporarily) parsing of articuated items

* Improves usesSDK

* Cleaning

* Better error message for chifra tokens

* Fixes tests

* Improves error reporting for chifra tokens

* Create a way to clean up input to Unmarshall in SDK

* Cleans up inputs and outputs in articulated items prior to Unmarshal

* Improves usesSdk test cases

* float64s instead of the weird double in auto-code gen

* totalDifficulty (a rawonly field) should be uint256, not wei

* Separates ether from amount for chifra blocks --withdrawal --ether

* Fixes issue #3642

* Fixes issue #3642 related to chifra slurp

* Exports balance with --ether option for chifra state

* Cleans up diff field in chifra tokens

* Documents value for chifra traces

* Updates tests for chifra traces

* Updates CHANGES file

* Fixes tests

* Updates usesSdk test

* Tries to start to capture base types (starting with Gas)

* Starts to get control of base types such as TransactionIndex, BlockNumber, etc.

* Separates out base.Txnum (temporary)

* Captures lognum (temporary)

* Gets control of validatorIndex and withdrawalIndex

* Removes special case MustParseGas

* Moves NOPOS and NOPOSI to base package. Adds NOPOSN = Numeral

* Gains complete control of base.Txnum in all types.

* Grab control of LogIndex

* Further adventures in sdk coding (#3648)

* Updates CHANGES file

* Prepares the way for capturing Blknum

* Fixes build

* Further adventures

* Further adventures

* Further adventures

* Further adventures

* Further adventures

* Further adventures

* Trying to capture MustParseInt

* Captures MustParse...

* Changes status size, makes Blknum a Numeral

* Commits to Numeral block numbers

* Fixes build

* Catches up with auto-code gen

* Commit to concrete type of Numeral

* Better docs, remove double in favor of float64 from auto-code-gen

* Validate codebase before generating code

* Fixes for some tests

* Added page_id flag

* Fixes for page id

* Fixes for perPage

* Fixed API tests for slurp

* Fixed slurp tests

* Fixed lint error

* Updated tests

* 3650 fix import cycles (#3652)

* Moves IsTerminal to logger package

* Removes logger import from base package

* Make Max/Min include Numeral. Removes utils import from base package

* Removes unused return bool from RangeToFilename in base which cause unneeded import of file package

* Removes a dependancy to logger from base package

* Removes some dependancies on logger package from cache and config package

* Moves Min2/Max2 to Min/Max and from utils to base packages. Huge source of cycles

* Reenabled --ether in slurp tests

* Feature/more examples 6 (#3654)

* Moves IsTerminal to logger package

* Removes logger import from base package

* Make Max/Min include Numeral. Removes utils import from base package

* Removes unused return bool from RangeToFilename in base which cause unneeded import of file package

* Removes a dependancy to logger from base package

* Removes some dependancies on logger package from cache and config package

* Moves Min2/Max2 to Min/Max and from utils to base packages. Huge source of cycles

* Fixes bug in chifra abis and makes chifra abis --encode produce a typed response

* Dependabot warning

* Working on usesSdk for abis

* Finished usesSdk for abis

* Block sdk fuzzer - removeal of big_range and list/list_count from chifra blocks

* Bugfix/3649 slurp tests (#3651)

* Fixes for some tests

* Added page_id flag

* Fixes for page id

* Fixes for perPage

* Fixed API tests for slurp

* Fixed slurp tests

* Fixed lint error

* Updated tests

* Reenabled --ether in slurp tests

---------

Co-authored-by: Thomas Jay Rush <jrush@quickblocks.io>

* Updates go.mod for a few builds

* Feature/more examples 7 (#3658)

* Silences progress reporting during fuzzing

* Moves examples/usesSdk to src/dev_tools/sdkFuzzer

* Catching up tests

* Adds chifra abis and chifra list to sdk fuzzer

* Updates CHANGES

* Adds names and list to fuzzer

* Cleaning

* Feature/more examples 8 (#3661)

* Cleaning

* Cleaning

* Updating tests for config endpoint

* Starts fuzzer for transactions. Uses Numeral for nonce throughout.

* Starts fuzzer for transactions. Uses Numeral for nonce throughout.

* Finished sdk fuzzer for transactions

* References `develop` branch of tests

* Fixes tokens sdk fuzzer (#3662)

* Fixes tokens sdk fuzzer

* Prepares for the rest

* status fuzzer

* Changes

* Bugfix/slurp enum (#3663)

* Added missing slurp providers

* Updated slurp tests

* --amend

* Catching up to latest code

* Catching up to latest code

---------

Co-authored-by: Thomas Jay Rush <jrush@quickblocks.io>

* Updates tests

* Shows covalent and alchemy in chifra slurp --help (#3666)

* Updates go.mod in src/apps/chifra (#3671)

* Updates go.mod in src/apps/chifra

* Updates go.mod in examples/balanceChart

* Updates go.mod in examples/findFirst

* Updates go.mod in examples/simple

* Updates go.mod in src/dev_tools/goMaker

* Updates go.mod in ./sdk

* Updates go.mod throughout

* Fixes go-work-sync.sh to call go-mod-tidy.sh

* Feature/more examples 10 (#3672)

* Updates go.mod in src/apps/chifra

* Updates go.mod in examples/balanceChart

* Updates go.mod in examples/findFirst

* Updates go.mod in examples/simple

* Updates go.mod in src/dev_tools/goMaker

* Updates go.mod in ./sdk

* Updates go.mod throughout

* Fixes go-work-sync.sh to call go-mod-tidy.sh

* Cleaning

* Improves chifra init --example

* Cleaning

* Feature/more examples 11 (#3674)

* More SDK testing

* Cleaning

* Captures base.Timestamp for Json parsing

* Cleans fuzzer. Fixes a few json parsing errors. Starts to clean up compressedTx, etc.

* Removed CompressedTx from Slurp type cache - wasn't cached anyway - no upgrade

* Removed CompressedLog and CompressedTrace from caches. Not yet auto-generated

* Auto generates updated field that have been removed

* Finishes fuzzing for chifra slurp

* Feature/more examples 12 (#3677)

* Cleaning - caching in particular

* Updating sdkFuzzer to auto-gen

* Auto gen for fuzzer

* Best version yet of auto-code-gen for sdkFuzzer

* Best version yet of auto-code-gen for sdkFuzzer

* Finishes auto-code-gen for sdkFuzzer

* Adds caching to chifra receipts (#3679)

* Feature/more examples 15 (#3680)

* Removes weird Nonce type in favor of Numeral

* Removes weird Index type in favor of Numeral

* Changes unsavory Numeral to Value in base.types.go

* Moves Receipt.Status to Value so it parse in SDK

* Trying to figure out unimplemented caching

* Auto-gen typescript code

* Feature/more examples 15 (#3681)

* Cleans up messaging for chifra export --decache

* Change difficulty to value type to allow for parsing JSON

* Clean up

* Fixing tests

* Feature/more examples 16 (#3682)

* Cleaning

* Breaking adds -eth to export for chifra export --ether

* Alter JSON output to be parsable by our own types - breaking (#3683)

* Cleaning up

* Starts to enhance code-gen for enums

* Auto genning more code is sdkFuzzer

* Auto genning more code is sdkFuzzer

* Best version yet

* Fixes logging bar

* Speed testing

* Fixing float64 parsing for Statement.spotPrice

* Cleaning

* Tokens balance is always wei, added balanceDec - breaking

* Cleaning

* Updates tests

* Fixing float64 parsing for Statement.spotPrice

* Fixes tests for chifra tokens

* Updating

* Feature/remove raw (#3692)

* Improves UnmarshalJSON for base types

* Accepts null as a value for base.Address

* Removes // EXISTING_CODE blocks from Raw types to get started

* Removes --raw from the chifra logs command - tests not run yet

* Updates tests after removing --raw from chifra logs

* Prepares auto-code-gen for removing Raw via attribute simponly

* Removes, by hand, RawLog but enables auto-code-gen for non-raw types.

* Updates tests after removing --raw from chifra logs

* Cleanup for removal of RawLog

* Removes Raw for many other types

* Removes RawWithdrawal

* removes Raw for function, parameter, result

* Removes RawReceipt and updates tests

* Change attribute for raw to hasraw rather than not simponly

* Removes RawTraceResult and updates tests

* Removes RawTraceAction and updates tests

* Removes RawTrace and updates tests

* Removes --raw from chifra traces

* Removes RawAppearance and updates tests

* Broken

* Removes RawSlurp-ish...

* Faster

* Trying to separate Block[string] from Block[Transaction] with LightBlock

* Starts to replace Block[string] with LightBlock

* Replaces Block[string] with LightBlock in a few places

* Remove more Block[string] uses

* Cleaning

* Cleaning

* Makes Blocks concrete. LightBlocks is what used to be Blocks[string]

* Removes --raw from chifra slurp

* Removes --raw from chifra transactions

* Removes --raw from chifra blocks

* Cleans up a few docs related to removing --raw

* Removes "raw" from python SDK

* Remove Raw and SetRaw from template, but does not regenerate

* Tries to remove raw in many, many places

* Removes --raw throughout

* Trying to remove Raw

* Renames extraOptions to extraOpts

* Renames extra to extraOpts to match

* Replace RawModeler with Streamable and be explicit about what types are Streamable

* Replace the less clear and more old-fashioned `interface{}` with `any` throughout. `any` is an alias and more easily grokked.

* Removes AppearanceCount type. It should have been (and is now) a Monitor

* LogFilter is not a Streamable type. Moved to rpc package

* Removes SlurpCount - should have been Monitor

* Cleaning

* Removes RawLightBlock

* Cleaning

* Partially removes RawBlock

* Removes one more use of RawBlock

* Starting to remove RawTransaction

* Partially removes RawTransaction

* Removes RawBlocks -- and ALL other raw shit

* Removes some vestiges of raw

* All that's left is cleaning up the raw code that did all the copying

* Starts final cleanup of removal of Raw

* Starts to clean up old vestiges of raw copy and the many copies problem

* Small cleaning

* Almost done fixing blocks for raw

* Best version yet of blocks

* Best version yet

* Fixes a bug in chifra blocks --uncles

* Cleans up traces in RPC code

* Object instead of null for trace.Result

* Fixing tests

* Cleaning

* I am done.

* Trying to recover

* Updates python SDK

* Fixing tests one more time

* Cleaning after removing raw (#3704)

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Trying to clean up initialization (#3706)

* Trying to clean up initialization

* Trying to clean up initialization

* Trace bug from new code breaks scraper

* Better initialize of Transactions

* Feature/better rawless 3 (#3711)

* Touches CHANGES.md

* Touches CHANGES.md

* It makes Handle routines more consistent

* It makes appearance freshening and chunk truncating show progress

* Auto gen Handler code in output.go

* Makes filenames and Handler names co-incide

* Updates tests

* Renames a file

* Renames a function

* Cleaning

* Updating code-gen

* Cleaning (#3713)

* Cleaning

* Fixing examples templates

* Removes type generic from modelChan in all handlers (#3715)

* Last PR before merge to master (#3717)

* Final 2 (#3718)

* Updating version

* Updating version

* Updating version

* Cleaning up OpenApi.yaml and examples

* Adding a few examples to OpenAPI.yaml file

* Adding a few examples to OpenAPI.yaml file

* Trying to capture control of the progress bar

* Trying to capture control of the progress bar

* Adds logging to traces

* Removes --load from chifra blocks as unused

* Updates

* Removes --seed from chifra tranactions as unused

* Fixes tests

* Fixes off by one error

* Fixes off by one error

* Messaging while scraping

* Fixes issue #3721

* Fixes issue

* Fixes tests

* Hopefully the last (or second last) before the massive merge to master (#3724)

* Fixes an issue with back level GoLang version on user's machine

* Fixes an issue with chifra chunks --count

* Updates tests

* Fixes an issue with goMaker and duplicate members in a structure

* Fixes issues with testRunner

* Fixes issue #3712

* Fixes issue #3712

* Fixes issue #3696

* Fixing tests

* Fixing tests

* Fixing tests

* Fixing tests

* Cleaning

* Cleaning (#3727)

* Final 3 (#3731)

* Fixes an issue with back level GoLang version on user's machine

* Fixes an issue with chifra chunks --count

* Updates tests

* Fixes an issue with goMaker and duplicate members in a structure

* Fixes issues with testRunner

* Fixes issue #3712

* Fixes issue #3712

* Fixes issue #3696

* Fixing tests

* Fixing tests

* Fixing tests

* Fixing tests

* Cleaning

* Improves goMaker to eliminate duplicate longNames and distinquish enums better. Prepares for auto-gen of deprecatoin.

* Fixes tests for chifra daemon

* Updates tests

* Fixing chifra slurp (#3732)

* Fixes tests for chifra slurp

* Deprecates --types in favor or --parts to be consistant with other tools. Other changes

* Fixes issue #3725 (#3733)

* Fixes issue #3687 (#3734)

* Fixes issue #3687

* Fixes issue #3729 by undhiding versious previously hidden options

* Fixes issue #3729 by undhiding versious previously hidden options

* Fixes issue #3729 by undhiding previously hidden chifra scrape --dry_run

* Fixes issue #3684

* Allows for multiple calls into chifra state --call (#3736)

* Noting future possible examples

* Updating tests for issue #3561

* Adds tests

* Updating

* Bumping (#3739)

* Feature/3582 better trace detection (#3740)

* Adds the basics for making requirement for tracing more clear.

* Makes requirement for trace data more clear

* Fixes tests for tracing fix

* 3554 chifra state cache (#3741)

* Make caching code more consistent across codebase

* Changes getCache to return a map of cacheTypes to bools not strings to bools

* EnableMaps are now maps from CacheType to bool

* Trying to make caching code more consistent

* Trying to make caching code more consistent

* Cleaning

* Renames some files and small cleaning

* Comments make finding caching code easier

* Small cleaning

* Starting to add caching to chifra state

* Starting to add caching to chifra state

* Starting to add caching to chifra state

* Catching up auto-gen

* Fixes issue #3354

* Updates

* Updates tests for chifra slurp (#3743)

* Updates tests for chifra slurp

* Adds --notify to chifra scrape

* Adds --notify to chifra scrape

* 3510 notify flag (#3744)

* Makes NotifyChunkWritten a method on ScrapeOptions

* Separates out NotifyConfigured from GetNotifyEndpoint

* Moves validation to validate.go where it belongs. Requires --notify flag to enable notifications.

* Surrounds Notify with tests for enablement

* Fixes tests

* Fixes tests

* Removes certain options from api docs (#3745)

* Allows --decache for chifra abis

* Removes chifra scrape from API docs because it's not avaiable anyway

* Removes certain unavaible anyway things from API

* Bumps version to v3.0.0-release (#3746)

* Bumps version to v3.0.0-release

* Updates CHANGES

* Final cleaning for chifra chunks --pins tools (#3755)

* Bumps version to v3.0.0-release

---------

Signed-off-by: avoidaway <cmoman@126.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: avoidaway <cmoman@126.com>
Co-authored-by: snoppy <michaleli@foxmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gary Snipes <77077163+G-Snipes@users.noreply.github.com>
Co-authored-by: Gary Snipes <tuk40095@temple.ed>
Co-authored-by: Dawid Szlachta <git@makingprogress.dev>
tjayrush added a commit that referenced this pull request Jun 5, 2024
* Makes interface into API parsing more generic

* First version of auto-generated goLang SDK

* First use of the new GoLang SDK

* Better comments, fix writer

* Creates the sdk at the root of the `core` repo

* Establishes the sdk at ./sdk/go and first attempt at CmdOptions type interface for Blocks

* Better example

* Starting to add sdk to top folder

* Further hand edits

* Cleaning up auto-code gen a bit

* Further hand edits

* Saving up

* Implements auto-code gen for fields and enums of each command

* More work on sdk

* Implements each command in the SDK

* Corrects spelling mistake

* Removes hidden items from go SDK

* Some cleaning

* Cleans

* Working on automating capabilities

* Starts to implement capabilities for auto-gen

* Clean up capabilities in the GoLang code auto-gen

* Fixes caps

* Fixes global caps across all sdks and docs

* Fixes small issue with sdk

* Shows RPC endpoint when scraper starts

* Updating README

* Fixing tests

* Improves messaging to make debugging accounting easier

* Cleans up some enums especially chifra tokens

* Modify logger.Progress to never print when testing

* Better handling of proxy address when validating

* Limiting some tests to produce less records

* Enable testing in the inner sdk code

* Auto code gen improvements for goLang sdk to allow for better testing

* Adds sdkTester code to test SDK

* Cleaning tests

* Updates tests

* chore: fix some comments

Signed-off-by: avoidaway <cmoman@126.com>

* Adds an example for optimism

* Removes unused code

* Adds a placeholder for goMaker

* Removes unused code

* Adds goMaker to the build

* Adds a VERSION file and moves some code

* Moves data files to ./other/data-models. Adds usage field (unused) to endpoints data. Cleaning

* Fixes a few things with the old code generator

* Removes generation of all SDK code from the C++. Does not yet replace it.

* Removes no longer needed templates

* Tidys the go.mod file in goMaker

* Removes --sdk from build commands

* Cleans up (by hand) formatting using gofmt (new autogen will use gofmt)

* Cleans up (by hand) formatting for typescript SDK

* Cleans up (by hand) python SDK. Removes redundant option.

* Renames help_text.go to helpfile.go

* Hand edits in anticipation of the new auto-gen code

* Hand edits in anticipation of the new auto-gen code

* Hand edits in anticipation of the new auto-gen code

* Hand edits in anticipation of the new auto-gen code

* Removes all GoLang generation (other than data structures) from C++ code.

* Touching

* Adds new goMaker auto-gen tool - works but only reports for now

* Removes  a large amount of C++ code.

* From first working version of goMaker, updates headers only but produces identical code

* First working version of new goMaker

* Fixes lints

* Moves types into its own package for goMaker

* Cleaning

* Cleaning

* Produce docs.go file in internal folders

* Adds, but does not enable build for, balanceChart example

* Adds an existing code block to golang sdk

* Progress reporting for chifra when

* Updates optimism1 example but doesn't enable it (requires SDK)

* Updates usesSDK example but still uses old SDK

* Better reporting and better at catching up to timestamps on new chains

* Adds KnownBlock FirstTrace to enable optimism tracing

* Fixes a bug when walking monthly block ranges

* Mild cleaning

* Updates balanceChart example but still does not build it

* Outputs amount of prefund with chifra names --prefund --expand plus tests

* Encapsulates all use of big.Float behind type Ether

* Cleans balanceChart example

* Removes unused code

* Fixes build

* Starts to get control of the Wei type

* Add temporary type MyWei to ease encapsulating big.Int. Start by defining a few funcs on the type.

* Starts porting to MyWei by first altering block reward calcs. No cached types needed to change

* A small amount of linting

* Adds more testing and Json unmarshaling to Ether type

* Cleans up Ether type a bit in preparation for removing big.Int from ToEther

* Remove unneeded return item from MyWei.Float64

* Starts to my away from Wei towards MyWei

* Gets better control of our Ether type as a string.

* Encapsulate ToEther to use MyWei

* Finished Ether with solid tests

* chore: fix typos

* Removes a few unused options from makeClass and testRunner

* Recognizes IsContractAtLatest to simplify an interface

* Fixes build

* Cleaning

* Various minor cleaning

* Starting to migrate to the new version of Wei. Step 1 remove direct use of big.Int for its alias base.Wei

* Removes more direct use of big.Int in favor of base.Wei

* Change FormattedValue to take a pointer instead of making a copy

* Completely captures big.Int and big.Float so we can Unmarshal hex and string versions of those items from CSV and Json

* Fixes cpp code - fin?

* Removes old makeClass cpp code (#3562)

* Removes old makeClass cpp code

* Cleaning

* Cleaning

* Cleaning

* Cleaning

* Feature/sdk examples 2 (#3563)

* Removes old makeClass code entirely

* Removes a lot of unused cpp code from testRunner

* Removes unused files from docs folder

* Moves all templates (including classDefinitions) to goMaker/templates

* Cleaning up sdkTester a bit

* Makes all necessary changes to goMaker

* Renames various templates files, deletes unused files

* Adds new template files and removes unused ones

* Updates examples for API file

* Updates template notes

* Update readme intros for new maker

* Updates all classDefinitions

* Updates remainder of templates

* Updates the codebase level templates

* Updates the document level templates

* Updates the sdk level templates

* Updates the internals level templates

* Updates the types level templates

* Final touchups. Ready to merge.

* Updates for final version

* Bump vite from 4.5.2 to 4.5.3 in /sdk/typescript (#3565)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.3/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "Revert "Fix Typos in Comments"" (#3572)

* Fix Typos in Comments (#3569)

* modified readme.md in bin

* cacheing to caching example fix

* test commit again

* Fix typos

* Fix typos

* Fix typos

---------

Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Revert "Fix Typos in Comments (#3569)" (#3570)

This reverts commit 1b95049.

* Revert "Revert "Fix Typos in Comments (#3569)" (#3570)"

This reverts commit f45e0b2.

---------

Co-authored-by: Gary Snipes <77077163+G-Snipes@users.noreply.github.com>
Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Adds Stringer interface to all types (#3568)

* Adds Stringer interface to all types

* Moves a few types out of internal

* Moves MetaData to types

* Fixes build and regenerates

* Moves ipfspina nd reportcheck to types

* Fixes build

* Fixing build

* Moves a few types out of internal

* Upper case AppearanceTable

* Moved the last type to pkg

* Fixing build

* Trying to remove index.AddressRecord and index.AppearanceRecord as dups

* Removes index.AppearanceRecord in favor of types.SimpleAppRecord

* Cleaning

* Removes the idea of goOutput folder for auto-gen

* Fix Typos in Comments (#3569)

* modified readme.md in bin

* cacheing to caching example fix

* test commit again

* Fix typos

* Fix typos

* Fix typos

---------

Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Revert "Fix Typos in Comments (#3569)" (#3570)

This reverts commit 1b95049.

* Cleaning

---------

Co-authored-by: Gary Snipes <77077163+G-Snipes@users.noreply.github.com>
Co-authored-by: Gary Snipes <tuk40095@temple.ed>

* Updates auto code gen to produce different endpoints in SDK for different return types (#3574)

* Update goMaker and other dev_tools code

* Runs auto code gen with new configs

* Final cleanup

* Remove old cpp testRunner (#3576)

* Various small cleanups to go code

* Near complete re-write of cpp testRunner including removal of most of the unused CPP code

* Begings work on the GoLang testRunner

* Fixes test cases

* Enable daemon sdk (#3578)

* Trying to expose daemon to the SDK

* Cleaning

* Adds --silent to chifra daemon

* Key working again

* Added Key support

* Removed duplicated code

* Cleanup

* Fixed linter errors

* Fixed API keys in unit tests

* Another fix for tests

* Added Covalent provider

* Fixed tests

* Bump golang.org/x/net from 0.10.0 to 0.23.0 in /src/apps/chifra (#3586)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.23.0.
- [Commits](golang/net@v0.10.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Don't call fatal in handler

* Fixing

* Remove all cpp code 3 (#3591)

* Updating test cases as a submodule

* Small various cleanups. All smoke, no fire.

* Small various cleanups. All smoke, no fire.

* Removes cpp test runner, replaces it with goLang tester

* FInal

* Removes Simple throughout (#3593)

* Removes Simple throughout

* Fixes tests

* Fixes tests (#3594)

* Bump golang.org/x/net from 0.10.0 to 0.23.0 in /src/apps/chifra (#3589)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.23.0.
- [Commits](golang/net@v0.10.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Updating all tests cases to best version yet

* Cleaning

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Puts back Simple in a few places (#3598)

* Feature/more examples (#3599)

* Removes old code from ./src/other

* Cleans up some go.mod files

* Adds examples as a submodule

* Improves examples by making them in a submodule

* Creates an examples submodule to make building examples easier.

* Fixes example submodule

* Trying to fix examples

* Updates examples

* Fixing incorrect go.mod files for the SDK (#3602)

* Feature/fix location of sdk 2 (#3603)

* Fixes code generator

* Removes existing examples folder to examples repo

* Changes go.mod to sdk/v2

* Uses trueblocks-core/sdk

* Tries to use semantic versioning for SDK (#3601)

* Tries to use semantic versioning for SDK

* Tries to use semantic versioning for SDK

* Still working

* Remove examples submodule

* First working version of examples using SDK

* Added Alchemy provider

* Cleans up the build, adds examples, other cleaning (#3610)

* Lot's of smoke, no fire. Removes unused enabledForCmds and EnableCommand which were all true anyway.

* Moves all build scripts into the ./scripts folder to make them easier to control

* Adds and/or cleans up some of the example code.

* Fixes build

* Fixes issue #3600 (#3611)

* Fixes issue #3600

* Fixes build

* Fixes build

* Fixes lints (#3616)

* feature/more-examples-6 (#3615)

* Updates a few of the build scripts

* Adds, but does not implement, chifra init --examples

* There should be no files other than .gitignore files in working folder

* Adds back missing working folders

* Fixes tests

* Adds UnmarshalJSON to both base.Address and base.Hash

* Improves the testRunner a bit

* Implements chifra init --example <name>

* De-lints

* Adds usesSDK example

* Makes output for Blocks.baseFeePerGas into Wei not uint64 - breaking

* Working on usesSDK

* Stringer for types is now non-pointer

* Stringer for types is now non-pointer

* Fixes lints

* Added slurp setup instructions (#3608)

* Added slurp setup instructions

* Moved config instructions

* Updated tests

* Added missing support for page and per_page flags

* Post-merge fixes

* Reenabled slurp help test

* Updated tests submodule

* Fixed unit test

* Updated tests

* feature/improve-examples-7 (#3620)

* Updates linter and turns off linting in _test files (as we used to do)

* Changes NO_USERQUERY to TB_NO_USERQUERY

* Removes Fatal from SDK in favor or returning the error

* Exposes Cacher interface through SDK

* Improves make-go-work.sh script

* Updates usesSdk

* Fixes chifra when tests (#3623)

* Feature/better sdk 2 (#3625)

* Change ChunkPinReport to ChunkPin

* Cleaning

* Separates command line options with returns to Functions in SDK

* Makes types.Message a full auto-gen type (#3627)

* Fixes issue 3631 (#3632)

* Fixes issue 3631

* Fixes issue 3631 and brings tests in line

* Fixes issue 3631 and brings tests in line

* Feature/better sdk 4 (#3633)

* Changes String method in SDK options types to non-pointer method

* Updates docs to better reflect contained_by, contains, produced_by, produces

* Improves names endpoint in SDK

* Improves chunks endpoint in SDK

* Adds an existing_code block to SDK

* Protects against a concurrent map write

* Numerous improvements to the usesSdk example code

* 3638 i need a way to change the cache without requiring a re query of the node (#3640)

* Changes the word 'version' to 'vers' in types package to make importing version package easier

* Implements NeedsUpgrade portion of issue #3638.

* Fixes issue #3638

* Fixes tests

* Fixes tests

* Feature/better-sdk-6 (#3641)

* Changes String method in SDK options types to non-pointer method

* Updates docs to better reflect contained_by, contains, produced_by, produces

* Improves names endpoint in SDK

* Improves chunks endpoint in SDK

* Adds an existing_code block to SDK

* Protects against a concurrent map write

* Numerous improvements to the usesSdk example code

* Fixes (temporarily) parsing of articuated items

* Improves usesSDK

* Cleaning

* Better error message for chifra tokens

* Fixes tests

* Improves error reporting for chifra tokens

* Create a way to clean up input to Unmarshall in SDK

* Cleans up inputs and outputs in articulated items prior to Unmarshal

* Improves usesSdk test cases

* float64s instead of the weird double in auto-code gen

* totalDifficulty (a rawonly field) should be uint256, not wei

* Separates ether from amount for chifra blocks --withdrawal --ether

* Fixes issue #3642

* Fixes issue #3642 related to chifra slurp

* Exports balance with --ether option for chifra state

* Cleans up diff field in chifra tokens

* Documents value for chifra traces

* Updates tests for chifra traces

* Updates CHANGES file

* Fixes tests

* Updates usesSdk test

* Tries to start to capture base types (starting with Gas)

* Starts to get control of base types such as TransactionIndex, BlockNumber, etc.

* Separates out base.Txnum (temporary)

* Captures lognum (temporary)

* Gets control of validatorIndex and withdrawalIndex

* Removes special case MustParseGas

* Moves NOPOS and NOPOSI to base package. Adds NOPOSN = Numeral

* Gains complete control of base.Txnum in all types.

* Grab control of LogIndex

* Further adventures in sdk coding (#3648)

* Updates CHANGES file

* Prepares the way for capturing Blknum

* Fixes build

* Further adventures

* Further adventures

* Further adventures

* Further adventures

* Further adventures

* Further adventures

* Trying to capture MustParseInt

* Captures MustParse...

* Changes status size, makes Blknum a Numeral

* Commits to Numeral block numbers

* Fixes build

* Catches up with auto-code gen

* Commit to concrete type of Numeral

* Better docs, remove double in favor of float64 from auto-code-gen

* Validate codebase before generating code

* Fixes for some tests

* Added page_id flag

* Fixes for page id

* Fixes for perPage

* Fixed API tests for slurp

* Fixed slurp tests

* Fixed lint error

* Updated tests

* 3650 fix import cycles (#3652)

* Moves IsTerminal to logger package

* Removes logger import from base package

* Make Max/Min include Numeral. Removes utils import from base package

* Removes unused return bool from RangeToFilename in base which cause unneeded import of file package

* Removes a dependancy to logger from base package

* Removes some dependancies on logger package from cache and config package

* Moves Min2/Max2 to Min/Max and from utils to base packages. Huge source of cycles

* Reenabled --ether in slurp tests

* Feature/more examples 6 (#3654)

* Moves IsTerminal to logger package

* Removes logger import from base package

* Make Max/Min include Numeral. Removes utils import from base package

* Removes unused return bool from RangeToFilename in base which cause unneeded import of file package

* Removes a dependancy to logger from base package

* Removes some dependancies on logger package from cache and config package

* Moves Min2/Max2 to Min/Max and from utils to base packages. Huge source of cycles

* Fixes bug in chifra abis and makes chifra abis --encode produce a typed response

* Dependabot warning

* Working on usesSdk for abis

* Finished usesSdk for abis

* Block sdk fuzzer - removeal of big_range and list/list_count from chifra blocks

* Bugfix/3649 slurp tests (#3651)

* Fixes for some tests

* Added page_id flag

* Fixes for page id

* Fixes for perPage

* Fixed API tests for slurp

* Fixed slurp tests

* Fixed lint error

* Updated tests

* Reenabled --ether in slurp tests

---------

Co-authored-by: Thomas Jay Rush <jrush@quickblocks.io>

* Updates go.mod for a few builds

* Feature/more examples 7 (#3658)

* Silences progress reporting during fuzzing

* Moves examples/usesSdk to src/dev_tools/sdkFuzzer

* Catching up tests

* Adds chifra abis and chifra list to sdk fuzzer

* Updates CHANGES

* Adds names and list to fuzzer

* Cleaning

* Feature/more examples 8 (#3661)

* Cleaning

* Cleaning

* Updating tests for config endpoint

* Starts fuzzer for transactions. Uses Numeral for nonce throughout.

* Starts fuzzer for transactions. Uses Numeral for nonce throughout.

* Finished sdk fuzzer for transactions

* References `develop` branch of tests

* Fixes tokens sdk fuzzer (#3662)

* Fixes tokens sdk fuzzer

* Prepares for the rest

* status fuzzer

* Changes

* Bugfix/slurp enum (#3663)

* Added missing slurp providers

* Updated slurp tests

* --amend

* Catching up to latest code

* Catching up to latest code

---------

Co-authored-by: Thomas Jay Rush <jrush@quickblocks.io>

* Updates tests

* Shows covalent and alchemy in chifra slurp --help (#3666)

* Updates go.mod in src/apps/chifra (#3671)

* Updates go.mod in src/apps/chifra

* Updates go.mod in examples/balanceChart

* Updates go.mod in examples/findFirst

* Updates go.mod in examples/simple

* Updates go.mod in src/dev_tools/goMaker

* Updates go.mod in ./sdk

* Updates go.mod throughout

* Fixes go-work-sync.sh to call go-mod-tidy.sh

* Feature/more examples 10 (#3672)

* Updates go.mod in src/apps/chifra

* Updates go.mod in examples/balanceChart

* Updates go.mod in examples/findFirst

* Updates go.mod in examples/simple

* Updates go.mod in src/dev_tools/goMaker

* Updates go.mod in ./sdk

* Updates go.mod throughout

* Fixes go-work-sync.sh to call go-mod-tidy.sh

* Cleaning

* Improves chifra init --example

* Cleaning

* Feature/more examples 11 (#3674)

* More SDK testing

* Cleaning

* Captures base.Timestamp for Json parsing

* Cleans fuzzer. Fixes a few json parsing errors. Starts to clean up compressedTx, etc.

* Removed CompressedTx from Slurp type cache - wasn't cached anyway - no upgrade

* Removed CompressedLog and CompressedTrace from caches. Not yet auto-generated

* Auto generates updated field that have been removed

* Finishes fuzzing for chifra slurp

* Feature/more examples 12 (#3677)

* Cleaning - caching in particular

* Updating sdkFuzzer to auto-gen

* Auto gen for fuzzer

* Best version yet of auto-code-gen for sdkFuzzer

* Best version yet of auto-code-gen for sdkFuzzer

* Finishes auto-code-gen for sdkFuzzer

* Adds caching to chifra receipts (#3679)

* Feature/more examples 15 (#3680)

* Removes weird Nonce type in favor of Numeral

* Removes weird Index type in favor of Numeral

* Changes unsavory Numeral to Value in base.types.go

* Moves Receipt.Status to Value so it parse in SDK

* Trying to figure out unimplemented caching

* Auto-gen typescript code

* Feature/more examples 15 (#3681)

* Cleans up messaging for chifra export --decache

* Change difficulty to value type to allow for parsing JSON

* Clean up

* Fixing tests

* Feature/more examples 16 (#3682)

* Cleaning

* Breaking adds -eth to export for chifra export --ether

* Alter JSON output to be parsable by our own types - breaking (#3683)

* Cleaning up

* Starts to enhance code-gen for enums

* Auto genning more code is sdkFuzzer

* Auto genning more code is sdkFuzzer

* Best version yet

* Fixes logging bar

* Speed testing

* Fixing float64 parsing for Statement.spotPrice

* Cleaning

* Tokens balance is always wei, added balanceDec - breaking

* Cleaning

* Updates tests

* Fixing float64 parsing for Statement.spotPrice

* Fixes tests for chifra tokens

* Updating

* Feature/remove raw (#3692)

* Improves UnmarshalJSON for base types

* Accepts null as a value for base.Address

* Removes // EXISTING_CODE blocks from Raw types to get started

* Removes --raw from the chifra logs command - tests not run yet

* Updates tests after removing --raw from chifra logs

* Prepares auto-code-gen for removing Raw via attribute simponly

* Removes, by hand, RawLog but enables auto-code-gen for non-raw types.

* Updates tests after removing --raw from chifra logs

* Cleanup for removal of RawLog

* Removes Raw for many other types

* Removes RawWithdrawal

* removes Raw for function, parameter, result

* Removes RawReceipt and updates tests

* Change attribute for raw to hasraw rather than not simponly

* Removes RawTraceResult and updates tests

* Removes RawTraceAction and updates tests

* Removes RawTrace and updates tests

* Removes --raw from chifra traces

* Removes RawAppearance and updates tests

* Broken

* Removes RawSlurp-ish...

* Faster

* Trying to separate Block[string] from Block[Transaction] with LightBlock

* Starts to replace Block[string] with LightBlock

* Replaces Block[string] with LightBlock in a few places

* Remove more Block[string] uses

* Cleaning

* Cleaning

* Makes Blocks concrete. LightBlocks is what used to be Blocks[string]

* Removes --raw from chifra slurp

* Removes --raw from chifra transactions

* Removes --raw from chifra blocks

* Cleans up a few docs related to removing --raw

* Removes "raw" from python SDK

* Remove Raw and SetRaw from template, but does not regenerate

* Tries to remove raw in many, many places

* Removes --raw throughout

* Trying to remove Raw

* Renames extraOptions to extraOpts

* Renames extra to extraOpts to match

* Replace RawModeler with Streamable and be explicit about what types are Streamable

* Replace the less clear and more old-fashioned `interface{}` with `any` throughout. `any` is an alias and more easily grokked.

* Removes AppearanceCount type. It should have been (and is now) a Monitor

* LogFilter is not a Streamable type. Moved to rpc package

* Removes SlurpCount - should have been Monitor

* Cleaning

* Removes RawLightBlock

* Cleaning

* Partially removes RawBlock

* Removes one more use of RawBlock

* Starting to remove RawTransaction

* Partially removes RawTransaction

* Removes RawBlocks -- and ALL other raw shit

* Removes some vestiges of raw

* All that's left is cleaning up the raw code that did all the copying

* Starts final cleanup of removal of Raw

* Starts to clean up old vestiges of raw copy and the many copies problem

* Small cleaning

* Almost done fixing blocks for raw

* Best version yet of blocks

* Best version yet

* Fixes a bug in chifra blocks --uncles

* Cleans up traces in RPC code

* Object instead of null for trace.Result

* Fixing tests

* Cleaning

* I am done.

* Trying to recover

* Updates python SDK

* Fixing tests one more time

* Cleaning after removing raw (#3704)

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Cleaning by trying to remove use of Client - faster without it.

* Trying to clean up initialization (#3706)

* Trying to clean up initialization

* Trying to clean up initialization

* Trace bug from new code breaks scraper

* Better initialize of Transactions

* Feature/better rawless 3 (#3711)

* Touches CHANGES.md

* Touches CHANGES.md

* It makes Handle routines more consistent

* It makes appearance freshening and chunk truncating show progress

* Auto gen Handler code in output.go

* Makes filenames and Handler names co-incide

* Updates tests

* Renames a file

* Renames a function

* Cleaning

* Updating code-gen

* Cleaning (#3713)

* Cleaning

* Fixing examples templates

* Removes type generic from modelChan in all handlers (#3715)

* Last PR before merge to master (#3717)

* Final 2 (#3718)

* Updating version

* Updating version

* Updating version

* Cleaning up OpenApi.yaml and examples

* Adding a few examples to OpenAPI.yaml file

* Adding a few examples to OpenAPI.yaml file

* Trying to capture control of the progress bar

* Trying to capture control of the progress bar

* Adds logging to traces

* Removes --load from chifra blocks as unused

* Updates

* Removes --seed from chifra tranactions as unused

* Fixes tests

* Fixes off by one error

* Fixes off by one error

* Messaging while scraping

* Fixes issue #3721

* Fixes issue

* Fixes tests

* Hopefully the last (or second last) before the massive merge to master (#3724)

* Fixes an issue with back level GoLang version on user's machine

* Fixes an issue with chifra chunks --count

* Updates tests

* Fixes an issue with goMaker and duplicate members in a structure

* Fixes issues with testRunner

* Fixes issue #3712

* Fixes issue #3712

* Fixes issue #3696

* Fixing tests

* Fixing tests

* Fixing tests

* Fixing tests

* Cleaning

* Cleaning (#3727)

* Final 3 (#3731)

* Fixes an issue with back level GoLang version on user's machine

* Fixes an issue with chifra chunks --count

* Updates tests

* Fixes an issue with goMaker and duplicate members in a structure

* Fixes issues with testRunner

* Fixes issue #3712

* Fixes issue #3712

* Fixes issue #3696

* Fixing tests

* Fixing tests

* Fixing tests

* Fixing tests

* Cleaning

* Improves goMaker to eliminate duplicate longNames and distinquish enums better. Prepares for auto-gen of deprecatoin.

* Fixes tests for chifra daemon

* Updates tests

* Fixing chifra slurp (#3732)

* Fixes tests for chifra slurp

* Deprecates --types in favor or --parts to be consistant with other tools. Other changes

* Fixes issue #3725 (#3733)

* Fixes issue #3687 (#3734)

* Fixes issue #3687

* Fixes issue #3729 by undhiding versious previously hidden options

* Fixes issue #3729 by undhiding versious previously hidden options

* Fixes issue #3729 by undhiding previously hidden chifra scrape --dry_run

* Fixes issue #3684

* Allows for multiple calls into chifra state --call (#3736)

* Noting future possible examples

* Updating tests for issue #3561

* Adds tests

* Updating

* Bumping (#3739)

* Feature/3582 better trace detection (#3740)

* Adds the basics for making requirement for tracing more clear.

* Makes requirement for trace data more clear

* Fixes tests for tracing fix

* 3554 chifra state cache (#3741)

* Make caching code more consistent across codebase

* Changes getCache to return a map of cacheTypes to bools not strings to bools

* EnableMaps are now maps from CacheType to bool

* Trying to make caching code more consistent

* Trying to make caching code more consistent

* Cleaning

* Renames some files and small cleaning

* Comments make finding caching code easier

* Small cleaning

* Starting to add caching to chifra state

* Starting to add caching to chifra state

* Starting to add caching to chifra state

* Catching up auto-gen

* Fixes issue #3354

* Updates

* Updates tests for chifra slurp (#3743)

* Updates tests for chifra slurp

* Adds --notify to chifra scrape

* Adds --notify to chifra scrape

* 3510 notify flag (#3744)

* Makes NotifyChunkWritten a method on ScrapeOptions

* Separates out NotifyConfigured from GetNotifyEndpoint

* Moves validation to validate.go where it belongs. Requires --notify flag to enable notifications.

* Surrounds Notify with tests for enablement

* Fixes tests

* Fixes tests

* Removes certain options from api docs (#3745)

* Allows --decache for chifra abis

* Removes chifra scrape from API docs because it's not avaiable anyway

* Removes certain unavaible anyway things from API

* Bumps version to v3.0.0-release (#3746)

* Bumps version to v3.0.0-release

* Updates CHANGES

* Final cleaning for chifra chunks --pins tools (#3755)

* Bumps version to v3.0.0-release

---------

Signed-off-by: avoidaway <cmoman@126.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: avoidaway <cmoman@126.com>
Co-authored-by: snoppy <michaleli@foxmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gary Snipes <77077163+G-Snipes@users.noreply.github.com>
Co-authored-by: Gary Snipes <tuk40095@temple.ed>
Co-authored-by: Dawid Szlachta <git@makingprogress.dev>
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.

1 participant