diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02fbb527..7f9bb71b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,6 @@ on: branches: - master - develop - - feature/* pull_request: branches: - "**" diff --git a/.goreleaser.yaml b/.goreleaser.yaml deleted file mode 100755 index de0078c8..00000000 --- a/.goreleaser.yaml +++ /dev/null @@ -1,101 +0,0 @@ -env_files: - github_token: ~/.config/goreleaser/github_token - -builds: - - id: darwin-amd64 - main: ./cmd/firesol - binary: firesol - goos: - - darwin - goarch: - - amd64 - env: - - CC=o64-clang - - CXX=o64-clang++ - flags: - - -trimpath - - -mod=readonly - ldflags: - - -s -w -X main.version={{.Version}} - - - id: darwin-arm64 - main: ./cmd/firesol - binary: firesol - goos: - - darwin - goarch: - - arm64 - env: - - CC=oa64-clang - - CXX=oa64-clang++ - flags: - - -trimpath - - -mod=readonly - ldflags: - - -s -w -X main.version={{.Version}} - - - id: linux-amd64 - main: ./cmd/firesol - binary: firesol - goos: - - linux - goarch: - - amd64 - env: - - CC=x86_64-linux-gnu-gcc - - CXX=x86_64-linux-gnu-g++ - flags: - - -trimpath - - -mod=readonly - ldflags: - - -s -w -X main.version={{.Version}} - -archives: - - id: firehose-solana - builds: - - darwin-amd64 - - darwin-arm64 - - linux-amd64 - name_template: >- - {{ .ProjectName }}_ - {{- tolower .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ tolower .Arch }}{{ end }} - format: tar.gz - files: - - LICENSE - - README.md - -checksum: - name_template: 'checksums.txt' - -snapshot: - name_template: "{{ .Tag }}" - -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' - - '^GitBook:' - -release: - draft: true - name_template: '{{ .Tag }}' - target_commitish: '{{ .Commit }}' - -brews: - - name: firehose-solana - ids: - - firehose-solana - tap: - owner: streamingfast - name: homebrew-tap - commit_author: - name: goreleaserbot - email: goreleaser@streamingfast.io - homepage: "https://github.com/streamingfast/firehose-solana" - description: "StreamingFast CLI for 'firehose-solana'" - license: "Apache-2.0" \ No newline at end of file diff --git a/.sfreleaser b/.sfreleaser index b6016f9f..6ef07753 100755 --- a/.sfreleaser +++ b/.sfreleaser @@ -2,3 +2,9 @@ global: binary: firesol language: golang variant: application + sfreleaser-min-version: v0.7.0 +release: + pre-build-hooks: + #- substreams pack -o "{{ .buildDir }}/substreams-solana-{{ .release.Version }}.spkg" substreams.yaml + upload-extra-assets: + - "{{ .buildDir }}/substreams-solana-{{ .release.Version }}.spkg" diff --git a/ACCOUNTS.md b/ACCOUNTS.md deleted file mode 100644 index 5715607b..00000000 --- a/ACCOUNTS.md +++ /dev/null @@ -1,106 +0,0 @@ -This is the file struture of the `accounts/` files. - -Extrapolated from source in: -* runtime/src/append_vec.rs -* runtime/src/accounts_db.rs -* runtime/src/hash.rs - - - -pub struct StoredMeta { - pub write_version: u64, - pub pubkey: Pubkey, FOUND - pub data_len: u64, FOUND -} -pub struct AccountMeta { - pub lamports: u64, - pub owner: Pubkey, FOUND - pub executable: bool, - pub rent_epoch: Epoch, FOUND -} - - -STRUCTURE: - (meta_ptr as *const u8, mem::size_of::()), PARTIALLY - (account_meta_ptr as *const u8, mem::size_of::()), PARTIALLY - (hash_ptr as *const u8, mem::size_of::()), FOUND - (data_ptr, data_len), FOUND - - - -accounts/ files: - - -00000000 5B AD 9A D9 05 00 00 00 - A5 00 00 00 00 00 00 00 [............... -> DATA_LEN (165) -00000010 FA 5A 35 34 39 06 38 15 1B 33 6A 74 2F 64 8E 48 .Z549.8..3jt/d.H -00000020 38 5D 01 54 CF 90 F1 CA 55 DA 8D E9 75 B1 5C 28 8].T....U...u.\( -> pubkey de l'account - HrGhscadmYEhMu6tLqjFhTz3RkJm1kgzNzggh6NTopiK - - -00000030 F0 1D 1F 00 00 00 00 00 - 89 00 00 00 00 00 00 00 ................ -> epoch (137) - -00000040 06 DD F6 E1 D7 65 A1 93 D9 CB E1 46 CE EB 79 AC .....e.....F..y. -00000050 1C B4 85 ED 5F 5B 37 91 3A 8C F5 85 7E FF 00 A9 ...._[7.:...~... -> owner key - TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA - -00000060 00 2F 0B 00 00 00 00 00 - - DD E2 E1 63 E0 83 35 77 ./.........c..5w -00000070 BB B4 C9 5F 63 45 30 B5 82 28 07 FF B4 0B 8E CF ..._cE0..(...... -00000080 65 02 B9 23 1E E7 F7 0E - -data gathered on chain: -0b3338a0ab2cc841d5b014bc6a3cf756 -291874b319c9517d9bbfa9e4e9661ef9 -dd909cdfa3ba7ee7ae409bcb8c5f4a0c -7f157d8d6d982476c0088ac0997f2651 -40420f00000000000000000000000000 -00000000000000000000000000000000 -00000000000000000000000001000000 -00000000000000000000000000000000 -000100000008a13fb5c9e7bc18aef6d4 -ec2e5bca9fb0b8c329c32bdf2baae912 -5aa3191cd3 - - - 0B 33 38 A0 AB 2C C8 41 e..#.....38..,.A -00000090 D5 B0 14 BC 6A 3C F7 56 29 18 74 B3 19 C9 51 7D ....j<.V).t...Q} -000000A0 9B BF A9 E4 E9 66 1E F9 DD 90 9C DF A3 BA 7E E7 .....f........~. -000000B0 AE 40 9B CB 8C 5F 4A 0C 7F 15 7D 8D 6D 98 24 76 .@..._J...}.m.$v -000000C0 C0 08 8A C0 99 7F 26 51 40 42 0F 00 00 00 00 00 ......&Q@B...... -000000D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ -000000E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ -000000F0 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................ -00000100 00 00 00 00 00 00 00 00 00 01 00 00 00 08 A1 3F ...............? -00000110 B5 C9 E7 BC 18 AE F6 D4 EC 2E 5B CA 9F B0 B8 C3 ..........[..... -00000120 29 C3 2B DF 2B AA E9 12 5A A3 19 1C D3 00 00 00 ).+.+...Z....... -> ends the data we found + 3 bytes of padding - - - -------------------- - - -00000130 2C AB 9A D9 05 00 00 00 A5 00 00 00 00 00 00 00 ,............... - -00000140 5D 56 04 A6 82 9A F5 AF 39 6B 58 65 A0 BC F9 3F ]V......9kXe...? -00000150 B5 21 F6 F8 66 99 C8 F2 F3 21 AD F8 98 12 D6 9E .!..f....!...... -> 7HLzU2jFMGjHQm53kHJGc1WmngjfkjmptqoMYLuXnrh3 ? - -00000160 F0 1D 1F 00 00 00 00 00 89 00 00 00 00 00 00 00 ................ -00000170 06 DD F6 E1 D7 65 A1 93 D9 CB E1 46 CE EB 79 AC .....e.....F..y. -00000180 1C B4 85 ED 5F 5B 37 91 3A 8C F5 85 7E FF 00 A9 ...._[7.:...~... -00000190 00 2F 0B 00 00 00 00 00 AC D9 72 97 84 41 F8 80 ./........r..A.. -000001A0 0B 2F 4D EC 35 A3 21 39 02 8E FB 49 4E B8 A6 70 ./M.5.!9...IN..p -000001B0 F1 A1 64 48 60 F6 CA C9 0B 33 38 A0 AB 2C C8 41 ..dH`....38..,.A -000001C0 D5 B0 14 BC 6A 3C F7 56 29 18 74 B3 19 C9 51 7D ....j<.V).t...Q} -> end of data corresponding to what he has - - - -000001D0 9B BF A9 E4 E9 66 1E F9 5D 56 04 A6 82 9A F5 AF .....f..]V...... -000001E0 39 6B 58 65 A0 BC F9 3F B5 21 F6 F8 66 99 C8 F2 9kXe...?.!..f... -000001F0 F3 21 AD F8 98 12 D6 9E 00 00 00 00 00 00 00 00 .!.............. -00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ -00000210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ -00000220 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................ -00000230 00 00 00 00 00 00 00 00 00 01 00 00 00 08 A1 3F ...............? diff --git a/Dockerfile b/Dockerfile index bb4ecd56..1960cb93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,10 @@ RUN mkdir /tmp/wasmer-install && cd /tmp/wasmer-install && \ ADD /firesol /app/firesol -COPY tools/firesol/motd_generic /etc/ -COPY tools/firesol/motd_node_manager /etc/ -COPY tools/firesol/99-firehose-solana.sh /etc/profile.d/ -COPY tools/firesol/scripts/* /usr/local/bin +COPY tools/docker/motd_generic /etc/ +COPY tools/docker/motd_node_manager /etc/ +COPY tools/docker/99-firehose-solana.sh /etc/profile.d/ +COPY tools/docker/scripts/* /usr/local/bin # On SSH connection, /root/.bashrc is invoked which invokes '/root/.bash_aliases' if existing, # so we hijack the file to "execute" our specialized bash script diff --git a/accountchange/stream.go b/accountchange/stream.go deleted file mode 100644 index 4f7fce07..00000000 --- a/accountchange/stream.go +++ /dev/null @@ -1,55 +0,0 @@ -package accountchange - -import ( - "context" - "fmt" - - "github.com/streamingfast/solana-go" - "github.com/streamingfast/solana-go/rpc" - "github.com/streamingfast/solana-go/rpc/ws" -) - -type Stream struct { - wsClient *ws.Client -} - -func NewStream(wsClient *ws.Client) Stream { - return Stream{ - wsClient: wsClient, - } -} - -func (s *Stream) WatchAccount(ctx context.Context, account solana.PublicKey) (*Subscription, error) { - //todo: Replace ws subscription by a reader backed account data stream. - wsSub, err := s.wsClient.AccountSubscribe(account, rpc.CommitmentRecent) - if err != nil { - return nil, fmt.Errorf("watch account: ws sub: %w", err) - } - - //todo: move this in the reader backed account data stream. - sub := newSubscription(account, nil) - for { - wsRes, err := wsSub.Recv(ctx) - if err != nil { - sub.err <- err - } - - wsAccountResult := wsRes.(*ws.AccountResult) - wsAcc := wsAccountResult.Value.Account - - sub.stream <- &Result{ - Context: &ResultContext{ - Slot: wsAccountResult.Context.Slot, - }, - Value: &ResultValue{ - Data: wsAcc.Data, - //todo: not sure we will get those value from reader... - //Executable: wsAcc.Executable, - //Lamports: uint64(wsAcc.Lamports), - //Owner: wsAcc.Owner, - //RentEpoch: wsAcc.RentEpoch, - }, - } - } - -} diff --git a/accountchange/subscription.go b/accountchange/subscription.go deleted file mode 100644 index 9e5c7692..00000000 --- a/accountchange/subscription.go +++ /dev/null @@ -1,66 +0,0 @@ -package accountchange - -import ( - "reflect" - - "github.com/streamingfast/solana-go" -) - -type Subscription struct { - account solana.PublicKey - subID uint64 - stream chan *Result - err chan error - reflectType reflect.Type - closeFunc func(err error) - unsubscribeMethod string -} - -func newSubscription(account solana.PublicKey, closeFunc func(err error)) *Subscription { - - //todo: register to the reader backed account data stream. - - return &Subscription{ - account: account, - stream: make(chan *Result, 200), - err: make(chan error, 1), - closeFunc: closeFunc, - } -} - -type Result struct { - Context *ResultContext `json:"context"` - Value *ResultValue `json:"value"` -} - -type ResultContext struct { - Slot uint64 `json:"slot"` -} - -type ResultValue struct { - Data solana.Data `json:"data"` - //todo: not sure we will get those value from reader... - //Executable bool `json:"executable"` - //Lamports uint64 `json:"lamports"` - //Owner solana.PublicKey `json:"owner"` - //RentEpoch uint64 `json:"rentEpoch"` -} - -func (s *Subscription) Recv() (*Result, error) { - select { - case d := <-s.stream: - return d, nil - case err := <-s.err: - return nil, err - } -} - -func (s *Subscription) Unsubscribe() { - //todo: unregister to the reader backed account data stream. - s.unsubscribe(nil) -} - -func (s *Subscription) unsubscribe(err error) { - s.closeFunc(err) - -} diff --git a/battlefield/cmd.go b/battlefield/cmd.go deleted file mode 100644 index 9d75ff0b..00000000 --- a/battlefield/cmd.go +++ /dev/null @@ -1,248 +0,0 @@ -package battlefield - -import ( - "bytes" - "encoding/json" - "fmt" - "github.com/streamingfast/firehose-solana/codec" - "io" - "io/ioutil" - "os" - - "github.com/golang/protobuf/proto" - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/bstream" - "github.com/streamingfast/firehose-solana/types" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" - "github.com/streamingfast/jsonpb" - sftools "github.com/streamingfast/sf-tools" - "go.uber.org/zap" -) - -var Cmd = &cobra.Command{Use: "battlefield", Short: "Battlefield binary"} - -func init() { - Cmd.AddCommand(generateCmd) - Cmd.AddCommand(compareCmd) - compareCmd.Flags().Bool("ignore-extra-blocks", false, "This will ignore extra blocks that may be found in other file (not the reference)") -} - -var generateCmd = &cobra.Command{ - Use: "generate [path-to-firehose-batch-files]", - Short: "Generated pbsol or pbsolana blocks from firehose logs.", - Args: cobra.MinimumNArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - firelogInputFilePath := args[0] - jsonFilePath := args[1] - augmentedStack := viper.GetBool("global-augmented-mode") - batchFilesPath := "" - if augmentedStack { - if len(args) <= 2 { - return fmt.Errorf("you must specficy a firehose batch files path as a third argument when running in --augmented-mode mode") - } - batchFilesPath = args[2] - } - - zlog.Info("running battlefield generate", - zap.String("firelog_file_path", firelogInputFilePath), - zap.String("batch_file_path", batchFilesPath), - zap.String("json_file_path", jsonFilePath), - ) - - opts := []codec.ConsoleReaderOption{codec.KeepBatchFiles()} - if batchFilesPath != "" { - opts = append(opts, codec.WithBatchFilesPath(batchFilesPath)) - } - - parser := &DMParser{ - crFactory: func() (*codec.ConsoleReader, error) { - return codec.NewConsoleReader(zlog, make(chan string, 10000), opts...) - }, - blockDecoder: types.PBSolanaBlockDecoder, - blockCaster: func(i interface{}) proto.Message { - return i.(*pbsolv1.Block) - }, - } - if augmentedStack { - parser.blockDecoder = types.PBSolBlockDecoder - parser.blockCaster = func(i interface{}) proto.Message { - return i.(*pbsolv2.Block) - } - } - - blocks, err := parser.readLogs(firelogInputFilePath) - if err != nil { - return fmt.Errorf("failed to read firehose logs %q: %w", firelogInputFilePath, err) - } - zlog.Info("read all blocks from firehose logs from file", - zap.Int("block_count", len(blocks)), - zap.String("file", firelogInputFilePath), - ) - - fmt.Printf("Writing blocks to disk %q...", jsonFilePath) - if err = parser.writeBlocks(jsonFilePath, blocks); err != nil { - return fmt.Errorf("failed to write blocks: %w", err) - } - - return nil - }, -} - -var compareCmd = &cobra.Command{ - Use: "compare {reference_blocks.json} {other_blocks.json}", - Short: "Compares 2 blocks file", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - referenceBlocksFilePath := args[0] - otherBlocksFilePath := args[1] - ignoreExtraBlocks := viper.GetBool("ignore-extra-blocks") - - zlog.Info("running battlefield compare", - zap.String("reference_blocks_file_path", referenceBlocksFilePath), - zap.String("other_blocks_file_path", otherBlocksFilePath), - zap.Bool("ignore_extra_blocks", ignoreExtraBlocks), - ) - - matched, err := sftools.CompareBlockFiles(referenceBlocksFilePath, otherBlocksFilePath, func(refCnt, otherCnt []byte) (interface{}, interface{}, error) { - refStandardBlocks := []*pbsolv1.Block{} - err := json.Unmarshal(refCnt, &refStandardBlocks) - if err != nil { - zlog.Debug("failed unmarshal to array of standard blocks") - refAugmentedBlocks := []*pbsolv2.Block{} - err := json.Unmarshal(refCnt, &refAugmentedBlocks) - if err != nil { - return nil, nil, fmt.Errorf("unable to decode reference blocks in either augmented to standard blocks: %w", err) - } - - otherAugmentedBlocks := []*pbsolv2.Block{} - if err := json.Unmarshal(otherCnt, &otherAugmentedBlocks); err != nil { - return nil, nil, fmt.Errorf("unable to decode other blocks as augmented blocks: %w", err) - } - - if ignoreExtraBlocks { - otherAugmentedBlocks = otherAugmentedBlocks[:len(refAugmentedBlocks)] - } - return refAugmentedBlocks, otherAugmentedBlocks, nil - - } - - otherStandardBlocks := []*pbsolv1.Block{} - if err := json.Unmarshal(otherCnt, &otherStandardBlocks); err != nil { - return nil, nil, fmt.Errorf("unable to decode other blocks as standard blocks: %w", err) - } - - if ignoreExtraBlocks { - otherStandardBlocks = otherStandardBlocks[:len(refStandardBlocks)] - } - return refStandardBlocks, otherStandardBlocks, nil - }, zlog) - if err != nil { - return fmt.Errorf("failed to compare blocks") - } - if !matched { - os.Exit(1) - } - return nil - }, -} - -type DMParser struct { - crFactory func() (*codec.ConsoleReader, error) - blockDecoder func(blk *bstream.Block) (interface{}, error) - blockCaster func(interface{}) proto.Message -} - -func (d *DMParser) readLogs(filePath string) ([]interface{}, error) { - blocks := []interface{}{} - - file, err := os.Open(filePath) - if err != nil { - return nil, fmt.Errorf("unable to open firehose logs file %q: %w", filePath, err) - } - defer file.Close() - - reader, err := d.crFactory() - if err != nil { - return nil, fmt.Errorf("unable to create console reader: %w", err) - } - defer reader.Close() - - go reader.ProcessData(file) - var lastBlockRead bstream.BlockRef - - for { - el, err := reader.ReadBlock() - if err == io.EOF { - break - } - - if err != nil { - if lastBlockRead == nil { - return nil, fmt.Errorf("unable to read first block from file %q: %w", filePath, err) - } else { - return nil, fmt.Errorf(" unable to read block from file %q, last block read was %s: %w", filePath, lastBlockRead, err) - } - - } - - block, err := d.blockDecoder(el) - if err != nil { - return nil, fmt.Errorf("unable to to transform bstream.Block into solana pb block: %w", err) - } - lastBlockRead = el.AsRef() - blocks = append(blocks, block) - } - - return blocks, nil -} - -func (d *DMParser) writeBlocks(outputFilePath string, blocks []interface{}) error { - buffer := bytes.NewBuffer(nil) - if _, err := buffer.WriteString("[\n"); err != nil { - return fmt.Errorf("unable to write list start: %w", err) - } - - blockCount := len(blocks) - if blockCount > 0 { - lastIndex := blockCount - 1 - for i, blk := range blocks { - block := d.blockCaster(blk) - out, err := jsonpb.MarshalIndentToString(block, " ") - if err != nil { - return fmt.Errorf("unable to marshal block %q: %w", block, err) - } - - if _, err = buffer.WriteString(out); err != nil { - return fmt.Errorf("unable to write block: %w", err) - } - - if i != lastIndex { - if _, err = buffer.WriteString(",\n"); err != nil { - return fmt.Errorf("to write block delimiter: %w", err) - } - } - } - } - - if _, err := buffer.WriteString("]\n"); err != nil { - return fmt.Errorf("unable to write list end: %w", err) - } - - var unormalizedStruct []interface{} - if err := json.Unmarshal(buffer.Bytes(), &unormalizedStruct); err != nil { - return fmt.Errorf("unable to unmarshal JSON for normalization: %w", err) - } - - normalizedJSON, err := json.MarshalIndent(unormalizedStruct, "", " ") - if err != nil { - return fmt.Errorf("unable to normalize JSON: %w", err) - } - - err = ioutil.WriteFile(outputFilePath, normalizedJSON, os.ModePerm) - if err != nil { - return fmt.Errorf("unable to write file %q: %w", outputFilePath, err) - } - return nil -} diff --git a/battlefield/lib.go b/battlefield/lib.go deleted file mode 100644 index 51233872..00000000 --- a/battlefield/lib.go +++ /dev/null @@ -1,58 +0,0 @@ -package battlefield - -import ( - "fmt" - "os" - "strings" - - "github.com/lithammer/dedent" - "github.com/manifoldco/promptui" - "github.com/spf13/cobra" - "golang.org/x/crypto/ssh/terminal" -) - -type CommandOption interface { - apply(cmd *cobra.Command) -} - -type CommandOptionFunc func(cmd *cobra.Command) - -func (f CommandOptionFunc) apply(cmd *cobra.Command) { - f(cmd) -} - -type Description string - -func (d Description) apply(cmd *cobra.Command) { - cmd.Long = strings.TrimSpace(dedent.Dedent(string(d))) -} - -type BeforeAllHook func(cmd *cobra.Command) - -func (f BeforeAllHook) apply(cmd *cobra.Command) { - f(cmd) -} - -func AskConfirmation(label string, args ...interface{}) (answeredYes bool, wasAnswered bool) { - if !terminal.IsTerminal(int(os.Stdout.Fd())) { - wasAnswered = false - return - } - - prompt := promptui.Prompt{ - Label: dedent.Dedent(fmt.Sprintf(label, args...)), - IsConfirm: true, - } - - _, err := prompt.Run() - if err != nil { - // zlog.Debug("unable to aks user to see diff right now, too bad", zap.Error(err)) - wasAnswered = false - return - } - - wasAnswered = true - answeredYes = true - - return -} diff --git a/battlefield/logging.go b/battlefield/logging.go deleted file mode 100644 index 0e63c86b..00000000 --- a/battlefield/logging.go +++ /dev/null @@ -1,7 +0,0 @@ -package battlefield - -import ( - "github.com/streamingfast/logging" -) - -var zlog, tracer = logging.PackageLogger("battlefield", "github.com/streamingfast/firehose-solana/battlefield") diff --git a/bin/test.sh b/bin/test.sh deleted file mode 100755 index 3b42e39c..00000000 --- a/bin/test.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" - - -main() { - pushd "$ROOT" &> /dev/null - - while getopts "h" opt; do - case $opt in - h) usage && exit 0;; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - - set -e - - pushd types &> /dev/null - go test ./... "$@" - popd&> /dev/null - - go test ./... "$@" -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: test.sh" - echo "" - echo "Runs the Go tests in all sub-packages of this repository. Normal 'go test'" - echo "does run test just under the current Go package, sub-package are not traversed." - echo "" - echo "Options" - echo " -h Display help about this script" -} - -main "$@" \ No newline at end of file diff --git a/bt/core.go b/bt/core.go index e62e83c2..08c278c8 100644 --- a/bt/core.go +++ b/bt/core.go @@ -5,20 +5,26 @@ import ( "fmt" "time" + "github.com/streamingfast/logging" + "cloud.google.com/go/bigtable" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" "go.uber.org/zap" ) type Client struct { - bt *bigtable.Client - + bt *bigtable.Client maxConnAttempt uint64 + + logger *zap.Logger + tracer logging.Tracer } -func New(bt *bigtable.Client, maxConnectionAttempt uint64) *Client { +func New(bt *bigtable.Client, maxConnectionAttempt uint64, logger *zap.Logger, tracer logging.Tracer) *Client { return &Client{ bt: bt, + logger: logger, + tracer: tracer, maxConnAttempt: maxConnectionAttempt, } } @@ -36,7 +42,7 @@ func (r *Client) ReadBlocks( var lastSeenBlock *pbsolv1.Block var fatalError error - zlog.Info("launching firehose-solana reprocessing", + r.logger.Info("launching firehose-solana reprocessing", zap.Uint64("start_block_num", startBlockNum), zap.Uint64("stop_block_num", stopBlockNum), ) @@ -45,9 +51,9 @@ func (r *Client) ReadBlocks( for { if lastSeenBlock != nil { - resolvedStartBlock := lastSeenBlock.Num() - zlog.Debug("restarting read rows will retry last boundary", - zap.Uint64("last_seen_block", lastSeenBlock.Num()), + resolvedStartBlock := lastSeenBlock.GetFirehoseBlockNumber() + r.logger.Debug("restarting read rows will retry last boundary", + zap.Uint64("last_seen_block", lastSeenBlock.GetFirehoseBlockNumber()), zap.Uint64("resolved_block", resolvedStartBlock), ) startBlockNum = resolvedStartBlock @@ -56,7 +62,7 @@ func (r *Client) ReadBlocks( btRange := bigtable.NewRange(fmt.Sprintf("%016x", startBlockNum), "") err := table.ReadRows(ctx, btRange, func(row bigtable.Row) bool { - blk, zlogger, err := processRow(row, zlog) + blk, zlogger, err := r.processRow(row) if err != nil { fatalError = fmt.Errorf("failed to read row: %w", err) return false @@ -64,7 +70,7 @@ func (r *Client) ReadBlocks( if !seenStartBlock { if blk.Slot < startBlockNum { - zlogger.Debug("skipping blow below start block", + r.logger.Debug("skipping blow below start block", zap.Uint64("expected_block", startBlockNum), ) return true @@ -73,8 +79,8 @@ func (r *Client) ReadBlocks( } if lastSeenBlock != nil && lastSeenBlock.Blockhash == blk.Blockhash { - zlogger.Debug("skipping block already seed", - zap.Stringer("blk", blk.AsRef()), + r.logger.Debug("skipping block already seed", + zap.Object("blk", blk), ) return true } @@ -82,22 +88,22 @@ func (r *Client) ReadBlocks( if lastSeenBlock != nil && linkable && (lastSeenBlock.Blockhash != blk.PreviousBlockhash) { // Weird cases where we do not receive the next linkeable block. // we should try to reconnect - zlog.Warn("received unlikable block", - zap.Stringer("last_seen_blk", lastSeenBlock.AsRef()), - zap.Stringer("blk", blk.AsRef()), + r.logger.Warn("received unlikable block", + zap.Object("last_seen_blk", lastSeenBlock), + zap.Object("blk", blk), zap.String("blk_previous_blockhash", blk.PreviousBlockhash), ) return false } - progressLog(blk, zlogger) + r.progressLog(blk, zlogger) lastSeenBlock = blk if err := writer(blk); err != nil { fatalError = fmt.Errorf("failed to write blokc: %w", err) return false } - if stopBlockNum != 0 && blk.Num() > stopBlockNum { + if stopBlockNum != 0 && blk.GetFirehoseBlockNumber() > stopBlockNum { return false } @@ -109,31 +115,31 @@ func (r *Client) ReadBlocks( if attempts >= r.maxConnAttempt { return fmt.Errorf("error while reading rowns, reached max attempts %d: %w", attempts, err) } - zlog.Error("error white reading rows", zap.Error(err), zap.Reflect("last_seen_block", lastSeenBlock), zap.Uint64("attempts", attempts)) + r.logger.Error("error white reading rows", zap.Error(err), zap.Reflect("last_seen_block", lastSeenBlock), zap.Uint64("attempts", attempts)) continue } if fatalError != nil { msg := "no blocks senn" if lastSeenBlock != nil { - msg = fmt.Sprintf("last seen block %q", lastSeenBlock.AsRef().String()) + msg = fmt.Sprintf("last seen block %d (%s)", lastSeenBlock.GetFirehoseBlockNumber(), lastSeenBlock.GetFirehoseBlockID()) } return fmt.Errorf("read blocks finished with a fatal error, %s: %w", msg, fatalError) } opt := []zap.Field{} if lastSeenBlock != nil { - opt = append(opt, zap.Stringer("last_seen_block", lastSeenBlock.AsRef())) + opt = append(opt, zap.Object("last_seen_block", lastSeenBlock)) } - zlog.Debug("read block finished", opt...) + r.logger.Debug("read block finished", opt...) if stopBlockNum != 0 { return nil } - zlog.Debug("stop block is num will sleep for 5 seconds and retry") + r.logger.Debug("stop block is num will sleep for 5 seconds and retry") time.Sleep(5 * time.Second) } } -func progressLog(blk *pbsolv1.Block, zlogger *zap.Logger) { - if tracer.Enabled() { +func (r *Client) progressLog(blk *pbsolv1.Block, zlogger *zap.Logger) { + if r.tracer.Enabled() { zlogger.Debug("handing block", zap.Uint64("parent_slot", blk.ParentSlot), zap.String("hash", blk.Blockhash), @@ -143,7 +149,7 @@ func progressLog(blk *pbsolv1.Block, zlogger *zap.Logger) { if blk.Slot%PrintFreq == 0 { opts := []zap.Field{ zap.String("hash", blk.Blockhash), - zap.String("previous_hash", blk.PreviousID()), + zap.String("previous_hash", blk.GetFirehoseBlockParentID()), zap.Uint64("parent_slot", blk.ParentSlot), } diff --git a/bt/logging.go b/bt/logging.go deleted file mode 100644 index be43605b..00000000 --- a/bt/logging.go +++ /dev/null @@ -1,5 +0,0 @@ -package bt - -import "github.com/streamingfast/logging" - -var zlog, tracer = logging.PackageLogger("bt", "github.com/streamingfast/firehose-solana/bt") diff --git a/bt/reader.go b/bt/reader.go index 42cf67e9..a4af5c36 100644 --- a/bt/reader.go +++ b/bt/reader.go @@ -15,7 +15,7 @@ import ( "cloud.google.com/go/bigtable" "github.com/golang/protobuf/proto" "github.com/klauspost/compress/zstd" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" "go.uber.org/zap" ) @@ -38,9 +38,9 @@ func explodeRow(row bigtable.Row) (*big.Int, RowType, []byte) { return blockNum, rowType, el.Value } -func processRow(row bigtable.Row, zlogger *zap.Logger) (*pbsolv1.Block, *zap.Logger, error) { +func (r *Client) processRow(row bigtable.Row) (*pbsolv1.Block, *zap.Logger, error) { blockNum, rowType, rowCnt := explodeRow(row) - zlogger = zlog.With( + zlogger := r.logger.With( zap.Uint64("block_num", blockNum.Uint64()), zap.String("row_type", string(rowType)), zap.String("row_key", row.Key()), @@ -56,7 +56,7 @@ func processRow(row bigtable.Row, zlogger *zap.Logger) (*pbsolv1.Block, *zap.Log return nil, zlogger, fmt.Errorf("unable get decode bin with external command 'solana-bigtable-decoder' %s: %w", blockNum.String(), err) } default: - cnt, err = decompress(rowCnt) + cnt, err = r.decompress(rowCnt) if err != nil { return nil, zlogger, fmt.Errorf("unable to decompress block %s (uncompresse length %d): %w", blockNum.String(), len(rowCnt), err) } @@ -79,27 +79,27 @@ func processRow(row bigtable.Row, zlogger *zap.Logger) (*pbsolv1.Block, *zap.Log // horrible tweaks switch blk.Blockhash { case "Goi3t9JjgDkyULZbM2TzE5QqHP1fPeMcHNaXNFBCBv1v": - zlog.Warn("applying horrible tweak to block Goi3t9JjgDkyULZbM2TzE5QqHP1fPeMcHNaXNFBCBv1v") + zlogger.Warn("applying horrible tweak to block Goi3t9JjgDkyULZbM2TzE5QqHP1fPeMcHNaXNFBCBv1v") if blk.PreviousBlockhash == "11111111111111111111111111111111" { blk.PreviousBlockhash = "HQEr9qcbUVBt2okfu755FdJvJrPYTSpzzmmyeWTj5oau" } case "6UFQveZ94DUKGbcLFoyayn1QwthVfD3ZqvrM2916pHCR": - zlog.Warn("applying horrible tweak to block 63,072,071") + zlogger.Warn("applying horrible tweak to block 63,072,071") if blk.PreviousBlockhash == "11111111111111111111111111111111" { blk.PreviousBlockhash = "7cLQx2cZvyKbGoMuutXEZ3peg3D21D5qbX19T5V1XEiK" } case "Fqbm7QvCTYnToXWcCw6nbkWhMmXx2Nv91LsXBrKraB43": - zlog.Warn("applying horrible tweak to block 53,135,959") + zlogger.Warn("applying horrible tweak to block 53,135,959") if blk.PreviousBlockhash == "11111111111111111111111111111111" { blk.PreviousBlockhash = "RfXUrekgajPSb1R4CGFJWNaHTnB6p53Tzert4gouj2u" } case "ABp9G2NaPzM6kQbeyZYCYgdzL8JN9AxSSbCQG2X1K9UF": - zlog.Warn("applying horrible tweak to block 46,223,993") + zlogger.Warn("applying horrible tweak to block 46,223,993") if blk.PreviousBlockhash == "11111111111111111111111111111111" { blk.PreviousBlockhash = "9F2C7TGqUpFu6krd8vQbUv64BskrneBSgY7U2QfrGx96" } case "ByUxmGuaT7iQS9qGS8on5xHRjiHXcGxvwPPaTGZXQyz7": - zlog.Warn("applying horrible tweak to block 61,328,766") + zlogger.Warn("applying horrible tweak to block 61,328,766") if blk.PreviousBlockhash == "11111111111111111111111111111111" { blk.PreviousBlockhash = "J6rRToKMK5DQDzVLqo7ibL3snwBYtqkYnRnQ7vXoUSEc" } @@ -138,20 +138,20 @@ func externalBinToProto(in []byte, command string, args ...string) ([]byte, erro return cnt, nil } -func decompress(in []byte) (out []byte, err error) { +func (r *Client) decompress(in []byte) (out []byte, err error) { switch in[0] { case 0: - zlog.Debug("no compression found") + r.logger.Debug("no compression found") out = in[4:] case 1: - zlog.Debug("bzip2 compression") + r.logger.Debug("bzip2 compression") // bzip2 out, err = ioutil.ReadAll(bzip2.NewReader(bytes.NewBuffer(in[4:]))) if err != nil { return nil, fmt.Errorf("bzip2 decompress: %w", err) } case 2: - zlog.Debug("gzip compression") + r.logger.Debug("gzip compression") // gzip reader, err := gzip.NewReader(bytes.NewBuffer(in[4:])) if err != nil { @@ -162,7 +162,7 @@ func decompress(in []byte) (out []byte, err error) { return nil, fmt.Errorf("gzip decompress: %w", err) } case 3: - zlog.Debug("zstd compression") + r.logger.Debug("zstd compression") // zstd var dec *zstd.Decoder dec, err = zstd.NewReader(nil) diff --git a/cmd/firesol/cli/battlefield.go b/cmd/firesol/cli/battlefield.go deleted file mode 100644 index 08335b80..00000000 --- a/cmd/firesol/cli/battlefield.go +++ /dev/null @@ -1,7 +0,0 @@ -package cli - -import "github.com/streamingfast/firehose-solana/battlefield" - -func init() { - RootCmd.AddCommand(battlefield.Cmd) -} diff --git a/cmd/firesol/cli/common-flag.go b/cmd/firesol/cli/common-flag.go deleted file mode 100644 index 6844cfc1..00000000 --- a/cmd/firesol/cli/common-flag.go +++ /dev/null @@ -1,70 +0,0 @@ -package cli - -import ( - "fmt" - "strings" - - "go.uber.org/zap" - - "github.com/streamingfast/cli" - - "github.com/spf13/cobra" - "github.com/streamingfast/dlauncher/launcher" -) - -func init() { - launcher.RegisterCommonFlags = func(logger *zap.Logger, cmd *cobra.Command) error { - // Network config - cmd.Flags().String("common-network-id", NetworkID, "[COMMON] Solana network identifier known to us for pre-configured elements Used by: miner-node, reader-node") - cmd.Flags().String("common-sf-network-id", SFNetworkID, "[COMMON] StreamingFast network ID, used for some billing functions by dgraphql") - cmd.Flags().Uint64("common-first-streamable-block", 0, "[COMMON] first chain streamable block. Not genesis") - - cmd.Flags().Bool("common-blocks-cache-enabled", false, FlagDescription(` - [COMMON] Use a disk cache to store the blocks data to disk and instead of keeping it in RAM. By enabling this, block's Protobuf content, in bytes, - is kept on file system instead of RAM. This is done as soon the block is downloaded from storage. This is a tradeoff between RAM and Disk, if you - are going to serve only a handful of concurrent requests, it's suggested to keep is disabled, if you encounter heavy RAM consumption issue, specially - by the Firehose component, it's definitely a good idea to enable it and configure it properly through the other 'common-blocks-cache-...' flags. The cache is - split in two portions, one keeping N total bytes of blocks of the most recently used blocks and the other one keeping the N earliest blocks as - requested by the various consumers of the cache. - `)) - cmd.Flags().String("common-blocks-cache-dir", BlocksCacheDirectory, FlagDescription(` - [COMMON] Blocks cache directory where all the block's bytes will be cached to disk instead of being kept in RAM. - This should be a disk that persists across restarts of the Firehose component to reduce the the strain on the disk - when restarting and streams reconnects. The size of disk must at least big (with a 10% buffer) in bytes as the sum of flags' - value for 'common-blocks-cache-max-recent-entry-bytes' and 'common-blocks-cache-max-entry-by-age-bytes'. - `)) - cmd.Flags().Int("common-blocks-cache-max-recent-entry-bytes", 20*1024^3, FlagDescription(` - [COMMON] Blocks cache max size in bytes of the most recently used blocks, after the limit is reached, blocks are evicted from the cache. - `)) - cmd.Flags().Int("common-blocks-cache-max-entry-by-age-bytes", 20*1024^3, FlagDescription(` - [COMMON] Blocks cache max size in bytes of the earliest used blocks, after the limit is reached, blocks are evicted from the cache. - `)) - - // Common stores configuration flags - cmd.Flags().String("common-merged-blocks-store-url", MergedBlocksStoreURL, "[COMMON] Store URL (with prefix) where to read/write. Used by: relayer, statedb, trxdb-loader, blockmeta, search-indexer, search-live, search-forkresolver, eosws, accounthist") - cmd.Flags().String("common-one-block-store-url", OneBlockStoreURL, "[COMMON] Store URL (with prefix) to read/write one-block files. Used by: reader, merger") - cmd.Flags().String("common-forked-blocks-store-url", ForkedBlocksStoreURL, "[COMMON] Store URL (with prefix) to read/write forked block files that we want to keep") - // Service addresses - cmd.Flags().String("common-blockmeta-addr", BlockmetaServingAddr, "[COMMON]gRPC endpoint to reach the Blockmeta. Used by: search-indexer, search-router, search-live, eosws, dgraphql") - cmd.Flags().String("common-live-blocks-addr", RelayerServingAddr, "[COMMON]gRPC endpoint to get real-time blocks") - cmd.Flags().String("common-firehose-addr", FirehoseGRPCServingAddr, "[COMMON]gRPC endpoint to get firehose blocks") - - //// Authentication, metering and rate limiter plugins - cmd.Flags().String("common-auth-plugin", "null://", "[COMMON] Auth plugin URI, see streamingfast/dauth repository") - cmd.Flags().String("common-metering-plugin", "null://", "[COMMON] Metering plugin URI, see streamingfast/dmetering repository") - cmd.Flags().String("common-ratelimiter-plugin", "null://", "[COMMON] Rate Limiter plugin URI, see streamingfast/dauth repository") - - //// RPC access - cmd.Flags().String("common-rpc-endpoint", MinerNodeRPCPort, "[COMMON] RPC endpoint to use to perform Solana JSON-RPC. Used by: dgraphql") - cmd.Flags().String("common-rpc-ws-endpoint", MinerNodeRPCWSPort, "[COMMON] RPC endpoint to use to perform Solana JSON-RPC. Used by: dgraphql") - - // System Behavior - cmd.Flags().Duration("common-system-shutdown-signal-delay", 0, "[COMMON] Add a delay between receiving SIGTERM signal and shutting down apps. 'dgraphql', '*-node' will respond negatively to /healthz during this period") - - return nil - } -} - -func FlagDescription(in string, args ...interface{}) string { - return fmt.Sprintf(strings.Join(strings.Split(string(cli.Description(in)), "\n"), " "), args...) -} diff --git a/cmd/firesol/cli/constants.go b/cmd/firesol/cli/constants.go deleted file mode 100644 index 2bfce814..00000000 --- a/cmd/firesol/cli/constants.go +++ /dev/null @@ -1,39 +0,0 @@ -package cli - -const ( - MergedBlocksStoreURL string = "file://{data-dir}/storage/merged-blocks" - OneBlockStoreURL string = "file://{data-dir}/storage/one-blocks" - ForkedBlocksStoreURL string = "file://{data-dir}/storage/forked-blocks" - BlocksCacheDirectory string = "{data-dir}/blocks-cache" - NetworkID string = "development" - SFNetworkID string = "sol-local" - - APIProxyHTTPListenAddr string = ":8080" - DashboardHTTPListenAddr string = ":8081" - MetricsListenAddr string = ":9102" - - SubstreamsTier1GRPCServingAddr string = ":13044" - SubstreamsTier2GRPCServingAddr string = ":13045" - - MinerNodeHTTPServingAddr string = ":14001" - ReaderNodeHTTPServingAddr string = ":14002" - ReaderNodeGRPCAddr string = ":14003" - PeeringNodeHTTPServingAddr string = ":14004" - RelayerServingAddr string = ":14006" - MergerServingAddr string = ":14007" - BlockmetaServingAddr string = ":14009" - FirehoseGRPCServingAddr string = ":14026" - - // Solana node instance port definitions - MinerNodeRPCPort string = "14100" - MinerNodeRPCWSPort string = "14101" - MinerNodeGossipPort string = "14110" - MinerNodeP2PPortStart string = "14111" - MinerNodeP2PPortEnd string = "14199" - - ReaderNodeRPCPort string = "14200" - ReaderNodeRPCWSPort string = "14201" - ReaderNodeGossipPort string = "14210" - ReaderNodeP2PPortStart string = "14211" - ReaderNodeP2PPortEnd string = "14299" -) diff --git a/cmd/firesol/cli/firehose.go b/cmd/firesol/cli/firehose.go deleted file mode 100644 index 8a6e8b68..00000000 --- a/cmd/firesol/cli/firehose.go +++ /dev/null @@ -1,101 +0,0 @@ -package cli - -import ( - "fmt" - "net/url" - "time" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/bstream/transform" - "github.com/streamingfast/dauth" - discoveryservice "github.com/streamingfast/dgrpc/server/discovery-service" - "github.com/streamingfast/dlauncher/launcher" - "github.com/streamingfast/dmetering" - "github.com/streamingfast/dmetrics" - firehoseApp "github.com/streamingfast/firehose/app/firehose" - "github.com/streamingfast/logging" - "go.uber.org/zap" -) - -var metricset = dmetrics.NewSet() -var headBlockNumMetric = metricset.NewHeadBlockNumber("firehose") -var headTimeDriftMetric = metricset.NewHeadTimeDrift("firehose") - -func init() { - appLogger := zap.NewNop() - appLogger, _ = logging.PackageLogger("firehose", "github.com/streamingfast/firehose-solana/firehose") - - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "firehose", - Title: "Block Firehose", - Description: "Provides on-demand filtered blocks, depends on common-merged-blocks-store-url and common-live-blocks-addr", - RegisterFlags: func(cmd *cobra.Command) error { - cmd.Flags().String("firehose-grpc-listen-addr", FirehoseGRPCServingAddr, "Address on which the Firehose will listen") - cmd.Flags().String("firehose-discovery-service-url", "", "url to configure the grpc discovery service") //traffic-director://xds?vpc_network=vpc-global&use_xds_reds=true - - return nil - }, - - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - blockstreamAddr := viper.GetString("common-live-blocks-addr") - - // FIXME: That should be a shared dependencies across `EOSIO on StreamingFast` - authenticator, err := dauth.New(viper.GetString("common-auth-plugin"), appLogger) - if err != nil { - return nil, fmt.Errorf("unable to initialize dauth: %w", err) - } - - // FIXME: That should be a shared dependencies across `EOSIO on StreamingFast` it will avoid the need to call `dmetering.SetDefaultMeter` - metering, err := dmetering.New(viper.GetString("common-metering-plugin"), appLogger) - if err != nil { - return nil, fmt.Errorf("unable to initialize dmetering: %w", err) - } - dmetering.SetDefaultEmitter(metering) - - mergedBlocksStoreURL, oneBlockStoreURL, forkedBlocksStoreURL, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, fmt.Errorf("failed to get common store URL: %w", err) - } - - shutdownSignalDelay := viper.GetDuration("common-system-shutdown-signal-delay") - grcpShutdownGracePeriod := time.Duration(0) - if shutdownSignalDelay.Seconds() > 5 { - grcpShutdownGracePeriod = shutdownSignalDelay - (5 * time.Second) - } - - var registerServiceExt firehoseApp.RegisterServiceExtensionFunc - - rawServiceDiscoveryURL := viper.GetString("firehose-discovery-service-url") - var serviceDiscoveryURL *url.URL - if rawServiceDiscoveryURL != "" { - serviceDiscoveryURL, err = url.Parse(rawServiceDiscoveryURL) - if err != nil { - return nil, fmt.Errorf("unable to parse discovery service url: %w", err) - } - err = discoveryservice.Bootstrap(serviceDiscoveryURL) - if err != nil { - return nil, fmt.Errorf("unable to bootstrap discovery service: %w", err) - } - } - - registry := transform.NewRegistry() - - return firehoseApp.New(appLogger, &firehoseApp.Config{ - MergedBlocksStoreURL: mergedBlocksStoreURL, - OneBlocksStoreURL: oneBlockStoreURL, - ForkedBlocksStoreURL: forkedBlocksStoreURL, - BlockStreamAddr: blockstreamAddr, - GRPCListenAddr: viper.GetString("firehose-grpc-listen-addr"), - ServiceDiscoveryURL: serviceDiscoveryURL, - GRPCShutdownGracePeriod: grcpShutdownGracePeriod, - }, &firehoseApp.Modules{ - Authenticator: authenticator, - HeadTimeDriftMetric: headTimeDriftMetric, - HeadBlockNumberMetric: headBlockNumMetric, - TransformRegistry: registry, - RegisterServiceExtension: registerServiceExt, - }), nil - }, - }) -} diff --git a/cmd/firesol/cli/logging.go b/cmd/firesol/cli/logging.go deleted file mode 100644 index 2573f0bb..00000000 --- a/cmd/firesol/cli/logging.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2019 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "github.com/streamingfast/logging" -) - -var zlog, _ = logging.RootLogger("firesol", "github.com/streamingfast/firehose-solana/cmd/firesol/cli") diff --git a/cmd/firesol/cli/main.go b/cmd/firesol/cli/main.go deleted file mode 100644 index e209b6e4..00000000 --- a/cmd/firesol/cli/main.go +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright 2019 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "fmt" - "sort" - "strings" - "time" - - "github.com/streamingfast/firehose-solana/types" - - "github.com/spf13/viper" - "go.uber.org/zap" - - "github.com/spf13/cobra" - "github.com/streamingfast/derr" - "github.com/streamingfast/dlauncher/flags" - "github.com/streamingfast/dlauncher/launcher" - _ "github.com/streamingfast/firehose-solana/types" -) - -var RootCmd = &cobra.Command{Use: "firesol", Short: "Firehose for Solana"} -var allFlags = make(map[string]bool) // used as global because of async access to cobra init functions - -func Main() { - cobra.OnInitialize(func() { - allFlags = flags.AutoBind(RootCmd, "FIRESOL") - }) - RootCmd.PersistentFlags().Bool("augmented-mode", false, "Setups binary to support augmented protobuf blocks (pbsol.Block) which contains account changes, total ordering, etc...") - RootCmd.PersistentFlags().StringP("data-dir", "d", "./firedata", "Path to data storage for all components of the stack") - RootCmd.PersistentFlags().StringP("config-file", "c", "", "Configuration file to use. No config file loaded if set to an empty string.") - RootCmd.PersistentFlags().String("validator-path", "solana-validator", "Path to the solana binary. Defaults to the solana found in your PATH") - RootCmd.PersistentFlags().Bool("skip-checks", false, "Skip checks to ensure 'solana' binary is supported") - RootCmd.PersistentFlags().String("log-format", "text", "Format for logging to stdout. Either 'text' or 'stackdriver'") - RootCmd.PersistentFlags().Bool("log-to-file", true, "Also write logs to {data-dir}/sf.log.json ") - RootCmd.PersistentFlags().CountP("verbose", "v", "Enables verbose output (-vvvv for max verbosity)") - RootCmd.PersistentFlags().String("log-level-switcher-listen-addr", "localhost:1065", "If non-empty, the process will listen on this address for json-formatted requests to change different logger levels (see DEBUG.md for more info)") - RootCmd.PersistentFlags().String("metrics-listen-addr", MetricsListenAddr, "If non-empty, the process will listen on this address to server Prometheus metrics") - RootCmd.PersistentFlags().String("pprof-listen-addr", "localhost:6060", "If non-empty, the process will listen on this address for pprof analysis (see https://golang.org/pkg/net/http/pprof/)") - RootCmd.PersistentFlags().Duration("startup-delay", 0, "[DEV] Delay before launching actual application(s), useful to leave some time to perform maintenance operations, on persisten disks for example.") - - derr.Check("registering application flags", launcher.RegisterFlags(zlog, StartCmd)) - - var availableCmds []string - for app := range launcher.AppRegistry { - availableCmds = append(availableCmds, app) - } - sort.Strings(availableCmds) - - StartCmd.SetHelpTemplate(fmt.Sprintf(startCmdHelpTemplate, strings.Join(availableCmds, "\n "))) - StartCmd.Example = startCmdExample - - RootCmd.PersistentPreRunE = func(cmd *cobra.Command, args []string) error { - if err := setupCmd(cmd); err != nil { - return fmt.Errorf("failed to bootstrap system: %w", err) - } - - startupDelay := viper.GetDuration("global-startup-delay") - if startupDelay.Microseconds() > 0 { - zlog.Info("sleeping before starting application(s)", zap.Duration("delay", startupDelay)) - time.Sleep(startupDelay) - } - - augmentedMode := viper.GetBool("global-augmented-mode") - zlog.Info("setting up firehose block mode", zap.Bool("augmented", augmentedMode)) - if augmentedMode { - types.SetupSfSolAugmented() - } - - return nil - } - - derr.Check("Solana on StreamingFast", RootCmd.Execute()) -} - -var startCmdExample = `firesol start relayer merger --merger-grpc-serving-addr=localhost:12345 --relayer-merger-addr=localhost:12345` -var startCmdHelpTemplate = `Usage:{{if .Runnable}} - {{.UseLine}}{{end}} [all|command1 [command2...]]{{if gt (len .Aliases) 0}} - -Aliases: - {{.NameAndAliases}}{{end}}{{if .HasExample}} - -Examples: - {{.Example}}{{end}} - -Available applications: - %s{{if .HasAvailableLocalFlags}} - -Flags: -{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableInheritedFlags}} - -Global Flags: -{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}} - -Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}} - {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableSubCommands}} - -Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}} -` diff --git a/cmd/firesol/cli/merger.go b/cmd/firesol/cli/merger.go deleted file mode 100644 index 8dfac1f1..00000000 --- a/cmd/firesol/cli/merger.go +++ /dev/null @@ -1,46 +0,0 @@ -package cli - -import ( - "time" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/dlauncher/launcher" - mergerApp "github.com/streamingfast/merger/app/merger" -) - -func init() { - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "merger", - Title: "Merger", - Description: "Produces merged block files from single-block files", - RegisterFlags: func(cmd *cobra.Command) error { - cmd.Flags().Duration("merger-time-between-store-lookups", 5*time.Second, "delay between source store polling (should be higher for remote storage)") - cmd.Flags().Duration("merger-time-between-store-pruning", time.Minute, "Delay between source store pruning loops") - cmd.Flags().Uint64("merger-prune-forked-blocks-after", 50000, "Number of blocks that must pass before we delete old forks (one-block-files lingering)") - cmd.Flags().String("merger-grpc-listen-addr", MergerServingAddr, "Address to listen for incoming gRPC requests") - cmd.Flags().Uint64("merger-stop-block", 0, "if non-zero, merger will trigger shutdown when blocks have been merged up to this block") - return nil - }, - InitFunc: func(runtime *launcher.Runtime) (err error) { - return nil - }, - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - mergedBlocksStoreURL, oneBlockStoreURL, forkedBlocksStoreURL, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, err - } - - return mergerApp.New(&mergerApp.Config{ - StorageMergedBlocksFilesPath: mergedBlocksStoreURL, - StorageOneBlockFilesPath: oneBlockStoreURL, - StorageForkedBlocksFilesPath: forkedBlocksStoreURL, - GRPCListenAddr: viper.GetString("merger-grpc-listen-addr"), - PruneForkedBlocksAfter: viper.GetUint64("merger-prune-forked-blocks-after"), - StopBlock: viper.GetUint64("merger-stop-block"), - TimeBetweenPruning: viper.GetDuration("merger-time-between-store-pruning"), - TimeBetweenPolling: viper.GetDuration("merger-time-between-store-lookups"), - }), nil - }, - }) -} diff --git a/cmd/firesol/cli/node.go b/cmd/firesol/cli/node.go deleted file mode 100644 index b6789bfb..00000000 --- a/cmd/firesol/cli/node.go +++ /dev/null @@ -1,349 +0,0 @@ -package cli - -import ( - "fmt" - "io/ioutil" - "path/filepath" - "runtime" - "strconv" - "strings" - "time" - - "github.com/spf13/cobra" - - "github.com/lorenzosaino/go-sysctl" - "github.com/spf13/viper" - "github.com/streamingfast/bstream/blockstream" - "github.com/streamingfast/dlauncher/launcher" - nodeManagerSol "github.com/streamingfast/firehose-solana/node-manager" - "github.com/streamingfast/logging" - nodeManager "github.com/streamingfast/node-manager" - nodeManagerApp "github.com/streamingfast/node-manager/app/node_manager2" - "github.com/streamingfast/node-manager/metrics" - "github.com/streamingfast/node-manager/operator" - pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" - pbheadinfo "github.com/streamingfast/pbgo/sf/headinfo/v1" - "github.com/streamingfast/solana-go" - "go.uber.org/zap" - "google.golang.org/grpc" -) - -var httpListenAddrByKind = map[string]string{ - "miner": MinerNodeHTTPServingAddr, - "reader": ReaderNodeHTTPServingAddr, - "peering": PeeringNodeHTTPServingAddr, -} - -var rpcPortByKind = map[string]string{ - "miner": MinerNodeRPCPort, - "reader": ReaderNodeRPCPort, -} - -var gossipPortByKind = map[string]string{ - "miner": MinerNodeGossipPort, - "reader": ReaderNodeGossipPort, -} - -var p2pPortStartByKind = map[string]string{ - "miner": MinerNodeP2PPortStart, - "reader": ReaderNodeP2PPortStart, -} - -var p2pPortEndByKind = map[string]string{ - "miner": MinerNodeP2PPortEnd, - "reader": ReaderNodeP2PPortEnd, -} - -// flags common to reader and regular node -// app is expected to either be 'reader-node' or 'reader-bt' -func registerCommonNodeFlags(cmd *cobra.Command, app string) { - cmd.Flags().Duration(app+"-readiness-max-latency", 30*time.Second, "The health endpoint '/healthz' will return an error until the head block time is within that duration to now") - // TODO: could remove it - cmd.Flags().String(app+"-data-dir", fmt.Sprintf("{data-dir}/%s/data", "reader"), "Directory for data (node blocks and state)") - cmd.Flags().Bool(app+"-debug-firehose-logs", false, "[DEV] Prints Firehose logs to standard output, should be use for debugging purposes only") - cmd.Flags().Bool(app+"-log-to-zap", true, "Enable all node logs to transit into app's logger directly, when false, prints node logs directly to stdout") - cmd.Flags().Duration(app+"-shutdown-delay", 0, "Delay before shutting manager when sigterm received") - cmd.Flags().String(app+"-working-dir", "{data-dir}/reader/work", "Path where reader will stores its files") - cmd.Flags().Int(app+"-blocks-chan-capacity", 100, "Capacity of the channel holding blocks read by the reader. Process will shutdown superviser/geth if the channel gets over 90% of that capacity to prevent horrible consequences. Raise this number when processing tiny blocks very quickly") - cmd.Flags().String(app+"-one-block-suffix", "default", "If non-empty, the oneblock files will be appended with that suffix, so that readers can each write their file for a given block instead of competing for writes.") - cmd.Flags().Duration(app+"-startup-delay", 0, "[DEV] wait time before launching") - cmd.Flags().String(app+"-grpc-listen-addr", ReaderNodeGRPCAddr, "Address to listen for incoming gRPC requests") - cmd.Flags().String(app+"-manager-listen-addr", httpListenAddrByKind["reader"], "Solana node manager HTTP address when operational command can be send to control the node") -} - -func nodeFactoryFunc(app string, appLogger *zap.Logger, appTracer logging.Tracer, nodeLogger *zap.Logger) func(*launcher.Runtime) (launcher.App, error) { - return func(runtime *launcher.Runtime) (launcher.App, error) { - if err := setupNodeSysctl(appLogger); err != nil { - return nil, fmt.Errorf("systcl configuration for %s failed: %w", app, err) - } - - dataDir := runtime.AbsDataDir - args := []string{} - - rpcPort := viper.GetString(app + "-rpc-port") - if rpcPort != "" { - args = append(args, "--rpc-port", rpcPort) - if viper.GetBool(app + "-rpc-enable-debug-apis") { - args = append(args, - "--enable-rpc-exit", - "--enable-rpc-set-log-filter", - // FIXME: Not really a debug stuff, but usefull to have there for easier developer work - "--enable-rpc-transaction-history", - ) - } - } - - network := viper.GetString(app + "-network") - startupDelay := viper.GetDuration(app + "-startup-delay") - (*appLogger).Info("configuring node for syncing", zap.String("network", network)) - args = append(args, "--limit-ledger-size") - if network == "development" { - (*appLogger).Info("configuring node for development syncing") - // FIXME: What a bummer, connection refused on cluster endpoint simply terminates the process! - // It means that we will need to implement something in the manager to track those kind - // of error and restart the manager manually! - // - // For now in development, let 15s for miner app to properly start. - startupDelay = 5 * time.Second - - minerPublicKey, err := readPublicKeyFromConfigFile("miner", "identity.json") - if err != nil { - return nil, fmt.Errorf("unable to read miner public key: %w", err) - } - - minerGenesisHash, err := readConfigFile("miner", "genesis.hash") - if err != nil { - return nil, fmt.Errorf("unable to read miner genesis hash: %w", err) - } - - minerGenesisShred, err := readConfigFile("miner", "genesis.shred") - if err != nil { - return nil, fmt.Errorf("unable to read miner genesis shred: %w", err) - } - - args = append(args, - "--entrypoint", "127.0.0.1:"+viper.GetString("miner-node-gossip-port"), - "--trusted-validator", minerPublicKey.String(), - - // FIXME: In development, how could we actually read this data from somewhere? When bootstrap data is available, we - // could actually read from it. Otherwise, the init phase would have generated something, what do we do - // in this case? Maybe always generate .hash and .shred file just like in battlefield ... - "--expected-genesis-hash", minerGenesisHash, - "--expected-shred-version", minerGenesisShred, - ) - } else if network == "mainnet-beta" { - args = append(args) - - } else if network == "testnet" { - args = append(args, - "--entrypoint", "entrypoint.testnet.solana.com:8001", - "--trusted-validator", "5D1fNXzvv5NjV1ysLjirC4WY92RNsVH18vjmcszZd8on", - "--trusted-validator", "ta1Uvfb7W5BRPrdGnhP9RmeCGKzBySGM1hTE4rBRy6T", - "--trusted-validator", "Ft5fbkqNa76vnsjYNwjDZUXoTWpP7VYm3mtsaQckQADN", - "--trusted-validator", "9QxCLckBiJc783jnMvXZubK4wH86Eqqvashtrwvcsgkv", - "--expected-genesis-hash", "4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY", - ) - } else if network == "devnet" { - args = append(args, - "--entrypoint", "entrypoint.devnet.solana.com:8001", - "--trusted-validator", "dv1LfzJvDF7S1fBKpFgKoKXK5yoSosmkAdfbxBo1GqJ", - "--expected-genesis-hash", "EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG", - ) - } else if network == "custom" { - (*appLogger).Info("configuring node for custom syncing, you are expected to provide the required arguments through the '" + app + "-arguments' flag") - } else { - return nil, fmt.Errorf(`unkown network %q, valid networks are "development", "mainnet-beta", "testnet", "devnet", "custom"`, network) - } - - if providedArgument := viper.GetString(app + "-arguments"); providedArgument != "" { - if strings.HasPrefix(providedArgument, "+") { - (*appLogger).Info("appending provided arguments to default", zap.String("provided_arguments", providedArgument)) - args = append(args, strings.Split(strings.TrimLeft(providedArgument, "+"), " ")...) - } else { - (*appLogger).Info("overriding default arguments with provided arguments", zap.String("provided_arguments", providedArgument)) - args = strings.Split(providedArgument, " ") - } - } - - headBlockTimeDrift := metrics.NewHeadBlockTimeDrift(app) - headBlockNumber := metrics.NewHeadBlockNumber(app) - appReadiness := metrics.NewAppReadiness(app) - metricsAndReadinessManager := nodeManager.NewMetricsAndReadinessManager( - headBlockTimeDrift, - headBlockNumber, - appReadiness, - viper.GetDuration(app+"-readiness-max-latency"), - ) - - solanaValidator := viper.GetString("global-validator-path") - superviser, err := nodeManagerSol.NewSuperviser( - solanaValidator, - appLogger, - nodeLogger, - &nodeManagerSol.Options{ - BinaryPath: solanaValidator, - Arguments: args, - DataDirPath: MustReplaceDataDir(dataDir, viper.GetString(app+"-data-dir")), - DebugFirehoseLogs: viper.GetBool(app + "-debug-firehose-logs"), - LogToZap: viper.GetBool(app + "-log-to-zap"), - HeadBlockUpdateFunc: metricsAndReadinessManager.UpdateHeadBlock, - }) - if err != nil { - return nil, fmt.Errorf("unable to create chain superviser: %w", err) - } - var bootstrapper operator.Bootstrapper - bootstrapDataURL := viper.GetString(app + "-bootstrap-data-url") - - if bootstrapDataURL != "" { - bootstrapper = nodeManagerSol.NewBootstrapper(bootstrapDataURL, dataDir, appLogger) - } - - chainOperator, err := operator.New( - appLogger, - superviser, - metricsAndReadinessManager, - &operator.Options{ - ShutdownDelay: viper.GetDuration(app + "-shutdown-delay"), - EnableSupervisorMonitoring: true, - Bootstrapper: bootstrapper, - }, - ) - if err != nil { - return nil, fmt.Errorf("unable to create chain operator: %w", err) - } - - zlog.Info("preparing reader plugin") - _, oneBlockStoreURL, _, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, fmt.Errorf("unable to get common block store: %w", err) - } - - blockStreamServer := blockstream.NewUnmanagedServer(blockstream.ServerOptionWithLogger(appLogger)) - workingDir := MustReplaceDataDir(dataDir, viper.GetString(app+"-working-dir")) - batchStartBlockNum := viper.GetUint64(app + "-start-block-num") - batchStopBlockNum := viper.GetUint64(app + "-stop-block-num") - blocksChanCapacity := viper.GetInt(app + "-blocks-chan-capacity") - oneBlockFileSuffix := viper.GetString(app + "-one-block-suffix") - batchFilePath := viper.GetString("reader-node-firehose-batch-files-path") - purgeAccountChanges := viper.GetBool("reader-node-purge-account-data") - consoleReaderFactory := getConsoleReaderFactory(appLogger, batchFilePath, purgeAccountChanges) - readerPlugin, err := getReaderLogPlugin( - blockStreamServer, - oneBlockStoreURL, - workingDir, - batchStartBlockNum, - batchStopBlockNum, - blocksChanCapacity, - oneBlockFileSuffix, - chainOperator.Shutdown, - consoleReaderFactory, - metricsAndReadinessManager, - appLogger, - appTracer, - ) - if err != nil { - return nil, fmt.Errorf("new reader plugin: %w", err) - } - - superviser.RegisterLogPlugin(readerPlugin) - return nodeManagerApp.New(&nodeManagerApp.Config{ - HTTPAddr: viper.GetString(app + "-manager-listen-addr"), - GRPCAddr: viper.GetString(app + "-grpc-listen-addr"), - StartupDelay: startupDelay, - }, &nodeManagerApp.Modules{ - Operator: chainOperator, - MindreaderPlugin: readerPlugin, - MetricsAndReadinessManager: metricsAndReadinessManager, - RegisterGRPCService: func(server grpc.ServiceRegistrar) error { - pbheadinfo.RegisterHeadInfoServer(server, blockStreamServer) - pbbstream.RegisterBlockStreamServer(server, blockStreamServer) - return nil - }, - }, appLogger), nil - } -} - -func readPublicKeyFromConfigFile(kind string, file string) (out solana.PublicKey, err error) { - privateKeyFile, err := getConfigFilePath(kind, file) - if err != nil { - return out, fmt.Errorf("config file: %w", err) - } - - privateKey, err := solana.PrivateKeyFromSolanaKeygenFile(privateKeyFile) - if err != nil { - return out, fmt.Errorf("read private key file %q: %w", privateKeyFile, err) - } - - return privateKey.PublicKey(), nil -} - -func getConfigFilePath(kind string, file string) (string, error) { - configValue := viper.GetString(kind + "-node-config-dir") - configDir, err := filepath.Abs(configValue) - if err != nil { - return "", fmt.Errorf("invalid config directory %q: %w", configValue, err) - } - - return filepath.Join(configDir, file), nil -} - -func getDataFilePath(runtime *launcher.Runtime, kind string, file string) (string, error) { - configValue := MustReplaceDataDir(runtime.AbsDataDir, viper.GetString(kind+"-node-data-dir")) - dataDir, err := filepath.Abs(configValue) - if err != nil { - return "", fmt.Errorf("invalid data directory %q: %w", configValue, err) - } - - return filepath.Join(dataDir, file), nil -} - -func readConfigFile(kind string, file string) (string, error) { - configFile, err := getConfigFilePath(kind, file) - if err != nil { - return "", fmt.Errorf("config file: %w", err) - } - - out, err := ioutil.ReadFile(configFile) - if err != nil { - return "", fmt.Errorf("read file: %w", err) - } - - if len(out) == 0 { - return "", nil - } - - return string(out), nil -} - -func getExtraArguments(kind string) (out []string) { - extraArguments := viper.GetString(kind + "-node-extra-arguments") - if extraArguments != "" { - for _, arg := range strings.Split(extraArguments, " ") { - out = append(out, arg) - } - } - return -} - -func setupNodeSysctl(logger *zap.Logger) error { - if runtime.GOOS == "darwin" { - logger.Debug("skipping sysctl vm.max_map_count checks for Darwin OSs (Mac OS X)") - return nil - } - - out, err := sysctl.Get("vm.max_map_count") - if err != nil { - return fmt.Errorf("can't retrieve value for vm.max_map_count sysctl: %w", err) - } - - val, err := strconv.Atoi(out) - if err != nil { - return fmt.Errorf("can't convert value %q of vm.max_map_count: %w", out, err) - } - - if val < 500000 { - return fmt.Errorf("vm.max_map_count too low, set it to at least 500000 (sysctl -w vm.max_map_count=500000)") - } - - return nil -} diff --git a/cmd/firesol/cli/reader-bt.go b/cmd/firesol/cli/reader-bt.go deleted file mode 100644 index cf1d23b0..00000000 --- a/cmd/firesol/cli/reader-bt.go +++ /dev/null @@ -1,222 +0,0 @@ -package cli - -import ( - "context" - "errors" - "fmt" - "strconv" - - "github.com/streamingfast/dstore" - "go.uber.org/zap" - - "github.com/spf13/viper" - "github.com/streamingfast/bstream/blockstream" - nodeManagerSol "github.com/streamingfast/firehose-solana/node-manager" - nodeManager "github.com/streamingfast/node-manager" - nodeManagerApp "github.com/streamingfast/node-manager/app/node_manager2" - "github.com/streamingfast/node-manager/metrics" - "github.com/streamingfast/node-manager/operator" - pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" - pbheadinfo "github.com/streamingfast/pbgo/sf/headinfo/v1" - "google.golang.org/grpc" - - "github.com/spf13/cobra" - "github.com/streamingfast/dlauncher/launcher" - "github.com/streamingfast/logging" -) - -func init() { - appLogger, appTracer := logging.PackageLogger("reader", fmt.Sprintf("github.com/streamingfast/firehose-solana/reader-bt")) - nodeLogger, _ := logging.PackageLogger("node", fmt.Sprintf("github.com/streamingfast/firehose-solana/reader/bigtable")) - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "reader-bt", - Title: "Reader Node (bt)", - Description: "Solana bigtable reader node with built-in operational manager", - RegisterFlags: func(cmd *cobra.Command) error { - registerCommonNodeFlags(cmd, "reader-bt") - cmd.Flags().String("reader-bt-project-id", "", "Solana Bigtable Project ID") - cmd.Flags().String("reader-bt-instance-id", "", "Solana Bigtable Instance ID") - cmd.Flags().String("reader-bt-path", "firesol", "command that will be launched by the node manager") - return nil - }, - InitFunc: func(runtime *launcher.Runtime) error { - return nil - }, - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - app := "reader-bt" - dataDir := runtime.AbsDataDir - - mergedBlocksStoreURL, oneBlockStoreURL, _, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, fmt.Errorf("unable to get common block store: %w", err) - } - - mergedBlocksStore, err := dstore.NewDBinStore(mergedBlocksStoreURL) - if err != nil { - return nil, fmt.Errorf("unable to create merged blocks store at path %q: %w", mergedBlocksStoreURL, err) - } - - providedStartBlock := viper.GetUint64("common-first-streamable-block") - btProjectID := viper.GetString(app + "-project-id") - btInstanceID := viper.GetString(app + "-instance-id") - startBlockNum := resolveStartBlockNum(context.Background(), providedStartBlock, mergedBlocksStore) - stopBlockNum := uint64(0) - (*appLogger).Info("resolving start block", - zap.Uint64("provided_start_block_num", providedStartBlock), - zap.String("merged_block_store_url", mergedBlocksStoreURL), - zap.Uint64("resolved_start_block_num", startBlockNum), - ) - - // resolve start block based on store - - (*appLogger).Info("configuring bigtable readers for syncing", - zap.String("bt_project_id", btProjectID), - zap.String("bt_instance_id", btInstanceID), - zap.Uint64("start_block_num", startBlockNum), - zap.Uint64("stop_block_num", stopBlockNum), - ) - - args := []string{ - "tools", - "bt", - "blocks", - "--bt-project", - btProjectID, - "--bt-instance", - btInstanceID, - fmt.Sprintf("%d", startBlockNum), - fmt.Sprintf("%d", stopBlockNum), - "--firehose-enabled", - "--linkable", - } - - headBlockTimeDrift := metrics.NewHeadBlockTimeDrift(app) - headBlockNumber := metrics.NewHeadBlockNumber(app) - appReadiness := metrics.NewAppReadiness(app) - metricsAndReadinessManager := nodeManager.NewMetricsAndReadinessManager( - headBlockTimeDrift, - headBlockNumber, - appReadiness, - viper.GetDuration(app+"-readiness-max-latency"), - ) - - nodePath := viper.GetString(app + "-path") - superviser, err := nodeManagerSol.NewSuperviser( - nodePath, - appLogger, - nodeLogger, - &nodeManagerSol.Options{ - BinaryPath: nodePath, - Arguments: args, - DataDirPath: MustReplaceDataDir(dataDir, viper.GetString(app+"-data-dir")), - DebugFirehoseLogs: viper.GetBool(app + "-debug-firehose-logs"), - LogToZap: viper.GetBool(app + "-log-to-zap"), - HeadBlockUpdateFunc: metricsAndReadinessManager.UpdateHeadBlock, - }) - if err != nil { - return nil, fmt.Errorf("unable to create chain superviser: %w", err) - } - - chainOperator, err := operator.New( - appLogger, - superviser, - metricsAndReadinessManager, - &operator.Options{ - ShutdownDelay: viper.GetDuration(app + "-shutdown-delay"), - EnableSupervisorMonitoring: true, - }, - ) - if err != nil { - return nil, fmt.Errorf("unable to create chain operator: %w", err) - } - - zlog.Info("preparing reader plugin") - blockStreamServer := blockstream.NewUnmanagedServer(blockstream.ServerOptionWithLogger(appLogger)) - workingDir := MustReplaceDataDir(dataDir, viper.GetString(app+"-working-dir")) - blocksChanCapacity := viper.GetInt(app + "-blocks-chan-capacity") - oneBlockFileSuffix := viper.GetString(app + "-one-block-suffix") - consoleReaderFactory := getBigtableConsoleReaderFactory(appLogger) - readerPlugin, err := getReaderLogPlugin( - blockStreamServer, - oneBlockStoreURL, - workingDir, - startBlockNum, - stopBlockNum, - blocksChanCapacity, - oneBlockFileSuffix, - chainOperator.Shutdown, - consoleReaderFactory, - metricsAndReadinessManager, - appLogger, - appTracer, - ) - if err != nil { - return nil, fmt.Errorf("new reader plugin: %w", err) - } - - superviser.RegisterLogPlugin(readerPlugin) - startupDelay := viper.GetDuration(app + "-startup-delay") - return nodeManagerApp.New(&nodeManagerApp.Config{ - HTTPAddr: viper.GetString(app + "-manager-listen-addr"), - GRPCAddr: viper.GetString(app + "-grpc-listen-addr"), - StartupDelay: startupDelay, - }, &nodeManagerApp.Modules{ - Operator: chainOperator, - MindreaderPlugin: readerPlugin, - MetricsAndReadinessManager: metricsAndReadinessManager, - RegisterGRPCService: func(server grpc.ServiceRegistrar) error { - pbheadinfo.RegisterHeadInfoServer(server, blockStreamServer) - pbbstream.RegisterBlockStreamServer(server, blockStreamServer) - return nil - }, - }, appLogger), nil - }, - }) -} - -func resolveStartBlockNum(ctx context.Context, start uint64, store dstore.Store) uint64 { - errDone := errors.New("done") - var seenStart *uint64 - - err := store.WalkFrom(ctx, "", fmt.Sprintf("%010d", start), func(filename string) error { - num, err := strconv.ParseUint(filename, 10, 64) - if err != nil { - return err - } - - if num < start { // user has decided to start its merger in the 'future' - return nil - } - - if num == start { - seenStart = &num - return nil - } - - // num > start - if seenStart == nil { - return errDone // first block after a hole - } - - // increment by 100 - if num == *seenStart+100 { - seenStart = &num - return nil - } - - return errDone - }) - - if err != nil && !errors.Is(err, errDone) { - zlog.Error("got error walking store", zap.Error(err)) - return start - } - - switch { - case seenStart == nil: - return start // nothing was found - default: - return *seenStart + 100 - } - -} diff --git a/cmd/firesol/cli/reader-node-stdin.go b/cmd/firesol/cli/reader-node-stdin.go deleted file mode 100644 index 8107594b..00000000 --- a/cmd/firesol/cli/reader-node-stdin.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2021 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "fmt" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/dlauncher/launcher" - "github.com/streamingfast/logging" - nodeManager "github.com/streamingfast/node-manager" - nodeReaderStdinApp "github.com/streamingfast/node-manager/app/node_reader_stdin" - "github.com/streamingfast/node-manager/metrics" -) - -func init() { - appLogger, appTracer := logging.PackageLogger("reader-node-stdin", "github.com/streamingfast/sf-ethereum/mindreader-node-stdin") - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "reader-node-stdin", - Title: "Reader Node (stdin)", - Description: "Blocks reading node, unmanaged, reads Firehose logs from standard input", - RegisterFlags: func(cmd *cobra.Command) error { - return nil - }, - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - dataDir := runtime.AbsDataDir - - _, oneBlockStoreURL, _, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, fmt.Errorf("unable to get common block store: %w", err) - } - - consoleReaderFactory := getConsoleReaderFactory( - appLogger, - viper.GetString("reader-node-firehose-batch-files-path"), - viper.GetBool("reader-node-purge-account-data"), - ) - metricID := "reader-node-stdin" - headBlockTimeDrift := metrics.NewHeadBlockTimeDrift(metricID) - headBlockNumber := metrics.NewHeadBlockNumber(metricID) - appReadiness := metrics.NewAppReadiness(metricID) - metricsAndReadinessManager := nodeManager.NewMetricsAndReadinessManager( - headBlockTimeDrift, - headBlockNumber, - appReadiness, - viper.GetDuration("reader-node-readiness-max-latency"), - ) - - return nodeReaderStdinApp.New(&nodeReaderStdinApp.Config{ - GRPCAddr: viper.GetString("reader-node-grpc-listen-addr"), - OneBlocksStoreURL: oneBlockStoreURL, - OneBlockSuffix: viper.GetString("reader-node-one-block-suffix"), - MindReadBlocksChanCapacity: viper.GetInt("reader-node-blocks-chan-capacity"), - StartBlockNum: viper.GetUint64("reader-node-start-block-num"), - StopBlockNum: viper.GetUint64("reader-node-stop-block-num"), - WorkingDir: MustReplaceDataDir(dataDir, viper.GetString("reader-node-working-dir")), - LogToZap: viper.GetBool("reader-node-log-to-zap"), - DebugDeepMind: viper.GetBool("reader-node-debug-firehose-logs"), - }, &nodeReaderStdinApp.Modules{ - ConsoleReaderFactory: consoleReaderFactory, - MetricsAndReadinessManager: metricsAndReadinessManager, - }, appLogger, appTracer), nil - }, - }) -} diff --git a/cmd/firesol/cli/reader-node.go b/cmd/firesol/cli/reader-node.go deleted file mode 100644 index 623289a6..00000000 --- a/cmd/firesol/cli/reader-node.go +++ /dev/null @@ -1,128 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/streamingfast/firehose-solana/codec" - - "github.com/streamingfast/logging" - - "github.com/streamingfast/dlauncher/launcher" - - "github.com/streamingfast/solana-go" - - "github.com/spf13/cobra" - "github.com/streamingfast/bstream/blockstream" - nodeManager "github.com/streamingfast/node-manager" - "github.com/streamingfast/node-manager/mindreader" - "go.uber.org/zap" -) - -func init() { - - appLogger, appTracer := logging.PackageLogger("reader", fmt.Sprintf("github.com/streamingfast/firehose-solana/reader")) - nodeLogger, _ := logging.PackageLogger("node", fmt.Sprintf("github.com/streamingfast/firehose-solana/reader/node")) - - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "reader-node", - Title: fmt.Sprintf("Solana Reader"), - Description: fmt.Sprintf("Solana %s node with built-in operational manager", "reader"), - RegisterFlags: func(cmd *cobra.Command) error { - registerCommonNodeFlags(cmd, "reader-node") - cmd.Flags().String("reader-node-network", "development", "Which network this node refers to, 'development' ") - cmd.Flags().String("reader-node-config-dir", "./reader", "Directory for config files") - cmd.Flags().String("reader-node-rpc-port", rpcPortByKind["reader"], "HTTP listening port of Solana node, setting this to empty string disable RPC endpoint for the node") - cmd.Flags().String("reader-node-gossip-port", gossipPortByKind["reader"], "TCP gossip listening port of Solana node") - cmd.Flags().String("reader-node-p2p-port-start", p2pPortStartByKind["reader"], "P2P dynamic range start listening port of Solana node") - cmd.Flags().String("reader-node-p2p-port-end", p2pPortEndByKind["reader"], "P2P dynamic range end of Solana node") - cmd.Flags().String("reader-node-arguments", "", "If not empty, overrides the list of default node arguments (computed from node type and role). Start with '+' to append to default args instead of replacing. You can use the {public-ip} token, that will be matched against space-separated hostname:IP pairs in PUBLIC_IPS env var, taking hostname from HOSTNAME env var.") - cmd.Flags().String("reader-node-bootstrap-data-url", "", "URL where to find bootstrapping data for this node, the URL must point to a `.tar.zst` archive containing the full data directory to bootstrap from") - cmd.Flags().Bool("reader-node-rpc-enable-debug-apis", false, "[DEV] Enable some of the Solana validator RPC APIs that can be used for debugging purposes") - cmd.Flags().String("reader-node-restore-snapshot-name", "", "If non-empty, the node will be restored from that snapshot when it starts.") - cmd.Flags().Duration("reader-node-auto-snapshot-period", 0, "If non-zero, the node manager will check on disk at this period interval to see if the underlying node has produced a snapshot. Use in conjunction with --snapshot-interval-slots in the --reader-node-arguments. Specify 1m, 2m...") - cmd.Flags().String("reader-node-local-snapshot-folder", "", "where solana snapshots are stored by the node") - cmd.Flags().Int("reader-node-number-of-snapshots-to-keep", 0, "if non-zero, after a successful snapshot, older snapshots will be deleted to only keep that number of recent snapshots") - cmd.Flags().String("reader-node-genesis-url", "", "url to genesis.tar.bz2") - cmd.Flags().Bool("reader-node-start-failure-handler", true, "Enables the startup function handler, that gets called if reader fails on startup") - cmd.Flags().Bool("reader-node-fail-on-non-contiguous-block", false, "Enables the Continuity Checker that stops (or refuses to start) the superviser if a block was missed. It has a significant performance cost on reprocessing large segments of blocks") - cmd.Flags().Uint("reader-node-start-block-num", 0, "[BATCH] Blocks that were produced with smaller block number then the given block num are skipped") - cmd.Flags().Uint("reader-node-stop-block-num", 0, "[BATCH] Shutdown when we the following 'stop-block-num' has been reached, inclusively.") - cmd.Flags().Bool("reader-node-purge-account-data", false, "When flag enabled, the reader will purge the account changes from the blocks before storing it") - cmd.Flags().String("reader-node-firehose-batch-files-path", "", "Path where Firehose enabled nodes will write the firelog batch files, and where the console log will read /tmp/") - return nil - }, - InitFunc: func(runtime *launcher.Runtime) error { - return nil - }, - FactoryFunc: nodeFactoryFunc("reader-node", appLogger, appTracer, nodeLogger), - }) - -} - -func getConsoleReaderFactory(appLogger *zap.Logger, batchFilePath string, purgeAccountChanges bool) mindreader.ConsolerReaderFactory { - return func(lines chan string) (mindreader.ConsolerReader, error) { - zlog.Debug("setting up console reader", - zap.String("batch_file_path", batchFilePath), - zap.Bool("purge_account", purgeAccountChanges), - ) - opts := []codec.ConsoleReaderOption{ - codec.IgnoreAccountChangesForProgramID(solana.MustPublicKeyFromBase58("Vote111111111111111111111111111111111111111")), - } - if purgeAccountChanges { - opts = append(opts, codec.IgnoreAllAccountChanges()) - } - if batchFilePath != "" { - opts = append(opts, codec.WithBatchFilesPath(batchFilePath)) - - } - r, err := codec.NewConsoleReader(appLogger, lines, opts...) - if err != nil { - return nil, fmt.Errorf("initiating console reader: %w", err) - } - return r, nil - } -} - -func getBigtableConsoleReaderFactory(appLogger *zap.Logger) mindreader.ConsolerReaderFactory { - return func(lines chan string) (mindreader.ConsolerReader, error) { - zlog.Debug("setting up console reader bigtable") - r, err := codec.NewBigtableConsoleReader(appLogger, lines) - if err != nil { - return nil, fmt.Errorf("initiating console reader: %w", err) - } - return r, nil - } -} - -func getReaderLogPlugin( - blockStreamServer *blockstream.Server, - oneBlockStoreURL string, - workingDir string, - batchStartBlockNum uint64, - batchStopBlockNum uint64, - blocksChanCapacity int, - oneBlockFileSuffix string, - operatorShutdownFunc func(error), - consoleReaderFactory mindreader.ConsolerReaderFactory, - metricsAndReadinessManager *nodeManager.MetricsAndReadinessManager, - appLogger *zap.Logger, - appTracer logging.Tracer, -) (*mindreader.MindReaderPlugin, error) { - - return mindreader.NewMindReaderPlugin( - oneBlockStoreURL, - workingDir, - consoleReaderFactory, - batchStartBlockNum, - batchStopBlockNum, - blocksChanCapacity, - metricsAndReadinessManager.UpdateHeadBlock, - func(error) { - operatorShutdownFunc(nil) - }, - oneBlockFileSuffix, - blockStreamServer, - appLogger, - appTracer, - ) -} diff --git a/cmd/firesol/cli/relayer.go b/cmd/firesol/cli/relayer.go deleted file mode 100644 index e7aa1910..00000000 --- a/cmd/firesol/cli/relayer.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "fmt" - "time" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/dlauncher/launcher" - relayerApp "github.com/streamingfast/relayer/app/relayer" -) - -func init() { - // Relayer - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "relayer", - Title: "Relayer", - Description: "Serves blocks as a stream, with a buffer", - RegisterFlags: func(cmd *cobra.Command) error { - cmd.Flags().String("relayer-grpc-listen-addr", RelayerServingAddr, "Address to listen for incoming gRPC requests") - cmd.Flags().StringSlice("relayer-source", []string{ReaderNodeGRPCAddr}, "List of Blockstream sources (readers) to connect to for live block feeds (repeat flag as needed)") - cmd.Flags().Duration("relayer-max-source-latency", 10*time.Minute, "Max latency tolerated to connect to a source") - - return nil - }, - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - _, oneBlocksStoreURL, _, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, fmt.Errorf("failed to get common block store URL: %w", err) - } - - return relayerApp.New(&relayerApp.Config{ - SourcesAddr: viper.GetStringSlice("relayer-source"), - OneBlocksURL: oneBlocksStoreURL, - GRPCListenAddr: viper.GetString("relayer-grpc-listen-addr"), - MaxSourceLatency: viper.GetDuration("relayer-max-source-latency"), - }), nil - }, - }) -} diff --git a/cmd/firesol/cli/setup.go b/cmd/firesol/cli/setup.go deleted file mode 100644 index 481828eb..00000000 --- a/cmd/firesol/cli/setup.go +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2019 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "fmt" - _ "net/http/pprof" - "os" - "strings" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/dlauncher/launcher" - "go.uber.org/zap" -) - -func setupCmd(cmd *cobra.Command) error { - cmd.SilenceUsage = true - - cmds := extractCmd(cmd) - subCommand := cmds[len(cmds)-1] - - forceConfigOn := []*cobra.Command{StartCmd} - logToFileOn := []*cobra.Command{StartCmd} - - if configFile := viper.GetString("global-config-file"); configFile != "" { - exists, err := fileExists(configFile) - if err != nil { - return fmt.Errorf("unable to check if config file exists: %w", err) - } - - if !exists && isMatchingCommand(cmds, forceConfigOn) { - return fmt.Errorf("config file %q not found. Did you 'firesol init'?", configFile) - } - - if exists { - if err := launcher.LoadConfigFile(configFile); err != nil { - return fmt.Errorf("unable to read config file %q: %w", configFile, err) - } - } - } - - subconf := launcher.Config[subCommand] - if subconf != nil { - for k, v := range subconf.Flags { - validFlag := false - if _, ok := allFlags["global-"+k]; ok { - viper.SetDefault("global-"+k, v) - validFlag = true - } - if _, ok := allFlags[k]; ok { - viper.SetDefault(k, v) - validFlag = true - } - if !validFlag { - return fmt.Errorf("invalid flag %s in config file under command %s", k, subCommand) - } - } - } - - launcher.SetupLogger(zlog, &launcher.LoggingOptions{ - WorkingDir: viper.GetString("global-data-dir"), - Verbosity: viper.GetInt("global-verbose"), - LogFormat: viper.GetString("global-log-format"), - LogToFile: isMatchingCommand(cmds, logToFileOn) && viper.GetBool("global-log-to-file"), - LogListenAddr: viper.GetString("global-log-level-switcher-listen-addr"), - LogToStderr: true, - }) - launcher.SetupTracing("firehose-solana") - launcher.SetupAnalyticsMetrics(zlog, viper.GetString("global-metrics-listen-addr"), viper.GetString("global-pprof-listen-addr")) - - if err := launcher.SetMaxOpenFilesLimit(zlog, 1000000, 24576); err != nil { - zlog.Info("cannot set max open files limit", zap.Error(err)) - } - - return nil -} - -func isMatchingCommand(cmds []string, runSetupOn []*cobra.Command) bool { - for _, c := range runSetupOn { - baseChunks := extractCmd(c) - if strings.Join(cmds, ".") == strings.Join(baseChunks, ".") { - return true - } - } - return false -} - -func extractCmd(cmd *cobra.Command) []string { - cmds := []string{} - for { - if cmd == nil { - break - } - cmds = append(cmds, cmd.Use) - cmd = cmd.Parent() - } - - out := make([]string, len(cmds)) - - for itr, v := range cmds { - newIndex := len(cmds) - 1 - itr - out[newIndex] = v - } - return out -} - -func mustFileExists(file string) bool { - exists, err := fileExists(file) - if err != nil { - panic(fmt.Errorf("unable to check if file %q exists or not: %w", file, err)) - } - - return exists -} - -func fileExists(file string) (bool, error) { - stat, err := os.Stat(file) - if os.IsNotExist(err) { - return false, nil - } - - if err != nil { - return false, err - } - - return !stat.IsDir(), nil -} diff --git a/cmd/firesol/cli/setup_test.go b/cmd/firesol/cli/setup_test.go deleted file mode 100644 index 874358dd..00000000 --- a/cmd/firesol/cli/setup_test.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2019 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - _ "net/http/pprof" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/spf13/cobra" -) - -func Test_extractCmd(t *testing.T) { - testCmdE := func(cmd *cobra.Command, args []string) error { - return nil - } - - rootCmd := &cobra.Command{Use: "firesol", Short: "Solana on StreamingFast"} - startCmd := &cobra.Command{Use: "start", Short: "Starts Solana on StreamingFast services all at once", RunE: testCmdE} - initCmd := &cobra.Command{Use: "init", Short: "Initializes StreamingFast's local environment", RunE: testCmdE} - toolCmd := &cobra.Command{Use: "tools", Short: "Developer tools related to firesol", RunE: testCmdE} - dbBlkCmd := &cobra.Command{Use: "blk", Short: "Read a Blk", RunE: testCmdE} - - rootCmd.AddCommand(initCmd) - rootCmd.AddCommand(startCmd) - rootCmd.AddCommand(toolCmd) - toolCmd.AddCommand(dbBlkCmd) - - tests := []struct { - name string - cmd *cobra.Command - expectCmd []string - }{ - { - name: "root command", - cmd: rootCmd, - expectCmd: []string{"firesol"}, - }, - { - name: "first tier command", - cmd: startCmd, - expectCmd: []string{"firesol", "start"}, - }, - { - name: "child command", - cmd: dbBlkCmd, - expectCmd: []string{"firesol", "tools", "blk"}, - }, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - assert.Equal(t, test.expectCmd, extractCmd(test.cmd)) - }) - } - -} - -func Test_shouldRunSetup(t *testing.T) { - testCmdE := func(cmd *cobra.Command, args []string) error { - return nil - } - - rootCmd := &cobra.Command{Use: "firesol", Short: "Solana on StreamingFast"} - startCmd := &cobra.Command{Use: "start", Short: "Starts services all at once", RunE: testCmdE} - initCmd := &cobra.Command{Use: "init", Short: "Initializes local environment", RunE: testCmdE} - toolCmd := &cobra.Command{Use: "tools", Short: "Developer tools related to firesol", RunE: testCmdE} - dbBlkCmd := &cobra.Command{Use: "blk", Short: "Read a Blk", RunE: testCmdE} - - rootCmd.AddCommand(initCmd) - rootCmd.AddCommand(startCmd) - rootCmd.AddCommand(toolCmd) - toolCmd.AddCommand(dbBlkCmd) - - tests := []struct { - name string - cmds []string - expectBool bool - }{ - { - name: "root command", - cmds: []string{"firesol"}, - expectBool: false, - }, - { - name: "first tier command", - cmds: []string{"firesol", "start"}, - expectBool: true, - }, - { - name: "child command", - cmds: []string{"firesol", "tools", "blk"}, - expectBool: false, - }, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - assert.Equal(t, test.expectBool, isMatchingCommand(test.cmds, []*cobra.Command{ - StartCmd, - })) - }) - } - -} diff --git a/cmd/firesol/cli/snapshotter.go b/cmd/firesol/cli/snapshotter.go deleted file mode 100644 index e6131ab3..00000000 --- a/cmd/firesol/cli/snapshotter.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/dlauncher/launcher" - "github.com/streamingfast/firehose-solana/snapshotter/app/snapshotter" -) - -func init() { - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "snapshotter", - Title: "snapshotter", - Description: "Manage solana snapshot", - RegisterFlags: func(cmd *cobra.Command) error { - cmd.Flags().String("snapshotter-source-bucket", "mainnet-beta-ledger-us-west1", "bucket where solana snapshot are stored") - cmd.Flags().String("snapshotter-source-prefix", "", "mainnet-beta-ledger-us-west1") - cmd.Flags().String("snapshotter-destination-bucket", "", "bucket where solana snapshot will be stored and uncompressed") - cmd.Flags().String("snapshotter-destination-prefix", "sol-mainnet/snapshots", "") - cmd.Flags().String("snapshotter-working-dir", "{data-dir}/working", "") - return nil - }, - InitFunc: func(runtime *launcher.Runtime) (err error) { - return nil - }, - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - dataDir := runtime.AbsDataDir - - return snapshotter.New( - &snapshotter.Config{ - SourceBucket: viper.GetString("snapshotter-source-bucket"), - SourceSnapshotsFolder: viper.GetString("snapshotter-source-prefix"), - DestinationBucket: viper.GetString("snapshotter-destination-bucket"), - DestinationSnapshotsFolder: viper.GetString("snapshotter-destination-prefix"), - Workdir: MustReplaceDataDir(dataDir, viper.GetString("snapshotter-working-dir")), - }, - ), nil - }, - }) -} diff --git a/cmd/firesol/cli/start.go b/cmd/firesol/cli/start.go deleted file mode 100644 index 9b05d639..00000000 --- a/cmd/firesol/cli/start.go +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright 2019 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "fmt" - "github.com/streamingfast/dmetering" - "path/filepath" - "time" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/bstream" - dauthgrpc "github.com/streamingfast/dauth/grpc" - dauthnull "github.com/streamingfast/dauth/null" - dauthtrust "github.com/streamingfast/dauth/trust" - "github.com/streamingfast/derr" - "github.com/streamingfast/dlauncher/launcher" - "go.uber.org/zap" -) - -var StartCmd = &cobra.Command{Use: "start", Short: "Starts services all at once", RunE: sfStartE, Args: cobra.ArbitraryArgs} - -func init() { - RootCmd.AddCommand(StartCmd) - dauthgrpc.Register() - dauthtrust.Register() - dauthnull.Register() - dmetering.RegisterDefault() -} - -func sfStartE(cmd *cobra.Command, args []string) (err error) { - dataDir := viper.GetString("global-data-dir") - zlog.Debug("firesol binary started", zap.String("data_dir", dataDir)) - - configFile := viper.GetString("global-config-file") - zlog.Info("starting Solana on StreamingFast with config file", zap.String("config_file", configFile)) - - err = Start(dataDir, args) - if err != nil { - return fmt.Errorf("unable to launch: %w", err) - } - - zlog.Info("goodbye") - return -} - -func Start(dataDir string, args []string) (err error) { - dataDirAbs, err := filepath.Abs(dataDir) - if err != nil { - return fmt.Errorf("unable to setup directory structure: %w", err) - } - - err = makeDirs([]string{dataDirAbs}) - if err != nil { - return err - } - - bstream.GetProtocolFirstStreamableBlock = viper.GetUint64("common-first-streamable-block") - - modules := &launcher.Runtime{ - AbsDataDir: dataDirAbs, - ProtocolSpecificModules: map[string]interface{}{}, - } - - blocksCacheEnabled := viper.GetBool("common-blocks-cache-enabled") - if blocksCacheEnabled { - bstream.GetBlockPayloadSetter = bstream.ATMCachedPayloadSetter - - cacheDir := MustReplaceDataDir(modules.AbsDataDir, viper.GetString("common-blocks-cache-dir")) - storeUrl := MustReplaceDataDir(modules.AbsDataDir, viper.GetString("common-merged-blocks-store-url")) - maxRecentEntryBytes := viper.GetInt("common-blocks-cache-max-recent-entry-bytes") - maxEntryByAgeBytes := viper.GetInt("common-blocks-cache-max-entry-by-age-bytes") - bstream.InitCache(storeUrl, cacheDir, maxRecentEntryBytes, maxEntryByAgeBytes) - } - - launch := launcher.NewLauncher(zlog, modules) - zlog.Debug("launcher created") - - runByDefault := func(file string) bool { - return true - } - - apps := launcher.ParseAppsFromArgs(args, runByDefault) - if len(args) == 0 { - apps = launcher.ParseAppsFromArgs(launcher.Config["start"].Args, runByDefault) - } - - if containsApp(apps, "reader") { - //maybeCheckNodeosVersion() //todo - } - - zlog.Info("launching applications", zap.Strings("apps", apps)) - if err = launch.Launch(apps); err != nil { - return err - } - - printWelcomeMessage(apps) - - signalHandler := derr.SetupSignalHandler(0 * time.Second) - select { - case <-signalHandler: - zlog.Info("received termination signal, quitting") - go launch.Close() - case appID := <-launch.Terminating(): - if launch.Err() == nil { - zlog.Info("application triggered a clean shutdown, quitting", zap.String("app_id", appID)) - } else { - zlog.Info("application shutdown unexpectedly, quitting", zap.String("app_id", appID)) - return launch.Err() - } - } - - launch.WaitForTermination() - - return -} - -func printWelcomeMessage(apps []string) { - hasDashboard := containsApp(apps, "dashboard") - hasAPIProxy := containsApp(apps, "apiproxy") - if !hasDashboard && !hasAPIProxy { - // No welcome message to print, advanced usage - return - } - - format := "Your instance should be ready in a few seconds, here some relevant links:\n" - var formatArgs []interface{} - - if hasDashboard { - format += "\n" - format += " Dashboard: http://localhost%s\n" - formatArgs = append(formatArgs, DashboardHTTPListenAddr) - } - - if hasAPIProxy { - format += "\n" - format += " Explorer & APIs: http://localhost%s\n" - format += " GraphiQL: http://localhost%s/graphiql\n" - formatArgs = append(formatArgs, APIProxyHTTPListenAddr, APIProxyHTTPListenAddr) - } - - zlog.Info(fmt.Sprintf(format, formatArgs...)) -} - -func containsApp(apps []string, searchedApp string) bool { - for _, app := range apps { - if app == searchedApp { - return true - } - } - - return false -} diff --git a/cmd/firesol/cli/substreams-tier1.go b/cmd/firesol/cli/substreams-tier1.go deleted file mode 100644 index bd1e9490..00000000 --- a/cmd/firesol/cli/substreams-tier1.go +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2021 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "fmt" - "net/url" - "os" - "sync" - "time" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - dauthAuthenticator "github.com/streamingfast/dauth" - discoveryservice "github.com/streamingfast/dgrpc/server/discovery-service" - "github.com/streamingfast/dlauncher/launcher" - "github.com/streamingfast/logging" - "github.com/streamingfast/substreams/app" -) - -var ss1HeadBlockNumMetric = metricset.NewHeadBlockNumber("substreams-tier1") -var ss1HeadTimeDriftmetric = metricset.NewHeadTimeDrift("substreams-tier1") - -var registerSSOnce sync.Once - -func registerCommonSubstreamsFlags(cmd *cobra.Command) { - registerSSOnce.Do(func() { - cmd.Flags().Uint64("substreams-state-bundle-size", uint64(1_000), "Interval in blocks at which to save store snapshots and output caches") - cmd.Flags().String("substreams-state-store-url", "{sf-data-dir}/localdata", "where substreams state data are stored") - cmd.Flags().String("substreams-state-store-default-tag", "", "If non-empty, will be appended to {substreams-state-store-url} (ex: 'v1'). Can be overriden per-request with 'X-Sf-Substreams-Cache-Tag' header") - - }) -} - -func init() { - appLogger, _ := logging.PackageLogger("substreams-tier1", "github.com/streamingfast/firehose-solana/substreams-tier1") - - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "substreams-tier1", - Title: "Substreams tier1 server", - Description: "Provides a substreams grpc endpoint", - RegisterFlags: func(cmd *cobra.Command) error { - cmd.Flags().String("substreams-tier1-grpc-listen-addr", SubstreamsTier1GRPCServingAddr, "Address on which the substreams tier1 will listen. Default is plain-text, appending a '*' to the end to jkkkj") - cmd.Flags().String("substreams-tier1-subrequests-endpoint", SubstreamsTier2GRPCServingAddr, "Address on which the tier1 can reach the tier2") - - // communication with tier2 - cmd.Flags().String("substreams-tier1-discovery-service-url", "", "URL to configure the grpc discovery service, used for communication with tier2") //traffic-director://xds?vpc_network=vpc-global&use_xds_reds=true - cmd.Flags().Bool("substreams-tier1-subrequests-insecure", false, "Connect to tier2 without checking certificate validity") - cmd.Flags().Bool("substreams-tier1-subrequests-plaintext", true, "Connect to tier2 without client in plaintext mode") - cmd.Flags().Int("substreams-tier1-max-subrequests", 4, "number of parallel subrequests that the tier1 can make to the tier2 per request") - - // all substreams - registerCommonSubstreamsFlags(cmd) - return nil - }, - - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - blockstreamAddr := viper.GetString("common-live-blocks-addr") - - authenticator, err := dauthAuthenticator.New(viper.GetString("common-auth-plugin"), appLogger) - if err != nil { - return nil, fmt.Errorf("unable to initialize dauth: %w", err) - } - - mergedBlocksStoreURL, oneBlocksStoreURL, forkedBlocksStoreURL, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, err - } - - sfDataDir := runtime.AbsDataDir - - rawServiceDiscoveryURL := viper.GetString("substreams-tier1-discovery-service-url") - grpcListenAddr := viper.GetString("substreams-tier1-grpc-listen-addr") - - stateStoreURL := MustReplaceDataDir(sfDataDir, viper.GetString("substreams-state-store-url")) - stateStoreDefaultTag := viper.GetString("substreams-state-store-default-tag") - - stateBundleSize := viper.GetUint64("substreams-state-bundle-size") - - subrequestsEndpoint := viper.GetString("substreams-tier1-subrequests-endpoint") - subrequestsInsecure := viper.GetBool("substreams-tier1-subrequests-insecure") - subrequestsPlaintext := viper.GetBool("substreams-tier1-subrequests-plaintext") - maxSubrequests := viper.GetUint64("substreams-tier1-max-subrequests") - - tracing := os.Getenv("SUBSTREAMS_TRACING") == "modules_exec" - - var serviceDiscoveryURL *url.URL - if rawServiceDiscoveryURL != "" { - serviceDiscoveryURL, err = url.Parse(rawServiceDiscoveryURL) - if err != nil { - return nil, fmt.Errorf("unable to parse discovery service url: %w", err) - } - err = discoveryservice.Bootstrap(serviceDiscoveryURL) - if err != nil { - return nil, fmt.Errorf("unable to bootstrap discovery service: %w", err) - } - } - - return app.NewTier1(appLogger, - &app.Tier1Config{ - MergedBlocksStoreURL: mergedBlocksStoreURL, - OneBlocksStoreURL: oneBlocksStoreURL, - ForkedBlocksStoreURL: forkedBlocksStoreURL, - BlockStreamAddr: blockstreamAddr, - - StateStoreURL: stateStoreURL, - StateStoreDefaultTag: stateStoreDefaultTag, - StateBundleSize: stateBundleSize, - BlockType: "sf.solana.type.v1.Block", - MaxSubrequests: maxSubrequests, - SubrequestsEndpoint: subrequestsEndpoint, - SubrequestsInsecure: subrequestsInsecure, - SubrequestsPlaintext: subrequestsPlaintext, - - Tracing: tracing, - - GRPCListenAddr: grpcListenAddr, - GRPCShutdownGracePeriod: time.Second, - ServiceDiscoveryURL: serviceDiscoveryURL, - RequestStats: true, - }, &app.Tier1Modules{ - Authenticator: authenticator, - HeadTimeDriftMetric: ss1HeadTimeDriftmetric, - HeadBlockNumberMetric: ss1HeadBlockNumMetric, - }), nil - }, - }) -} diff --git a/cmd/firesol/cli/substreams-tier2.go b/cmd/firesol/cli/substreams-tier2.go deleted file mode 100644 index 6e4da2c9..00000000 --- a/cmd/firesol/cli/substreams-tier2.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2021 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package cli - -import ( - "fmt" - "net/url" - "os" - - "github.com/spf13/cobra" - "github.com/spf13/viper" - discoveryservice "github.com/streamingfast/dgrpc/server/discovery-service" - "github.com/streamingfast/dlauncher/launcher" - "github.com/streamingfast/logging" - app "github.com/streamingfast/substreams/app" -) - -var ss2HeadBlockNumMetric = metricset.NewHeadBlockNumber("substreams-tier2") -var ss2HeadTimeDriftmetric = metricset.NewHeadTimeDrift("substreams-tier2") - -func init() { - appLogger, _ := logging.PackageLogger("substreams-tier2", "github.com/streamingfast/firehose-solana/substreams-tier2") - - launcher.RegisterApp(zlog, &launcher.AppDef{ - ID: "substreams-tier2", - Title: "Substreams tier2 server", - Description: "Provides a substreams grpc endpoint", - RegisterFlags: func(cmd *cobra.Command) error { - cmd.Flags().String("substreams-tier2-grpc-listen-addr", SubstreamsTier2GRPCServingAddr, "Address on which the substreams tier2 will listen. Default is plain-text, appending a '*' to the end to jkkkj") - cmd.Flags().String("substreams-tier2-discovery-service-url", "", "URL to advertise presence to the grpc discovery service") //traffic-director://xds?vpc_network=vpc-global&use_xds_reds=true - - // all substreams - registerCommonSubstreamsFlags(cmd) - return nil - }, - - FactoryFunc: func(runtime *launcher.Runtime) (launcher.App, error) { - mergedBlocksStoreURL, _, _, err := getCommonStoresURLs(runtime.AbsDataDir) - if err != nil { - return nil, err - } - - sfDataDir := runtime.AbsDataDir - - rawServiceDiscoveryURL := viper.GetString("substreams-tier2-discovery-service-url") - grpcListenAddr := viper.GetString("substreams-tier2-grpc-listen-addr") - stateStoreURL := MustReplaceDataDir(sfDataDir, viper.GetString("substreams-state-store-url")) - stateStoreDefaultTag := viper.GetString("substreams-state-store-default-tag") - stateBundleSize := viper.GetUint64("substreams-state-bundle-size") - - tracing := os.Getenv("SUBSTREAMS_TRACING") == "modules_exec" - - var serviceDiscoveryURL *url.URL - if rawServiceDiscoveryURL != "" { - serviceDiscoveryURL, err = url.Parse(rawServiceDiscoveryURL) - if err != nil { - return nil, fmt.Errorf("unable to parse discovery service url: %w", err) - } - err = discoveryservice.Bootstrap(serviceDiscoveryURL) - if err != nil { - return nil, fmt.Errorf("unable to bootstrap discovery service: %w", err) - } - } - - return app.NewTier2(appLogger, - &app.Tier2Config{ - MergedBlocksStoreURL: mergedBlocksStoreURL, - StateStoreURL: stateStoreURL, - StateStoreDefaultTag: stateStoreDefaultTag, - StateBundleSize: stateBundleSize, - BlockType: "sf.solana.type.v1.Block", - Tracing: tracing, - GRPCListenAddr: grpcListenAddr, - ServiceDiscoveryURL: serviceDiscoveryURL, - RequestStats: true, - }), nil - }, - }) -} diff --git a/cmd/firesol/cli/tools.go b/cmd/firesol/cli/tools.go deleted file mode 100644 index b59118a3..00000000 --- a/cmd/firesol/cli/tools.go +++ /dev/null @@ -1,7 +0,0 @@ -package cli - -import "github.com/streamingfast/firehose-solana/tools" - -func init() { - RootCmd.AddCommand(tools.Cmd) -} diff --git a/cmd/firesol/cli/utils.go b/cmd/firesol/cli/utils.go deleted file mode 100644 index 26955d02..00000000 --- a/cmd/firesol/cli/utils.go +++ /dev/null @@ -1,85 +0,0 @@ -package cli - -import ( - "fmt" - "os" - "path/filepath" - "strings" - - "github.com/spf13/viper" - - "go.uber.org/zap" -) - -func makeDirs(directories []string) error { - for _, directory := range directories { - err := os.MkdirAll(directory, 0755) - if err != nil { - return fmt.Errorf("failed to create directory %q: %w", directory, err) - } - } - - return nil -} - -func MustReplaceDataDir(dataDir, in string) string { - d, err := filepath.Abs(dataDir) - if err != nil { - panic(fmt.Errorf("file path abs: %w", err)) - } - - in = strings.Replace(in, "{data-dir}", d, -1) - return in -} - -func mkdirStorePathIfLocal(storeURL string) (err error) { - zlog.Debug("creating directory and its parent(s)", zap.String("directory", storeURL)) - if dirs := getDirsToMake(storeURL); len(dirs) > 0 { - err = makeDirs(dirs) - } - return -} - -func getDirsToMake(storeURL string) []string { - parts := strings.Split(storeURL, "://") - if len(parts) > 1 { - if parts[0] != "file" { - // Not a local store, nothing to do - return nil - } - storeURL = parts[1] - } - - // Some of the store URL are actually a file directly, let's try our best to cope for that case - filename := filepath.Base(storeURL) - if strings.Contains(filename, ".") { - storeURL = filepath.Dir(storeURL) - } - - // If we reach here, it's a local store path - return []string{storeURL} -} - -var commonStoresCreated bool - -func getCommonStoresURLs(dataDir string) (mergedBlocksStoreURL, oneBlockStoreURL, forkedBlocksStoreURL string, err error) { - mergedBlocksStoreURL = MustReplaceDataDir(dataDir, viper.GetString("common-merged-blocks-store-url")) - oneBlockStoreURL = MustReplaceDataDir(dataDir, viper.GetString("common-one-block-store-url")) - forkedBlocksStoreURL = MustReplaceDataDir(dataDir, viper.GetString("common-forked-blocks-store-url")) - - if commonStoresCreated { - return - } - - if err = mkdirStorePathIfLocal(forkedBlocksStoreURL); err != nil { - return - } - if err = mkdirStorePathIfLocal(oneBlockStoreURL); err != nil { - return - } - if err = mkdirStorePathIfLocal(mergedBlocksStoreURL); err != nil { - return - } - commonStoresCreated = true - return -} diff --git a/cmd/firesol/cli/utils_test.go b/cmd/firesol/cli/utils_test.go deleted file mode 100644 index c439c769..00000000 --- a/cmd/firesol/cli/utils_test.go +++ /dev/null @@ -1,43 +0,0 @@ -package cli - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -//"/storage/megered-blocks" -//:// -> assume passit dreiclty -//NO -> "/" directly -//relative + dataDir - -func Test_getDirsToMake(t *testing.T) { - tests := []struct { - name string - storeURL string - expectDirs []string - }{ - { - name: "google storage path", - storeURL: "gs://test-bucket/solana-local/v1", - expectDirs: nil, - }, - { - name: "relative local path", - storeURL: "myapp/blocks", - expectDirs: []string{"myapp/blocks"}, - }, - { - name: "absolute local path", - storeURL: "/data/myapp/blocks", - expectDirs: []string{"/data/myapp/blocks"}, - }, - } - - for _, test := range tests { - t.Run(t.Name(), func(t *testing.T) { - assert.Equal(t, test.expectDirs, getDirsToMake(test.storeURL)) - }) - } - -} diff --git a/cmd/firesol/main.go b/cmd/firesol/main.go index 0f09834e..72a26591 100644 --- a/cmd/firesol/main.go +++ b/cmd/firesol/main.go @@ -1,40 +1,59 @@ package main import ( - "github.com/streamingfast/firehose-solana/cmd/firesol/cli" + "github.com/spf13/cobra" + firecore "github.com/streamingfast/firehose-core" + "github.com/streamingfast/firehose-solana/codec" + pbsol "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" + "github.com/streamingfast/logging" + "github.com/streamingfast/node-manager/mindreader" + pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" + "go.uber.org/zap" + "google.golang.org/protobuf/reflect/protoreflect" ) -// Commit sha1 value, injected via go build `ldflags` at build time -var Commit = "" - -// Version value, injected via go build `ldflags` at build time -var Version = "dev" - -// IsDirty value, injected via go build `ldflags` at build time -var IsDirty = "" - func init() { - cli.RootCmd.Version = version() + firecore.UnsafePayloadKind = pbbstream.Protocol_SOLANA + firecore.UnsafeResolveReaderNodeStartBlock = readerNodeStartBlockResolver } func main() { - cli.Main() + firecore.Main(&firecore.Chain[*pbsol.Block]{ + ShortName: "sol", + LongName: "Solana", + ExecutableName: "firesol", + FullyQualifiedModule: "github.com/streamingfast/firehose-solana", + Version: version, + + Protocol: "SOL", + ProtocolVersion: 1, + + BlockFactory: func() firecore.Block { return new(pbsol.Block) }, + + BlockIndexerFactories: map[string]firecore.BlockIndexerFactory[*pbsol.Block]{ + //transform.ReceiptAddressIndexShortName: transform.NewNearBlockIndexer, + }, + + BlockTransformerFactories: map[protoreflect.FullName]firecore.BlockTransformerFactory{ + //transform.HeaderOnlyMessageName: transform.NewHeaderOnlyTransformFactory, + //transform.ReceiptFilterMessageName: transform.BasicReceiptFilterFactory, + }, + + ConsoleReaderFactory: func(lines chan string, blockEncoder firecore.BlockEncoder, logger *zap.Logger, tracer logging.Tracer) (mindreader.ConsolerReader, error) { + return codec.NewBigtableConsoleReader(lines, blockEncoder, logger) + }, + + Tools: &firecore.ToolsConfig[*pbsol.Block]{ + BlockPrinter: printBlock, + + RegisterExtraCmd: func(chain *firecore.Chain[*pbsol.Block], toolsCmd *cobra.Command, zlog *zap.Logger, tracer logging.Tracer) error { + toolsCmd.AddCommand(newToolsBigtableCmd(zlog, tracer)) + toolsCmd.AddCommand(newToolsBatchFileCmd(zlog)) + return nil + }, + }, + }) } -func version() string { - shortCommit := Commit - if len(shortCommit) >= 7 { - shortCommit = shortCommit[0:7] - } - - if len(shortCommit) == 0 { - shortCommit = "adhoc" - } - - out := Version + "-" + shortCommit - if IsDirty != "" { - out += "-dirty" - } - - return out -} +// Version value, injected via go build `ldflags` at build time, **must** not be removed or inlined +var version = "dev" diff --git a/cmd/firesol/reader.go b/cmd/firesol/reader.go new file mode 100644 index 00000000..a7ce0706 --- /dev/null +++ b/cmd/firesol/reader.go @@ -0,0 +1,80 @@ +package main + +import ( + "context" + "errors" + "fmt" + "strconv" + + "github.com/streamingfast/cli/sflags" + + "github.com/streamingfast/dlauncher/launcher" + firecore "github.com/streamingfast/firehose-core" + + "github.com/spf13/cobra" + "github.com/streamingfast/dstore" + "go.uber.org/zap" +) + +func readerNodeStartBlockResolver(ctx context.Context, command *cobra.Command, runtime *launcher.Runtime, rootLog *zap.Logger) (uint64, error) { + mergedBlocksStoreURL, _, _, err := firecore.GetCommonStoresURLs(runtime.AbsDataDir) + if err != nil { + return 0, err + } + + mergedBlocksStore, err := dstore.NewDBinStore(mergedBlocksStoreURL) + if err != nil { + return 0, fmt.Errorf("unable to create merged blocks store at path %q: %w", mergedBlocksStoreURL, err) + } + + firstStreamableBlock := sflags.MustGetUint64(command, "common-first-streamable-block") + + return resolveStartBlockNum(ctx, firstStreamableBlock, mergedBlocksStore, rootLog), nil +} + +func resolveStartBlockNum(ctx context.Context, start uint64, store dstore.Store, logger *zap.Logger) uint64 { + errDone := errors.New("done") + var seenStart *uint64 + + err := store.WalkFrom(ctx, "", fmt.Sprintf("%010d", start), func(filename string) error { + num, err := strconv.ParseUint(filename, 10, 64) + if err != nil { + return err + } + + if num < start { // user has decided to start its merger in the 'future' + return nil + } + + if num == start { + seenStart = &num + return nil + } + + // num > start + if seenStart == nil { + return errDone // first block after a hole + } + + // increment by 100 + if num == *seenStart+100 { + seenStart = &num + return nil + } + + return errDone + }) + + if err != nil && !errors.Is(err, errDone) { + logger.Error("got error walking store", zap.Error(err)) + return start + } + + switch { + case seenStart == nil: + return start // nothing was found + default: + return *seenStart + 100 + } + +} diff --git a/cmd/firesol/tools.go b/cmd/firesol/tools.go new file mode 100644 index 00000000..5504b568 --- /dev/null +++ b/cmd/firesol/tools.go @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "io" + + "github.com/streamingfast/bstream" + pbsol "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" +) + +func printBlock(blk *bstream.Block, alsoPrintTransactions bool, out io.Writer) error { + block := blk.ToProtocol().(*pbsol.Block) + + transactionCount := len(block.Transactions) + + if _, err := fmt.Fprintf(out, "Slot #%d (%s) (prev: %s): %d transactions\n", + block.GetFirehoseBlockNumber(), + block.GetFirehoseBlockID(), + block.GetFirehoseBlockParentID()[0:7], + transactionCount, + ); err != nil { + return err + } + + if alsoPrintTransactions { + for _, transaction := range block.Transactions { + status := "✅" + if transaction.Meta.Err != nil { + status = "❌" + } + transaction.AsBase58String() + if _, err := fmt.Fprintf(out, " - Transaction %s %s: %d instructions\n", status, transaction.AsBase58String(), len(transaction.Transaction.Message.Instructions)); err != nil { + return err + } + } + } + + return nil +} diff --git a/cmd/firesol/tools_batch_file.go b/cmd/firesol/tools_batch_file.go new file mode 100644 index 00000000..30758ac8 --- /dev/null +++ b/cmd/firesol/tools_batch_file.go @@ -0,0 +1,12 @@ +package main + +import ( + "github.com/spf13/cobra" + "go.uber.org/zap" +) + +func newToolsBatchFileCmd(logger *zap.Logger) *cobra.Command { + cmd := &cobra.Command{Use: "batch-files", Short: "batch Files related commands"} + cmd.AddCommand(newToolsBatchFileReadCmd(logger)) + return cmd +} diff --git a/cmd/firesol/tools_batch_file_read.go b/cmd/firesol/tools_batch_file_read.go new file mode 100644 index 00000000..8b8494f8 --- /dev/null +++ b/cmd/firesol/tools_batch_file_read.go @@ -0,0 +1,74 @@ +package main + +import ( + "encoding/hex" + "fmt" + + "github.com/mr-tron/base58" + "github.com/spf13/cobra" + "github.com/streamingfast/cli/sflags" + firecore "github.com/streamingfast/firehose-core" + "github.com/streamingfast/firehose-solana/codec" + "go.uber.org/zap" +) + +func newToolsBatchFileReadCmd(logger *zap.Logger) *cobra.Command { + cmd := &cobra.Command{ + Use: "read {batch-file-path}", + Short: "Reads the content of batch file", + Args: cobra.ExactArgs(1), + RunE: batchFilesReadRunE(logger), + } + cmd.Flags().Bool("detailed", false, "Add instructions logs") + return cmd +} + +func batchFilesReadRunE(logger *zap.Logger) firecore.CommandExecutor { + return func(cmd *cobra.Command, args []string) error { + batchFilePath := args[0] + detailedView := sflags.MustGetBool(cmd, "detailed") + + logger.Info("reading batch file", + zap.String("path", batchFilePath), + zap.Bool("detailed", detailedView), + ) + + batch, err := codec.ReadBatchFile(batchFilePath, false, logger) + if err != nil { + return fmt.Errorf("unable to read batch file %q: %w", batchFilePath, err) + } + + fmt.Println("") + fmt.Printf("Batch %s contains %d transactions\n", batchFilePath, len(batch.Transactions)) + for idx, trx := range batch.Transactions { + errorIcon := "✅" + hasError := false + if trx.Error != nil { + hasError = true + errorIcon = "❌" + } + fmt.Println("") + fmt.Printf("%s Trx: %d - %s\n", errorIcon, idx, hex.EncodeToString(trx.Id)) + fmt.Printf(" Indexed: %d\n", trx.Index) + fmt.Printf(" Failed: %t\n", trx.Failed) + fmt.Printf(" Inst Count: %d\n", len(trx.Instructions)) + + if hasError { + fmt.Printf(" Error: %s\n", trx.Error.GetError()) + } + for instIdx, inst := range trx.Instructions { + programKey := base58.Encode(inst.ProgramId) + fmt.Printf(" > Inst: %d, Program %s\n", instIdx, programKey) + fmt.Printf(" Data 0x%s\n", hex.EncodeToString(inst.Data)) + if detailedView { + fmt.Printf(" Logs:\n") + for _, log := range inst.Logs { + fmt.Printf(" * %s\n", log.Message) + } + } + } + + } + return nil + } +} diff --git a/cmd/firesol/tools_bigtable.go b/cmd/firesol/tools_bigtable.go new file mode 100644 index 00000000..baed4f09 --- /dev/null +++ b/cmd/firesol/tools_bigtable.go @@ -0,0 +1,18 @@ +package main + +import ( + "github.com/spf13/cobra" + "github.com/streamingfast/logging" + "go.uber.org/zap" +) + +func newToolsBigtableCmd(logger *zap.Logger, tracer logging.Tracer) *cobra.Command { + cmd := &cobra.Command{Use: "bt", Short: "Solana bigtable sub command"} + cmd.PersistentFlags().String("bt-project", "mainnet-beta", "Bigtable project") + cmd.PersistentFlags().String("bt-instance", "solana-ledger", "Bigtable instance") + + cmd.AddCommand(newToolsBigtableBlockCmd(logger, tracer)) + cmd.AddCommand(newToolsBigTableBlocksCmd(logger, tracer)) + + return cmd +} diff --git a/cmd/firesol/tools_bigtable_block.go b/cmd/firesol/tools_bigtable_block.go new file mode 100644 index 00000000..b4171375 --- /dev/null +++ b/cmd/firesol/tools_bigtable_block.go @@ -0,0 +1,78 @@ +package main + +import ( + "encoding/json" + "fmt" + "strconv" + + "cloud.google.com/go/bigtable" + "github.com/spf13/cobra" + "github.com/streamingfast/cli/sflags" + firecore "github.com/streamingfast/firehose-core" + "github.com/streamingfast/firehose-solana/bt" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" + "github.com/streamingfast/logging" + "go.uber.org/zap" +) + +func newToolsBigtableBlockCmd(logger *zap.Logger, tracer logging.Tracer) *cobra.Command { + return &cobra.Command{ + Use: "block ", + Short: "get a block from bigtable", + Args: cobra.ExactArgs(1), + RunE: bigtableBlockRunE(logger, tracer), + } +} + +func bigtableBlockRunE(logger *zap.Logger, tracer logging.Tracer) firecore.CommandExecutor { + return func(cmd *cobra.Command, args []string) error { + ctx := cmd.Context() + + blockNumStr := args[0] + btProject := sflags.MustGetString(cmd, "bt-project") + btInstance := sflags.MustGetString(cmd, "bt-instance") + + logger.Info("retrieving from bigtable", + zap.String("block_num", blockNumStr), + zap.String("bt_project", btProject), + zap.String("bt_instance", btInstance), + ) + + client, err := bigtable.NewClient(ctx, btProject, btInstance) + if err != nil { + return fmt.Errorf("unable to create big table client: %w", err) + } + + btClient := bt.New(client, 10, logger, tracer) + + startBlockNum, err := strconv.ParseUint(blockNumStr, 10, 64) + if err != nil { + return fmt.Errorf("unable to parse block number %s: %w", blockNumStr, err) + } + endBlockNum := startBlockNum + 1 + fmt.Println("Looking for block: ", startBlockNum) + + foundBlock := false + if err = btClient.ReadBlocks(ctx, startBlockNum, endBlockNum, false, func(block *pbsolv1.Block) error { + // the block range may return the next block if it cannot find it + if block.Slot != startBlockNum { + return nil + } + + foundBlock = true + fmt.Println("Found bigtable row") + cnt, err := json.MarshalIndent(block, "", " ") + if err != nil { + return fmt.Errorf("unable to json marshal block: %w", err) + } + fmt.Println(string(cnt)) + return nil + }); err != nil { + return fmt.Errorf("failed to find block %d: %w", startBlockNum, err) + } + if !foundBlock { + fmt.Printf("Could not find desired block %d\n", startBlockNum) + } + return nil + } +} diff --git a/cmd/firesol/tools_bigtable_blocks.go b/cmd/firesol/tools_bigtable_blocks.go new file mode 100644 index 00000000..4cbe47ef --- /dev/null +++ b/cmd/firesol/tools_bigtable_blocks.go @@ -0,0 +1,99 @@ +package main + +import ( + "encoding/hex" + "encoding/json" + "fmt" + "strconv" + + "cloud.google.com/go/bigtable" + "github.com/spf13/cobra" + "github.com/streamingfast/cli/sflags" + firecore "github.com/streamingfast/firehose-core" + "github.com/streamingfast/firehose-solana/bt" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" + "github.com/streamingfast/logging" + "go.uber.org/zap" + "google.golang.org/protobuf/proto" +) + +func newToolsBigTableBlocksCmd(logger *zap.Logger, tracer logging.Tracer) *cobra.Command { + cmd := &cobra.Command{ + Use: "blocks ", + Short: "get a range of blocks from bigtable", + Args: cobra.ExactArgs(2), + RunE: bigtableBlocksRunE(logger, tracer), + } + + cmd.Flags().Bool("firehose-enabled", false, "When enable the blocks read will output Firehose formated logs 'FIRE '") + cmd.Flags().Bool("compact", false, "When printing in JSON it will print compact instead of pretty-printed output") + cmd.Flags().Bool("linkable", false, "Ensure that no block is skipped they are linkeable") + return cmd +} + +func bigtableBlocksRunE(logger *zap.Logger, tracer logging.Tracer) firecore.CommandExecutor { + return func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + + startBlockNumStr := args[0] + stopBlockNumStr := args[1] + + firehoseEnabled := sflags.MustGetBool(cmd, "firehose-enabled") + compact := sflags.MustGetBool(cmd, "compact") + linkable := sflags.MustGetBool(cmd, "linkable") + btProject := sflags.MustGetString(cmd, "bt-project") + btInstance := sflags.MustGetString(cmd, "bt-instance") + + logger.Info("retrieving from bigtable", + zap.Bool("firehose_enabled", firehoseEnabled), + zap.Bool("compact", compact), + zap.Bool("linkable", linkable), + zap.String("start_block_num", startBlockNumStr), + zap.String("stop_block_num", stopBlockNumStr), + zap.String("bt_project", btProject), + zap.String("bt_instance", btInstance), + ) + client, err := bigtable.NewClient(ctx, btProject, btInstance) + if err != nil { + return err + } + startBlockNum, err := strconv.ParseUint(startBlockNumStr, 10, 64) + if err != nil { + return fmt.Errorf("unable to parse start block number %s: %w", startBlockNumStr, err) + } + + stopBlockNum, err := strconv.ParseUint(stopBlockNumStr, 10, 64) + if err != nil { + return fmt.Errorf("unable to parse stop block number %s: %w", stopBlockNumStr, err) + } + + btClient := bt.New(client, 10, logger, tracer) + + return btClient.ReadBlocks(ctx, startBlockNum, stopBlockNum, linkable, func(block *pbsolv1.Block) error { + if firehoseEnabled { + cnt, err := proto.Marshal(block) + if err != nil { + return fmt.Errorf("failed to proto marshal pb sol block: %w", err) + } + + lineCnt := fmt.Sprintf("FIRE BLOCK %d %s", block.Slot, hex.EncodeToString(cnt)) + if _, err := fmt.Println(lineCnt); err != nil { + return fmt.Errorf("failed to write log line (char lenght %d): %w", len(lineCnt), err) + } + return nil + } + + var cnt []byte + if compact { + cnt, err = json.Marshal(block) + } else { + cnt, err = json.MarshalIndent(block, "", " ") + } + if err != nil { + return fmt.Errorf("unable to json marshall block: %w", err) + } + fmt.Println(string(cnt)) + return nil + }) + } +} diff --git a/codec/consolereader-bt.go b/codec/consolereader-bt.go index 2e74a0be..d1cea107 100644 --- a/codec/consolereader-bt.go +++ b/codec/consolereader-bt.go @@ -8,30 +8,33 @@ import ( "strconv" "strings" + firecore "github.com/streamingfast/firehose-core" + "github.com/streamingfast/bstream" - "github.com/streamingfast/firehose-solana/types" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" "go.uber.org/zap" "google.golang.org/protobuf/proto" ) -func NewBigtableConsoleReader(logger *zap.Logger, lines chan string) (*BigtableConsoleReader, error) { +type BigtableConsoleReader struct { + lines chan string + blockEncoder firecore.BlockEncoder + close func() + done chan interface{} + logger *zap.Logger +} + +func NewBigtableConsoleReader(lines chan string, blockEncoder firecore.BlockEncoder, logger *zap.Logger) (*BigtableConsoleReader, error) { l := &BigtableConsoleReader{ - lines: lines, - close: func() {}, - done: make(chan interface{}), - logger: logger, + lines: lines, + blockEncoder: blockEncoder, + close: func() {}, + done: make(chan interface{}), + logger: logger, } return l, nil } -type BigtableConsoleReader struct { - lines chan string - close func() - done chan interface{} - logger *zap.Logger -} - func (cr *BigtableConsoleReader) ProcessData(reader io.Reader) error { scanner := cr.buildScanner(reader) for scanner.Scan() { @@ -101,7 +104,7 @@ func (cr *BigtableConsoleReader) formatError(line string, err error) error { return fmt.Errorf("%s: %s (line %q)", chunks[0], err, line) } -//// BLOCK +// // BLOCK func (cr *BigtableConsoleReader) readBlock(line string) (out *bstream.Block, err error) { chunks := strings.SplitN(line, " ", -1) if len(chunks) != BlockCompleteChunk { @@ -124,7 +127,7 @@ func (cr *BigtableConsoleReader) readBlock(line string) (out *bstream.Block, err } blk.Slot = slotNum - bstreamBlk, err := types.BlockFromPBSolanaProto(blk) + bstreamBlk, err := cr.blockEncoder.Encode(blk) if err != nil { return nil, fmt.Errorf("unable to convert solana proto block to bstream block: %w", err) } diff --git a/codec/consolereader.go b/codec/consolereader.go index a3e3e11b..caed8bfb 100644 --- a/codec/consolereader.go +++ b/codec/consolereader.go @@ -14,12 +14,14 @@ import ( "sync" "time" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" + + firecore "github.com/streamingfast/firehose-core" + "github.com/abourget/llerrgroup" "github.com/mr-tron/base58" "github.com/streamingfast/bstream" - "github.com/streamingfast/firehose-solana/types" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" + pbsolv2 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v2" "github.com/streamingfast/solana-go" "go.uber.org/zap" "google.golang.org/protobuf/proto" @@ -54,12 +56,26 @@ func WithBatchFilesPath(batchFilesPath string) ConsoleReaderOption { } } -func NewConsoleReader(logger *zap.Logger, lines chan string, opts ...ConsoleReaderOption) (*ConsoleReader, error) { +type ConsoleReader struct { + ver *version + ctx *parseCtx + + lines chan string + close func() + done chan interface{} + + augmentedMode bool + logger *zap.Logger + blockEncoder firecore.BlockEncoder +} + +func NewConsoleReader(blockEncoder firecore.BlockEncoder, lines chan string, logger *zap.Logger, opts ...ConsoleReaderOption) (*ConsoleReader, error) { l := &ConsoleReader{ - lines: lines, - close: func() {}, - done: make(chan interface{}), - logger: logger, + lines: lines, + blockEncoder: blockEncoder, + close: func() {}, + done: make(chan interface{}), + logger: logger, } crOptions := newDefaultOptions() @@ -72,18 +88,6 @@ func NewConsoleReader(logger *zap.Logger, lines chan string, opts ...ConsoleRead return l, nil } -type ConsoleReader struct { - ver *version - ctx *parseCtx - - lines chan string - close func() - done chan interface{} - - augmentedMode bool - logger *zap.Logger -} - type version struct { dmVersion string variant string @@ -156,30 +160,41 @@ func (s *parsingStats) inc(key string) { } type parseCtx struct { - activeBank *bank - banks map[uint64]*bank - blockBuffer chan *bstream.Block - rootBlock uint64 - - stats *parsingStats - opts *options - logger *zap.Logger + activeBank *bank + banks map[uint64]*bank + blockBuffer chan firecore.Block + rootBlock uint64 + blockEncoder firecore.BlockEncoder + stats *parsingStats + opts *options + logger *zap.Logger } func newParseCtx(logger *zap.Logger, opts *options) *parseCtx { return &parseCtx{ banks: map[uint64]*bank{}, - blockBuffer: make(chan *bstream.Block, 10000), + blockBuffer: make(chan firecore.Block, 10000), logger: logger, opts: opts, } } func (cr *ConsoleReader) ReadBlock() (out *bstream.Block, err error) { - return cr.next() + + block, err := cr.next() + if err != nil { + return nil, err + } + + bstreamBlk, err := cr.blockEncoder.Encode(block) + if err != nil { + return nil, fmt.Errorf("unable to convert solana proto block to bstream block: %w", err) + } + bstreamBlk.LibNum = cr.ctx.rootBlock + return bstreamBlk, nil } -func (cr *ConsoleReader) next() (out *bstream.Block, err error) { +func (cr *ConsoleReader) next() (out firecore.Block, err error) { ctx := cr.ctx select { case b := <-ctx.blockBuffer: @@ -475,7 +490,7 @@ var supportedVariant = map[string]bool{ "vanilla-augmented": true, } -//INIT 1.829.23 (src:9f47ac9c; feat:378846963) DM 1 +// INIT 1.829.23 (src:9f47ac9c; feat:378846963) DM 1 func (cr *ConsoleReader) readInit(line string) (err error) { cr.logger.Debug("reading init", zap.String("line", line)) chunks := strings.SplitN(line, " ", 4) @@ -505,7 +520,9 @@ func (cr *ConsoleReader) readInit(line string) (err error) { return fmt.Errorf("attempting to run console reader in augmented mode, without specifying a batch files path") } - if cr.ver.variant[8:] == "augmented" && !types.IsSfSolAugmented() { + //todo: we temporarily remove support for augmented block when we move to firecore + //if cr.ver.variant[8:] == "augmented" && !types.IsSfSolAugmented() { + if cr.ver.variant[8:] == "augmented" && false { return fmt.Errorf("attempting to run console reader in augmented mode, when firesol is not configured for augmented mode") } } @@ -573,20 +590,21 @@ func (ctx *parseCtx) readBlockWork(line string) (err error) { // COMPLETE_BLOCK 0a2c47426f4.... // COMPLETE_BLOCK -func (ctx *parseCtx) readCompleteBlock(line string) (err error) { +func (ctx *parseCtx) readCompleteBlock(line string) error { ctx.logger.Debug("reading complete block", zap.String("line", line)) chunks := strings.SplitN(line, " ", -1) if len(chunks) != BlockCompleteChunk { return fmt.Errorf("expected %d fields, got %d", BlockCompleteChunk, len(chunks)) } - var slotNum uint64 - if slotNum, err = strconv.ParseUint(chunks[1], 10, 64); err != nil { + + slotNum, err := strconv.ParseUint(chunks[1], 10, 64) + if err != nil { return fmt.Errorf("slotNumber to int: %w", err) } - var cnt []byte - if cnt, err = hex.DecodeString(chunks[2]); err != nil { + cnt, err := hex.DecodeString(chunks[2]) + if err != nil { return fmt.Errorf("unable to hex decode content: %w", err) } @@ -596,14 +614,8 @@ func (ctx *parseCtx) readCompleteBlock(line string) (err error) { } blk.Slot = slotNum - bstreamBlk, err := types.BlockFromPBSolanaProto(blk) - if err != nil { - return fmt.Errorf("unable to convert solana proto block to bstream block: %w", err) - } - bstreamBlk.LibNum = ctx.rootBlock - ctx.blockBuffer <- bstreamBlk + ctx.blockBuffer <- blk - // TODO: it'd be cleaner if this was `nil`, we need to update the tests. return nil } @@ -655,12 +667,7 @@ func (ctx *parseCtx) readBlockEnd(line string) (err error) { return fmt.Errorf("sorting: %w", err) } - bstreamBlk, err := types.BlockFromPBSolProto(ctx.activeBank.blk) - if err != nil { - return fmt.Errorf("unable to convert solana proto block to bstream block: %w", err) - } - bstreamBlk.LibNum = ctx.rootBlock - ctx.blockBuffer <- bstreamBlk + ctx.blockBuffer <- ctx.activeBank.blk // TODO: it'd be cleaner if this was `nil`, we need to update the tests. ctx.activeBank = nil diff --git a/codec/consolereader_test.go b/codec/consolereader_test.go index 5d1c682a..a140a648 100644 --- a/codec/consolereader_test.go +++ b/codec/consolereader_test.go @@ -26,15 +26,15 @@ import ( "testing" "time" - "github.com/streamingfast/firehose-solana/types" + "go.uber.org/zap" + + firecore "github.com/streamingfast/firehose-core" "github.com/abourget/llerrgroup" "github.com/golang/protobuf/proto" "github.com/mr-tron/base58" - "github.com/streamingfast/bstream" - _ "github.com/streamingfast/firehose-solana/types" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" + pbsolv1 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1" + pbsolv2 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v2" "github.com/streamingfast/jsonpb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -69,20 +69,24 @@ func TestParseFromFile(t *testing.T) { first := true var reader ObjectReader = func() (interface{}, error) { - out, err := cr.ReadBlock() + out, err := cr.next() if err != nil { return nil, err } if test.augmented { - return out.ToProtocol().(*pbsolv2.Block), nil + return out.(*pbsolv2.Block), nil } - return out.ToProtocol().(*pbsolv1.Block), nil + return out.(*pbsolv1.Block), nil } - if test.augmented { - types.SetupSfSolAugmented() - } + //if test.augmented { + // + // + // + // + // types.SetupSfSolAugmented() + //} for { out, err := reader() if v, ok := out.(proto.Message); ok && !isNil(v) { @@ -244,7 +248,7 @@ func Test_readBlockEnd(t *testing.T) { }, errGroup: llerrgroup.New(10), }, - blockBuffer: make(chan *bstream.Block, 1), + blockBuffer: make(chan firecore.Block, 1), stats: newParsingStats(55295941, zlog), }, line: "BLOCK_END 55295941 3HfUeXfBt8XFHRiyrfhh5EXvFnJTjMHxzemy8DueaUFz 1606487316 1606487316", @@ -265,8 +269,8 @@ func Test_readBlockEnd(t *testing.T) { } case block := <-test.ctx.blockBuffer: { - assert.Equal(t, test.expectBlockNum, block.Number) - assert.Equal(t, test.expectBlockID, block.ID()) + assert.Equal(t, test.expectBlockNum, block.GetFirehoseBlockNumber()) + assert.Equal(t, test.expectBlockID, block.GetFirehoseBlockID()) } } fmt.Println("Done!") @@ -320,7 +324,7 @@ func Test_readBlockRoot(t *testing.T) { }, }, }, - blockBuffer: make(chan *bstream.Block, 100), + blockBuffer: make(chan firecore.Block, 100), stats: newParsingStats(55295941, zlog), }, line: "BANK_ROOT 55295921", @@ -391,11 +395,28 @@ func testReaderConsoleReader(t *testing.T, lines chan string, closer func(), bat opts = append(opts, WithBatchFilesPath(batchFilesPath)) } - cr, err := NewConsoleReader(zlog, lines, opts...) - require.NoError(t, err) + crOptions := newDefaultOptions() + for _, opt := range opts { + crOptions = opt(crOptions) + } - cr.close = closer - return cr + l := &ConsoleReader{ + lines: lines, + close: closer, + logger: zap.NewNop(), + ctx: &parseCtx{ + logger: zap.NewNop(), + banks: map[uint64]*bank{}, + blockBuffer: make(chan firecore.Block, 10000), + opts: crOptions, + }, + } + + //cr, err := NewConsoleReader( lines,zlog,, opts...) + //require.NoError(t, err) + + l.close = closer + return l } func blockId(t *testing.T, input string) []byte { diff --git a/codec/init_test.go b/codec/init_test.go index ae0900f8..3e0fb612 100644 --- a/codec/init_test.go +++ b/codec/init_test.go @@ -1,11 +1,13 @@ package codec -import "github.com/streamingfast/logging" +import ( + "github.com/streamingfast/logging" +) -var zlog, _ = logging.PackageLogger("firesol", "github.com/streamingfast/firehose-solana/codec") +var zlog, _ = logging.PackageLogger("firesol", "github.com/streamingfast/firehose-solana/codec.test") + +type ObjectReader func() (interface{}, error) func init() { logging.InstantiateLoggers() } - -type ObjectReader func() (interface{}, error) diff --git a/deploy/Dockerfile b/deploy/Dockerfile deleted file mode 100644 index 2fe643d8..00000000 --- a/deploy/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM gcr.io/eoscanada-shared-services/dubuntu:latest - -RUN apt update && apt-get -y install curl ca-certificates && rm -rf /var/cache/apt/* - -RUN mkdir -p /app/ && curl -Lo /app/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.2.2/grpc_health_probe-linux-amd64 && chmod +x /app/grpc_health_probe - -COPY /firesol /app/firesol - diff --git a/deploy/build.sh b/deploy/build.sh deleted file mode 100755 index 1c7ee09c..00000000 --- a/deploy/build.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -go test -v ../... || exit 1 - -GOOS=linux GOARCH=amd64 go build -v -o ./firesol ../cmd/firesol - - -TAG=gcr.io/eoscanada-shared-services/firesol -REV=$(git rev-parse --short HEAD) -IMG=$TAG:ab-$REV - -docker build . -t $IMG - -echo -echo Get ready -echo -echo kcns eth-dev1 -echo kubectl set image sts firesol=$IMG -echo - -docker push $IMG - -echo -echo kcns eth-dev1 -echo kubectl set image sts firesol=$IMG -echo diff --git a/deploy/config.svc.solana.yaml b/deploy/config.svc.solana.yaml deleted file mode 100644 index 9a763d6d..00000000 --- a/deploy/config.svc.solana.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: cloud.google.com/v1 -kind: BackendConfig -metadata: - labels: - app: dgraphql-v1 - name: dgraphql-backendconfig - namespace: sol-mainnet -spec: - timeoutSec: 86400 - securityPolicy: - name: 'banned-api-abusers' \ No newline at end of file diff --git a/deploy/depl.dgraphql.yaml b/deploy/depl.dgraphql.yaml deleted file mode 100644 index 9ceea1ce..00000000 --- a/deploy/depl.dgraphql.yaml +++ /dev/null @@ -1,103 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: dgraphql-v1 - version: v1 - name: dgraphql-v1 - namespace: sol-mainnet -spec: - minReadySeconds: 0 - progressDeadlineSeconds: 600 - replicas: 2 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: dgraphql-v1 - version: v1 - strategy: - rollingUpdate: - maxSurge: 50% - maxUnavailable: 50% - type: RollingUpdate - template: - metadata: - labels: - app: dgraphql-v1 - version: v1 - name: dgraphql-v1 - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - dgraphql-v1 - topologyKey: kubernetes.io/hostname - weight: 10 - containers: - - command: - - /app/firesol - - start - - graphql - - --config-file= - - --log-format=stackdriver - - --log-to-file=false - - --graphql-rpc-url=http://api.mainnet-beta.solana.com:80/rpc - - --graphql-rpc-ws-url=ws://api.mainnet-beta.solana.com:80/rpc - - --graphql-http-listen-addr=:8080 - - --graphql-config-name=mainnet - - --graphql-slot-offset=100 - env: - - name: GOOGLE_APPLICATION_CREDENTIALS - value: /var/secrets/google/keyfile.json - - name: INFO - value: .* - image: gcr.io/eoscanada-shared-services/firesol:ab-bb43353 - imagePullPolicy: IfNotPresent - name: dgraphql - ports: - - containerPort: 8080 - name: http-dgraphql - protocol: TCP - - containerPort: 9102 - name: prometheus - protocol: TCP - readinessProbe: - failureThreshold: 2 - httpGet: - path: /healthz - port: 8080 - scheme: HTTP - initialDelaySeconds: 5 - periodSeconds: 2 - successThreshold: 1 - timeoutSeconds: 1 - resources: - limits: - cpu: "1" - memory: 1Gi - requests: - cpu: 13m - memory: 50Mi - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - volumeMounts: - - mountPath: /var/secrets/google - name: google-cloud-key - dnsPolicy: ClusterFirst - restartPolicy: Always - schedulerName: default-scheduler - securityContext: {} - serviceAccount: app-data-reader - serviceAccountName: app-data-reader - terminationGracePeriodSeconds: 5 - volumes: - - name: google-cloud-key - secret: - defaultMode: 420 - secretName: keyfile-app-data-reader diff --git a/deploy/ing.solana.yaml b/deploy/ing.solana.yaml deleted file mode 100644 index 3a500b1d..00000000 --- a/deploy/ing.solana.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - annotations: - kubernetes.io/ingress.class: gce - networking.gke.io/managed-certificates: sol-sf-io - name: default-ingress - namespace: sol-mainnet -spec: - rules: - - host: mainnet.sol.streamingfast.io - http: - paths: - - backend: - serviceName: dgraphql-v1 - servicePort: 8080 - path: /graphiql - - backend: - serviceName: dgraphql-v1 - servicePort: 8080 - path: /graphiql/* - - backend: - serviceName: dgraphql-v1 - servicePort: 8080 - path: /graphql \ No newline at end of file diff --git a/deploy/mcrt.solana.yaml b/deploy/mcrt.solana.yaml deleted file mode 100644 index 7bc9975f..00000000 --- a/deploy/mcrt.solana.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: networking.gke.io/v1 -kind: ManagedCertificate -metadata: - name: sol-sf-io - namespace: sol-mainnet -spec: - domains: - - mainnet.sol.streamingfast.io \ No newline at end of file diff --git a/deploy/svc.solana.yaml b/deploy/svc.solana.yaml deleted file mode 100644 index 7b16f514..00000000 --- a/deploy/svc.solana.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - cloud.google.com/neg: '{"ingress": true}' - beta.cloud.google.com/backend-config: '{"default": "dgraphql-backendconfig"}' - labels: - app: dgraphql-v1 - monitor: prometheus - version: v1 - name: dgraphql-v1 - namespace: sol-mainnet -spec: - externalTrafficPolicy: Cluster - ports: - - name: http-dgraphql - port: 8080 - protocol: TCP - targetPort: 8080 - - name: prometheus - port: 9102 - protocol: TCP - targetPort: 9102 - selector: - app: dgraphql-v1 - version: v1 - sessionAffinity: None - type: NodePort diff --git a/deploy/svcacct.solana.yaml b/deploy/svcacct.solana.yaml deleted file mode 100644 index bab3988c..00000000 --- a/deploy/svcacct.solana.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - annotations: - iam.gke.io/gcp-service-account: app-data-reader@dfuseio-global.iam.gserviceaccount.com - name: app-data-reader - namespace: sol-mainnet \ No newline at end of file diff --git a/devel/.gitignore b/devel/.gitignore index faa0cc83..8cbc8d38 100644 --- a/devel/.gitignore +++ b/devel/.gitignore @@ -1,6 +1,3 @@ -firedata/ - -# You can use this folder to ignore your "personal" startup folders -/perso -*localdata* -*data* \ No newline at end of file +firehose-data/ +sf-data/ +perso diff --git a/devel/dgraphql/dgraphql.yaml b/devel/dgraphql/dgraphql.yaml deleted file mode 100644 index b3a24630..00000000 --- a/devel/dgraphql/dgraphql.yaml +++ /dev/null @@ -1,9 +0,0 @@ -start: - args: - - dgraphql - flags: - common-rpc-endpoint: "https://api.mainnet-beta.solana.com/rpc" - common-rpc-ws-endpoint: "wss://api.mainnet-beta.solana.com/rpc" - dgraphql-http-addr: ":8080" - dgraphql-grpc-addr: ":9000" - dgraphql-serumhist-grpc-addr: ":9001" diff --git a/devel/dgraphql/start.sh b/devel/dgraphql/start.sh deleted file mode 100755 index 84e924bb..00000000 --- a/devel/dgraphql/start.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -firesol="$ROOT/../firesol" - -main() { - pushd "$ROOT" &> /dev/null - - clean= - - while getopts "hc" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - exec $firesol -c $(basename $ROOT).yaml start "$@" -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c]" - echo "" - echo "Start $(basename $ROOT) environment starting dgraphql connect to Mainnet (Beta) network." - echo "" - echo "Options" - echo " -c Clean actual data directory first" -} - -main "$@" diff --git a/devel/firehose-mainnet/firehose-mainnet.yaml b/devel/firehose-mainnet/firehose-mainnet.yaml index 6128508b..682f85e6 100644 --- a/devel/firehose-mainnet/firehose-mainnet.yaml +++ b/devel/firehose-mainnet/firehose-mainnet.yaml @@ -1,14 +1,17 @@ start: args: - - firehose + - firehose + - substreams-tier1 + - substreams-tier2 flags: - log-to-file: false - common-live-blocks-addr: - common-merged-blocks-store-url: gs://dfuseio-global-blocks-us/sol-mainnet/v1 - firehose-grpc-listen-addr: ":9000" - substreams-enabled: true - substreams-partial-mode-enabled: true - substreams-cache-save-interval: 1000 - substreams-sub-request-parallel-jobs: 5 - substreams-sub-request-block-range-size: 25000 - substreams-state-store-url: /tmp/substreams-states + common-merged-blocks-store-url: gs://dfuseio-global-blocks-uscentral/sol-mainnet/v1?project=dfuseio-global + common-one-block-store-url: gs://dfuseio-global-blocks-uscentral/sol-mainnet/v1-oneblock?project=dfuseio-global + common-forked-blocks-store-url: gs://dfuseio-global-blocks-uscentral/sol-mainnet/v1-forked?project=dfuseio-global + common-live-blocks-addr: "" + common-first-streamable-block: 1690600 + firehose-grpc-listen-addr: :9003 + substreams-tier1-grpc-listen-addr: :9000 + substreams-tier2-grpc-listen-addr: :9002 + substreams-tier1-subrequests-endpoint: localhost:9002 + substreams-tier1-subrequests-plaintext: true + substreams-state-bundle-size: 100 diff --git a/devel/firehose-mainnet/start.sh b/devel/firehose-mainnet/start.sh index 8d81745b..9987d505 100755 --- a/devel/firehose-mainnet/start.sh +++ b/devel/firehose-mainnet/start.sh @@ -3,7 +3,7 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" clean= -firesol="$ROOT/../firesol" +firenear="$ROOT/../firesol" main() { pushd "$ROOT" &> /dev/null @@ -21,10 +21,10 @@ main() { set -e if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true + rm -rf firehose-data &> /dev/null || true fi - exec $firesol -c $(basename $ROOT).yaml start "$@" + exec $firenear -c $(basename $ROOT).yaml start "$@" } usage_error() { @@ -46,4 +46,4 @@ usage() { echo " -c Clean actual data directory first" } -main "$@" +main "$@" \ No newline at end of file diff --git a/devel/firehose/firehose.yaml b/devel/firehose/firehose.yaml deleted file mode 100644 index 847def80..00000000 --- a/devel/firehose/firehose.yaml +++ /dev/null @@ -1,7 +0,0 @@ -start: - args: - - firehose - flags: - common-live-blocks-addr: ":9001" - common-merged-blocks-store-url: "gs://dfuseio-global-blocks-us/sol-mainnet/v1" - firehose-grpc-listen-addr: ":9000" diff --git a/devel/firehose/start.sh b/devel/firehose/start.sh deleted file mode 100755 index 89ab59df..00000000 --- a/devel/firehose/start.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -firesol="$ROOT/../firesol" - -main() { - pushd "$ROOT" &> /dev/null - - clean= - - while getopts "hc" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - exec $firesol -c $(basename $ROOT).yaml start "$@" -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c]" - echo "" - echo "Start $(basename $ROOT) environment starting dgraphql connect to Mainnet (Beta) network." - echo "" - echo "Options" - echo " -c Clean actual data directory first" - echo "Examples (grpc)" - echo ' Stream Blocks' - -} - -main "$@" \ No newline at end of file diff --git a/devel/mainnet-sync/mainnet-sync.yaml b/devel/mainnet-sync/mainnet-sync.yaml new file mode 100644 index 00000000..7e75fb9e --- /dev/null +++ b/devel/mainnet-sync/mainnet-sync.yaml @@ -0,0 +1,16 @@ +start: + args: + - reader-node + flags: + reader-node-arguments: + tools + bt + blocks + --bt-project + mainnet-beta + --bt-instance + solana-ledger + {start-block-num} + 0 + --firehose-enabled + --linkable \ No newline at end of file diff --git a/devel/reader-stdin/start.sh b/devel/mainnet-sync/start.sh similarity index 84% rename from devel/reader-stdin/start.sh rename to devel/mainnet-sync/start.sh index 04295929..9987d505 100755 --- a/devel/reader-stdin/start.sh +++ b/devel/mainnet-sync/start.sh @@ -3,7 +3,7 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" clean= -firesol="$ROOT/../firesol" +firenear="$ROOT/../firesol" main() { pushd "$ROOT" &> /dev/null @@ -21,10 +21,10 @@ main() { set -e if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true + rm -rf firehose-data &> /dev/null || true fi - exec $firesol -c $(basename $ROOT).yaml start "$@" + exec $firenear -c $(basename $ROOT).yaml start "$@" } usage_error() { diff --git a/devel/reader-bt/reader-bt.yaml b/devel/reader-bt/reader-bt.yaml deleted file mode 100644 index 4f31a3fd..00000000 --- a/devel/reader-bt/reader-bt.yaml +++ /dev/null @@ -1,26 +0,0 @@ -start: - args: - - reader-bt - flags: - common-one-block-store-url: "gs://dfuseio-global-blocks-us/sol-mainnet/v1-oneblock" - common-merged-blocks-store-url: "gs://dfuseio-global-blocks-us/sol-mainnet/v1" - reader-bt-readiness-max-latency: "600s" - reader-bt-debug-firehose-logs: "false" - reader-bt-log-to-zap: "false" - reader-bt-blocks-chan-capacity: "1000" - reader-bt-grpc-listen-addr: ":9000" - reader-bt-project-id: "mainnet-beta" - reader-bt-instance-id: "solana-ledger" - common-first-streamable-block: "152694700" - - - - - - - - - - - - diff --git a/devel/reader-bt/start.sh b/devel/reader-bt/start.sh deleted file mode 100755 index ab0115c5..00000000 --- a/devel/reader-bt/start.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -ulimit -n 960480 960480 - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -firesol="$ROOT/../firesol" - -export RUST_LOG=solana=info,solana_metrics=error - -main() { - pushd "$ROOT" &> /dev/null - - clean= - network="mainnet-beta" - - while getopts "hcn:" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - n) network="$OPTARG";; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - exec $firesol -c $(basename $ROOT).yaml start -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c] [-n ]" - echo "" - echo "Start $(basename $ROOT) environment syncing reader with the pre-defined . When nothing is specified," - echo "sync with 'mainnet-beta' network." - echo "" - echo "Available networks:" - echo " mainnet-beta" - echo " testnet" - echo " devnet" - echo " custom" - echo "" - echo "When providing 'custom', you must manully provide the extra flags required for reader to know where" - echo "to connect to:" - echo ' start.sh custom -- --reader-node-extra-arguments="--entrypoint --trusted-validator --trusted-validator ... --expected-genesis-hash "' - echo "" - echo "Options" - echo " -c Clean actual data directory first" - echo " -n Actual network to connect to, values can be any '--reader-node-network' accepted value (expect 'development' which will not work properly if chosen)" -} - -main "$@" diff --git a/devel/reader-stdin/reader-stdin.yaml b/devel/reader-stdin/reader-stdin.yaml deleted file mode 100644 index d6d80f5c..00000000 --- a/devel/reader-stdin/reader-stdin.yaml +++ /dev/null @@ -1,14 +0,0 @@ -start: - args: - - reader-node-stdin - flags: - log-to-file: false - common-one-block-store-url: gs://dfuseio-global-blocks-us/sol-mainnet/v3-oneblock - common-merged-blocks-store-url: gs://dfuseio-global-blocks-us/sol-mainnet/v3 - reader-node-grpc-listen-addr: ":9000" - reader-node-blocks-chan-capacity: 10000 - reader-node-network: "mainnet-beta" - reader-node-debug-firehose-logs: true - reader-node-log-to-zap: true - reader-node-one-block-suffix: "bozo" - reader-node-firehose-batch-files-path: "/firehose-ram-disk/" diff --git a/devel/reader-sync/reader-sync.yaml b/devel/reader-sync/reader-sync.yaml deleted file mode 100644 index 6064bcc0..00000000 --- a/devel/reader-sync/reader-sync.yaml +++ /dev/null @@ -1,15 +0,0 @@ -start: - args: - - reader-node - flags: - augmented-mode: "false" - common-one-block-store-url: "gs://dfuseio-global-blocks-us/sol-mainnet/v4-oneblock" - common-merged-blocks-store-url: "gs://dfuseio-global-blocks-us/sol-mainnet/v4" - reader-node-grpc-listen-addr: ":8899" - reader-node-network: "mainnet-beta" - reader-node-debug-firehose-logs: "false" - reader-node-log-to-zap: "true" - reader-node-one-block-suffix: "default" - data-dir: "./firedata" - reader-node-firehose-batch-files-path: "" - reader-node-extra-arguments: "--expected-shred-version 3247 --firehose --enable-rpc-transaction-history --identity /Users/julien/codebase/sf/sf-solana/devel/reader-sync/reader/identity.json --known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 --known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ --known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ --known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S --only-known-rpc --private-rpc --dynamic-port-range 8000-8012 --entrypoint entrypoint.mainnet-beta.solana.com:8001 --entrypoint entrypoint2.mainnet-beta.solana.com:8001 --entrypoint entrypoint3.mainnet-beta.solana.com:8001 --entrypoint entrypoint4.mainnet-beta.solana.com:8001 --entrypoint entrypoint5.mainnet-beta.solana.com:8001 --expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d --wal-recovery-mode skip_any_corrupted_record --ledger /Users/julien/codebase/sf/sf-solana/devel/sf-data/node/ledger" diff --git a/devel/reader-sync/reader/identity.json b/devel/reader-sync/reader/identity.json deleted file mode 100644 index 3fe79b1a..00000000 --- a/devel/reader-sync/reader/identity.json +++ /dev/null @@ -1 +0,0 @@ -[232,99,163,50,53,108,202,78,67,243,24,170,150,221,36,49,145,126,145,194,78,227,33,10,156,217,198,8,32,106,52,138,188,251,35,123,145,112,171,198,138,66,18,237,199,218,79,213,100,87,125,245,249,98,71,117,72,254,207,250,219,215,156,68] \ No newline at end of file diff --git a/devel/reader-sync/solana-validator-DihkpHCvJoJS91WDRiHtkVHkwotuAhDTHq5d3tREeRej.log b/devel/reader-sync/solana-validator-DihkpHCvJoJS91WDRiHtkVHkwotuAhDTHq5d3tREeRej.log deleted file mode 100644 index ab828b9c..00000000 --- a/devel/reader-sync/solana-validator-DihkpHCvJoJS91WDRiHtkVHkwotuAhDTHq5d3tREeRej.log +++ /dev/null @@ -1,160 +0,0 @@ -[2022-05-10T20:18:46.433322000Z INFO solana_validator] solana-validator 1.9.18 (src:devbuild; feat:1070292356) -[2022-05-10T20:18:46.433803000Z INFO solana_validator] Starting validator with: ArgsOs { - inner: [ - "solana-validator", - "--rpc-port", - "14200", - "--limit-ledger-size", - "--expected-shred-version", - "3247", - "--firehose", - "--enable-rpc-transaction-history", - "--identity", - "/Users/julien/codebase/sf/sf-solana/devel/reader-sync/reader/identity.json", - "--known-validator", - "7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2", - "--known-validator", - "GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ", - "--known-validator", - "DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ", - "--known-validator", - "CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S", - "--only-known-rpc", - "--private-rpc", - "--dynamic-port-range", - "8000-8012", - "--entrypoint", - "entrypoint.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint2.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint3.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint4.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint5.mainnet-beta.solana.com:8001", - "--expected-genesis-hash", - "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d", - "--wal-recovery-mode", - "skip_any_corrupted_record", - "--ledger", - "/Users/julien/codebase/sf/sf-solana/devel/sf-data/node/ledger", - ], - } -[2022-05-10T20:18:46.435252000Z WARN solana_perf] CUDA is disabled -[2022-05-10T20:18:46.472046000Z WARN solana_validator] --vote-account not specified, validator will not vote -[2022-05-10T20:18:46.479278000Z INFO solana_validator] Contacting 145.40.67.83:8001 to determine the validator's public IP address -[2022-05-10T20:18:46.655920000Z INFO solana_entry::entry] Loading "libpoh-simd.so" -[2022-05-10T20:18:46.656715000Z WARN solana_perf::perf_libs] "/Users/julien/codebase/sf/solana/target/debug/perf-libs" does not exist -[2022-05-10T20:18:46.659645000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 34.83.231.102:8001 -[2022-05-10T20:18:55.967652000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel -[2022-05-10T20:18:55.968360000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 147.75.38.117:8001 -[2022-05-10T20:19:04.009359000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel -[2022-05-10T20:19:04.009820000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 145.40.93.177:8001 -[2022-05-10T20:29:14.939527000Z INFO solana_validator] solana-validator 1.9.18 (src:devbuild; feat:1070292356) -[2022-05-10T20:29:14.939939000Z INFO solana_validator] Starting validator with: ArgsOs { - inner: [ - "solana-validator", - "--rpc-port", - "14200", - "--limit-ledger-size", - "--expected-shred-version", - "3247", - "--firehose", - "--enable-rpc-transaction-history", - "--identity", - "/Users/julien/codebase/sf/sf-solana/devel/reader-sync/reader/identity.json", - "--known-validator", - "7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2", - "--known-validator", - "GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ", - "--known-validator", - "DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ", - "--known-validator", - "CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S", - "--only-known-rpc", - "--private-rpc", - "--dynamic-port-range", - "8000-8012", - "--entrypoint", - "entrypoint.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint2.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint3.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint4.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint5.mainnet-beta.solana.com:8001", - "--expected-genesis-hash", - "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d", - "--wal-recovery-mode", - "skip_any_corrupted_record", - "--ledger", - "/Users/julien/codebase/sf/sf-solana/devel/sf-data/node/ledger", - ], - } -[2022-05-10T20:29:14.941608000Z WARN solana_perf] CUDA is disabled -[2022-05-10T20:29:14.978569000Z WARN solana_validator] --vote-account not specified, validator will not vote -[2022-05-10T20:29:14.985490000Z INFO solana_validator] Contacting 145.40.67.83:8001 to determine the validator's public IP address -[2022-05-10T20:29:15.190933000Z INFO solana_entry::entry] Loading "libpoh-simd.so" -[2022-05-10T20:29:15.191633000Z WARN solana_perf::perf_libs] "/Users/julien/codebase/sf/solana/target/debug/perf-libs" does not exist -[2022-05-10T20:29:15.194434000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 145.40.67.83:8001 -[2022-05-10T20:29:25.732768000Z INFO solana_validator] solana-validator 1.9.18 (src:devbuild; feat:1070292356) -[2022-05-10T20:29:25.732864000Z INFO solana_validator] Starting validator with: ArgsOs { - inner: [ - "solana-validator", - "--rpc-port", - "14200", - "--limit-ledger-size", - "--expected-shred-version", - "3247", - "--firehose", - "--enable-rpc-transaction-history", - "--identity", - "/Users/julien/codebase/sf/sf-solana/devel/reader-sync/reader/identity.json", - "--known-validator", - "7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2", - "--known-validator", - "GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ", - "--known-validator", - "DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ", - "--known-validator", - "CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S", - "--only-known-rpc", - "--private-rpc", - "--dynamic-port-range", - "8000-8012", - "--entrypoint", - "entrypoint.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint2.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint3.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint4.mainnet-beta.solana.com:8001", - "--entrypoint", - "entrypoint5.mainnet-beta.solana.com:8001", - "--expected-genesis-hash", - "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d", - "--wal-recovery-mode", - "skip_any_corrupted_record", - "--ledger", - "/Users/julien/codebase/sf/sf-solana/devel/sf-data/node/ledger", - ], - } -[2022-05-10T20:29:25.733531000Z WARN solana_perf] CUDA is disabled -[2022-05-10T20:29:25.748904000Z WARN solana_validator] --vote-account not specified, validator will not vote -[2022-05-10T20:29:25.751135000Z INFO solana_validator] Contacting 34.83.231.102:8001 to determine the validator's public IP address -[2022-05-10T20:29:26.044735000Z INFO solana_entry::entry] Loading "libpoh-simd.so" -[2022-05-10T20:29:26.044867000Z WARN solana_perf::perf_libs] "/Users/julien/codebase/sf/solana/target/debug/perf-libs" does not exist -[2022-05-10T20:29:26.045340000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 34.83.231.102:8001 -[2022-05-10T20:29:34.244249000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel -[2022-05-10T20:29:34.245033000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 147.75.38.117:8001 -[2022-05-10T20:29:42.280677000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel -[2022-05-10T20:29:42.281123000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 86.109.15.59:8001 -[2022-05-10T20:29:51.045669000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel -[2022-05-10T20:29:51.046134000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 145.40.67.83:8001 -[2022-05-10T20:29:59.288692000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel -[2022-05-10T20:29:59.289122000Z INFO solana_net_utils] Checking that tcp ports [(8000, TcpListener { addr: 0.0.0.0:8000, fd: 92 })] are reachable from 145.40.93.177:8001 -[2022-05-10T20:30:07.597140000Z ERROR solana_net_utils] Received no response at tcp/8000, check your port configuration: timed out waiting on channel diff --git a/devel/reader-sync/start.sh b/devel/reader-sync/start.sh deleted file mode 100755 index 68971063..00000000 --- a/devel/reader-sync/start.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -ulimit -n 960480 960480 - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -firesol="$ROOT/../firesol" - -export RUST_LOG=solana=info,solana_metrics=error - -main() { - pushd "$ROOT" &> /dev/null - - clean= - network="mainnet-beta" - - while getopts "hcn:" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - n) network="$OPTARG";; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - if [[ $network == "" || $network == "development" ]]; then - usage_error "The network value '$network' is invalid." - fi - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - exec $firesol -c $(basename $ROOT).yaml start reader-node -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c] [-n ]" - echo "" - echo "Start $(basename $ROOT) environment syncing reader with the pre-defined . When nothing is specified," - echo "sync with 'mainnet-beta' network." - echo "" - echo "Available networks:" - echo " mainnet-beta" - echo " testnet" - echo " devnet" - echo " custom" - echo "" - echo "When providing 'custom', you must manully provide the extra flags required for reader to know where" - echo "to connect to:" - echo ' start.sh custom -- --reader-node-extra-arguments="--entrypoint --trusted-validator --trusted-validator ... --expected-genesis-hash "' - echo "" - echo "Options" - echo " -c Clean actual data directory first" - echo " -n Actual network to connect to, values can be any '--reader-node-network' accepted value (expect 'development' which will not work properly if chosen)" -} - -main "$@" diff --git a/devel/serumhist/injector.yaml b/devel/serumhist/injector.yaml deleted file mode 100644 index 5523c0a8..00000000 --- a/devel/serumhist/injector.yaml +++ /dev/null @@ -1,13 +0,0 @@ -start: - args: - - serumhist - flags: - common-live-blocks-addr: "" - common-merged-blocks-store-url: "gs://dfuseio-global-blocks-us/sol-mainnet/v1" - serumhist-enable-injector-mode: true - serumhist-enable-bigquery-injector-mode: true - serumhist-enable-server-mode: false - serumhist-grpc-listen-addr: ":9000" - serumhist-http-listen-addr: ":8080" - serumhist-flush-slots-interval: 1 - serumhist-start-block-num: 66693000 \ No newline at end of file diff --git a/devel/serumhist/server.yaml b/devel/serumhist/server.yaml deleted file mode 100644 index d2bdfb8a..00000000 --- a/devel/serumhist/server.yaml +++ /dev/null @@ -1,9 +0,0 @@ -start: - args: - - serumhist - flags: - serumhist-dsn: "bigkv://dfuseio-global.dfuse-saas/sol-mainnet-serumhist-v1" - serumhist-enable-injector-mode: false - serumhist-enable-server-mode: true - serumhist-grpc-listen-addr: ":9000" - serumhist-http-listen-addr: ":8080" diff --git a/devel/serumhist/start.sh b/devel/serumhist/start.sh deleted file mode 100755 index fd42c0bc..00000000 --- a/devel/serumhist/start.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -firesol="$ROOT/../firesol" - -main() { - pushd "$ROOT" &> /dev/null - - clean= - start_injection= - force_only_injection= - - while getopts "hcif" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - i) start_injection=true;; - f) force_only_injection=true;; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - if [[ $start_injection == "true" ]] || [[ $force_only_injection == "true" ]]; then - if [[ $force_only_injection == "true" ]]; then - echo "Running only serumhist injector" - exec $firesol -c injector.yaml start "$@" - else - echo "Running serumhist injector for 15 seconds" - KILL_AFTER=${KILL_AFTER:-15} $firesol -c injector.yaml start "$@" - fi - fi - if [[ force_only_injection != "true" ]]; then - echo "running serumhist server" - exec $firesol -c server.yaml start "$@" - fi -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c] [-i] [-f]" - echo "" - echo "Start $(basename $ROOT) environment starting dgraphql connect to Mainnet (Beta) network." - echo "" - echo "Options" - echo " -c Clean actual data directory first" - echo " -i Starts injector" - echo " -f Force to only injector mode" - echo "Environment" - echo " INFO= Turn info logs for (multiple separated by ','), accepts app name or regexp (.* for all)" - echo " DEBUG= Turn debug logs for (multiple separated by ','), accepts app name or regexp (.* for all)" - echo " TRACE=true Enables traces" - echo "Examples" - echo " Find Fill Keys firesol tools kv prefix 01 --dsn=badger:///full/path" - echo " Decode a serumhist key firesol tools serumhist keyer decode 01e77dd955f7b84e4736d066e97188f1919ba42d8b4b090752c1d236c3666cf634fffffffffc13258affffffffffffff99fffffffffffffffcffffffffffec00b3" - echo " Get An Order firesol tools serumhist orders get GaeUpY7CT8rjoeVGjY1t3mJJDd1bdXxYWtrGSpsVFors 1310540 --dsn=badger:///full/path" - echo " Get Fill by market firesol tools serumhist orders get GaeUpY7CT8rjoeVGjY1t3mJJDd1bdXxYWtrGSpsVFors --dsn=badger:///full/path" -} - -main "$@" diff --git a/devel/snapshotter/snapshotter.yaml b/devel/snapshotter/snapshotter.yaml deleted file mode 100644 index 71cd0ad4..00000000 --- a/devel/snapshotter/snapshotter.yaml +++ /dev/null @@ -1,8 +0,0 @@ -start: - args: - - snapshotter - flags: - snapshotter-source-bucket: "mainnet-beta-ledger-us-west1" - snapshotter-source-prefix: "" - snapshotter-destination-bucket: "sf-developement-random" - snapshotter-destination-prefix: "sol-mainnet/snapshots-blocks-logs-test" diff --git a/devel/snapshotter/start.sh b/devel/snapshotter/start.sh deleted file mode 100755 index 90ce8a34..00000000 --- a/devel/snapshotter/start.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -firesol="$ROOT/../firesol" - -main() { - pushd "$ROOT" &> /dev/null - - clean= - - while getopts "hc" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - exec $firesol -c $(basename $ROOT).yaml start "$@" -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c]" - echo "" - echo "Start $(basename $ROOT)" - echo "" - echo "Options" - echo " -c Clean actual data directory first" - echo "Examples (grpc)" - echo ' Stream Blocks' - -} - -main "$@" \ No newline at end of file diff --git a/devel/standard/miner/bootstrap.tar.zst b/devel/standard/miner/bootstrap.tar.zst deleted file mode 100644 index 2701d9a3..00000000 Binary files a/devel/standard/miner/bootstrap.tar.zst and /dev/null differ diff --git a/devel/standard/miner/genesis.hash b/devel/standard/miner/genesis.hash deleted file mode 100644 index c64dae46..00000000 --- a/devel/standard/miner/genesis.hash +++ /dev/null @@ -1 +0,0 @@ -GTWZGyjoRJTQ9rAdxyMiXYXef2aQwCTGiePYcfFXto2h \ No newline at end of file diff --git a/devel/standard/miner/genesis.shred b/devel/standard/miner/genesis.shred deleted file mode 100644 index dcfb1113..00000000 --- a/devel/standard/miner/genesis.shred +++ /dev/null @@ -1 +0,0 @@ -11046 \ No newline at end of file diff --git a/devel/standard/miner/identity.json b/devel/standard/miner/identity.json deleted file mode 100644 index 5184010b..00000000 --- a/devel/standard/miner/identity.json +++ /dev/null @@ -1 +0,0 @@ -[254,235,166,85,112,29,132,16,126,87,234,58,144,120,98,141,75,133,85,10,31,71,74,147,81,189,128,180,112,21,110,62,209,238,65,42,248,12,152,28,130,46,170,32,19,8,11,29,255,208,207,18,123,131,230,60,249,157,68,133,246,187,45,62] \ No newline at end of file diff --git a/devel/standard/miner/vote-account.json b/devel/standard/miner/vote-account.json deleted file mode 100644 index 82f6b50a..00000000 --- a/devel/standard/miner/vote-account.json +++ /dev/null @@ -1 +0,0 @@ -[20,56,168,163,69,108,152,234,0,141,198,249,46,73,26,137,220,236,168,32,104,227,254,24,52,164,142,156,234,244,241,125,140,251,87,59,167,221,106,29,235,181,131,103,142,168,154,82,116,65,214,118,9,105,140,31,74,17,83,25,205,239,46,183] \ No newline at end of file diff --git a/devel/standard/peering/identity.json b/devel/standard/peering/identity.json deleted file mode 100644 index 3fe79b1a..00000000 --- a/devel/standard/peering/identity.json +++ /dev/null @@ -1 +0,0 @@ -[232,99,163,50,53,108,202,78,67,243,24,170,150,221,36,49,145,126,145,194,78,227,33,10,156,217,198,8,32,106,52,138,188,251,35,123,145,112,171,198,138,66,18,237,199,218,79,213,100,87,125,245,249,98,71,117,72,254,207,250,219,215,156,68] \ No newline at end of file diff --git a/devel/standard/reader/identity.json b/devel/standard/reader/identity.json deleted file mode 100644 index 3fe79b1a..00000000 --- a/devel/standard/reader/identity.json +++ /dev/null @@ -1 +0,0 @@ -[232,99,163,50,53,108,202,78,67,243,24,170,150,221,36,49,145,126,145,194,78,227,33,10,156,217,198,8,32,106,52,138,188,251,35,123,145,112,171,198,138,66,18,237,199,218,79,213,100,87,125,245,249,98,71,117,72,254,207,250,219,215,156,68] \ No newline at end of file diff --git a/devel/standard/standard.yaml b/devel/standard/standard.yaml deleted file mode 100644 index 78f80737..00000000 --- a/devel/standard/standard.yaml +++ /dev/null @@ -1,6 +0,0 @@ -start: - args: - - miner-node - - peering-node - flags: - miner-node-bootstrap-data-url: ./miner/bootstrap.tar.zst diff --git a/devel/standard/start.sh b/devel/standard/start.sh deleted file mode 100755 index 04295929..00000000 --- a/devel/standard/start.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -clean= -firesol="$ROOT/../firesol" - -main() { - pushd "$ROOT" &> /dev/null - - while getopts "hc" opt; do - case $opt in - h) usage && exit 0;; - c) clean=true;; - \?) usage_error "Invalid option: -$OPTARG";; - esac - done - shift $((OPTIND-1)) - [[ $1 = "--" ]] && shift - - set -e - - if [[ $clean == "true" ]]; then - rm -rf firedata &> /dev/null || true - fi - - exec $firesol -c $(basename $ROOT).yaml start "$@" -} - -usage_error() { - message="$1" - exit_code="$2" - - echo "ERROR: $message" - echo "" - usage - exit ${exit_code:-1} -} - -usage() { - echo "usage: start.sh [-c]" - echo "" - echo "Start $(basename $ROOT) environment." - echo "" - echo "Options" - echo " -c Clean actual data directory first" -} - -main "$@" \ No newline at end of file diff --git a/go.mod b/go.mod index fd9a8f19..0c8ae61e 100644 --- a/go.mod +++ b/go.mod @@ -4,47 +4,23 @@ go 1.20 require ( cloud.google.com/go/bigtable v1.13.0 - cloud.google.com/go/storage v1.30.1 - github.com/ShinyTrinkets/overseer v0.3.0 github.com/abourget/llerrgroup v0.2.0 - github.com/dustin/go-humanize v1.0.0 github.com/golang/protobuf v1.5.3 github.com/klauspost/compress v1.15.12 - github.com/lithammer/dedent v1.1.0 - github.com/lorenzosaino/go-sysctl v0.1.1 - github.com/manifoldco/promptui v0.9.0 - github.com/mholt/archiver/v3 v3.5.0 github.com/mr-tron/base58 v1.2.0 github.com/spf13/cobra v1.6.1 - github.com/spf13/viper v1.10.1 - github.com/streamingfast/bstream v0.0.2-0.20230510131449-6b591d74130d - github.com/streamingfast/cli v0.0.4-0.20220630165922-bc58c6666fc8 - github.com/streamingfast/dauth v0.0.0-20230726175303-fc1d7198cb33 - github.com/streamingfast/derr v0.0.0-20230515163924-8570aaa43fe1 - github.com/streamingfast/dgrpc v0.0.0-20230621153617-bc715cdb9fd1 - github.com/streamingfast/dlauncher v0.0.0-20220909121534-7a9aa91dbb32 - github.com/streamingfast/dmetering v0.0.0-20230706141508-cd783a0fb671 - github.com/streamingfast/dmetrics v0.0.0-20230516031116-28fcfeb4b9ed + github.com/streamingfast/bstream v0.0.2-0.20230731165201-639b4f347707 + github.com/streamingfast/cli v0.0.4-0.20230608140431-f501fec4f1ce + github.com/streamingfast/dlauncher v0.0.0-20230607184145-76399faad89e github.com/streamingfast/dstore v0.1.1-0.20230620124109-3924b3b36c77 - github.com/streamingfast/firehose v0.1.1-0.20230717171430-1d7a06ed55c5 - github.com/streamingfast/firehose-solana/types v0.0.0-20230126211203-a2d17ce9f8b9 + github.com/streamingfast/firehose-core v0.1.7-0.20230801160202-1bc4e2396882 github.com/streamingfast/jsonpb v0.0.0-20210811021341-3670f0aa02d0 - github.com/streamingfast/kvdb v0.0.2-0.20210811194032-09bf862bd2e3 - github.com/streamingfast/logging v0.0.0-20220813175024-b4fbb0e893df - github.com/streamingfast/merger v0.0.3-0.20221123202507-445dfd357868 - github.com/streamingfast/node-manager v0.0.2-0.20221115101723-d9823ffd7ad5 + github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 + github.com/streamingfast/node-manager v0.0.2-0.20230406142433-692298a8b8d2 github.com/streamingfast/pbgo v0.0.6-0.20221020131607-255008258d28 - github.com/streamingfast/relayer v0.0.2-0.20220909122435-e67fbc964fd9 - github.com/streamingfast/sf-tools v0.0.0-20230217210059-2ab577f61e8e - github.com/streamingfast/shutter v1.5.0 github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8 - github.com/streamingfast/substreams v1.1.11-0.20230727201625-837a63b339ef github.com/stretchr/testify v1.8.3 - github.com/test-go/testify v1.1.4 go.uber.org/zap v1.24.0 - golang.org/x/crypto v0.6.0 - google.golang.org/api v0.114.0 - google.golang.org/grpc v1.54.0 google.golang.org/protobuf v1.30.0 ) @@ -55,59 +31,66 @@ require ( cloud.google.com/go/iam v0.12.0 // indirect cloud.google.com/go/longrunning v0.4.1 // indirect cloud.google.com/go/monitoring v1.12.0 // indirect + cloud.google.com/go/storage v1.30.1 // indirect cloud.google.com/go/trace v1.8.0 // indirect contrib.go.opencensus.io/exporter/stackdriver v0.13.10 // indirect contrib.go.opencensus.io/exporter/zipkin v0.1.1 // indirect filippo.io/edwards25519 v1.0.0-rc.1 // indirect github.com/Azure/azure-pipeline-go v0.2.3 // indirect github.com/Azure/azure-storage-blob-go v0.14.0 // indirect - github.com/Azure/go-autorest/autorest/adal v0.9.20 // indirect - github.com/BurntSushi/toml v0.3.1 // indirect - github.com/DataDog/zstd v1.4.1 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v0.32.3 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.15.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.39.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/propagator v0.0.0-20221018185641-36f91511cfd7 // indirect + github.com/KimMachineGun/automemlimit v0.2.4 // indirect + github.com/PuerkitoBio/purell v1.1.1 // indirect + github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect github.com/RoaringBitmap/roaring v0.9.4 // indirect github.com/ShinyTrinkets/meta-logger v0.2.0 // indirect - github.com/andybalholm/brotli v1.0.0 // indirect + github.com/ShinyTrinkets/overseer v0.3.0 // indirect github.com/aws/aws-sdk-go v1.44.233 // indirect github.com/benbjohnson/clock v1.3.0 // indirect github.com/beorn7/perks v1.0.1 // indirect - github.com/bits-and-blooms/bitset v1.2.0 // indirect + github.com/bits-and-blooms/bitset v1.3.1 // indirect github.com/blendle/zapdriver v1.3.1 // indirect + github.com/bobg/go-generics/v2 v2.1.1 // indirect github.com/bufbuild/connect-go v1.8.0 // indirect + github.com/bufbuild/connect-grpchealth-go v1.1.1 // indirect github.com/bufbuild/connect-grpcreflect-go v1.0.0 // indirect github.com/bufbuild/connect-opentelemetry-go v0.3.0 // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect - github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chzyer/readline v1.5.0 // indirect + github.com/cilium/ebpf v0.4.0 // indirect github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe // indirect github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b // indirect + github.com/containerd/cgroups v1.0.4 // indirect + github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect - github.com/dgraph-io/badger/v2 v2.0.3 // indirect - github.com/dgraph-io/ristretto v0.0.2 // indirect - github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect - github.com/dsnet/compress v0.0.1 // indirect + github.com/docker/go-units v0.5.0 // indirect + github.com/dustin/go-humanize v1.0.0 // indirect + github.com/emicklei/go-restful/v3 v3.8.0 // indirect github.com/envoyproxy/go-control-plane v0.10.3 // indirect github.com/envoyproxy/protoc-gen-validate v0.9.1 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/golang-jwt/jwt/v4 v4.2.0 // indirect + github.com/go-openapi/jsonpointer v0.19.5 // indirect + github.com/go-openapi/jsonreference v0.19.5 // indirect + github.com/go-openapi/swag v0.21.1 // indirect + github.com/godbus/dbus/v5 v5.1.0 // indirect + github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/snappy v0.0.4 // indirect + github.com/google/gnostic v0.5.7-v3refs // indirect github.com/google/go-cmp v0.5.9 // indirect + github.com/google/gofuzz v1.1.0 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect github.com/googleapis/gax-go/v2 v2.7.1 // indirect github.com/gorilla/mux v1.8.0 // indirect - github.com/gorilla/rpc v1.2.0 // indirect - github.com/gorilla/websocket v1.4.2 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect @@ -118,20 +101,26 @@ require ( github.com/ipfs/go-ipfs-api v0.6.0 // indirect github.com/jhump/protoreflect v1.12.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/jpillora/backoff v1.0.0 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/klauspost/cpuid/v2 v2.2.3 // indirect - github.com/klauspost/pgzip v1.2.4 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/libp2p/go-flow-metrics v0.1.0 // indirect github.com/libp2p/go-libp2p v0.26.3 // indirect + github.com/lithammer/dedent v1.1.0 // indirect github.com/logrusorgru/aurora v2.0.3+incompatible // indirect - github.com/magiconair/properties v1.8.5 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/mailru/easyjson v0.7.7 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-ieproxy v0.0.1 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/minio/sha256-simd v1.0.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/mitchellh/mapstructure v1.4.3 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mostynb/go-grpc-compression v1.1.17 // indirect github.com/mschoch/smat v0.2.0 // indirect github.com/multiformats/go-base32 v0.1.0 // indirect @@ -142,12 +131,11 @@ require ( github.com/multiformats/go-multihash v0.2.1 // indirect github.com/multiformats/go-multistream v0.4.1 // indirect github.com/multiformats/go-varint v0.0.7 // indirect - github.com/nwaples/rardecode v1.1.0 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/opencontainers/runtime-spec v1.0.2 // indirect github.com/openzipkin/zipkin-go v0.4.1 // indirect github.com/paulbellamy/ratecounter v0.2.0 // indirect - github.com/pelletier/go-toml v1.9.4 // indirect - github.com/pierrec/lz4/v4 v4.1.17 // indirect - github.com/pkg/errors v0.9.1 // indirect + github.com/pelletier/go-toml/v2 v2.0.6 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_golang v1.16.0 // indirect github.com/prometheus/client_model v0.4.0 // indirect @@ -157,27 +145,39 @@ require ( github.com/schollz/closestmatch v2.1.0+incompatible // indirect github.com/sethvargo/go-retry v0.2.3 // indirect github.com/shopspring/decimal v1.3.1 // indirect + github.com/sirupsen/logrus v1.8.1 // indirect + github.com/smartystreets/goconvey v1.6.4 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect - github.com/spf13/afero v1.9.2 // indirect - github.com/spf13/cast v1.4.1 // indirect + github.com/spf13/afero v1.9.3 // indirect + github.com/spf13/cast v1.5.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.15.0 // indirect github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680 // indirect github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5 // indirect + github.com/streamingfast/dauth v0.0.0-20230726175303-fc1d7198cb33 // indirect github.com/streamingfast/dbin v0.9.1-0.20220513054835-1abebbb944ad // indirect + github.com/streamingfast/derr v0.0.0-20230515163924-8570aaa43fe1 // indirect + github.com/streamingfast/dgrpc v0.0.0-20230623191332-4ed02c06bc6f // indirect + github.com/streamingfast/dmetering v0.0.0-20230731155453-e1df53e362aa // indirect + github.com/streamingfast/dmetrics v0.0.0-20230516031116-28fcfeb4b9ed // indirect github.com/streamingfast/dtracing v0.0.0-20220305214756-b5c0e8699839 // indirect + github.com/streamingfast/firehose v0.1.1-0.20230731171526-3428fc0ff8d9 // indirect + github.com/streamingfast/index-builder v0.0.0-20221031203737-fa2e70f09dc2 // indirect + github.com/streamingfast/merger v0.0.3-0.20230413191947-fe3ce68cb9f8 // indirect github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308 // indirect + github.com/streamingfast/relayer v0.0.2-0.20220909122435-e67fbc964fd9 // indirect github.com/streamingfast/sf-tracing v0.0.0-20230616174903-cd2ade641ca9 // indirect - github.com/subosito/gotenv v1.2.0 // indirect + github.com/streamingfast/shutter v1.5.0 // indirect + github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0 // indirect + github.com/streamingfast/substreams v1.1.11 // indirect + github.com/subosito/gotenv v1.4.2 // indirect github.com/teris-io/shortid v0.0.0-20201117134242-e59966efd125 // indirect github.com/tetratelabs/wazero v1.1.0 // indirect github.com/tidwall/gjson v1.14.1 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect - github.com/ulikunitz/xz v0.5.7 // indirect github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c // indirect - github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect - github.com/ybbus/jsonrpc v2.1.2+incompatible // indirect github.com/yourbasic/graph v0.0.0-20210606180040-8ecfec1c2869 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/detectors/gcp v1.9.0 // indirect @@ -194,9 +194,10 @@ require ( go.opentelemetry.io/otel/trace v1.16.0 // indirect go.opentelemetry.io/proto/otlp v0.19.0 // indirect go.uber.org/atomic v1.10.0 // indirect + go.uber.org/automaxprocs v1.5.1 // indirect go.uber.org/multierr v1.9.0 // indirect + golang.org/x/crypto v0.6.0 // indirect golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect - golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect golang.org/x/mod v0.11.0 // indirect golang.org/x/net v0.10.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect @@ -204,17 +205,28 @@ require ( golang.org/x/sys v0.9.0 // indirect golang.org/x/term v0.8.0 // indirect golang.org/x/text v0.9.0 // indirect - golang.org/x/tools v0.6.0 // indirect + golang.org/x/time v0.1.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.114.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230320184635-7606e756e683 // indirect - gopkg.in/ini.v1 v1.66.2 // indirect + google.golang.org/grpc v1.54.0 // indirect + gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/olivere/elastic.v3 v3.0.75 // indirect gopkg.in/vrecan/death.v3 v3.0.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - honnef.co/go/tools v0.0.1-2020.1.4 // indirect + k8s.io/api v0.25.0 // indirect + k8s.io/apimachinery v0.25.0 // indirect + k8s.io/client-go v0.25.0 // indirect + k8s.io/klog/v2 v2.70.1 // indirect + k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect + k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect lukechampine.com/blake3 v1.1.7 // indirect + sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect + sigs.k8s.io/yaml v1.2.0 // indirect ) replace ( diff --git a/go.sum b/go.sum index 739624ac..da3f8e5b 100644 --- a/go.sum +++ b/go.sum @@ -8,7 +8,6 @@ cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxK cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= @@ -32,8 +31,6 @@ cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Ud cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= -cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= @@ -42,33 +39,22 @@ cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvf cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= cloud.google.com/go/bigtable v1.13.0 h1:ay8BM3Am2aIH95swAO/hjdE1UwzxVzLxRJ5cEdXN/LY= cloud.google.com/go/bigtable v1.13.0/go.mod h1:26n+Af4kb+O8sUWehsIbsEMLb/X0cK2tVgAasJwSj20= cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= -cloud.google.com/go/compute v1.2.0/go.mod h1:xlogom/6gr8RJGBe7nT2eGsQYAFUbbv8dbC29qE3Xmw= -cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= -cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= -cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= -cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= -cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.18.0 h1:FEigFqoDbys2cvFkZ9Fjq4gnHBP55anJ0yQyau2f9oY= cloud.google.com/go/compute v1.18.0/go.mod h1:1X7yHxec2Ga+Ss6jPyjxRxpu2uu7PLgsOVXvgU0yacs= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -cloud.google.com/go/container v1.3.1/go.mod h1:/mI/mTug/DwXJPxysUoInyvF3ekeXGiP8teCAtgGMdM= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/iam v0.1.1/go.mod h1:CKqrcnI/suGpybEHxZ7BMehL0oA4LpdyJdUlTl9jVMw= -cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= cloud.google.com/go/iam v0.12.0 h1:DRtTY29b75ciH6Ov1PHb4/iat2CLCvrOm40Q0a6DFpE= cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY= cloud.google.com/go/logging v1.7.0 h1:CJYxlNNNNAMkHp9em/YEXcfJg+rPDg7YfwoRpMU+t5I= cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= cloud.google.com/go/monitoring v1.1.0/go.mod h1:L81pzz7HKn14QCMaCs6NTQkdBnE87TElyanS95vIcl4= -cloud.google.com/go/monitoring v1.6.0/go.mod h1:w+OY1TYCk4MtvY7WfEHlIp5mP8SV/gDSqOsvGhVa2KM= cloud.google.com/go/monitoring v1.12.0 h1:+X79DyOP/Ny23XIqSIb37AvFWSxDN15w/ktklVvPLso= cloud.google.com/go/monitoring v1.12.0/go.mod h1:yx8Jj2fZNEkL/GYZyTLS4ZtZEZN8WtDEiEqG4kLK50w= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= @@ -81,16 +67,12 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -cloud.google.com/go/storage v1.21.0/go.mod h1:XmRlxkgPjlBONznT2dDUU/5XlpU2OjMnKuqnZI01LAA= -cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= cloud.google.com/go/trace v1.0.0/go.mod h1:4iErSByzxkyHWzzlAj63/Gmjz0NH1ASqhJguHpGcr6A= -cloud.google.com/go/trace v1.2.0/go.mod h1:Wc8y/uYyOhPy12KEnXG9XGrvfMz5F5SrYecQlbW1rwM= cloud.google.com/go/trace v1.8.0 h1:GFPLxbp5/FzdgTzor3nlNYNxMd6hLmzkE7sA9F0qQcA= cloud.google.com/go/trace v1.8.0/go.mod h1:zH7vcsbAhklH8hWFig58HvxcxyQbaIqMarMg9hn5ECA= contrib.go.opencensus.io/exporter/stackdriver v0.12.6/go.mod h1:8x999/OcIPy5ivx/wDiV7Gx4D+VUPODf0mWRGRc5kSk= -contrib.go.opencensus.io/exporter/stackdriver v0.13.8/go.mod h1:huNtlWx75MwO7qMs0KrMxPZXzNNWebav1Sq/pm02JdQ= contrib.go.opencensus.io/exporter/stackdriver v0.13.10 h1:a9+GZPUe+ONKUwULjlEOucMMG0qfSCCenlji0Nhqbys= contrib.go.opencensus.io/exporter/stackdriver v0.13.10/go.mod h1:I5htMbyta491eUxufwwZPQdcKvvgzMB4O9ni41YnIM8= contrib.go.opencensus.io/exporter/zipkin v0.1.1 h1:PR+1zWqY8ceXs1qDQQIlgXe+sdiwCf0n32bH4+Epk8g= @@ -104,9 +86,9 @@ github.com/Azure/azure-storage-blob-go v0.14.0 h1:1BCg74AmVdYwO3dlKwtFU1V0wU2PZd github.com/Azure/azure-storage-blob-go v0.14.0/go.mod h1:SMqIBi+SuiQH32bvyjngEewEeXoPfKMgWlBDaYf6fck= github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest/autorest v0.11.27 h1:F3R3q42aWytozkV8ihzcgMO4OA4cuqr3bNlsEuF6//A= github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= github.com/Azure/go-autorest/autorest/adal v0.9.20 h1:gJ3E98kMpFB1MFqQCvA1yFab8vthOeD4VlFRQULxahg= -github.com/Azure/go-autorest/autorest/adal v0.9.20/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= @@ -114,55 +96,38 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/DataDog/zstd v1.4.1 h1:3oxKN3wbHibqx897utPC2LTQU4J+IHWWJO+glkAkpFM= -github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/GeertJohan/go.incremental v1.0.0/go.mod h1:6fAjUhbVuX1KcMD3c8TEgVUqmo4seqhv0i0kdATSkM0= github.com/GeertJohan/go.rice v1.0.0/go.mod h1:eH6gbSOAUv07dQuZVnBmoDP8mgsM1rtixis4Tib9if0= github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v0.32.3 h1:fiyErF/p5fz79DvMCca9ayvYiWYsFP1oJbskt9fjo8I= github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v0.32.3/go.mod h1:s7Gpwj0tk7XnVCm4BQEmx/mbS36SuTCY/vMB2SNxe8o= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.8.6/go.mod h1:NE8dAwJ1VU4WFdJYTlO0tdobQFdy70z8wNDU1L3VAr4= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.15.0 h1:5uR5WqunMUqN5Z+USN/N25aM7zWd0JUCIfz1B/w0HtA= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.15.0/go.mod h1:LTScD9l1w6+z1IB3FKtXxS4oenRlIJQQrIiV/Iq1Bsw= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.39.0 h1:RDD62LpQbuv4rpLOm0w1zlLIcIo7k+zi3EZV5nVyAo8= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.32.6/go.mod h1:/G0zPXsUx5gZUd6ryJakuDo4VR7EJScegf1ZNK8xIGs= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.39.0 h1:uZvy89rOd+9ryIir65RO7BmKYxQ9uBbFcnNcslu6RIM= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.39.0/go.mod h1:lz6DEePTxmjvYMtusOoS3qDAErC0STi/wmvqJucKY28= github.com/GoogleCloudPlatform/opentelemetry-operations-go/propagator v0.0.0-20221018185641-36f91511cfd7 h1:4cXY9jZO7UoRYKyD+CssnBlwn2HTeUzCQ1b44PJijzc= github.com/GoogleCloudPlatform/opentelemetry-operations-go/propagator v0.0.0-20221018185641-36f91511cfd7/go.mod h1:FwtSi1M0P8cuMlHxVso1vcivukprUr1bBwf15CRypOI= +github.com/KimMachineGun/automemlimit v0.2.4 h1:GBty8TK8k0aJer1Pq5/3Vdt2ef+YpLhcqNo+PSD5CoI= +github.com/KimMachineGun/automemlimit v0.2.4/go.mod h1:38QAnnnNhnFuAIW3+aPlaVUHqzE9buJYZK3m/jsra8E= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/OneOfOne/xxhash v1.2.5 h1:zl/OfRA6nftbBK9qTohYBJ5xvw6C/oNKizR7cZGl3cI= -github.com/OneOfOne/xxhash v1.2.5/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= +github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= +github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/RoaringBitmap/roaring v0.9.4 h1:ckvZSX5gwCRaJYBNe7syNawCU5oruY9gQmjXlp4riwo= github.com/RoaringBitmap/roaring v0.9.4/go.mod h1:icnadbWcNyfEHlYdr+tDlOTih1Bf/h+rzPpv4sbomAA= github.com/ShinyTrinkets/meta-logger v0.2.0 h1:oR533+wuhSJ+vLsnSq1CBSGQygNv8nDsvuRUVcOls0g= github.com/ShinyTrinkets/meta-logger v0.2.0/go.mod h1:cY1KnpPfpLIopR+arZXHYVrVGO6AETrhi3HmRGFjU+U= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/sarama v1.30.0/go.mod h1:zujlQQx1kzHsh4jfV1USnptCQrHAEZ2Hk8fTKCulPVs= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/Shopify/toxiproxy/v2 v2.1.6-0.20210914104332-15ea381dcdae/go.mod h1:/cvHQkZ1fst0EmZnA5dFtiQdWCNCFYzb+uE2vqVgvx0= -github.com/Sytten/logrus-zap-hook v0.1.0/go.mod h1:J0ktevklw/xJNpI2FzfTdJssk4P0vq3K2qzwihJ2gWU= github.com/abourget/llerrgroup v0.2.0 h1:2nPXy6Owo/KOKDQYvjMmS8rsjtitvuP2OEGrqgpj428= github.com/abourget/llerrgroup v0.2.0/go.mod h1:QukSa1Sim/0R4aRlWdiBdAy+0i1PBfOd1WHpfYM1ngA= github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= github.com/alecthomas/gometalinter v2.0.11+incompatible/go.mod h1:qfIpQGGz3d+NmgyPBqv+LSh50emm1pt72EtcX2vKYQk= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/andybalholm/brotli v1.0.0 h1:7UCwP93aiSfvWpapti8g88vVVGp2qqtGyePsSuDafo4= -github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/aws/aws-sdk-go v1.22.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.43/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.37.0/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.44.233 h1:KB3p/yL32oG/aF4Ld0Ui9CU0tdezvhX6Xdqpb8vyP3U= github.com/aws/aws-sdk-go v1.44.233/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= @@ -173,34 +138,31 @@ github.com/azer/logger v1.0.0/go.mod h1:iaDID7UeBTyUh31bjGFlLkr87k23z/mHMMLzt6YQ github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA= github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= +github.com/bits-and-blooms/bitset v1.3.1 h1:y+qrlmq3XsWi+xZqSaueaE8ry8Y127iMxlMfqcK8p0g= +github.com/bits-and-blooms/bitset v1.3.1/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= github.com/blendle/zapdriver v1.3.1 h1:C3dydBOWYRiOk+B8X9IVZ5IOe+7cl+tGOexN4QqHfpE= github.com/blendle/zapdriver v1.3.1/go.mod h1:mdXfREi6u5MArG4j9fewC+FGnXaBR+T4Ox4J2u4eHCc= +github.com/bobg/go-generics/v2 v2.1.1 h1:4rN9upY6Xm4TASSMeH+NzUghgO4h/SbNrQphIjRd/R0= +github.com/bobg/go-generics/v2 v2.1.1/go.mod h1:iPMSRVFlzkJSYOCXQ0n92RA3Vxw0RBv2E8j9ZODXgHk= github.com/bufbuild/connect-go v1.8.0 h1:srluNkFkZBfSfg9Qb6DrO+5nMaxix//h2ctrHZhMGKc= github.com/bufbuild/connect-go v1.8.0/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= +github.com/bufbuild/connect-grpchealth-go v1.1.1 h1:ldceS3m7+Qvl3GI4yzB4oCg3uOdD+Y1bytc/5xuMpqo= +github.com/bufbuild/connect-grpchealth-go v1.1.1/go.mod h1:9KbkogLoUIxOTPKyWDv5evkawr1IYXaHax4XoUHCgoQ= github.com/bufbuild/connect-grpcreflect-go v1.0.0 h1:zWsLFYqrT1O2sNJFYfTXI5WxbAyiY2dvevvnJHPtV5A= github.com/bufbuild/connect-grpcreflect-go v1.0.0/go.mod h1:825I20H8bfE9rLnBH/046JSpmm3uwpNYdG4duCARetc= github.com/bufbuild/connect-opentelemetry-go v0.3.0 h1:AuZi3asTDKmjGtd2aqpyP4p5QvBFG/YEaHopViLatnk= github.com/bufbuild/connect-opentelemetry-go v0.3.0/go.mod h1:r1ppyTtu1EWeRodk4Q/JbyQhIWtO7eR3GoRDzjeEcNU= -github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g= github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764= @@ -215,6 +177,8 @@ github.com/chzyer/test v0.0.0-20210722231415-061457976a23 h1:dZ0/VyGgQdVGAss6Ju0 github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 h1:kHaBemcxl8o/pQ5VM1c8PVE1PubbNx3mjUr09OqWGCs= github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575/go.mod h1:9d6lWj8KzO/fd/NrVaLscBKmPigpZpn5YawRPw+e3Yo= +github.com/cilium/ebpf v0.4.0 h1:QlHdikaxALkqWasW8hAC1mfR0jdmvbfaBdBPFmRSglA= +github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -225,31 +189,18 @@ github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XP github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b h1:ACGZRIr7HsgBKHsueQ1yM4WaVaXh21ynwqsF8M8tXhA= github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.12+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20190212144455-93d5ec2c7f76/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/containerd/cgroups v1.0.4 h1:jN/mbWBEaz+T1pi5OFtnkQ+8qnmEbAr1Oo1FRm5B0dA= +github.com/containerd/cgroups v1.0.4/go.mod h1:nLNQtsF7Sl2HxNebu77i1R0oDlhiTG+kO4JTrUzo6IA= +github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 h1:HVTnpeuvF6Owjd5mniCL8DEXo7uYXdQEmOP4FJbV5tg= github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3/go.mod h1:p1d6YEZWvFzEh4KLyvBcVSnrfNDDvK2zfK/4x2v/4pE= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM= github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -259,26 +210,16 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= github.com/dfuse-io/overseer v0.2.1-0.20191024193921-39856397cf3f h1:0YiXKT4RydOTvRI6Zz6bJd4h8WKC8juA2AaalLmJ/i8= github.com/dfuse-io/overseer v0.2.1-0.20191024193921-39856397cf3f/go.mod h1:E0cqa1dK90ii2fglIk+u4K3LYXpkb9ZFWVDfbS2++Xk= -github.com/dgraph-io/badger/v2 v2.0.3 h1:inzdf6VF/NZ+tJ8RwwYMjJMvsOALTHYdozn0qSl6XJI= -github.com/dgraph-io/badger/v2 v2.0.3/go.mod h1:3KY8+bsP8wI0OEnQJAKpd4wIJW/Mm32yw2j/9FUVnIM= -github.com/dgraph-io/ristretto v0.0.2-0.20200115201040-8f368f2f2ab3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.0.2 h1:a5WaUrDa0qm0YrAAS1tUykT5El3kt62KNZZeMxQn3po= -github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= -github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= -github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/emicklei/go-restful/v3 v3.8.0 h1:eCZ8ulSerjdAiaNpF7GxXIE7ZCMo1moN1qX+S609eVw= +github.com/emicklei/go-restful/v3 v3.8.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -287,22 +228,18 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/go-control-plane v0.10.3 h1:xdCVXxEe0Y3FQith+0cj2irwZudqGYvecuLB1HtdexY= github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo= github.com/envoyproxy/protoc-gen-validate v0.9.1 h1:PS7VIOgmSVhWUEeZwTe7z7zouA22Cr590PzXKbZHOVY= github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= +github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= @@ -310,37 +247,36 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.19.5 h1:1WJP/wi4OjB4iV8KVbH73rQaoialJrqv8gitZLxGLtM= +github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.21.1 h1:wm0rhTb5z7qpJRHBdPOMuY4QjVUMbF6/kwoYeRAOrKU= +github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg= github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/protobuf v0.0.0-20180717141946-636bf0302bc9/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= +github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -356,7 +292,6 @@ github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v0.0.0-20180814211427-aa810b61a9c7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -377,14 +312,14 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= +github.com/google/gnostic v0.5.7-v3refs h1:FhTMOKj2VhjpouxvWJAV1TL304uMlb9zcDqkl6cEI54= +github.com/google/gnostic v0.5.7-v3refs/go.mod h1:73MKFl6jIHelAJNaBGFzt3SPtZULs9dYrGFt8OiIsHQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -398,10 +333,11 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= +github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -425,84 +361,47 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf/go.mod h1:RpwtwJQFrIEPstU94h88MWPXP2ektJZ8cZ0YntAmXiE= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= -github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= -github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= -github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= -github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6cvPr8A= github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= -github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/googleinterns/cloud-operations-api-mock v0.0.0-20200709193332-a1e58c29bdd3/go.mod h1:h/KNeRx7oYU4SpA4SoY7W2/NxDKEEVuwA6j9A27L4OI= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c h1:7lF+Vz0LqiRidnzC1Oq86fpX1q/iEv2KJdrCtttYjT4= github.com/gordonklaus/ineffassign v0.0.0-20180909121442-1003c8bd00dc/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/rpc v1.2.0 h1:WvvdC2lNeT1SP32zrIce5l0ECBfbAlmrmSBsuc57wfk= github.com/gorilla/rpc v1.2.0/go.mod h1:V4h9r+4sF5HnzqbwIez0fKSpANP0zlYd3qR7p36jkTQ= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190717153623-606c73359dba/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.8.1/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 h1:lLT7ZLSzGLI08vc9cpd+tYmNWjdKDqyr/2L+f6U12Fk= github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/ipfs/boxo v0.8.0 h1:UdjAJmHzQHo/j3g3b1bAcAXCj/GM6iTwvSlBDvPBNBs= @@ -511,12 +410,6 @@ github.com/ipfs/go-cid v0.4.0 h1:a4pdZq0sx6ZSxbCizebnKiMCx/xI/aBBFlB73IgH4rA= github.com/ipfs/go-cid v0.4.0/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= github.com/ipfs/go-ipfs-api v0.6.0 h1:JARgG0VTbjyVhO5ZfesnbXv9wTcMvoKRBLF1SzJqzmg= github.com/ipfs/go-ipfs-api v0.6.0/go.mod h1:iDC2VMwN9LUpQV/GzEeZ2zNqd8NUdRmWcFM+K/6odf0= -github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= -github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= -github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.4.2/go.mod h1:sb+Xq/fTY5yktf/VxLsE3wlfPqQjp0aWNYyvBVK62bc= -github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= github.com/jhump/gopoet v0.1.0/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= @@ -529,46 +422,34 @@ github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9Y github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a/go.mod h1:UJSiEoRfvx3hP73CvoARgeLjaIOjybY9vj8PUPPFGeU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.10.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/klauspost/compress v1.15.12 h1:YClS/PImqYbn+UILDnqxQCZ3RehC9N318SU3kElDUEM= github.com/klauspost/compress v1.15.12/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y70BU= github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/pgzip v1.2.4 h1:TQ7CNpYKovDOmqzRHKxJh0BeaBI7UdQZYc6p7pMQh1A= -github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -586,16 +467,17 @@ github.com/lithammer/dedent v1.1.0 h1:VNzHMVCBNG1j0fh3OrsFRkVUwStdDArbgBWoPAffkt github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/lorenzosaino/go-sysctl v0.1.1 h1:GtMW47kS6ym10GaSu17iONx2RmXCelnkunMSXg4LJOU= -github.com/lorenzosaino/go-sysctl v0.1.1/go.mod h1:J8IUEpaHUUrL+FuDT+OsvlToHAV0A3u6iNRrJdCkoCU= github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/manifoldco/promptui v0.3.2/go.mod h1:8JU+igZ+eeiiRku4T5BjtKh2ms8sziGpSYl1gN8Bazw= -github.com/manifoldco/promptui v0.8.0/go.mod h1:n4zTdgP0vr0S3w7/O/g98U+e0gwLScEXGwov2nIKuGQ= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= @@ -603,38 +485,25 @@ github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-ieproxy v0.0.1 h1:qiyop7gCflfhwCzGyeT0gro3sF9AIg9HU98JORTkqfI= github.com/mattn/go-ieproxy v0.0.1/go.mod h1:pYabZ6IHcRpFh7vIaLfK7rdcWgFEb3SFJ6/gNWuh88E= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mattn/go-sqlite3 v1.14.12 h1:TJ1bhYJPV44phC+IMu1u2K/i5RriLTPe+yc68XDJ1Z0= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/mholt/archiver/v3 v3.5.0 h1:nE8gZIrw66cu4osS/U7UW7YDuGMHssxKutU8IfWxwWE= -github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.3 h1:OVowDSCllw/YjdLkam3/sm7wEtOy59d8ndGgCcyj8cs= -github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/montanaflynn/stats v0.5.0/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/mostynb/go-grpc-compression v1.1.17 h1:N9t6taOJN3mNTTi0wDf4e3lp/G/ON1TP67Pn0vTUA9I= github.com/mostynb/go-grpc-compression v1.1.17/go.mod h1:FUSBr0QjKqQgoDG/e0yiqlR6aqyXC39+g/hFLDfSsEY= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= @@ -657,56 +526,33 @@ github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3d github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/near/borsh-go v0.3.1-0.20210831082424-4377deff6791/go.mod h1:NeMochZp7jN/pYFuxLkrZtmLqbADmnp/y1+/dL+AsyQ= -github.com/nicksnyder/go-i18n v1.10.1/go.mod h1:e4Di5xjP9oTVrC6y3C7C0HoSYXjSbhh/dU0eUV32nB4= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nkovacs/streamquote v0.0.0-20170412213628-49af9bddb229/go.mod h1:0aYXnNPJ8l7uZxf45rWW1a/uME32OF0rhiYGNQ2oF2E= -github.com/nwaples/rardecode v1.1.0 h1:vSxaY8vQhOcVr4mm5e8XllHWTiM4JF507A0Katqw7MQ= -github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo/v2 v2.5.1 h1:auzK7OI497k6x4OvWq+TKAcpcSAlod0doAH72oIN0Jw= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.16.0 h1:6gjqkI8iiRHMvdccRJM8rVKjCWk6ZIm6FTm3ddIe4/c= -github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw= +github.com/opencontainers/runtime-spec v1.0.2 h1:UfAcuLBJB9Coz72x1hgl8O5RVzTdNiaglX6v2DM6FI0= +github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/openzipkin/zipkin-go v0.4.0/go.mod h1:4c3sLeE8xjNqehmF5RpAFLPLJxXscc0R4l6Zg0P1tTQ= github.com/openzipkin/zipkin-go v0.4.1 h1:kNd/ST2yLLWhaWrkgchya40TJabe8Hioj9udfPcEO5A= github.com/openzipkin/zipkin-go v0.4.1/go.mod h1:qY0VqDSN1pOBN94dBc6w2GJlWLiovAyg7Qt6/I9HecM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/paulbellamy/ratecounter v0.2.0 h1:2L/RhJq+HA8gBQImDXtLPrDXK5qAj6ozWVK/zFXVJGs= github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM= -github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU= +github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pierrec/lz4/v4 v4.1.17 h1:kV4Ip+/hUBC+8T6+2EgburRtkE9ef4nbY3f4dFhGjMc= -github.com/pierrec/lz4/v4 v4.1.17/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8/go.mod h1:B1+S9LNcuMyLH/4HMTViQOJevkGiik3wW2AN9zb2fNQ= -github.com/pingcap/check v0.0.0-20200212061837-5e12011dc712/go.mod h1:PYMCGwN0JHjoqGr3HrZoD+b8Tgx8bKnArhSq8YVzUMc= -github.com/pingcap/errors v0.11.0/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pingcap/gofail v0.0.0-20181217135706-6a951c1e42c3/go.mod h1:DazNTg0PTldtpsQiT9I5tVJwV1onHMKBBgXzmJUlMns= -github.com/pingcap/goleveldb v0.0.0-20171020122428-b9ff6c35079e/go.mod h1:O17XtbryoCJhkKGbT62+L2OlrniwqiGLSqrmdHCMzZw= -github.com/pingcap/goleveldb v0.0.0-20191226122134-f82aafb29989/go.mod h1:O17XtbryoCJhkKGbT62+L2OlrniwqiGLSqrmdHCMzZw= -github.com/pingcap/kvproto v0.0.0-20190305055742-ab7debc182d9/go.mod h1:QMdbTAXCHzzygQzqcG9uVUgU2fKeSN1GmfMiykdSzzY= -github.com/pingcap/kvproto v0.0.0-20200403035933-b4034bceab26/go.mod h1:IOdRDPLyda8GX2hE/jO7gqaCV/PNFh8BZQCQZXfIOqI= -github.com/pingcap/log v0.0.0-20191012051959-b742a5d432e9/go.mod h1:4rbK1p9ILyIfb6hU7OG2CiWSqMXnp3JMbiaVJ6mvoY8= -github.com/pingcap/pd v2.1.5+incompatible/go.mod h1:nD3+EoYes4+aNNODO99ES59V83MZSI+dFbhyr667a0E= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -714,183 +560,118 @@ github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZ github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8= github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.11.0 h1:5EAgkfkMl659uZPbe9AS2N68a7Cc1TJbPEuGzFuRbyk= github.com/prometheus/procfs v0.11.0/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/rabbitmq/amqp091-go v1.1.0/go.mod h1:ogQDLSOACsLPsIq0NpbtiifNZi2YOz0VTJ0kHRghqbM= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= -github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/schollz/closestmatch v2.1.0+incompatible h1:Uel2GXEpJqOWBrlyI+oY9LTiyyjYS17cCYRqP13/SHk= github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/sethvargo/go-retry v0.1.0/go.mod h1:JzIOdZqQDNpPkQDmcqgtteAcxFLtYpNF/zJCM1ysDg8= github.com/sethvargo/go-retry v0.2.3 h1:oYlgvIvsju3jNbottWABtbnoLC+GDtLdBHxKWxQm/iU= github.com/sethvargo/go-retry v0.2.3/go.mod h1:1afjQuvh7s4gflMObvjLPaWgluLLyhA1wmVZ6KLpICw= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= -github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= -github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= +github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= +github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= -github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk= -github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= +github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= +github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= +github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680 h1:fGJnUx0shX9Y312QOlz+/+yLquihXRhNqctJ26jtZZM= github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680/go.mod h1:iISPGAstbUsPgyC3auLLi7PYUTi9lHv5z0COam0OPOY= github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5 h1:xCVaIP9q+nqRxHrb1wCLs3AABUcCgLGK0IakN4CMQbk= github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5/go.mod h1:LEQhe6qUvAQSYBJu7MZvDU1kx4JrZzxru3Ga1rRCCuo= -github.com/streamingfast/bstream v0.0.2-0.20221017131819-2a7e38be1047/go.mod h1:Njkx972HcZiz0djWBylxqO/eq686eDGr+egQ1lePj3Q= -github.com/streamingfast/bstream v0.0.2-0.20230510131449-6b591d74130d h1:VVxSg1ac60sMofEH78NDj8I54EAqqOPq9HpZe0cT1LQ= -github.com/streamingfast/bstream v0.0.2-0.20230510131449-6b591d74130d/go.mod h1:Njkx972HcZiz0djWBylxqO/eq686eDGr+egQ1lePj3Q= -github.com/streamingfast/cli v0.0.4-0.20220630165922-bc58c6666fc8 h1:1W2VZY4jRTh7GJ6+PnydanRcr3Hj45SKDnb+kBQQwlc= -github.com/streamingfast/cli v0.0.4-0.20220630165922-bc58c6666fc8/go.mod h1:Lmirl0ABgXzidX33syiUG6lX64mJMK5pDNTBFuz8xZI= -github.com/streamingfast/dauth v0.0.0-20210812020920-1c83ba29add1/go.mod h1:FIYpVqt+ICVuNBoOH3ZIicIctpVoCq3393+RpfXsPEM= +github.com/streamingfast/bstream v0.0.2-0.20230731165201-639b4f347707 h1:hJW+QNNJrR1boQuoEaajlMFjWh0XKt4Fcg33h9hT7Eo= +github.com/streamingfast/bstream v0.0.2-0.20230731165201-639b4f347707/go.mod h1:Njkx972HcZiz0djWBylxqO/eq686eDGr+egQ1lePj3Q= +github.com/streamingfast/cli v0.0.4-0.20230608140431-f501fec4f1ce h1:aGa+KdxKEC5QiDdM9NDcCF3b2QmWl+0lQsIW32wJElM= +github.com/streamingfast/cli v0.0.4-0.20230608140431-f501fec4f1ce/go.mod h1:aOGP1TCGlElmh5ErULAiHmaj5x1jrjFHv6JjJSn7tP0= github.com/streamingfast/dauth v0.0.0-20230726175303-fc1d7198cb33 h1:MyOFvos5szhJWpoLYUeJ3UMlXBlL9kOhdD5LgEfDK48= github.com/streamingfast/dauth v0.0.0-20230726175303-fc1d7198cb33/go.mod h1:zfq+mtesfbaZnNeh1BF+vo+zEFP1sat4pm3lvt40nRw= -github.com/streamingfast/dbin v0.0.0-20210809205249-73d5eca35dc5/go.mod h1:YStE7K5/GH47JsWpY7LMKsDaXXpMLU/M26vYFzXHYRk= github.com/streamingfast/dbin v0.9.1-0.20220513054835-1abebbb944ad h1:6z4uS6TlD9KoHdyE1vzoGsELVCCcviTFT/3/vqCylh8= github.com/streamingfast/dbin v0.9.1-0.20220513054835-1abebbb944ad/go.mod h1:YStE7K5/GH47JsWpY7LMKsDaXXpMLU/M26vYFzXHYRk= -github.com/streamingfast/derr v0.0.0-20210811180100-9138d738bcec/go.mod h1:ulVfui/yGXmPBbt9aAqCWdAjM7YxnZkYHzvQktLfw3M= github.com/streamingfast/derr v0.0.0-20230515163924-8570aaa43fe1 h1:xJB7rXnOHLesosMjfwWsEL2i/40mFSkzenEb3M0qTyM= github.com/streamingfast/derr v0.0.0-20230515163924-8570aaa43fe1/go.mod h1:QSm/AfaDsE0k1xBYi0lW580YJ/WDV/FKZI628tkZR0Y= -github.com/streamingfast/dgrpc v0.0.0-20220909121013-162e9305bbfc/go.mod h1:YlFJuFiB9rmglB5UfTfnsOTfKC1rFo+D0sRbTzLcqgc= -github.com/streamingfast/dgrpc v0.0.0-20230621153617-bc715cdb9fd1 h1:OrDICZSbvZCvFilUR8tbfN9PJKnncnJrGdvNhbso0BY= -github.com/streamingfast/dgrpc v0.0.0-20230621153617-bc715cdb9fd1/go.mod h1:RCoBvUbAxusI2t3wL/LEI3XA7DLGS6cNnHwFEnSvg6o= -github.com/streamingfast/dlauncher v0.0.0-20220909121534-7a9aa91dbb32 h1:8HkoK2ZROiOd/Yy1abSwrhYxZCp5RJV+7RSv8ZKRgJo= -github.com/streamingfast/dlauncher v0.0.0-20220909121534-7a9aa91dbb32/go.mod h1:3yohsSqjVQpUGwIYpFIQ8izS8ms9vYhz2dpDspyxP0A= -github.com/streamingfast/dmetering v0.0.0-20220301165106-a642bb6a21bd/go.mod h1:Eu1SH2HyBbDUmQqJV+f5oowCQ/c02HkAZyR5U2BKIT8= -github.com/streamingfast/dmetering v0.0.0-20230706141508-cd783a0fb671 h1:3N4BYpU0aG7Un8n+N9DI46fevmRB54wzB+jRDoXw3II= -github.com/streamingfast/dmetering v0.0.0-20230706141508-cd783a0fb671/go.mod h1:6lfPT2SUXDk/n0C6bGwcMx/yPQCdDolvI4+/eFJTc78= -github.com/streamingfast/dmetrics v0.0.0-20210811180524-8494aeb34447/go.mod h1:VLdQY/FwczmC/flqWkcsBbqXO4BhU4zQDSK7GMrpcjY= -github.com/streamingfast/dmetrics v0.0.0-20220811180000-3e513057d17c/go.mod h1:fWoyaD76fE7mXZfkfcAfNeU/Hv/y6yJ/RgEcInQLwSw= +github.com/streamingfast/dgrpc v0.0.0-20230623191332-4ed02c06bc6f h1:qiIHzYZpnHdQHwOvsUaPc7DQkeyRptDS+8DN1FCfBcQ= +github.com/streamingfast/dgrpc v0.0.0-20230623191332-4ed02c06bc6f/go.mod h1:0tXk90PNAgFur+u/W6bQPdgfOGPGSwUqHILZKacqJj4= +github.com/streamingfast/dlauncher v0.0.0-20230607184145-76399faad89e h1:Nh/gLDv8rOMIidb/gpO4rZOYVe09k+tof/trezkpku4= +github.com/streamingfast/dlauncher v0.0.0-20230607184145-76399faad89e/go.mod h1:xErlHEDd5+4NlR+Mg3ZtW7BTTLB0yZBxZAjHPrkk8X4= +github.com/streamingfast/dmetering v0.0.0-20230731155453-e1df53e362aa h1:bM6iy5X7Gtw1oh1bMxFmtroouKZu4K4BHXaFvR96jNw= +github.com/streamingfast/dmetering v0.0.0-20230731155453-e1df53e362aa/go.mod h1:3XggUfQMyciaue133qhbIkFqJQqNzozGpa/gI3sdwac= github.com/streamingfast/dmetrics v0.0.0-20230516031116-28fcfeb4b9ed h1:b6EFwgne8MSK4kUjvulyyg2GGyvVUgQ+xY6o8eXlFIA= github.com/streamingfast/dmetrics v0.0.0-20230516031116-28fcfeb4b9ed/go.mod h1:JbxEDbzWRG1dHdNIPrYfuPllEkktZMgm40AwVIBENcw= -github.com/streamingfast/dstore v0.1.1-0.20220607202639-35118aeaf648/go.mod h1:SHSEIPowGeE1TfNNmGeAUUnlO3dwevmX5kFOSazU60M= github.com/streamingfast/dstore v0.1.1-0.20230620124109-3924b3b36c77 h1:u7FWLqz3Uwff609Ja9M+3aGOWqBCVU7dx9i6R6Qc4qI= github.com/streamingfast/dstore v0.1.1-0.20230620124109-3924b3b36c77/go.mod h1:ngKU7WzHwVjOFpt2g+Wtob5mX4IvN90HYlnARcTRbmQ= -github.com/streamingfast/dtracing v0.0.0-20210811175635-d55665d3622a/go.mod h1:bqiYZaX6L/MoXNfFQeAdau6g9HLA3yKHkX8KzStt58Q= github.com/streamingfast/dtracing v0.0.0-20220305214756-b5c0e8699839 h1:K6mJPvh1jAL+/gBS7Bh9jyzWaTib6N47m06gZOTUPwQ= github.com/streamingfast/dtracing v0.0.0-20220305214756-b5c0e8699839/go.mod h1:huOJyjMYS6K8upTuxDxaNd+emD65RrXoVBvh8f1/7Ns= -github.com/streamingfast/firehose v0.1.1-0.20221017171248-8fd3adbe7b4d/go.mod h1:weGz9xDNJMBNmn03XiJZ/b5Ngw8UAUoLirarqG7OwQY= -github.com/streamingfast/firehose v0.1.1-0.20230717171430-1d7a06ed55c5 h1:Au6EIQFGdJVJ02R+aPZioqDmmADy1daGVO1qL0XUEvU= -github.com/streamingfast/firehose v0.1.1-0.20230717171430-1d7a06ed55c5/go.mod h1:zj9KeON9HfZCYUaV4rhEqMhneJFHKv1ppwtPR/rEFAk= -github.com/streamingfast/firehose-solana/types v0.0.0-20230126211203-a2d17ce9f8b9 h1:jih3tJQaewy/xmqgQ6FJAY7mVyODpZZVMfgYFun7vX4= -github.com/streamingfast/firehose-solana/types v0.0.0-20230126211203-a2d17ce9f8b9/go.mod h1:f4bKgAUN9p6O0sBtNZKhnPI5oORQYiapNDK6WQ0RStA= +github.com/streamingfast/firehose v0.1.1-0.20230731171526-3428fc0ff8d9 h1:SybLEPFkJk8EINJGDlijSWxEZGNXDul4zqlDpttQUCI= +github.com/streamingfast/firehose v0.1.1-0.20230731171526-3428fc0ff8d9/go.mod h1:lGC1T6mpAAApjBQNF5COSXb3SbrYRI3dBR1f6/PZE54= +github.com/streamingfast/firehose-core v0.1.7-0.20230801160202-1bc4e2396882 h1:QwOz9qml6ktOEgeVP/qBddm3tHxyx9Lmju4dlTUfNqE= +github.com/streamingfast/firehose-core v0.1.7-0.20230801160202-1bc4e2396882/go.mod h1:DfOy2XdI8zaH+NONVX75X+coBugZ5zO+14DTd4+6Nxs= +github.com/streamingfast/index-builder v0.0.0-20221031203737-fa2e70f09dc2 h1:dgYLhP3STiPi30fISAijFPEB11D4r1fQFc8D3cpgV5s= +github.com/streamingfast/index-builder v0.0.0-20221031203737-fa2e70f09dc2/go.mod h1:OYv1UX/kRsV9aP4SEwa9zpt34qGzdtJzOvdGn+n56as= github.com/streamingfast/jsonpb v0.0.0-20210811021341-3670f0aa02d0 h1:g8eEYbFSykyzIyuxNMmHEUGGUvJE0ivmqZagLDK42gw= github.com/streamingfast/jsonpb v0.0.0-20210811021341-3670f0aa02d0/go.mod h1:cTNObq2Uofb330y05JbbZZ6RwE6QUXw5iVcHk1Fx3fk= -github.com/streamingfast/kvdb v0.0.2-0.20210811194032-09bf862bd2e3 h1:v1ux5D8Xm30wpFpbS6u6fKuZUx/5/UTzYlR4llYaxSM= -github.com/streamingfast/kvdb v0.0.2-0.20210811194032-09bf862bd2e3/go.mod h1:4dQjd/1ZHhyfAWaFN8cwtdPGZU5LLmAQ7zK2HE5Ok40= github.com/streamingfast/logging v0.0.0-20210811175431-f3b44b61606a/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= github.com/streamingfast/logging v0.0.0-20210908162127-bdc5856d5341/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= -github.com/streamingfast/logging v0.0.0-20220222131651-12c3943aac2e/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= github.com/streamingfast/logging v0.0.0-20220304183711-ddba33d79e27/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= github.com/streamingfast/logging v0.0.0-20220304214715-bc750a74b424/go.mod h1:VlduQ80JcGJSargkRU4Sg9Xo63wZD/l8A5NC/Uo1/uU= -github.com/streamingfast/logging v0.0.0-20220813175024-b4fbb0e893df h1:P4pTLzwgd6bO3nnlIPnfQ/9Swnx3kSWxItgfkyDFoWo= -github.com/streamingfast/logging v0.0.0-20220813175024-b4fbb0e893df/go.mod h1:VlduQ80JcGJSargkRU4Sg9Xo63wZD/l8A5NC/Uo1/uU= -github.com/streamingfast/merger v0.0.3-0.20221123202507-445dfd357868 h1:L7VhktkU+fVn2GWU+t1EVP6H2bYkKylWXefWSV7GCqg= -github.com/streamingfast/merger v0.0.3-0.20221123202507-445dfd357868/go.mod h1:WGMs+zwpPQNfzRnOqnyNdQfyGSG4lXYWQacicAGiP4s= -github.com/streamingfast/node-manager v0.0.2-0.20221115101723-d9823ffd7ad5 h1:R7hbTRB1NfC2J2C4BJYrYGtfBpDJCjctvoedAPpPoBQ= -github.com/streamingfast/node-manager v0.0.2-0.20221115101723-d9823ffd7ad5/go.mod h1:6z7e2s6kcZCzM/UN8IUtGU24+TRp5Nygv+1ucvfXvJA= +github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 h1:RN5mrigyirb8anBEtdjtHFIufXdacyTi6i4KBfeNXeo= +github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091/go.mod h1:VlduQ80JcGJSargkRU4Sg9Xo63wZD/l8A5NC/Uo1/uU= +github.com/streamingfast/merger v0.0.3-0.20230413191947-fe3ce68cb9f8 h1:riOEu4aTwjy7Gjq8safA8kYUs+jVKi/gZ0+k7S/w/u8= +github.com/streamingfast/merger v0.0.3-0.20230413191947-fe3ce68cb9f8/go.mod h1:WGMs+zwpPQNfzRnOqnyNdQfyGSG4lXYWQacicAGiP4s= +github.com/streamingfast/node-manager v0.0.2-0.20230406142433-692298a8b8d2 h1:6Jdu6LBwaW38n2jjInFk1fM460cq+5paEAHGPPRWWN0= +github.com/streamingfast/node-manager v0.0.2-0.20230406142433-692298a8b8d2/go.mod h1:R5WwJuyNueq0QXKAFinTGU8zaON0hWJBFHX6KA9WZqk= github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308 h1:xlWSfi1BoPfsHtPb0VEHGUcAdBF208LUiFCwfaVPfLA= github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308/go.mod h1:K1p8Bj/wG34KJvYzPUqtzpndffmpkrVY11u2hkyxCWQ= -github.com/streamingfast/pbgo v0.0.6-0.20220629184423-cfd0608e0cf4/go.mod h1:huKwfgTGFIFZMKSVbD5TywClM7zAeBUG/zePZMqvXQQ= -github.com/streamingfast/pbgo v0.0.6-0.20221014191646-3a05d7bc30c8/go.mod h1:huKwfgTGFIFZMKSVbD5TywClM7zAeBUG/zePZMqvXQQ= github.com/streamingfast/pbgo v0.0.6-0.20221020131607-255008258d28 h1:wmQg8T0rIFl/R3dy97OWRi8OSdM3llvRw2p3TPFVKZQ= github.com/streamingfast/pbgo v0.0.6-0.20221020131607-255008258d28/go.mod h1:huKwfgTGFIFZMKSVbD5TywClM7zAeBUG/zePZMqvXQQ= github.com/streamingfast/relayer v0.0.2-0.20220909122435-e67fbc964fd9 h1:V3LPBmTofZbmT46qQsr0lFa+0qDHZNJXgqLRo9iZBHY= github.com/streamingfast/relayer v0.0.2-0.20220909122435-e67fbc964fd9/go.mod h1:55E/1g+ojZoX86Odp48LFgceJVyh1xx9ZuhknKfmc/o= -github.com/streamingfast/sf-tools v0.0.0-20230217210059-2ab577f61e8e h1:JxmuoZW2HlIDoAzI4XtdqwerpRW4J9EaY1K7Bs3i47o= -github.com/streamingfast/sf-tools v0.0.0-20230217210059-2ab577f61e8e/go.mod h1:uM2R0jdjcHiMONKawyr1XNh8B+qebPJvuApGYn0l/rI= -github.com/streamingfast/sf-tracing v0.0.0-20220829120927-5a5d2e0fe525/go.mod h1:k3hivbalRWW6hvGSV3vJ3wtBSt1pszXI6m9MJa5k0/I= github.com/streamingfast/sf-tracing v0.0.0-20230616174903-cd2ade641ca9 h1:YRwpVvLYa+FEJlTy0S7mk4UptYjk5zac+A+ZE1phOeA= github.com/streamingfast/sf-tracing v0.0.0-20230616174903-cd2ade641ca9/go.mod h1:ktzt1BUj3GF+SKQHEmn3ShryJ7y87JeCHtaTGaDVATs= github.com/streamingfast/shutter v1.5.0 h1:NpzDYzj0HVpSiDJVO/FFSL6QIK/YKOxY0gJAtyaTOgs= github.com/streamingfast/shutter v1.5.0/go.mod h1:B/T6efqdeMGbGwjzPS1ToXzYZI4kDzI5/u4I+7qbjY8= +github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0 h1:Y15G1Z4fpEdm2b+/70owI7TLuXadlqBtGM7rk4Hxrzk= +github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0/go.mod h1:/Rnz2TJvaShjUct0scZ9kKV2Jr9/+KBAoWy4UMYxgv4= github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8 h1:M9HcIwlbl7PipqrKPgNzfEWD9oxAA0mmjdRd2dTk9/4= github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8/go.mod h1:9NfZWSK0zqA+M1YU2pTI8sr1BfijCpqBFceLQARQiNw= -github.com/streamingfast/substreams v1.1.11-0.20230727201625-837a63b339ef h1:rJPxOc1ztPQGIa3oEEoiO5sNolE5angQp4gzqzvJrWg= -github.com/streamingfast/substreams v1.1.11-0.20230727201625-837a63b339ef/go.mod h1:9usbgylKcAAYUS+ADhvw05xTbzF9XqB/C+en3Na8r1Y= +github.com/streamingfast/substreams v1.1.11 h1:HIZB5NBoFsaorJcFKcyTKDGJ+ZkBQcxNpqgY/PpGfuA= +github.com/streamingfast/substreams v1.1.11/go.mod h1:Thcw2blrOD8uwRMGKhjD4BXwy1Fp9UADxIRHRme+raQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -907,8 +688,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf/go.mod h1:M8agBzgqHIhgj7wEn9/0hJUZcrvt9VY+Ln+S1I5Mha0= github.com/teris-io/shortid v0.0.0-20201117134242-e59966efd125 h1:3SNcvBmEPE1YlB1JpVZouslJpI3GBNoiqW7+wb0Rz7w= github.com/teris-io/shortid v0.0.0-20201117134242-e59966efd125/go.mod h1:M8agBzgqHIhgj7wEn9/0hJUZcrvt9VY+Ln+S1I5Mha0= @@ -927,28 +708,11 @@ github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhV github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tikv/client-go v0.0.0-20200824032810-95774393107b/go.mod h1:K0NcdVNrXDq92YPLytsrAwRMyuXi7GZCO6dXNH7OzQc= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tsenart/deadcode v0.0.0-20160724212837-210d2dc333e9/go.mod h1:q+QjxYvZ+fpjMXqs+XEriussHjSYqeXVnAdSV1tkMYk= -github.com/ugorji/go v1.1.2/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v0.0.0-20190204201341-e444a5086c43/go.mod h1:iT03XoTwV7xq/+UGwKO3UbC1nNNlopQiY61beSdrtOA= -github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= -github.com/ulikunitz/xz v0.5.7 h1:YvTNdFzX6+W5m9msiYg/zpkSURPPtOlzbqYjrFn7Yt4= -github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/unrolled/render v1.0.0/go.mod h1:tu82oB5W2ykJRVioYsB+IQKcft7ryBr7w12qMBUPyXg= -github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c h1:GGsyl0dZ2jJgVT+VvWBf/cNijrHRhkrTjkmp5wg7li0= github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c/go.mod h1:xxcJeBb7SIUl/Wzkz1eVKJE/CB34YNrqX2TQI6jY9zs= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= -github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/ybbus/jsonrpc v2.1.2+incompatible h1:V4mkE9qhbDQ92/MLMIhlhMSbz8jNXdagC3xBR5NDwaQ= github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= github.com/yourbasic/graph v0.0.0-20210606180040-8ecfec1c2869 h1:7v7L5lsfw4w8iqBBXETukHo4IPltmD+mWoLRYUmeGN8= @@ -959,10 +723,6 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= @@ -970,103 +730,73 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.22.6/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib/detectors/gcp v1.9.0 h1:en6EnI47A3nrVtKCIgwFS5SUAhYW8LHn4Rkmm6HGhzg= go.opentelemetry.io/contrib/detectors/gcp v1.9.0/go.mod h1:OqG0FEnmWeJWYVrEovaHXHXY4bVTnp/WfTzhwrsGWlw= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.34.0/go.mod h1:fk1+icoN47ytLSgkoWHLJrtVTSQ+HgmkNgPTKrk/Nsc= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.4 h1:PRXhsszxTt5bbPriTjmaweWUsAnJYeWBhUMLRetUgBU= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.4/go.mod h1:05eWWy6ZWzmpeImD3UowLTB3VjDMU1yxQ+ENuVWDM3c= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.34.0/go.mod h1:548ZsYzmT4PL4zWKRd8q/N4z0Wxzn/ZxUE+lkEpwWQA= -go.opentelemetry.io/otel v1.8.0/go.mod h1:2pkj+iMj0o03Y+cW6/m8Y4WkRdYN3AvCXCnzRMp9yvM= -go.opentelemetry.io/otel v1.9.0/go.mod h1:np4EoPGzoPs3O67xUVNoPPcmSvsfOxNlNA4F4AC+0Eo= go.opentelemetry.io/otel v1.16.0 h1:Z7GVAX/UkAXPKsy94IU+i6thsQS4nb7LviLpnaNeW8s= go.opentelemetry.io/otel v1.16.0/go.mod h1:vl0h9NUa1D5s1nv3A5vZOYWn8av4K8Ml6JDeHrT/bx4= -go.opentelemetry.io/otel/exporters/jaeger v1.9.0/go.mod h1:hquezOLVAybNW6vanIxkdLXTXvzlj2Vn3wevSP15RYs= go.opentelemetry.io/otel/exporters/jaeger v1.15.1 h1:x3SLvwli0OyAJapNcOIzf1xXBRBA+HD3elrMQmFfmXo= go.opentelemetry.io/otel/exporters/jaeger v1.15.1/go.mod h1:0Ck9b5oLL/bFZvfAEEqtrb1U0jZXjm5fWXMCOCG3vvM= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.9.0/go.mod h1:78XhIg8Ht9vR4tbLNUhXsiOnE2HOuSeKAiAcoVQEpOY= go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.15.1 h1:XYDQtNzdb2T4uM1pku2m76eSMDJgqhJ+6KzkqgQBALc= go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.15.1/go.mod h1:uOTV75+LOzV+ODmL8ahRLWkFA3eQcSC2aAsbxIu4duk= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.9.0/go.mod h1:0EsCXjZAiiZGnLdEUXM9YjCKuuLZMYyglh2QDXcYKVA= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.15.1 h1:tyoeaUh8REKay72DVYsSEBYV18+fGONe+YYPaOxgLoE= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.15.1/go.mod h1:HUSnrjQQ19KX9ECjpQxufsF+3ioD3zISPMlauTPZu2g= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.9.0/go.mod h1:K5G92gbtCrYJ0mn6zj9Pst7YFsDFuvSYEhYKRMcufnM= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.15.1 h1:pIfoG5IAZFzp9EUlJzdSkpUwpaUAAnD+Ru1nBLTACIQ= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.15.1/go.mod h1:poNKBqF5+nR/6ke2oGTDjHfksrsHDOHXAl2g4+9ONsY= -go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.9.0/go.mod h1:Fl1iS5ZhWgXXXTdJMuBSVsS5nkL5XluHbg97kjOuYU4= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.15.1 h1:2PunuO5SbkN5MhCbuHCd3tC6qrcaj+uDAkX/qBU5BAs= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.15.1/go.mod h1:q8+Tha+5LThjeSU8BW93uUC5w5/+DnYHMKBMpRCsui0= -go.opentelemetry.io/otel/exporters/zipkin v1.9.0/go.mod h1:HyIvYIu37wV4Wx5azd7e05x9k/dOz9KB4x0plw2QNvs= go.opentelemetry.io/otel/exporters/zipkin v1.15.1 h1:B6s/o48bx00ayJu7F+jIMJfhPTyxW+S8vthjTZMNBj0= go.opentelemetry.io/otel/exporters/zipkin v1.15.1/go.mod h1:EjjV7/YfYXG+khxCOfG6PPeRGoOmtcSusyW66qPqpRQ= -go.opentelemetry.io/otel/metric v0.31.0/go.mod h1:ohmwj9KTSIeBnDBm/ZwH2PSZxZzoOaG2xZeekTRzL5A= go.opentelemetry.io/otel/metric v1.16.0 h1:RbrpwVG1Hfv85LgnZ7+txXioPDoh6EdbZHo26Q3hqOo= go.opentelemetry.io/otel/metric v1.16.0/go.mod h1:QE47cpOmkwipPiefDwo2wDzwJrlfxxNYodqc4xnGCo4= -go.opentelemetry.io/otel/sdk v1.9.0/go.mod h1:AEZc8nt5bd2F7BC24J5R0mrjYnpEgYHyTcM/vrSple4= go.opentelemetry.io/otel/sdk v1.16.0 h1:Z1Ok1YsijYL0CSJpHt4cS3wDDh7p572grzNrBMiMWgE= go.opentelemetry.io/otel/sdk v1.16.0/go.mod h1:tMsIuKXuuIWPBAOrH+eHtvhTL+SntFtXF9QD68aP6p4= go.opentelemetry.io/otel/sdk/metric v0.39.0 h1:Kun8i1eYf48kHH83RucG93ffz0zGV1sh46FAScOTuDI= -go.opentelemetry.io/otel/trace v1.8.0/go.mod h1:0Bt3PXY8w+3pheS3hQUt+wow8b1ojPaTBoTCh2zIFI4= -go.opentelemetry.io/otel/trace v1.9.0/go.mod h1:2737Q0MuG8q1uILYm2YYVkAyLtOofiTNGg6VODnOiPo= go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs= go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= -go.opentelemetry.io/proto/otlp v0.18.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= go.opentelemetry.io/proto/otlp v0.19.0 h1:IVN6GR+mhC4s5yfcTbmzHYODqvWAp3ZedA2SJPI1Nnw= go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.5.1/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/automaxprocs v1.5.1 h1:e1YG66Lrk73dn4qhg8WFSvhF0JuFQF0ERIp4rpuV8Qk= +go.uber.org/automaxprocs v1.5.1/go.mod h1:BF4eumQw0P9GtnuxxovUd06vwm1o18oMzFtK66vU6XU= go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.12.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.14.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210920023735-84f357641f63/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= @@ -1097,7 +827,6 @@ golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRu golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= @@ -1117,11 +846,7 @@ golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -1129,11 +854,10 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1147,7 +871,6 @@ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= @@ -1160,19 +883,9 @@ golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= @@ -1185,22 +898,15 @@ golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1214,19 +920,12 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1235,20 +934,15 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1262,17 +956,13 @@ golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201113233024-12cec1faf1ba/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1281,12 +971,10 @@ golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1302,17 +990,9 @@ golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1339,10 +1019,10 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= +golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181122213734-04b5d21e00f1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -1361,8 +1041,6 @@ golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191107010934-f79515f33823/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1370,7 +1048,6 @@ golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1385,19 +1062,15 @@ golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWc golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200529172331-a64b76657301/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200701151220-7cb253f4c4f8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201114224030-61ea331ec02b/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1408,15 +1081,10 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= @@ -1437,11 +1105,9 @@ google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSr google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.37.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= @@ -1456,18 +1122,6 @@ google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3h google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.64.0/go.mod h1:931CdxA8Rm4t6zqTFGSsgwbAEZ2+GMYurbndwSimebM= google.golang.org/api v0.65.0/go.mod h1:ArYhxgGadlWmqO1IqVujw6Cs8IdD33bTmzKo2Sh+cbg= -google.golang.org/api v0.66.0/go.mod h1:I1dmXYpX7HGwz/ejRxwQp2qj5bFAz93HiCU1C1oYd9M= -google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= -google.golang.org/api v0.69.0/go.mod h1:boanBiw+h5c3s+tBPgEzLDRHfFLWV0qXxRHz3ws7C80= -google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= -google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= -google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= -google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= -google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= -google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= -google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.91.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/api v0.114.0 h1:1xQPji6cO2E2vLiI+C/XiFAnsn1WV3mjaEwGLhi3grE= google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= @@ -1479,7 +1133,6 @@ google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -1487,14 +1140,11 @@ google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190905072037-92dd089d5514/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= @@ -1510,24 +1160,22 @@ google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200605102947-12044bf5ea91/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= @@ -1556,43 +1204,15 @@ google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211223182754-3ac035c7e7cb/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220111164026-67b88f271998/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220114231437-d2e6a121cae0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220201184016-50beb8ab5c44/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220211171837-173942840c17/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220216160803-4663080d8bc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= google.golang.org/genproto v0.0.0-20220329172620-7be39ac1afc7/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= -google.golang.org/genproto v0.0.0-20220808131553-a91ffa7f803e/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= google.golang.org/genproto v0.0.0-20230320184635-7606e756e683 h1:khxVcsk/FhnzxMKOyD+TDGwjbEOpcPuIpmafPGFmhMA= google.golang.org/genproto v0.0.0-20230320184635-7606e756e683/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s= -google.golang.org/grpc v0.0.0-20180607172857-7a6a684ca69e/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= @@ -1615,15 +1235,9 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag= google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= @@ -1643,37 +1257,33 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20191105091915-95d230a53780/go.mod h1:3HH7i1SgMqlzxCcBmUHW657sD4Kvv9sC3HpL3YukzwA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= -gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/olivere/elastic.v3 v3.0.75 h1:u3B8p1VlHF3yNLVOlhIWFT3F1ICcHfM5V6FFJe6pPSo= gopkg.in/olivere/elastic.v3 v3.0.75/go.mod h1:yDEuSnrM51Pc8dM5ov7U8aI/ToR3PG0llA8aRv2qmw0= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/vrecan/death.v3 v3.0.1 h1:qMzChssfxEvW9ckxucDyeLdvd/rhy4LBOyzN8oaFdEU= gopkg.in/vrecan/death.v3 v3.0.1/go.mod h1:Jy+S9sSCa4cKJF59FMiiDO5/bLCsOtHC8sK3doI1vQM= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= @@ -1684,19 +1294,29 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +k8s.io/api v0.25.0 h1:H+Q4ma2U/ww0iGB78ijZx6DRByPz6/733jIuFpX70e0= +k8s.io/api v0.25.0/go.mod h1:ttceV1GyV1i1rnmvzT3BST08N6nGt+dudGrquzVQWPk= +k8s.io/apimachinery v0.25.0 h1:MlP0r6+3XbkUG2itd6vp3oxbtdQLQI94fD5gCS+gnoU= +k8s.io/apimachinery v0.25.0/go.mod h1:qMx9eAk0sZQGsXGu86fab8tZdffHbwUfsvzqKn4mfB0= +k8s.io/client-go v0.25.0 h1:CVWIaCETLMBNiTUta3d5nzRbXvY5Hy9Dpl+VvREpu5E= +k8s.io/client-go v0.25.0/go.mod h1:lxykvypVfKilxhTklov0wz1FoaUZ8X4EwbhS6rpRfN8= +k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= +k8s.io/klog/v2 v2.70.1 h1:7aaoSdahviPmR+XkS7FyxlkkXs6tHISSG03RxleQAVQ= +k8s.io/klog/v2 v2.70.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= +k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 h1:MQ8BAZPZlWk3S9K4a9NCkIFQtZShWqoha7snGixVgEA= +k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1/go.mod h1:C/N6wCaBHeBHkHUesQOQy2/MZqGgMAFPqGsGQLdbZBU= +k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed h1:jAne/RjBTyawwAy0utX5eqigAwz/lQhTmy+Hr/Cpue4= +k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= lukechampine.com/blake3 v1.1.7 h1:GgRMhmdsuK8+ii6UZFDL8Nb+VyMwadAgcJyfYHxG6n0= lukechampine.com/blake3 v1.1.7/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= -modernc.org/fileutil v1.0.0/go.mod h1:JHsWpkrk/CnVV1H/eGlFf85BEpfkrp56ro8nojIq9Q8= -modernc.org/internal v1.0.0/go.mod h1:VUD/+JAkhCpvkUitlEOnhpVxCgsBI90oTzSCRcqQVSM= -modernc.org/kv v1.0.0/go.mod h1:Q4ZY51VEXtERIg+JEPVSyw5Tn4t4p/QGh2WuIYlN1YY= -modernc.org/lldb v1.0.0/go.mod h1:jcRvJGWfCGodDZz8BPwiKMJxGJngQ/5DrRapkQnLob8= -modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= -modernc.org/mathutil v1.1.0/go.mod h1:Jip3gBlE32vJMsD4RJ5qzniC0pvRnCxrlwmKPZrrLXI= -modernc.org/sortutil v1.1.0/go.mod h1:ZyL98OQHJgH9IEfN71VsamvJgrtRX9Dj2gX+vH86L1k= -modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4= rsc.io/binaryregexp v0.2.0 h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 h1:iXTIw73aPyC+oRdyqqvVJuloN1p0AC/kzH07hu3NE+k= +sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= +sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE= +sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E= +sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/localblocks/0039824200.dbin.zst b/localblocks/0039824200.dbin.zst deleted file mode 100644 index 6fb2df8a..00000000 Binary files a/localblocks/0039824200.dbin.zst and /dev/null differ diff --git a/localblocks/0055065000.dbin.zst b/localblocks/0055065000.dbin.zst deleted file mode 100644 index 1cfc87ba..00000000 Binary files a/localblocks/0055065000.dbin.zst and /dev/null differ diff --git a/localblocks/0055065100.dbin.zst b/localblocks/0055065100.dbin.zst deleted file mode 100644 index 2f9fea86..00000000 Binary files a/localblocks/0055065100.dbin.zst and /dev/null differ diff --git a/localblocks/0133447493-20220511T181843.0-f4DugFDa-5CpX5CpL-133447492-default.dbin.zst b/localblocks/0133447493-20220511T181843.0-f4DugFDa-5CpX5CpL-133447492-default.dbin.zst deleted file mode 100644 index 454189b4..00000000 Binary files a/localblocks/0133447493-20220511T181843.0-f4DugFDa-5CpX5CpL-133447492-default.dbin.zst and /dev/null differ diff --git a/localblocks/0133447494-20220511T181843.0-tUJopH6S-f4DugFDa-133447493-default.dbin.zst b/localblocks/0133447494-20220511T181843.0-tUJopH6S-f4DugFDa-133447493-default.dbin.zst deleted file mode 100644 index 38435670..00000000 Binary files a/localblocks/0133447494-20220511T181843.0-tUJopH6S-f4DugFDa-133447493-default.dbin.zst and /dev/null differ diff --git a/node-manager/bootstrap.go b/node-manager/bootstrap.go deleted file mode 100644 index 8703cca6..00000000 --- a/node-manager/bootstrap.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2019 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package nodemanager - -import ( - "archive/tar" - "context" - "fmt" - "io" - "os" - "path/filepath" - "time" - - "github.com/streamingfast/dstore" - "go.uber.org/zap" -) - -type Bootstrapper struct { - dataURL string - dataDirPath string - logger *zap.Logger -} - -func NewBootstrapper(dataURL string, dataDirPath string, logger *zap.Logger) *Bootstrapper { - return &Bootstrapper{ - dataURL: dataURL, - dataDirPath: dataDirPath, - logger: logger, - } -} - -func (b *Bootstrapper) Bootstrap() error { - b.logger.Info("bootstrapping solana chain data from pre-built data", - zap.String("bootstrap_data_url", b.dataURL), - ) - - ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute) - defer cancel() - - reader, _, _, err := dstore.OpenObject(ctx, b.dataURL, dstore.Compression("zstd")) - if err != nil { - return fmt.Errorf("cannot get snapshot from gstore: %w", err) - } - defer reader.Close() - - b.createChainData(reader) - return nil - -} -func (b *Bootstrapper) createChainData(reader io.Reader) error { - err := os.MkdirAll(b.dataDirPath, os.ModePerm) - if err != nil { - return fmt.Errorf("unable to create blocks log file: %w", err) - } - - b.logger.Info("extracting bootstrapping data into node data directory", zap.String("data_dir", b.dataDirPath)) - tr := tar.NewReader(reader) - for { - header, err := tr.Next() - if err != nil { - if err == io.EOF { - return nil - } - - return err - } - - path := filepath.Join(b.dataDirPath, header.Name) - b.logger.Debug("about to write content of entry", zap.String("name", header.Name), zap.String("path", path), zap.Bool("is_dir", header.FileInfo().IsDir())) - if header.FileInfo().IsDir() { - err = os.MkdirAll(path, os.ModePerm) - if err != nil { - return fmt.Errorf("unable to create directory: %w", err) - } - - continue - } - - file, err := os.Create(path) - if err != nil { - return fmt.Errorf("unable to create file: %w", err) - } - - if _, err := io.Copy(file, tr); err != nil { - file.Close() - return err - } - file.Close() - } -} diff --git a/node-manager/logging.go b/node-manager/logging.go deleted file mode 100644 index 68e4a90d..00000000 --- a/node-manager/logging.go +++ /dev/null @@ -1,18 +0,0 @@ -package nodemanager - -import ( - "github.com/streamingfast/logging" - "go.uber.org/zap/zapcore" -) - -var zlog, tracer = logging.PackageLogger("nodemanager", "github.com/streamingfast/firehose-solana/nodemanager") - -type stringArray []string - -func (ss stringArray) MarshalLogArray(arr zapcore.ArrayEncoder) error { - for _, element := range ss { - arr.AppendString(element) - } - - return nil -} diff --git a/node-manager/snapshot.go b/node-manager/snapshot.go deleted file mode 100644 index c7524dc7..00000000 --- a/node-manager/snapshot.go +++ /dev/null @@ -1,235 +0,0 @@ -package nodemanager - -import ( - "context" - "fmt" - "io/ioutil" - "os" - "path" - "sort" - "strconv" - "strings" - "time" - - "github.com/streamingfast/dstore" - "go.uber.org/zap" -) - -type Snapshotter struct { - localDir string - genesisURL string - snapshotStore dstore.Store - mergedBlockStore dstore.Store - uploadingJobs map[string]interface{} -} - -func NewSnapshotter(localDir, genesisURL string, snapshotStore, mergedBlockStore dstore.Store) *Snapshotter { - return &Snapshotter{ - localDir: localDir, - genesisURL: genesisURL, - snapshotStore: snapshotStore, - mergedBlockStore: mergedBlockStore, - uploadingJobs: map[string]interface{}{}, - } -} - -func (s *Snapshotter) Restore(snapshotName string) error { - ctx := context.Background() - var mergedFileSlots []uint64 - snapshotsVsMergeFile := map[uint64]string{} - if snapshotName == "latest" { - panic("latest not implemented yet") - } - - if snapshotName == "before-last-merged" { - zlog.Info("walking snapshot folder before last merger", zap.String("snapshot_name", snapshotName)) - err := s.snapshotStore.Walk(ctx, "", func(filename string) (err error) { - zlog.Info("found snapshot", zap.String("file_name", filename)) - //snapshot-64506076-2qzVcbpcSwhxqtD7wjwgvAHWriSZtfJtynWQ4syS43mb.tar.zst - // 64506000 - parts := strings.Split(filename, "-") - slot, err := strconv.ParseInt(parts[1], 10, 64) - if err != nil { - return fmt.Errorf("parse slot to int: %s: %w", parts[0], err) - } - mergeFileBeforeSnapshot := uint64(slot/100) * 100 - mergeFileAfterSnapshot := mergeFileBeforeSnapshot + 100 - mergeSlotNum := mergeFileAfterSnapshot - mergedFileSlots = append(mergedFileSlots, mergeSlotNum) - snapshotsVsMergeFile[mergeSlotNum] = filename - return nil - }) - - if err != nil { - return fmt.Errorf("walking snapshots: %w", err) - } - - sort.Slice(mergedFileSlots, func(i, j int) bool { return mergedFileSlots[i] > mergedFileSlots[j] }) - found := false - for _, mergedSlot := range mergedFileSlots { - zlog.Info("looking for merge file", zap.Uint64("merged_slot", mergedSlot)) - mergeFileName := fmt.Sprintf("%010d", mergedSlot) - exists, err := s.mergedBlockStore.FileExists(ctx, mergeFileName) - if err != nil { - return fmt.Errorf("merger file exists: %s: %w", mergeFileName, err) - } - - if exists { - snapshotName := snapshotsVsMergeFile[mergedSlot] - zlog.Info("found snapshot", zap.String("snapshot_name", snapshotName), zap.Uint64("merged_slot", mergedSlot)) - if err := s.restoreFrom(ctx, snapshotName, s.snapshotStore); err != nil { - return fmt.Errorf("restoring from: %s: %w", snapshotName, err) - } - found = true - break - } - } - if !found { - return fmt.Errorf("failed to find a snapshot") - } - } - - return nil -} - -func (s *Snapshotter) RequiresStop() bool { - // TODO this is a guess, needs to be tested - return true -} - -func (s *Snapshotter) Backup(lastSeenBlockNum uint32) (string, error) { - ctx := context.Background() - files, err := ioutil.ReadDir(s.localDir) - for _, f := range files { - snapshotName := f.Name() - if !f.IsDir() && - strings.HasPrefix(snapshotName, "snapshot-") && - strings.HasSuffix(snapshotName, ".tar.zst") { - zlog.Info("found snapshot file", zap.String("snapshot_dir", s.localDir), zap.String("snapshot_name", snapshotName)) - - exist, err := s.snapshotStore.FileExists(ctx, snapshotName) - if err != nil { - return "", fmt.Errorf("checking snapshot existance: %s: %w", snapshotName, err) - } - - if !exist && !s.currentlyUploading(snapshotName) { - go s.uploadSnapshot(ctx, snapshotName, s.snapshotStore) - } - } - } - - if err != nil { - return "", fmt.Errorf("walking snapshot dir: %s: %w", s.localDir, err) - } - - // TODO: this is a weird behavior trying to match the interface - // built in node-manager - return "latest", nil -} - -func (s *Snapshotter) currentlyUploading(snapshotName string) bool { - _, ok := s.uploadingJobs[snapshotName] - return ok -} - -func (s *Snapshotter) uploadSnapshot(ctx context.Context, snapshotName string, snapshotStore dstore.Store) { - s.uploadingJobs[snapshotName] = new(interface{}) - defer delete(s.uploadingJobs, snapshotName) - - snapshotPath := path.Join(s.localDir, snapshotName) - snapshotFile, err := os.Open(snapshotPath) - if err != nil { - zlog.Error("failed opening snapshot file, will retry on next TakeSnapshot call", zap.String("snapshot_path", snapshotPath)) - return - } - - uploadCtx, cancel := context.WithTimeout(ctx, 1*time.Hour) - defer cancel() - - err = snapshotStore.WriteObject(uploadCtx, snapshotName, snapshotFile) - if err != nil { - zlog.Error("failed snapshot upload, will retry on next TakeSnapshot call", zap.String("snapshot_dir", s.localDir), zap.String("snapshot_name", snapshotName)) - return - } -} - -func (s *Snapshotter) List(params map[string]string) ([]string, error) { - // TODO this is a guess - return []string{ - "latest", - "before-last-merged", - }, nil -} - -func (s *Snapshotter) restoreFrom(ctx context.Context, snapshotName string, snapshotStore dstore.Store) error { - zlog.Info("restoring", zap.String("snapshot_name", snapshotName), zap.Stringer("from_store", snapshotStore.BaseURL())) - dataFolder := s.localDir - err := s.cleanupDataFolder(dataFolder) - if err != nil { - return fmt.Errorf("cleaning up folder: %s: %w", dataFolder, err) - } - - localURL := "file://" + s.localDir - localStore, err := dstore.NewSimpleStore(localURL) - if err != nil { - return fmt.Errorf("creating local snapshotStore: %s: %w", localURL, err) - } - - snapshotReader, err := snapshotStore.OpenObject(ctx, snapshotName) - if err != nil { - return fmt.Errorf("open object:%s: %w", snapshotName, err) - } - - zlog.Info("copying snapshot", zap.String("snapshot_name", snapshotName), zap.Stringer("from_store", snapshotStore.BaseURL()), zap.Stringer("to_local_store", localStore.BaseURL())) - if err := localStore.WriteObject(ctx, snapshotName, snapshotReader); err != nil { - return fmt.Errorf("writing snapshot:%s to local snapshotStore: %s: %w", snapshotName, localURL, err) - } - - if err := s.copyGenesis(ctx, localStore); err != nil { - return fmt.Errorf("copying genesis: %w", err) - } - - dir, err := ioutil.ReadDir(s.localDir) - if err != nil { - return fmt.Errorf("reading data folder:%s: %w", dir, err) - } - - for _, d := range dir { - content := path.Join([]string{s.localDir, d.Name()}...) - zlog.Info("element:", zap.String("content", content)) - } - - return nil -} - -func (s *Snapshotter) copyGenesis(ctx context.Context, localStore dstore.Store) error { - genesisStore, genesisFileName, err := dstore.NewStoreFromURL(s.genesisURL) - if err != nil { - return fmt.Errorf("creating genesis snapshotStore:%s : %w", s.genesisURL, err) - } - - genesisReader, err := genesisStore.OpenObject(ctx, genesisFileName) - zlog.Info("copying genesis", zap.String("file_name", genesisFileName), zap.Stringer("from_store", genesisStore.BaseURL()), zap.Stringer("to_local_store", localStore.BaseURL())) - if err := localStore.WriteObject(ctx, genesisFileName, genesisReader); err != nil { - return fmt.Errorf("writing genesis: %s from:%s to local snapshotStore: %s: %w", genesisFileName, genesisStore.BaseURL(), localStore.BaseURL(), err) - } - - return nil -} - -func (s *Snapshotter) cleanupDataFolder(folder string) error { - zlog.Info("Cleaning up data folder", zap.String("folder", folder)) - dir, err := ioutil.ReadDir(folder) - if err != nil { - return fmt.Errorf("reading folder:%s: %w", folder, err) - } - for _, d := range dir { - content := path.Join([]string{folder, d.Name()}...) - zlog.Info("deleting content", zap.String("content", content)) - err := os.RemoveAll(content) - if err != nil { - zlog.Warn("failed to delete", zap.String("content", content)) - } - } - return nil -} diff --git a/node-manager/snapshot_test.go b/node-manager/snapshot_test.go deleted file mode 100644 index 4eeedd46..00000000 --- a/node-manager/snapshot_test.go +++ /dev/null @@ -1,159 +0,0 @@ -package nodemanager - -import ( - "os" - "testing" -) - -// TODO: fix test to use backuper -//func TestSuperviser_RestoreSnapshot(t *testing.T) { -// type fields struct { -// Superviser *superviser.Superviser -// name string -// mergedBlocksStore dstore.Store -// options *Options -// client *rpc.Client -// logger *zap.Logger -// localSnapshotDir string -// uploadingJobs map[string]interface{} -// } -// type args struct { -// snapshotName string -// snapshotStore dstore.Store -// } -// tests := []struct { -// name string -// fields fields -// args args -// wantErr bool -// }{ -// // TODO: Add test cases. -// } -// for _, tt := range tests { -// t.Run(tt.name, func(t *testing.T) { -// s := &Superviser{ -// Superviser: tt.fields.Superviser, -// name: tt.fields.name, -// mergedBlocksStore: tt.fields.mergedBlocksStore, -// options: tt.fields.options, -// client: tt.fields.client, -// logger: tt.fields.logger, -// localSnapshotDir: tt.fields.localSnapshotDir, -// uploadingJobs: tt.fields.uploadingJobs, -// } -// if err := s.RestoreSnapshot(tt.args.snapshotName, tt.args.snapshotStore); (err != nil) != tt.wantErr { -// t.Errorf("RestoreSnapshot() error = %v, wantErr %v", err, tt.wantErr) -// } -// }) -// } -//} -// -//func TestSuperviser_TakeSnapshot(t *testing.T) { -// s := &Superviser{ -// localSnapshotDir: "/tmp", -// uploadingJobs: map[string]interface{}{}, -// } -// -// done := make(chan bool, 1) -// snapshotName := "snapshot-123.tar.zst" -// snapshotPath := path.Join("/tmp", snapshotName) -// touchTestFile(t, snapshotPath) -// defer deleteTestFile(t, snapshotPath) -// -// store := dstore.NewMockStore(func(base string, f io.Reader) (err error) { -// assert.Equal(t, true, s.currentlyUploading(snapshotName)) -// done <- true -// return nil -// }) -// -// err := s.TakeSnapshot(store, 0) -// require.NoError(t, err) -// -// select { -// case <-time.Tick(time.Second): -// t.Error("time out") -// case r := <-done: -// assert.Equal(t, true, r) -// assert.Equal(t, false, s.currentlyUploading(snapshotName)) -// } -// -//} -// -//func TestSuperviser_currentlyUploading(t *testing.T) { -// tests := []struct { -// uploadingJobs map[string]interface{} -// snapshotNamp string -// expectedUploading bool -// name string -// }{ -// { -// name: "not uploading", -// uploadingJobs: map[string]interface{}{}, -// snapshotNamp: "snap.1", -// expectedUploading: false, -// }, -// { -// name: "uploading", -// uploadingJobs: map[string]interface{}{ -// "snap.1": new(interface{}), -// }, -// snapshotNamp: "snap.1", -// expectedUploading: true, -// }, -// } -// -// for _, test := range tests { -// t.Run(test.name, func(t *testing.T) { -// s := Superviser{ -// uploadingJobs: test.uploadingJobs, -// } -// assert.Equal(t, test.expectedUploading, s.currentlyUploading(test.snapshotNamp)) -// }) -// } -//} -// -//func TestSuperviser_uploadSnapshot(t *testing.T) { -// s := &Superviser{ -// localSnapshotDir: "/tmp", -// uploadingJobs: map[string]interface{}{}, -// } -// -// done := make(chan bool, 1) -// snapshotName := "snapshot-123.tar.zst" -// snapshotPath := path.Join("/tmp", snapshotName) -// touchTestFile(t, snapshotPath) -// defer deleteTestFile(t, snapshotPath) -// -// store := dstore.NewMockStore(func(base string, f io.Reader) (err error) { -// assert.Equal(t, true, s.currentlyUploading(snapshotName)) -// done <- true -// return nil -// }) -// -// s.uploadSnapshot(context.Background(), snapshotName, store) -// -// select { -// case <-time.Tick(time.Second): -// t.Error("time out") -// case r := <-done: -// assert.Equal(t, true, r) -// assert.Equal(t, false, s.currentlyUploading(snapshotName)) -// } -//} - -func touchTestFile(t *testing.T, filePath string) { - t.Helper() - file, err := os.Create(filePath) - if err != nil { - t.Error(err) - } - defer file.Close() -} - -func deleteTestFile(t *testing.T, filePath string) { - t.Helper() - err := os.Remove(filePath) - if err != nil { - t.Error(err) - } -} diff --git a/node-manager/superviser.go b/node-manager/superviser.go deleted file mode 100644 index 41e85e54..00000000 --- a/node-manager/superviser.go +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright 2021 dfuse Platform Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package nodemanager - -import ( - "fmt" - "os" - "strings" - - "github.com/ShinyTrinkets/overseer" - nodeManager "github.com/streamingfast/node-manager" - logplugin "github.com/streamingfast/node-manager/log_plugin" - "github.com/streamingfast/node-manager/superviser" - "github.com/streamingfast/solana-go/rpc" - "go.uber.org/zap" - "go.uber.org/zap/zapcore" -) - -type Superviser struct { - *superviser.Superviser - name string - - options *Options - client *rpc.Client - logger *zap.Logger - localSnapshotDir string -} - -type Options struct { - BinaryPath string - Arguments []string - DataDirPath string - RCPPort string - LogToZap bool - DebugFirehoseLogs bool - HeadBlockUpdateFunc nodeManager.HeadBlockUpdater -} - -func NewSuperviser(supervisorName string, appLogger *zap.Logger, nodelogger *zap.Logger, options *Options) (*Superviser, error) { - // Ensure process manager line buffer is large enough (100 MiB) for our Firehose instrumentation outputting lot's of text. - overseer.DEFAULT_LINE_BUFFER_SIZE = 100 * 1024 * 1024 - - client := rpc.NewClient(fmt.Sprintf("http://127.0.0.1:%s", options.RCPPort)) - s := &Superviser{ - - // The arguments field is actually `nil` because arguments are re-computed upon each start - Superviser: superviser.New(appLogger, options.BinaryPath, nil), - name: supervisorName, - options: options, - logger: appLogger, - client: client, - } - - s.RegisterLogPlugin(logplugin.NewKeepLastLinesLogPlugin(25, options.DebugFirehoseLogs)) - - if options.LogToZap { - s.RegisterLogPlugin(logplugin.NewToZapLogPlugin(options.DebugFirehoseLogs, nodelogger)) - } else { - s.RegisterLogPlugin(logplugin.NewToConsoleLogPlugin(options.DebugFirehoseLogs)) - } - - appLogger.Info("created solana superviser", zap.Object("superviser", s)) - return s, nil -} - -func (s *Superviser) Start(options ...nodeManager.StartOption) error { - s.Logger.Info("updating arguments before starting binary") - s.Superviser.Arguments = s.options.Arguments - - s.logger.Info("starting process", zap.String("command", s.GetCommand())) - err := s.Superviser.Start(options...) - if err != nil { - return err - } - - return nil -} - -func (s *Superviser) GetCommand() string { - return s.options.BinaryPath + " " + strings.Join(s.options.Arguments, " ") -} - -func (s *Superviser) HasData() bool { - _, err := os.Stat(s.options.DataDirPath) - return err == nil -} - -func (s *Superviser) ServerID() (string, error) { - return os.Hostname() -} - -func (s *Superviser) LastSeenBlockNum() uint64 { - com := rpc.CommitmentRecent - r, err := s.client.GetSlot(&com) - if err != nil { - s.logger.Error("Failed to get last seen slot from rpc client. returning 0", zap.Error(err)) - } - - return uint64(r) -} - -func (s *Superviser) GetName() string { - return s.name -} - -func (s *Superviser) MarshalLogObject(enc zapcore.ObjectEncoder) error { - enc.AddString("binary", s.options.BinaryPath) - enc.AddArray("arguments", stringArray(s.options.Arguments)) - enc.AddString("data_dir", s.options.DataDirPath) - enc.AddBool("log_to_zap", s.options.LogToZap) - enc.AddBool("debug_firehose_logs", s.options.DebugFirehoseLogs) - - return nil -} diff --git a/types/pb/generate.sh b/pb/generate.sh similarity index 86% rename from types/pb/generate.sh rename to pb/generate.sh index 5b62edae..6e971213 100755 --- a/types/pb/generate.sh +++ b/pb/generate.sh @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../.. && pwd )" +ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # Protobuf definitions PROTO=${1:-"$ROOT/../proto"} @@ -24,16 +24,15 @@ function main() { set -e - cd "$ROOT/types/pb" &> /dev/null + cd "$ROOT/pb" &> /dev/null generate "sf/solana/type/v1/type.proto" generate "sf/solana/type/v2/type.proto" generate "sf/solana/transforms/v1/transforms.proto" - generate "sf/solana/serumhist/v1/serumhist.proto" echo "generate.sh - `date` - `whoami`" > ./last_generate.txt echo "streamingfast/proto revision: `GIT_DIR=$PROTO/.git git rev-parse HEAD`" >> ./last_generate.txt - echo "streamingfast/proto-solana revision: `GIT_DIR=$ROOT/.git git rev-parse HEAD`" >> ./last_generate.txt + echo "streamingfast/firehose-solana/proto revision: `GIT_DIR=$ROOT/.git git log -n 1 --pretty=format:%h -- proto`" >> ./last_generate.txt } # usage: @@ -64,15 +63,14 @@ function checks() { echo "" echo "To fix your problem, perform those commands:" echo "" - echo " go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.25.0" - echo " go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0" - echo "" + echo " go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26.0" + echo " go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0" echo "" echo "If everything is working as expetcted, the command:" echo "" echo " protoc-gen-go --version" echo "" - echo "Should print 'protoc-gen-go v1.25.0' (if it just hangs, you don't have the correct version)" + echo "Should print 'protoc-gen-go v1.26.0' (if it just hangs, you don't have the correct version)" exit 1 fi } diff --git a/pb/last_generate.txt b/pb/last_generate.txt new file mode 100644 index 00000000..113ad999 --- /dev/null +++ b/pb/last_generate.txt @@ -0,0 +1,3 @@ +generate.sh - Mon 31 Jul 2023 14:45:22 EDT - julien +streamingfast/proto revision: c72d870e1203d70e95230b781cff0b5ac40372e8 +streamingfast/firehose-solana/proto revision: 5d11c69 diff --git a/types/pb/sf/solana/transforms/v1/transforms.pb.go b/pb/sf/solana/transforms/v1/transforms.pb.go similarity index 99% rename from types/pb/sf/solana/transforms/v1/transforms.pb.go rename to pb/sf/solana/transforms/v1/transforms.pb.go index 170ddc64..ecb91fd5 100644 --- a/types/pb/sf/solana/transforms/v1/transforms.pb.go +++ b/pb/sf/solana/transforms/v1/transforms.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.9 +// protoc-gen-go v1.27.1 +// protoc v4.23.2 // source: sf/solana/transforms/v1/transforms.proto package pbtransforms diff --git a/pb/sf/solana/type/v1/type.go b/pb/sf/solana/type/v1/type.go new file mode 100644 index 00000000..50f639af --- /dev/null +++ b/pb/sf/solana/type/v1/type.go @@ -0,0 +1,42 @@ +package pbsol + +import ( + "time" + + "go.uber.org/zap/zapcore" + + "github.com/mr-tron/base58" +) + +func (x *Block) GetFirehoseBlockID() string { + return x.Blockhash +} + +func (x *Block) GetFirehoseBlockNumber() uint64 { + return x.Slot +} + +func (x *Block) GetFirehoseBlockParentID() string { + return x.PreviousBlockhash +} + +func (x *Block) GetFirehoseBlockTime() time.Time { + if x.BlockTime == nil { + return time.Unix(0, 0) + } + return time.Unix(int64(x.BlockTime.Timestamp), 0) +} + +func (x *Block) GetFirehoseBlockLIBNum() uint64 { + return x.ParentSlot +} + +func (x *Block) MarshalLogObject(encoder zapcore.ObjectEncoder) error { + encoder.AddUint64("num", x.Slot) + encoder.AddString("id", x.Blockhash) + return nil +} + +func (x *ConfirmedTransaction) AsBase58String() string { + return base58.Encode(x.Transaction.Signatures[0]) +} diff --git a/types/pb/sf/solana/type/v1/type.pb.go b/pb/sf/solana/type/v1/type.pb.go similarity index 99% rename from types/pb/sf/solana/type/v1/type.pb.go rename to pb/sf/solana/type/v1/type.pb.go index ec2e805e..3fe31eaf 100644 --- a/types/pb/sf/solana/type/v1/type.pb.go +++ b/pb/sf/solana/type/v1/type.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.9 +// protoc-gen-go v1.27.1 +// protoc v4.23.2 // source: sf/solana/type/v1/type.proto package pbsol import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/types/pb/sf/solana/type/v2/transaction.go b/pb/sf/solana/type/v2/transaction.go similarity index 100% rename from types/pb/sf/solana/type/v2/transaction.go rename to pb/sf/solana/type/v2/transaction.go diff --git a/pb/sf/solana/type/v2/type.go b/pb/sf/solana/type/v2/type.go new file mode 100644 index 00000000..f2666756 --- /dev/null +++ b/pb/sf/solana/type/v2/type.go @@ -0,0 +1,27 @@ +package pbsol + +import ( + "time" + + "github.com/mr-tron/base58" +) + +func (b *Block) GetFirehoseBlockID() string { + return base58.Encode(b.Id) +} + +func (b *Block) GetFirehoseBlockNumber() uint64 { + return b.Number +} + +func (b *Block) GetFirehoseBlockParentID() string { + return base58.Encode(b.PreviousId) +} + +func (b *Block) GetFirehoseBlockTime() time.Time { + return time.Unix(int64(b.GenesisUnixTimestamp), 0) +} + +func (x *Block) GetFirehoseBlockLIBNum() uint64 { + return 0 +} diff --git a/types/pb/sf/solana/type/v2/type.pb.go b/pb/sf/solana/type/v2/type.pb.go similarity index 99% rename from types/pb/sf/solana/type/v2/type.pb.go rename to pb/sf/solana/type/v2/type.pb.go index 39babcb2..cdc7b8e5 100644 --- a/types/pb/sf/solana/type/v2/type.pb.go +++ b/pb/sf/solana/type/v2/type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.9 +// protoc-gen-go v1.27.1 +// protoc v4.23.2 // source: sf/solana/type/v2/type.proto package pbsol diff --git a/proto/README.md b/proto/README.md deleted file mode 100644 index c0007051..00000000 --- a/proto/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# Solana on StreamingFast protobuf definitions - -This repository holds protocol buffer definition files (`.proto`) for Solana on StreamingFast products. - -## Usage - -Heads on to [Google Protocol Buffer Tutorials](https://developers.google.com/protocol-buffers/docs/tutorials), choose -your language of choice, then follow instructions in `Compiling your protocol buffers` section about how to -generate the source files for your language. - -## Contributing - -Issues and PR in this repo related strictly to the Solana protobuf definitions. - -Report any protocol-specific issues in their -[respective repositories](https://github.com/streamingfast/streamingfast#protocols) - -Please first refer to the general -[StreamingFast contribution guide](https://github.com/streamingfast/streamingfast/blob/master/CONTRIBUTING.md), -if you wish to contribute to this code base. - -## License - -[Apache 2.0](LICENSE) diff --git a/proto/buf.md b/proto/buf.md new file mode 100644 index 00000000..b7a223e9 --- /dev/null +++ b/proto/buf.md @@ -0,0 +1,11 @@ +### StreamingFast Firehose Solana Types + +Protobuf definitions when dealing with Firehose Solana chain(s) like Solana Mainnet. + +Foremost, this provides [sf.solana.types.v1.Block](https://buf.build/streamingfast/firehose-solana/docs/main:sf.solana.type.v1#sf.solana.type.v1.Block) which is used for consuming Firehose & Substreams Solana block model. + +This is probably the only model you should really care about, the rest are meant for internal communications for Firehose operators. + +Useful links: +- Documentation: [https://substreams.streamingfast.io/](https://substreams.streamingfast.io/) ([Firehose Docs](https://firehose.streamingfast.io/)) +- Source: [https://github.com/streamingfast/firehose-solana](https://github.com/streamingfast/firehose-solana) \ No newline at end of file diff --git a/proto/buf.yaml b/proto/buf.yaml new file mode 100644 index 00000000..c11b2f6d --- /dev/null +++ b/proto/buf.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/streamingfast/firehose-solana + +lint: + use: + - DEFAULT + +breaking: + use: + - FILE diff --git a/proto/sf/solana/serumhist/v1/serumhist.proto b/proto/sf/solana/serumhist/v1/serumhist.proto deleted file mode 100644 index 7ccfa825..00000000 --- a/proto/sf/solana/serumhist/v1/serumhist.proto +++ /dev/null @@ -1,130 +0,0 @@ -syntax = "proto3"; - -package sf.solana.serumhist.v1; -option go_package = "github.com/streamingfast/firehose-solana/types/pb/sf/solana/serumhist/v1;pbserumhist"; - -import "google/protobuf/timestamp.proto"; - -service SerumOrderTracker { - rpc TrackOrder(TrackOrderRequest) returns (stream OrderTransition); -} - -service SerumHistory { - rpc GetFills(GetFillsRequest) returns (FillsResponse); -} - -message GetFillsRequest { - bytes trader = 1; - bytes market = 2; -} - -message FillsResponse { - repeated Fill fill = 1; - bool has_more = 2; -} - -message TrackOrderRequest { - bytes market = 1; - string order_id = 2; -} - -message OrderTransition { - State previous_state = 1; - State current_state = 2; - Transition transition = 3; - Order order = 4; - Fill added_fill = 5; - InstructionRef cancellation = 6; - - enum State { - STATE_UNKNOWN = 0; - STATE_APPROVED = 1; - STATE_CANCEL_PENDING = 2; - STATE_CANCELLED = 3; - STATE_PARTIAL = 4; - STATE_EXECUTED = 5; - } - - enum Transition { - TRANS_INIT = 0; - TRANS_ACCEPTED = 1; - TRANS_CANCELLED = 2; - TRANS_FILLED = 3; - TRANS_EXECUTED = 4; - } -} - -message InstructionRef { - uint64 block_num = 1; - bytes trx_id = 2; - uint32 trx_idx = 3; - uint32 inst_idx = 4; - bytes block_id = 5; - google.protobuf.Timestamp timestamp = 6; -} - -message Checkpoint { - uint64 last_written_block_num = 1; - bytes last_written_block_id = 2; -} - -message Fill { - bytes trader = 1; - bytes market = 2; - string order_id = 3; - Side side = 4; - bool maker = 5; - uint64 native_qty_paid = 6; - uint64 native_qty_received = 7; - uint64 native_fee_or_rebate = 8; - FeeTier fee_tier = 9; - google.protobuf.Timestamp timestamp = 10; - - uint64 block_num = 20; - bytes block_id = 24; - bytes trx_id = 25; - uint32 trx_idx = 21; - uint32 inst_idx = 22; - uint64 order_seq_num = 23; -} - -enum Side { - BID = 0; - ASK = 1; -} - -enum FeeTier { - Base = 0; - SRM2 = 1; - SRM3 = 2; - SRM4 = 3; - SRM5 = 4; - SRM6 = 5; - MSRM = 6; -} - -message Order { - uint64 num = 1; - bytes market = 2; - bytes trader = 3; - - Side side = 4; - uint64 limit_price = 5; - uint64 max_quantity = 6; - - OrderType type = 7; - - repeated Fill fills = 10; // this only gets populated for transport - - uint64 block_num = 20; - bytes block_id = 24; - bytes trx_id = 25; - uint32 trx_idx = 21; - uint32 inst_idx = 22; -} - -enum OrderType { - LIMIT = 0; - IMMEDIATE_OR_CANCEL = 1; - POST_ONLY = 2; -} \ No newline at end of file diff --git a/proto/sf/solana/transforms/v1/transforms.proto b/proto/sf/solana/transforms/v1/transforms.proto index ae758b26..8d9fe2b8 100644 --- a/proto/sf/solana/transforms/v1/transforms.proto +++ b/proto/sf/solana/transforms/v1/transforms.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package sf.solana.transforms.v1; -option go_package = "github.com/streamingfast/firehose-solana/types/pb/sf/solana/transforms/v1;pbtransforms"; +option go_package = "github.com/streamingfast/firehose-solana/pb/sf/solana/transforms/v1;pbtransforms"; message ProgramFilter { repeated string program_ids = 1; //base58 representation diff --git a/proto/sf/solana/type/v1/type.proto b/proto/sf/solana/type/v1/type.proto index 9e3847bd..3b141ca8 100644 --- a/proto/sf/solana/type/v1/type.proto +++ b/proto/sf/solana/type/v1/type.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1;pbsol"; +option go_package = "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v1;pbsol"; package sf.solana.type.v1; diff --git a/proto/sf/solana/type/v2/type.proto b/proto/sf/solana/type/v2/type.proto index 1504cb32..68f58a6c 100644 --- a/proto/sf/solana/type/v2/type.proto +++ b/proto/sf/solana/type/v2/type.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package sf.solana.type.v2; -option go_package = "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2;pbsol"; +option go_package = "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v2;pbsol"; message Block { bytes id = 1; // corresponds to the Slot id (or hash) diff --git a/snapshotter/app/snapshotter/app.go b/snapshotter/app/snapshotter/app.go deleted file mode 100644 index 3aec095e..00000000 --- a/snapshotter/app/snapshotter/app.go +++ /dev/null @@ -1,39 +0,0 @@ -package snapshotter - -import ( - "github.com/streamingfast/firehose-solana/snapshotter/snapshot" - "github.com/streamingfast/shutter" -) - -type Config struct { - SourceBucket string - SourceSnapshotsFolder string - Workdir string - DestinationSnapshotsFolder string - DestinationBucket string -} - -type App struct { - *shutter.Shutter - config *Config - finder *snapshot.Finder -} - -func New(config *Config) *App { - app := &App{ - Shutter: shutter.New(), - config: config, - } - - app.finder = snapshot.NewFinder(config.SourceBucket, config.SourceSnapshotsFolder, config.DestinationBucket, config.DestinationSnapshotsFolder, config.Workdir) - app.finder.OnTerminating(func(err error) { - app.Shutdown(err) - }) - - return app -} - -func (a *App) Run() error { - zlog.Info("Running") - return a.finder.Launch() -} diff --git a/snapshotter/app/snapshotter/logging.go b/snapshotter/app/snapshotter/logging.go deleted file mode 100644 index 9bfb4ae4..00000000 --- a/snapshotter/app/snapshotter/logging.go +++ /dev/null @@ -1,7 +0,0 @@ -package snapshotter - -import ( - "github.com/streamingfast/logging" -) - -var zlog, _ = logging.PackageLogger("snapshotter", "github.com/streamingfast/firehose-solana/serumhist/app/snapshotter") diff --git a/snapshotter/snapshot/finder.go b/snapshotter/snapshot/finder.go deleted file mode 100644 index 06418970..00000000 --- a/snapshotter/snapshot/finder.go +++ /dev/null @@ -1,121 +0,0 @@ -package snapshot - -import ( - "context" - "fmt" - "regexp" - "sort" - "strconv" - "time" - - "cloud.google.com/go/storage" - "github.com/streamingfast/shutter" - "go.uber.org/zap" -) - -type Finder struct { - *shutter.Shutter - sourceBucket string - sourceSnapshotsPrefix string - workdir string - destinationSnapshotsFolder string //"sol-mainnet/snapshots" - destinationBucket string -} - -func NewFinder(sourceBucket string, sourceSnapshotsPrefix string, destinationBucket string, destinationSnapshotsFolder string, workdir string) *Finder { - finder := &Finder{ - Shutter: shutter.New(), - sourceBucket: sourceBucket, - sourceSnapshotsPrefix: sourceSnapshotsPrefix, - destinationBucket: destinationBucket, - destinationSnapshotsFolder: destinationSnapshotsFolder, - workdir: workdir, - } - - return finder -} - -func (f *Finder) Launch() error { - go func() { - err := f.launch() - if err != nil { - f.Shutdown(err) - } - }() - - return nil -} - -func (f *Finder) launch() error { - ticker := time.NewTicker(15 * time.Minute) - defer ticker.Stop() - - zlog.Info("Launching", zap.String("sourceBucket", f.sourceBucket), zap.String("sourceSnapshotsPrefix", f.sourceSnapshotsPrefix)) - ctx := context.Background() - - client, err := storage.NewClient(ctx) - if err != nil { - return fmt.Errorf("new client: %w", err) - } - - var validSnapshot = regexp.MustCompile(`^[0-9]*/.*$`) - var snapshotPrefix = regexp.MustCompile(`^[0-9]*`) - - for c := ticker; ; <-c.C { - select { - case <-f.Terminating(): - return nil - default: - } - - object, err := listFiles(ctx, client, f.sourceBucket, f.sourceSnapshotsPrefix, nil) - if err != nil { - return err - } - - uniqueSnapshots := map[int64]bool{} - for _, o := range object { - zlog.Debug("filtering object", zap.String("object", o)) - if validSnapshot.MatchString(o) { - zlog.Debug("found a snapshot", zap.String("object", o)) - snapshot := snapshotPrefix.FindString(o) - - slot, err := strconv.ParseInt(snapshot, 10, 64) - if err != nil { - f.Shutdown(err) - } - uniqueSnapshots[slot] = true - } - } - - var snapshots []int64 - for s, _ := range uniqueSnapshots { - snapshots = append(snapshots, s) - } - sort.Slice(snapshots, func(i, j int) bool { - return snapshots[i] > snapshots[j] - }) - - zlog.Info("found snapshot", zap.Int("count", len(snapshots))) - if snapshots != nil { - sourceSnapshotName := snapshots[0] - zlog.Info("will process sourceSnapshotName", zap.Int64("sourceSnapshotName", sourceSnapshotName)) - - pcr := NewProcessor(f.sourceBucket, fmt.Sprintf("%d", sourceSnapshotName), f.destinationBucket, f.destinationSnapshotsFolder, f.workdir, client) - completed, err := pcr.CompletedSnapshot(ctx) - if err != nil { - return fmt.Errorf("error checking if snapshot was already processed: %w", err) - } - - if completed { - zlog.Info("snapshot already processed. skipping", zap.Int64("snapshot", sourceSnapshotName)) - continue - } - - err = pcr.processSnapshot(ctx) - if err != nil { - return err - } - } - } -} diff --git a/snapshotter/snapshot/init_test.go b/snapshotter/snapshot/init_test.go deleted file mode 100644 index b648fff6..00000000 --- a/snapshotter/snapshot/init_test.go +++ /dev/null @@ -1,10 +0,0 @@ -package snapshot - -import ( - _ "github.com/streamingfast/kvdb/store/badger" - "github.com/streamingfast/logging" -) - -func init() { - logging.TestingOverride() -} diff --git a/snapshotter/snapshot/logging.go b/snapshotter/snapshot/logging.go deleted file mode 100644 index a461ab23..00000000 --- a/snapshotter/snapshot/logging.go +++ /dev/null @@ -1,7 +0,0 @@ -package snapshot - -import ( - "github.com/streamingfast/logging" -) - -var zlog, tracer = logging.PackageLogger("snapshotter", "github.com/streamingfast/firehose-solana/snapshotter/snapshot") diff --git a/snapshotter/snapshot/processor.go b/snapshotter/snapshot/processor.go deleted file mode 100644 index 4e58c2c0..00000000 --- a/snapshotter/snapshot/processor.go +++ /dev/null @@ -1,258 +0,0 @@ -package snapshot - -import ( - "archive/tar" - "context" - "fmt" - "io" - "strings" - "time" - - "cloud.google.com/go/storage" - "github.com/mholt/archiver/v3" - "go.uber.org/zap" -) - -type processor struct { - sourceBucket string - sourceSnapshotFolder string - destinationBucket string - destinationSnapshotFolder string - workingDir string - client *storage.Client -} - -func NewProcessor(sourceBucket string, sourceSnapshotName string, destinationBucket string, destinationSnapshotsFolder string, workingDir string, client *storage.Client) *processor { - return &processor{ - sourceBucket: sourceBucket, - sourceSnapshotFolder: sourceSnapshotName, - destinationBucket: destinationBucket, - destinationSnapshotFolder: destinationSnapshotsFolder + "/" + paddedSnapshotName(sourceSnapshotName), - workingDir: workingDir, - client: client, - } -} - -func (p *processor) processSnapshot(ctx context.Context) error { - zlog.Info("processing snapshot", - zap.String("source_bucket", p.sourceBucket), - zap.String("source_snapshot_folder", p.sourceSnapshotFolder), - zap.String("destination_bucket", p.destinationBucket), - zap.String("destination_snapshot_folder", p.destinationSnapshotFolder), - ) - - zlog.Info("listing file from source", - zap.String("source_bucket", p.sourceBucket), - zap.String("source_snapshot_folder", p.sourceSnapshotFolder), - ) - _, err := listFiles(ctx, p.client, p.sourceBucket, p.sourceSnapshotFolder, p.handleFile) - if err != nil { - return fmt.Errorf("file listing: %w", err) - } - - err = p.writeProcessCompleteMarker(ctx) - if err != nil { - return err - } - - return nil -} - -func (p *processor) writeProcessCompleteMarker(ctx context.Context) error { - completedMarkerFile := p.destinationSnapshotFolder + "/" + "completed.marker" - o := p.client.Bucket(p.destinationBucket).Object(completedMarkerFile) - w := o.NewWriter(ctx) - defer w.Close() - - _, err := w.Write([]byte{0x1}) - if err != nil { - return fmt.Errorf("writting completion marker : %w", err) - } - return nil -} - -func (p *processor) CompletedSnapshot(ctx context.Context) (bool, error) { - completedMarkerFile := p.destinationSnapshotFolder + "/" + "completed.marker" - _, err := p.client.Bucket(p.destinationBucket).Object(completedMarkerFile).Attrs(ctx) - if err != nil { - if err == storage.ErrObjectNotExist { - return false, nil - } - - return false, err - } - return true, nil -} - -func paddedSnapshotName(fileName string) string { - parts := strings.Split(fileName, "/") - return fmt.Sprintf("%09s", parts[0]) -} - -func relativeFilePath(fileName string) string { - parts := strings.Split(fileName, "/") - return strings.Join(parts[1:], "/") -} - -func (p *processor) handleFile(ctx context.Context, filePath string) error { - ctx, cancel := context.WithTimeout(context.Background(), 24*time.Hour) - defer cancel() - - zlog.Info("Handling file", - zap.String("src_snapshot_folder", p.sourceSnapshotFolder), - zap.String("src_file_path", filePath), - zap.String("destination_bucket", p.destinationBucket), - zap.String("destination_snapshot_folder", p.destinationSnapshotFolder), - ) - - srcFileHandler := p.client.Bucket(p.sourceBucket).Object(filePath) - zlog.Info("got file handler", zap.String("object_name", srcFileHandler.ObjectName())) - - if strings.HasSuffix(filePath, "rocksdb.tar.bz2") { - zlog.Info("processing rocksdb file") - rocksdbReader, err := srcFileHandler.NewReader(ctx) - if err != nil { - return fmt.Errorf("reader from rockdb source handler: %w", err) - } - defer rocksdbReader.Close() - - //Build a writer for the untar process. - err = uncompress(rocksdbReader, func(fileName string) (w io.WriteCloser) { - //filePath is "rocksdb/001653.sst" - dest := p.destinationSnapshotFolder + "/" + fileName - zlog.Info("untarring file", - zap.String("file_name", fileName), - zap.String("destination_bucket", p.destinationBucket), - zap.String("dest_file_name", dest)) - h := p.client.Bucket(p.destinationBucket).Object(dest) - hw := h.NewWriter(ctx) - hw.ContentType = "application/octet-stream" - hw.CacheControl = "public, max-age=86400" - - return hw - }) - - if err != nil { - return fmt.Errorf("uncompressing rockdb: %w", err) - } - zlog.Info("uncompressed file") - - } else if strings.HasPrefix(relativeFilePath(filePath), "snapshot-") { - //copy the file from 1 sourceBucket to the other - destinationFile := p.destinationSnapshotFolder + "/" + relativeFilePath(filePath) - destFileHandler := p.client.Bucket(p.destinationBucket).Object(destinationFile) - _, err := destFileHandler.CopierFrom(srcFileHandler).Run(ctx) - if err != nil { - return fmt.Errorf("copy file: %s: %w", filePath, err) - } - zlog.Info("File copied", - zap.String("file_path", filePath), - zap.String("destination_bucket", p.destinationBucket), - zap.String("destination_file", destinationFile), - ) - } else { - zlog.Info("Ignoring file", zap.String("file_name", filePath)) - return nil - } - - return nil -} - -func uncompress(sourceReader io.Reader, destinationWriterFunc func(fileName string) (w io.WriteCloser)) error { - pr, pw := io.Pipe() - - readErrStream := make(chan error) - go func() { - var err error - defer func() { - _ = pw.Close() - if err != nil && err != io.EOF { - readErrStream <- err - } - close(readErrStream) - }() - - archiverInterface, err := archiver.ByExtension("-.bz2") - if err != nil { - return - } - - decompressor, ok := archiverInterface.(archiver.Decompressor) - if !ok { - err = fmt.Errorf("archiver does not satisfy interface") - return - } - - err = decompressor.Decompress(sourceReader, pw) - return - }() - - writeErrStream := make(chan error) - go func() { - var err error - defer func() { - _ = pr.CloseWithError(err) - if err == io.EOF { - zlog.Info("got eof") - } - - if err != nil && err != io.EOF { - writeErrStream <- err - } - close(writeErrStream) - }() - - tarReader := tar.NewReader(pr) - Out: // needed to break out of for-loop from inside switch statement - for { - var header *tar.Header - header, err = tarReader.Next() - switch { - case err != nil: - break Out - case header == nil: - err = fmt.Errorf("empty header") - break Out - } - - target := header.Name - switch header.Typeflag { - case tar.TypeReg: - // done in func call here so that we can cleanly defer our Close() call inside this for-loop - err = func() (copyError error) { - wc := destinationWriterFunc(target) - defer func() { - err := wc.Close() - if err != nil { - copyError = err - } - zlog.Info("target closed", zap.String("target", target)) - }() - - var size int64 - size, copyError = io.Copy(wc, tarReader) - if copyError != nil { - return copyError - } - - zlog.Info("target uploaded", zap.String("target", target), zap.Int64("size", size)) - return nil - }() - } - } - }() - - zlog.Info("waiting") - - err := <-writeErrStream - if err != nil { - return err - } - - err = <-readErrStream - if err != nil { - return err - } - - return nil -} diff --git a/snapshotter/snapshot/processor_test.go b/snapshotter/snapshot/processor_test.go deleted file mode 100644 index ac32fb80..00000000 --- a/snapshotter/snapshot/processor_test.go +++ /dev/null @@ -1,67 +0,0 @@ -package snapshot - -import ( - "bytes" - "io" - "os" - "testing" - - "github.com/stretchr/testify/require" - "go.uber.org/zap" -) - -type testWriter struct { - buf *bytes.Buffer - written int -} - -func NewTestWriter() *testWriter { - return &testWriter{ - buf: bytes.NewBuffer(nil), - } -} - -func (tw *testWriter) Write(p []byte) (int, error) { - n, err := io.Copy(tw.buf, bytes.NewBuffer(p)) - - zlog.Info("wrote", zap.Int64("bytes", n), zap.Error(err)) - tw.written += int(n) - return int(n), err -} - -func (tw *testWriter) Close() error { - return nil -} - -func testWriterFunc(filename string) (w io.WriteCloser) { - return NewTestWriter() -} - -type testFileReader struct { - file *os.File - read int -} - -func (t *testFileReader) Read(p []byte) (int, error) { - n, err := t.file.Read(p) - - zlog.Debug("read from file", zap.Int("bytes", n), zap.Error(err)) - t.read += n - return n, err -} - -func TestUncompress(t *testing.T) { - t.Skip("requires local file") - f, err := os.Open("/home/colin/rocksdb.tar.bz2") - if err != nil { - t.Error(err.Error()) - } - defer func() { - _ = f.Close() - }() - - testReader := &testFileReader{file: f} - - err = uncompress(testReader, testWriterFunc) - require.NoError(t, err) -} diff --git a/snapshotter/snapshot/store.go b/snapshotter/snapshot/store.go deleted file mode 100644 index 01b6f64d..00000000 --- a/snapshotter/snapshot/store.go +++ /dev/null @@ -1,43 +0,0 @@ -package snapshot - -import ( - "context" - "fmt" - "time" - - "cloud.google.com/go/storage" - "google.golang.org/api/iterator" -) - -var noOpFileHandler = func(ctx context.Context, file string) error { return nil } - -// listFiles lists objects within specified bucket. -func listFiles(ctx context.Context, client *storage.Client, bucket string, prefix string, fileHandler func(ctx context.Context, file string) error) ([]string, error) { - if fileHandler == nil { - fileHandler = noOpFileHandler - } - - ctx, cancel := context.WithTimeout(ctx, time.Second*200) - defer cancel() - - it := client.Bucket(bucket).Objects(ctx, &storage.Query{ - Prefix: prefix, - }) - var files []string - for { - attrs, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - return nil, fmt.Errorf("Bucket(%q).Objects: %v", bucket, err) - } - - err = fileHandler(ctx, attrs.Name) - if err != nil { - return nil, fmt.Errorf("file handler: %w", err) - } - files = append(files, attrs.Name) - } - return files, nil -} diff --git a/substreams/substreams.yaml b/substreams.yaml similarity index 94% rename from substreams/substreams.yaml rename to substreams.yaml index ef1e17f7..e088745f 100644 --- a/substreams/substreams.yaml +++ b/substreams.yaml @@ -5,11 +5,11 @@ package: url: https://github.com/streamingfast/firehose-solana doc: | Protobuf definitions for Substreams modules on Solana. - + This package does not include any modules. protobuf: files: - sf/solana/type/v1/type.proto importPaths: - - ../proto + - ./proto diff --git a/substreams/.gitignore b/substreams/.gitignore deleted file mode 100644 index 59a7e04a..00000000 --- a/substreams/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.spkg \ No newline at end of file diff --git a/tools/batch_file.go b/tools/batch_file.go deleted file mode 100644 index 6c75f327..00000000 --- a/tools/batch_file.go +++ /dev/null @@ -1,73 +0,0 @@ -package tools - -import ( - "encoding/hex" - "fmt" - "github.com/streamingfast/firehose-solana/codec" - - "github.com/mr-tron/base58" - "github.com/spf13/cobra" - "github.com/spf13/viper" - "go.uber.org/zap" -) - -var batchFilesCmd = &cobra.Command{ - Use: "batch-files", - Short: "batch Files related commands", -} -var batchFilesReadCmd = &cobra.Command{ - Use: "read {batch-file-path}", - Short: "Reads the content of batch file", - Args: cobra.ExactArgs(1), - RunE: batchFilesReadRunE, -} - -func init() { - Cmd.AddCommand(batchFilesCmd) - batchFilesCmd.AddCommand(batchFilesReadCmd) - batchFilesReadCmd.Flags().Bool("detailed", false, "Add instructions logs") -} - -func batchFilesReadRunE(cmd *cobra.Command, args []string) error { - batchFilePath := args[0] - zlog.Info("reading batch file", zap.String("path", batchFilePath)) - - detailedView := viper.GetBool("detailed") - batch, err := codec.ReadBatchFile(batchFilePath, false, zlog) - if err != nil { - return fmt.Errorf("unable to read batch file %q: %w", batchFilePath, err) - } - - fmt.Println("") - fmt.Printf("Batch %s contains %d transactions\n", batchFilePath, len(batch.Transactions)) - for idx, trx := range batch.Transactions { - errorIcon := "✅" - hasError := false - if trx.Error != nil { - hasError = true - errorIcon = "❌" - } - fmt.Println("") - fmt.Printf("%s Trx: %d - %s\n", errorIcon, idx, hex.EncodeToString(trx.Id)) - fmt.Printf(" Indexed: %d\n", trx.Index) - fmt.Printf(" Failed: %t\n", trx.Failed) - fmt.Printf(" Inst Count: %d\n", len(trx.Instructions)) - - if hasError { - fmt.Printf(" Error: %s\n", trx.Error.GetError()) - } - for instIdx, inst := range trx.Instructions { - programKey := base58.Encode(inst.ProgramId) - fmt.Printf(" > Inst: %d, Program %s\n", instIdx, programKey) - fmt.Printf(" Data 0x%s\n", hex.EncodeToString(inst.Data)) - if detailedView { - fmt.Printf(" Logs:\n") - for _, log := range inst.Logs { - fmt.Printf(" * %s\n", log.Message) - } - } - } - - } - return nil -} diff --git a/tools/bigtable-block.go b/tools/bigtable-block.go deleted file mode 100644 index 317fd615..00000000 --- a/tools/bigtable-block.go +++ /dev/null @@ -1,73 +0,0 @@ -package tools - -import ( - "encoding/json" - "fmt" - "strconv" - - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - - "github.com/streamingfast/firehose-solana/bt" - - "cloud.google.com/go/bigtable" - "github.com/spf13/cobra" -) - -var bigtableBlockCmd = &cobra.Command{ - Use: "block ", - Short: "get a block from bigtable", - RunE: bigtableBlockRunE, -} - -func init() { - bigtableCmd.AddCommand(bigtableBlockCmd) -} - -func mustGetString(cmd *cobra.Command, flagName string) string { - val, err := cmd.Flags().GetString(flagName) - if err != nil { - panic(fmt.Sprintf("flags: couldn't find flag %q", flagName)) - } - return val -} - -func bigtableBlockRunE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - zlog.Info("retrieving from bigtable") - client, err := bigtable.NewClient(ctx, mustGetString(cmd, "bt-project"), mustGetString(cmd, "bt-instance")) - if err != nil { - return fmt.Errorf("unable to create big table client: %w", err) - } - - btClient := bt.New(client, 10) - - startBlockNum, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return fmt.Errorf("unable to parse block number %q: %w", args[2], err) - } - endBlockNum := startBlockNum + 1 - fmt.Println("Looking for block: ", startBlockNum) - - foundBlock := false - if err = btClient.ReadBlocks(ctx, startBlockNum, endBlockNum, false, func(block *pbsolv1.Block) error { - // the block range may return the next block if it cannot find it - if block.Slot != startBlockNum { - return nil - } - - foundBlock = true - fmt.Println("Found bigtable row") - cnt, err := json.MarshalIndent(block, "", " ") - if err != nil { - return fmt.Errorf("unable to json marshal block: %w", err) - } - fmt.Println(string(cnt)) - return nil - }); err != nil { - return fmt.Errorf("failed to find block %d: %w", startBlockNum, err) - } - if !foundBlock { - fmt.Printf("Could not find desired block %d\n", startBlockNum) - } - return nil -} diff --git a/tools/bigtable-blocks.go b/tools/bigtable-blocks.go deleted file mode 100644 index 3a8c7fcc..00000000 --- a/tools/bigtable-blocks.go +++ /dev/null @@ -1,89 +0,0 @@ -package tools - -import ( - "encoding/hex" - "encoding/json" - "fmt" - "strconv" - - "github.com/spf13/viper" - "github.com/streamingfast/firehose-solana/bt" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - "google.golang.org/protobuf/proto" - - "cloud.google.com/go/bigtable" - "github.com/spf13/cobra" - "go.uber.org/zap" -) - -var bigtableBlocksCmd = &cobra.Command{ - Use: "blocks ", - Short: "get a range of blocks from bigtable", - RunE: bigtableBlocksRunE, -} - -func init() { - bigtableCmd.AddCommand(bigtableBlocksCmd) - bigtableBlocksCmd.Flags().Bool("firehose-enabled", false, "When enable the blocks read will output Firehose formated logs 'FIRE '") - bigtableBlocksCmd.Flags().Bool("compact", false, "When printing in JSON it will print compact instead of pretty-printed output") - bigtableBlocksCmd.Flags().Bool("linkable", false, "Ensure that no block is skipped they are linkeable") -} - -func bigtableBlocksRunE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - firehoseEnabled := viper.GetBool("firehose-enabled") - compact := viper.GetBool("compact") - linkable := viper.GetBool("linkable") - zlog.Info("retrieving from bigtable", - zap.Bool("firehose_enabled", firehoseEnabled), - zap.Bool("compact", compact), - zap.Bool("linkable", linkable), - ) - client, err := bigtable.NewClient(ctx, mustGetString(cmd, "bt-project"), mustGetString(cmd, "bt-instance")) - if err != nil { - return err - } - startBlockNum, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return fmt.Errorf("unable to parse start block number %q: %w", args[2], err) - } - - stopBlockNum, err := strconv.ParseUint(args[1], 10, 64) - if err != nil { - return fmt.Errorf("unable to parse stop block number %q: %w", args[2], err) - } - - zlog.Info("reading bigtable blocks", - zap.Uint64("start_block_num", startBlockNum), - zap.Uint64("stop_block_num", stopBlockNum), - ) - btClient := bt.New(client, 10) - - return btClient.ReadBlocks(ctx, startBlockNum, stopBlockNum, linkable, func(block *pbsolv1.Block) error { - if firehoseEnabled { - cnt, err := proto.Marshal(block) - if err != nil { - return fmt.Errorf("failed to proto marshal pb sol block: %w", err) - } - - lineCnt := fmt.Sprintf("FIRE BLOCK %d %s", block.Slot, hex.EncodeToString(cnt)) - if _, err := fmt.Println(lineCnt); err != nil { - return fmt.Errorf("failed to write log line (char lenght %d): %w", len(lineCnt), err) - } - return nil - } - - var cnt []byte - if compact { - cnt, err = json.Marshal(block) - } else { - cnt, err = json.MarshalIndent(block, "", " ") - } - if err != nil { - return fmt.Errorf("unable to json marshall block: %w", err) - } - fmt.Println(string(cnt)) - return nil - }) - -} diff --git a/tools/bigtable.go b/tools/bigtable.go deleted file mode 100644 index 1631d63f..00000000 --- a/tools/bigtable.go +++ /dev/null @@ -1,16 +0,0 @@ -package tools - -import ( - "github.com/spf13/cobra" -) - -var bigtableCmd = &cobra.Command{ - Use: "bt", - Short: "Solana bigtable sub command", -} - -func init() { - bigtableCmd.PersistentFlags().String("bt-project", "mainnet-beta", "Bigtable project") - bigtableCmd.PersistentFlags().String("bt-instance", "solana-ledger", "Bigtable instance") - Cmd.AddCommand(bigtableCmd) -} diff --git a/tools/check.go b/tools/check.go deleted file mode 100644 index 9bf57c4f..00000000 --- a/tools/check.go +++ /dev/null @@ -1,359 +0,0 @@ -package tools - -import ( - "context" - "errors" - "fmt" - "io" - "regexp" - "strconv" - "strings" - - "github.com/dustin/go-humanize" - "github.com/spf13/cobra" - "github.com/streamingfast/bstream" - "github.com/streamingfast/dstore" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" - "github.com/streamingfast/jsonpb" - sftools "github.com/streamingfast/sf-tools" - "go.uber.org/zap" -) - -var errStopWalk = errors.New("stop walk") - -var checkCmd = &cobra.Command{ - Use: "check", - Short: "Various checks for deployment, data integrity & debugging", -} - -var flagMergedBlocksCmd = &cobra.Command{ - Use: "flag-merged-blocks {store-url} {dest-store-url}", - Short: "Check for missing or broken merged-blocks-files in store-url, write an empty file to a dest-store-url for every problem found", - Args: cobra.ExactArgs(2), - RunE: flagMergedBlocksE, -} - -var checkMergedBlocksCmd = &cobra.Command{ - // TODO: Not sure, it's now a required thing, but we could probably use the same logic as `start` - // and avoid altogether passing the args. If this would also load the config and everything else, - // that would be much more seamless! - Use: "merged-blocks {store-url}", - Short: "Checks for any holes in merged blocks as well as ensuring merged blocks integrity", - Args: cobra.ExactArgs(1), - RunE: checkMergedBlocksE, -} -var checkOneBlocksCmd = &cobra.Command{ - Use: "one-blocks {store-url}", - Short: "Checks for any holes in one blocks as well as ensuring merged blocks integrity", - Args: cobra.ExactArgs(1), - RunE: checkOneBlocksE, -} - -func init() { - Cmd.AddCommand(checkCmd) - checkCmd.AddCommand(flagMergedBlocksCmd) - checkCmd.AddCommand(checkMergedBlocksCmd) - checkCmd.AddCommand(checkOneBlocksCmd) - - checkCmd.PersistentFlags().StringP("range", "r", "", "Block range to use for the check, format is of the form ':' (i.e. '-r 1000:2000')") - - checkMergedBlocksCmd.Flags().BoolP("print-stats", "s", false, "Natively decode each block in the segment and print statistics about it, ensuring it contains the required blocks") - checkMergedBlocksCmd.Flags().BoolP("print-full", "f", false, "Natively decode each block and print the full JSON representation of the block, should be used with a small range only if you don't want to be overwhelmed") -} - -type blockNum uint64 - -func (b blockNum) String() string { - return "#" + strings.ReplaceAll(humanize.Comma(int64(b)), ",", " ") -} - -func flagMergedBlocksE(cmd *cobra.Command, args []string) error { - storeURL := args[0] - destURL := args[1] - fileBlockSize := uint32(100) - - blockRange, err := sftools.Flags.GetBlockRange("range") - if err != nil { - return err - } - - return sftools.FlagMergedBlocks(cmd.Context(), zlog, storeURL, destURL, fileBlockSize, blockRange) -} - -func checkMergedBlocksE(cmd *cobra.Command, args []string) error { - storeURL := args[0] - fileBlockSize := uint32(100) - - blockRange, err := sftools.Flags.GetBlockRange("range") - if err != nil { - return err - } - - printDetails := sftools.PrintNothing - if mustGetBool(cmd, "print-stats") { - printDetails = sftools.PrintStats - } - - if mustGetBool(cmd, "print-full") { - printDetails = sftools.PrintFull - } - - return sftools.CheckMergedBlocks( - cmd.Context(), - zlog, - storeURL, - fileBlockSize, - blockRange, - blockPrinter, - printDetails, - ) -} - -func blockPrinter(block *bstream.Block) { - ethBlock := block.ToNative().(*pbsolv1.Block) - - callCount := 0 - for _, tx := range ethBlock.Transactions { - if tx.Transaction != nil && tx.Transaction.Message != nil { - callCount += len(tx.Transaction.Message.Instructions) - } - } - - fmt.Printf("Block %s %d transactions, %d calls\n", - block, - len(ethBlock.Transactions), - callCount, - ) -} - -func checkOneBlocksE(cmd *cobra.Command, args []string) error { - storeURL := args[0] - - fmt.Printf("Checking for block holes on %s\n", storeURL) - - number := regexp.MustCompile(`(\d{10})`) - - var expected uint32 - var count int - var baseNum32 uint32 - var prevBlockNum uint32 - holeFound := false - - blockRange, err := getBlockRangeFromFlag() - if err != nil { - return err - } - - expected = uint32(blockRange.Start) - currentStartBlk := uint32(blockRange.Start) - seenFilters := map[string]FilteringFilters{} - - blocksStore, err := dstore.NewDBinStore(storeURL) - if err != nil { - return err - } - - ctx := context.Background() - walkPrefix := walkBlockPrefix(blockRange, 1) - - zlog.Debug("walking one blocks", zap.Stringer("block_range", blockRange), zap.String("walk_prefix", walkPrefix)) - err = blocksStore.Walk(ctx, walkPrefix, func(filename string) error { - match := number.FindStringSubmatch(filename) - if match == nil { - return nil - } - - count++ - baseNum, _ := strconv.ParseUint(match[1], 10, 32) - baseNum32 = uint32(baseNum) - - zlog.Debug("received one blocks", zap.String("filename", filename), zap.Uint32("prev", prevBlockNum), zap.Uint64("base_num", baseNum), zap.Uint32("expected", expected), zap.Int64("diff", int64(baseNum32)-int64(expected))) - if baseNum+uint64(1) < blockRange.Start { - zlog.Debug("base num lower then block range start, quitting") - return nil - } - - if int64(baseNum32)-int64(expected) > 0 { - // There is no previous valid block range if we are the ever first seen file - if count > 1 { - printValidRange(currentStartBlk, expected-1) - } - - printMissingRange(expected, baseNum32-1) - currentStartBlk = baseNum32 - - holeFound = true - } - if baseNum32 != prevBlockNum { //dont increment expected if when seeing duplicated block - expected = baseNum32 + 1 - } - - prevBlockNum = baseNum32 - - if count%10000 == 0 { - printValidRange(currentStartBlk, baseNum32) - currentStartBlk = baseNum32 + 1 - } - - if !blockRange.Unbounded() && baseNum32 >= uint32(blockRange.Stop-1) { - return errStopWalk - } - - return nil - }) - if err != nil && err != errStopWalk { - return err - } - - actualEndBlock := baseNum32 - if !blockRange.Unbounded() { - actualEndBlock = uint32(blockRange.Stop) - } - - printValidRange(currentStartBlk, actualEndBlock) - - if len(seenFilters) > 0 { - fmt.Println() - fmt.Println("Seen filters") - for _, filters := range seenFilters { - fmt.Printf("- [Include %q, Exclude %q, System %q]\n", filters.Include, filters.Exclude, filters.System) - } - fmt.Println() - } - - if holeFound { - fmt.Printf("🆘 Holes found!\n") - } else { - fmt.Printf("🆗 No hole found\n") - } - - return nil -} - -func walkBlockPrefix(blockRange BlockRange, fileBlockSize uint32) string { - if blockRange.Unbounded() { - return "" - } - - startString := fmt.Sprintf("%010d", roundToBundleStartBlock(uint32(blockRange.Start), fileBlockSize)) - endString := fmt.Sprintf("%010d", roundToBundleEndBlock(uint32(blockRange.Stop-1), fileBlockSize)+1) - - offset := 0 - for i := 0; i < len(startString); i++ { - if startString[i] != endString[i] { - return string(startString[0:i]) - } - - offset++ - } - - // At this point, the two strings are equal, to return the string - return startString -} - -func roundToBundleStartBlock(block, fileBlockSize uint32) uint32 { - // From a non-rounded block `1085` and size of `100`, we remove from it the value of - // `modulo % fileblock` (`85`) making it flush (`1000`). - return block - (block % fileBlockSize) -} - -func roundToBundleEndBlock(block, fileBlockSize uint32) uint32 { - // From a non-rounded block `1085` and size of `100`, we remove from it the value of - // `modulo % fileblock` (`85`) making it flush (`1000`) than adding to it the last - // merged block num value for this size which simply `size - 1` (`99`) giving us - // a resolved formulae of `1085 - (1085 % 100) + (100 - 1) = 1085 - (85) + (99)`. - return block - (block % fileBlockSize) + (fileBlockSize - 1) -} - -func validateBlockSegment( - store dstore.Store, - segment string, - fileBlockSize uint32, - blockRange BlockRange, - printIndividualSegmentStats bool, - printFullBlock bool, -) (seenFilters map[string]FilteringFilters) { - reader, err := store.OpenObject(context.Background(), segment) - if err != nil { - fmt.Printf("❌ Unable to read blocks segment %s: %s\n", segment, err) - return - } - defer reader.Close() - - readerFactory, err := bstream.GetBlockReaderFactory.New(reader) - if err != nil { - fmt.Printf("❌ Unable to read blocks segment %s: %s\n", segment, err) - return - } - - // FIXME: Need to track block continuity (100, 101, 102a, 102b, 103, ...) and report which one are missing - seenBlockCount := 0 - for { - block, err := readerFactory.Read() - if block != nil { - if !blockRange.Unbounded() { - if block.Number >= blockRange.Stop { - return - } - - if block.Number < blockRange.Start { - continue - } - } - - seenBlockCount++ - - if printIndividualSegmentStats { - block := block.ToProtocol().(*pbsolv2.Block) - - fmt.Printf("Block #%d (%s) (prev: %s) : %d transactions\n", - block.Num(), - block.ID(), - block.PreviousId, - len(block.Transactions), - ) - } - - if printFullBlock { - eosBlock := block.ToNative().(*pbsolv2.Block) - - fmt.Printf(jsonpb.MarshalIndentToString(eosBlock, " ")) - } - - continue - } - - if block == nil && err == io.EOF { - if seenBlockCount < expectedBlockCount(segment, fileBlockSize) { - fmt.Printf("❌ Segment %s contained only %d blocks, expected at least 100\n", segment, seenBlockCount) - } - - return - } - - if err != nil { - fmt.Printf("❌ Unable to read all blocks from segment %s after reading %d blocks: %s\n", segment, seenBlockCount, err) - return - } - } -} - -func expectedBlockCount(segment string, fileBlockSize uint32) int { - // True only on EOSIO, on other chains, it's probably different from 1 to X - if segment == "0000000000" { - return int(fileBlockSize) - 2 - } - - return int(fileBlockSize) -} - -func printValidRange(start, end uint32) { - delta := end - start + 1 - fmt.Printf("✅ Valid blocks range %d - %d [%s blks]\n", start, end, humanize.Comma(int64(delta))) -} - -func printMissingRange(start, end uint32) { - delta := end - start + 1 - fmt.Printf("❌ Missing blocks range %d - %d [%s blks]!\n", start, end, humanize.Comma(int64(delta))) -} diff --git a/tools/cmd.go b/tools/cmd.go deleted file mode 100644 index 942712a2..00000000 --- a/tools/cmd.go +++ /dev/null @@ -1,17 +0,0 @@ -package tools - -import ( - "fmt" - - "github.com/spf13/cobra" -) - -var Cmd = &cobra.Command{Use: "tools", Short: "Developer tools related to firesol"} - -func mustGetBool(cmd *cobra.Command, flagName string) bool { - val, err := cmd.Flags().GetBool(flagName) - if err != nil { - panic(fmt.Sprintf("flags: couldn't find flag %q", flagName)) - } - return val -} diff --git a/tools/firesol/99-firehose-solana.sh b/tools/docker/99-firehose-solana.sh similarity index 100% rename from tools/firesol/99-firehose-solana.sh rename to tools/docker/99-firehose-solana.sh diff --git a/tools/firesol/motd_generic b/tools/docker/motd_generic similarity index 100% rename from tools/firesol/motd_generic rename to tools/docker/motd_generic diff --git a/tools/firesol/motd_node_manager b/tools/docker/motd_node_manager similarity index 100% rename from tools/firesol/motd_node_manager rename to tools/docker/motd_node_manager diff --git a/tools/firesol/scripts/sol-debug-firehose-logs-30s b/tools/docker/scripts/sol-debug-firehose-logs-30s similarity index 100% rename from tools/firesol/scripts/sol-debug-firehose-logs-30s rename to tools/docker/scripts/sol-debug-firehose-logs-30s diff --git a/tools/firesol/scripts/sol-drift b/tools/docker/scripts/sol-drift similarity index 100% rename from tools/firesol/scripts/sol-drift rename to tools/docker/scripts/sol-drift diff --git a/tools/firesol/scripts/sol-maintenance b/tools/docker/scripts/sol-maintenance similarity index 100% rename from tools/firesol/scripts/sol-maintenance rename to tools/docker/scripts/sol-maintenance diff --git a/tools/firesol/scripts/sol-resume b/tools/docker/scripts/sol-resume similarity index 100% rename from tools/firesol/scripts/sol-resume rename to tools/docker/scripts/sol-resume diff --git a/tools/firehose-client.go b/tools/firehose-client.go deleted file mode 100644 index c1815bf3..00000000 --- a/tools/firehose-client.go +++ /dev/null @@ -1,19 +0,0 @@ -package tools - -import ( - "github.com/spf13/cobra" - //"github.com/streamingfast/eth-go" - //pbtransform "github.com/streamingfast/sf-ethereum/types/pb/sf/ethereum/transform/v1" - sftools "github.com/streamingfast/sf-tools" - "google.golang.org/protobuf/types/known/anypb" -) - -func init() { - firehoseClientCmd := sftools.GetFirehoseClientCmd(zlog, tracer, transformsSetter) - Cmd.AddCommand(firehoseClientCmd) -} - -// no transforms on arweave yet -var transformsSetter = func(cmd *cobra.Command) (transforms []*anypb.Any, err error) { - return nil, nil -} diff --git a/tools/firehose-prometheus-exporter.go b/tools/firehose-prometheus-exporter.go deleted file mode 100644 index 808e998d..00000000 --- a/tools/firehose-prometheus-exporter.go +++ /dev/null @@ -1,10 +0,0 @@ -package tools - -import ( - sftools "github.com/streamingfast/sf-tools" -) - -func init() { - prometheusExporterCmd := sftools.GetFirehosePrometheusExporterCmd(zlog, tracer, transformsSetter) - Cmd.AddCommand(prometheusExporterCmd) -} diff --git a/tools/inspect.go b/tools/inspect.go deleted file mode 100644 index b603a3e5..00000000 --- a/tools/inspect.go +++ /dev/null @@ -1,300 +0,0 @@ -package tools - -import ( - "context" - "fmt" - "io" - "regexp" - "strconv" - - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" - - "github.com/mr-tron/base58" - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/bstream" - "github.com/streamingfast/dstore" -) - -var inspectCmd = &cobra.Command{ - Use: "inspect", - Short: "Inspect merged blocks, or a single block", -} - -var inspectBlockCmd = &cobra.Command{ - Use: "block {block_num}", - Short: "Print the content summary of a block", - Args: cobra.ExactArgs(1), - RunE: inspectBlockE, -} - -var inspectBlocksCmd = &cobra.Command{ - Use: "blocks {base_block_num}", - Short: "Prints the content summary of a merged blocks file", - Args: cobra.ExactArgs(1), - RunE: inspectBlocksE, -} - -var inspectBlocksGraphCmd = &cobra.Command{ - Use: "range {start_block_num:stop_block}", - Short: "Prints the content summary of a merged blocks file", - Args: cobra.ExactArgs(1), - RunE: inspectRangeE, -} - -func init() { - Cmd.AddCommand(inspectCmd) - inspectCmd.PersistentFlags().String("store", "gs://dfuseio-global-blocks-us/sol-mainnet/v5", "block store") - inspectCmd.PersistentFlags().Uint64("transactions-for-block", 0, "Include transaction IDs in output") - inspectCmd.PersistentFlags().Bool("transactions", false, "Include transaction IDs in output") - inspectCmd.PersistentFlags().Bool("instructions", false, "Include instruction output") - - inspectCmd.AddCommand(inspectBlockCmd) - - inspectCmd.AddCommand(inspectBlocksCmd) - inspectBlocksCmd.Flags().Bool("viz", false, "Output .dot file") - inspectBlocksCmd.Flags().Bool("data", false, "output block data statistic") - - inspectCmd.AddCommand(inspectBlocksGraphCmd) -} - -func inspectRangeE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - number := regexp.MustCompile(`(\d{10})`) - str := viper.GetString("store") - store, err := dstore.NewDBinStore(str) - if err != nil { - return fmt.Errorf("unable to create store at path %q: %w", store, err) - } - fileBlockSize := uint32(100) - - blockRange, err := decodeBlockRange(args[0]) - if err != nil { - return err - } - - walkPrefix := walkBlockPrefix(blockRange, fileBlockSize) - type virtualSlot struct { - previousID string - endID string - starNum uint64 - endNum uint64 - - Id string - count uint64 - } - virtualSlots := map[string]*virtualSlot{} - - fmt.Println("// Run: dot -Tpdf file.dot -o file.pdf") - fmt.Println("digraph D {") - - err = store.Walk(ctx, walkPrefix, func(filename string) error { - match := number.FindStringSubmatch(filename) - if match == nil { - return nil - } - - baseNum, _ := strconv.ParseUint(match[1], 10, 32) - if baseNum < (blockRange.Start - uint64(fileBlockSize)) { - return nil - } - - if baseNum > blockRange.Stop { - return errStopWalk - } - - reader, err := store.OpenObject(ctx, filename) - if err != nil { - return fmt.Errorf("unable to read blocks filename: %s: %w", filename, err) - } - defer reader.Close() - - readerFactory, err := bstream.GetBlockReaderFactory.New(reader) - if err != nil { - return fmt.Errorf("unable to read block in file %s: %w", filename, err) - } - - for { - blk, err := readerFactory.Read() - if err != nil { - if err == io.EOF { - break - } - return fmt.Errorf("reading block: %w", err) - } - - if blk.Number < blockRange.Start { - continue - } - - block := blk.ToProtocol().(*pbsolv2.Block) - - isVirutal := false - if block.Number != block.Number { - isVirutal = true - } - - blockIdBase58 := base58.Encode(block.Id) - previousBlockIdBase58 := base58.Encode(block.PreviousId) - - currentID := fmt.Sprintf("%s%s", blockIdBase58[:8], blockIdBase58[len(blockIdBase58)-8:]) - previousID := fmt.Sprintf("%s%s", previousBlockIdBase58[:8], previousBlockIdBase58[len(previousBlockIdBase58)-8:]) - if !isVirutal { - fmt.Printf( - " S%s [label=\"%s..%s\\n#%d t=%d\\nblk=%d lib=%d\"];\n S%s -> S%s;\n", - currentID, - blockIdBase58[:8], - blockIdBase58[len(blockIdBase58)-8:], - block.Number, - block.TransactionCount, - block.Number, - blk.LibNum, - currentID, - previousID, - ) - continue - } - - if vslot, found := virtualSlots[string(block.PreviousId)]; found { - delete(virtualSlots, string(block.PreviousId)) - vslot.count++ - vslot.endID = blockIdBase58 - vslot.endNum = block.Number - virtualSlots[string(block.Id)] = vslot - } else { - virtualSlots[string(block.Id)] = &virtualSlot{ - starNum: block.Number, - previousID: previousBlockIdBase58, - endID: blockIdBase58, - count: 1, - } - } - } - return nil - }) - - for _, vslot := range virtualSlots { - currentID := fmt.Sprintf("%s%s", vslot.endID[:8], vslot.endID[len(vslot.endID)-8:]) - previousID := fmt.Sprintf("%s%s", vslot.previousID[:8], vslot.previousID[len(vslot.previousID)-8:]) - - fmt.Printf( - " S%s [label=\"%d virtual slots\\n# %d -> %d\"];\n S%s -> S%s;\n", - currentID, - vslot.count, - vslot.starNum, - vslot.endNum, - currentID, - previousID, - ) - } - fmt.Println("}") - return nil -} - -func inspectBlocksE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - blockNum, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return fmt.Errorf("unable to parse block number %q: %w", args[0], err) - } - augmentedStack := viper.GetBool("global-augmented-mode") - str := viper.GetString("store") - - store, err := dstore.NewDBinStore(str) - if err != nil { - return fmt.Errorf("unable to create store at path %q: %w", store, err) - } - - readerFactory, closeFunc, fileURL, err := readMergedBlockFile(ctx, store, blockNum) - if err != nil { - return err - } - defer closeFunc() - - fmt.Printf("Merged Blocks File: %s\n", fileURL) - - seenBlockCount := 0 - for { - block, err := readerFactory.Read() - if err != nil { - if err == io.EOF { - break - } - return fmt.Errorf("reading block: %w", err) - - } - - if err := readBlock(block, augmentedStack); err != nil { - return fmt.Errorf("processing block: %w", err) - } - - seenBlockCount++ - } - - fmt.Printf("Total blocks: %d\n", seenBlockCount) - return nil -} - -func inspectBlockE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - blockNum, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return fmt.Errorf("unable to parse block number %q: %w", args[0], err) - } - augmentedStack := viper.GetBool("global-augmented-mode") - - delta := blockNum % 100 - baseBlockNum := blockNum - delta - - str := viper.GetString("store") - store, err := dstore.NewDBinStore(str) - if err != nil { - return fmt.Errorf("unable to create store at path %q: %w", store, err) - } - - readerFactory, closeFunc, fileURL, err := readMergedBlockFile(ctx, store, baseBlockNum) - if err != nil { - return err - } - defer closeFunc() - - fmt.Printf("Merged Blocks File: %s\n", fileURL) - for { - block, err := readerFactory.Read() - if err != nil { - if err == io.EOF { - break - } - return fmt.Errorf("reading block: %w", err) - } - if block.Number != blockNum { - continue - } - - if err := readBlock(block, augmentedStack); err != nil { - return fmt.Errorf("processing block: %w", err) - } - - } - return nil -} - -func readMergedBlockFile(ctx context.Context, blockStore dstore.Store, baseBlockNum uint64) (bstream.BlockReader, func(), string, error) { - filename := fmt.Sprintf("%010d", baseBlockNum) - reader, err := blockStore.OpenObject(ctx, filename) - if err != nil { - fmt.Printf("❌ Unable to read merge blocks filename %s: %s\n", filename, err) - return nil, nil, "", err - } - - readerFactory, err := bstream.GetBlockReaderFactory.New(reader) - if err != nil { - fmt.Printf("❌ Unable to read blocks filename %s: %s\n", filename, err) - return nil, nil, "", err - } - - cleanUpFunc := func() { - reader.Close() - } - return readerFactory, cleanUpFunc, blockStore.ObjectURL(filename), nil -} diff --git a/tools/logging.go b/tools/logging.go deleted file mode 100644 index 4dd4add1..00000000 --- a/tools/logging.go +++ /dev/null @@ -1,8 +0,0 @@ -package tools - -import ( - "github.com/streamingfast/logging" - "go.uber.org/zap" -) - -var zlog, tracer = logging.PackageLogger("tools", "github.com/streamingfast/firehose-solana/tools", logging.LoggerDefaultLevel(zap.InfoLevel)) diff --git a/tools/print.go b/tools/print.go deleted file mode 100644 index a3de535c..00000000 --- a/tools/print.go +++ /dev/null @@ -1,228 +0,0 @@ -package tools - -import ( - "encoding/hex" - "fmt" - "io" - "strconv" - - "github.com/mr-tron/base58" - "github.com/spf13/cobra" - "github.com/spf13/viper" - "github.com/streamingfast/bstream" - "github.com/streamingfast/dstore" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" -) - -var printCmd = &cobra.Command{ - Use: "print", - Short: "Prints of one block or merged blocks file", -} - -var blockCmd = &cobra.Command{ - Use: "block {block_num}", - Short: "Prints the content summary of a one block file", - Args: cobra.ExactArgs(1), - RunE: printOneBlockE, -} - -func init() { - Cmd.AddCommand(printCmd) - printCmd.AddCommand(blockCmd) - - printCmd.PersistentFlags().Uint64("transactions-for-block", 0, "Include transaction IDs in output") - printCmd.PersistentFlags().Bool("transactions", false, "Include transaction IDs in output") - printCmd.PersistentFlags().Bool("instructions", false, "Include instruction output") - printCmd.PersistentFlags().String("store", "gs://dfuseio-global-blocks-uscentral/sol-mainnet/v1", "block store") -} - -func printOneBlockE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - augmentedStack := viper.GetBool("global-augmented-mode") - blockNum, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return fmt.Errorf("unable to parse block number %q: %w", args[0], err) - } - - str := viper.GetString("store") - fmt.Println(str) - - store, err := dstore.NewDBinStore(str) - if err != nil { - return fmt.Errorf("unable to create store at path %q: %w", store, err) - } - - var files []string - bundleFilename := blockNum - (blockNum % 100) - filePrefix := fmt.Sprintf("%010d", bundleFilename) - fmt.Println(filePrefix) - err = store.Walk(ctx, filePrefix, func(filename string) (err error) { - files = append(files, filename) - return nil - }) - if err != nil { - return fmt.Errorf("unable to find on block files: %w", err) - } - - fmt.Printf("Found %d oneblock files for block number %d\n", len(files), blockNum) - - for _, filepath := range files { - reader, err := store.OpenObject(ctx, filepath) - if err != nil { - fmt.Printf("❌ Unable to read block filename %s: %s\n", filepath, err) - return err - } - defer reader.Close() - - readerFactory, err := bstream.GetBlockReaderFactory.New(reader) - if err != nil { - fmt.Printf("❌ Unable to read blocks filename %s: %s\n", filepath, err) - return err - } - - fmt.Printf("One Block File: %s\n", store.ObjectURL(filepath)) - - for { - block, err := readerFactory.Read() - if err != nil { - if err == io.EOF { - return fmt.Errorf("block not found: %q", blockNum) - } - return fmt.Errorf("reading block: %w", err) - } - - if blockNum == block.Num() { - if err = readBlock(block, augmentedStack); err != nil { - return err - } - return nil - } - } - } - return nil -} - -func readBlock(blk *bstream.Block, augmentedData bool) error { - if augmentedData { - return readPBSolBlock(blk.ToProtocol().(*pbsolv2.Block), blk.LibNum) - } - return readPBSolanaBlock(blk.ToProtocol().(*pbsolv1.Block), blk.LibNum) -} - -func readPBSolBlock(block *pbsolv2.Block, LibNum uint64) error { - blockId := block.ID() - blockPreviousId := block.PreviousID() - hasAccountData := hasAccountData(block) - - fmt.Printf("Slot #%d (%s) (prev: %s...) (blk: %d) (LIB: %d) (@: %s): %d transactions, has account data : %t\n", - block.Num(), - blockId, - blockPreviousId[0:6], - block.Number, - LibNum, - block.Time(), - len(block.Transactions), - hasAccountData, - ) - - if viper.GetBool("transactions") || viper.GetUint64("transactions-for-block") == block.Number { - totalInstr := 0 - fmt.Println("- Transactions: ") - - for trxIdx, t := range block.Transactions { - trxStr := fmt.Sprintf(" * ") - if t.Failed { - trxStr = fmt.Sprintf("%s ❌", trxStr) - } else { - trxStr = fmt.Sprintf("%s ✅", trxStr) - } - - fmt.Println(fmt.Sprintf("%s Trx [%d] %s: %d instructions ", trxStr, trxIdx, t.Id, len(t.Instructions))) - accs, _ := t.AccountMetaList() - for _, acc := range accs { - fmt.Println("account: ", acc) - } - - totalInstr += len(t.Instructions) - if viper.GetBool("instructions") { - for _, inst := range t.Instructions { - instStr := fmt.Sprintf(" * Inst [%d]: program_id %s", inst.Index, inst.ProgramId) - instStr = fmt.Sprintf("%s ", instStr) - fmt.Println(instStr) - fmt.Println(hex.EncodeToString(inst.Data)) - } - } - - } - fmt.Println("total instruction:", totalInstr) - fmt.Println() - } - return nil -} - -func readPBSolanaBlock(block *pbsolv1.Block, LibNum uint64) error { - blockId := block.ID() - blockPreviousId := block.PreviousID() - - fmt.Printf("Slot #%d (%s) (prev: %s...) (blk: %d) (LIB: %d) (@: %s): %d transactions\n", - block.Num(), - blockId, - blockPreviousId[0:6], - block.Num(), - LibNum, - block.Time(), - len(block.Transactions), - ) - if viper.GetBool("transactions") || viper.GetUint64("transactions-for-block") == block.Num() { - totalInstr := 0 - fmt.Println("- Transactions: ") - - for trxIdx, t := range block.Transactions { - tid := base58.Encode(t.Transaction.Signatures[0]) - trxStr := fmt.Sprintf(" * ") - if t.Meta.Err != nil { - trxStr = fmt.Sprintf("%s ❌", trxStr) - } else { - trxStr = fmt.Sprintf("%s ✅", trxStr) - } - - fmt.Println(fmt.Sprintf("%s Trx [%d] %s: %d instructions ", trxStr, trxIdx, tid, len(t.Transaction.Message.Instructions))) - globalCounter := 0 - for idx, acc := range t.Transaction.Message.AccountKeys { - globalCounter++ - fmt.Printf(" > Acc [%d] [%d]: %s\n", globalCounter, idx, base58.Encode(acc)) - } - - for idxAtl, atl := range t.Transaction.Message.AddressTableLookups { - globalCounter++ - fmt.Printf(" > Atl [%d] [%d]: %s\n", globalCounter, idxAtl, base58.Encode(atl.AccountKey)) - } - - totalInstr += len(t.Transaction.Message.Instructions) - if viper.GetBool("instructions") { - for _, inst := range t.Transaction.Message.Instructions { - instStr := fmt.Sprintf(" * Inst: program_id %d", inst.ProgramIdIndex) - instStr = fmt.Sprintf("%s ", instStr) - fmt.Println(instStr) - fmt.Println(hex.EncodeToString(inst.Data)) - } - } - } - - fmt.Println("total instruction:", totalInstr) - fmt.Println() - } - return nil -} -func hasAccountData(block *pbsolv2.Block) bool { - for _, t := range block.Transactions { - for _, inst := range t.Instructions { - if len(inst.AccountChanges) > 0 { - return true - } - - } - } - return false -} diff --git a/tools/snapshot.go b/tools/snapshot.go deleted file mode 100644 index 67128dbd..00000000 --- a/tools/snapshot.go +++ /dev/null @@ -1,323 +0,0 @@ -package tools - -import ( - "cloud.google.com/go/storage" - "context" - "encoding/csv" - "encoding/json" - "fmt" - "github.com/spf13/cobra" - "github.com/spf13/viper" - "go.uber.org/zap" - "google.golang.org/api/iterator" - "io/ioutil" - "net/url" - "os" - "path" - "regexp" - "sort" - "strconv" - "strings" -) - -var snapshotCmd = &cobra.Command{ - Use: "snapshot", - Short: "", -} - -var listSnapshotCmd = &cobra.Command{ - Use: "list {snapshot_bucket}", - Short: `Prints ordered snapshot list for a given bucket. Buckets can be: -- gs://mainnet-beta-ledger-us-ny5 -- gs://mainnet-beta-ledger-asia-sg1 -- gs://mainnet-beta-ledger-europe-fr2 -`, - Args: cobra.ExactArgs(1), - RunE: listSnapshotE, -} - -var boundsARegEx = regexp.MustCompile(`^Ledger has data for (\d+) slots (\d+) to (\d+)`) -var boundsBRegEx = regexp.MustCompile(`^Ledger has data for slots (\d+) to (\d+)`) - -func init() { - Cmd.AddCommand(snapshotCmd) - snapshotCmd.AddCommand(listSnapshotCmd) - listSnapshotCmd.Flags().String("output", "snapshots.jsonl", "output filename either .csv or .jsonl") - -} - -func listSnapshotE(cmd *cobra.Command, args []string) error { - ctx := cmd.Context() - snapshotBucket := args[0] - zlog.Info("fetching solana snapshot", zap.String("snapshot_path", snapshotBucket)) - - outputFile := viper.GetString("output") - outputCSV := false - if strings.HasSuffix(outputFile, ".csv") { - outputCSV = true - } else if !strings.HasSuffix(outputFile, ".jsonl") { - return fmt.Errorf("expected --output to either be a .csv or .jsonl file (i.e snapshost.csv or snapshots.jsonl") - } - - reader, err := NewSnapshotReader(snapshotBucket) - if err != nil { - return err - } - - snapshots, err := reader.ReadSnapshots(ctx) - if err != nil { - return err - } - - sort.SliceStable(snapshots, func(i, j int) bool { - return snapshots[i].Slot < snapshots[j].Slot - }) - - file, err := os.Create(outputFile) - if err != nil { - return fmt.Errorf("failed to open a file: %w", err) - } - defer file.Close() - - var csvwriter *csv.Writer - if outputCSV { - csvwriter = csv.NewWriter(file) - csvwriter.Write([]string{"slot", "bucket", "has bounds", "slot count", "start slot", "end slot", "version", "rocksdb path", "rocksdb compression", "snapshot path"}) - defer csvwriter.Flush() - } - - for _, snapshot := range snapshots { - if outputCSV { - err = csvwriter.Write([]string{ - fmt.Sprintf("%d", snapshot.Slot), - snapshot.Bucket, - fmt.Sprintf("%t", snapshot.HasBound), - fmt.Sprintf("%d", snapshot.SlotCount), - fmt.Sprintf("%d", snapshot.StartSlot), - fmt.Sprintf("%d", snapshot.EndSlot), - snapshot.Version, - snapshot.RocksDBPath, - fmt.Sprintf("%t", snapshot.RocksDBCompressed), - snapshot.SnapshotPath, - }) - if err != nil { - return fmt.Errorf("failed to write to csv: %w", err) - } - continue - } - cnt, err := json.Marshal(snapshot) - if err != nil { - return err - } - file.Write(cnt) - file.Write([]byte{'\n'}) - } - - return nil -} - -type SnapshotReader struct { - ctx context.Context - bucket *url.URL - client *storage.Client -} - -func NewSnapshotReader(bucket string) (*SnapshotReader, error) { - base, err := url.Parse(bucket) - if err != nil { - return nil, err - } - - client, err := storage.NewClient(context.Background()) - if err != nil { - return nil, err - } - - return &SnapshotReader{ - bucket: base, - client: client, - }, err -} - -func (sr *SnapshotReader) ReadSnapshots(ctx context.Context) ([]*Snapshot, error) { - zlog.Info("retrieving slots") - epochs := []*Snapshot{} - it := sr.client.Bucket(sr.bucket.Host).Objects(ctx, &storage.Query{ - Delimiter: "/", - Prefix: strings.TrimLeft(sr.bucket.Path, "/"), - }) - for { - attrs, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - return nil, err - } - epoch, err := strconv.ParseUint(strings.Trim(attrs.Prefix, "/"), 10, 64) - if err != nil { - zlog.Debug("failed to parse epoch", zap.Error(err), zap.String("epoch", attrs.Prefix)) - } - if epoch <= 0 { - continue - } - - snap, err := sr.readSnapshot(ctx, epoch) - if err != nil { - return nil, err - } - epochs = append(epochs, snap) - } - return epochs, nil - -} - -func (sr *SnapshotReader) readSnapshot(ctx context.Context, epoch uint64) (*Snapshot, error) { - s := &Snapshot{Slot: epoch, Bucket: sr.bucket.Host} - var snapshotRegEx = regexp.MustCompile(fmt.Sprintf("snapshot-%d-.*", epoch)) - zlog.Debug("retrieving slot detail", zap.Uint64("slot", epoch)) - ut := sr.client.Bucket(sr.bucket.Host).Objects(ctx, &storage.Query{ - Delimiter: "", - Prefix: fmt.Sprintf("%d/", epoch), - }) - seenRocksDbFolder := false - hourlySnapshot := "" - for { - subAttrs, err := ut.Next() - if err == iterator.Done { - break - } - if err != nil { - return nil, err - } - - if strings.Contains(subAttrs.Name, "hourly") { - if snapshotRegEx.MatchString(subAttrs.Name) { - hourlySnapshot = fmt.Sprintf("%s/%s", strings.TrimRight(sr.bucket.String(), "/"), subAttrs.Name) - } - continue - } - - if strings.Contains(subAttrs.Name, fmt.Sprintf("%d/rocksdb/", epoch)) { - seenRocksDbFolder = true - continue - } - - if strings.Contains(subAttrs.Name, "rocksdb.tar.bz2") { - s.RocksDBPath = fmt.Sprintf("%s/%s", strings.TrimRight(sr.bucket.String(), "/"), subAttrs.Name) - s.RocksDBCompressed = true - continue - } - - if strings.Contains(subAttrs.Name, "bounds.txt") { - s.HasBound = true - s.SlotCount, s.StartSlot, s.EndSlot, err = sr.readSnapshotBound(ctx, epoch) - if err != nil { - return nil, err - } - continue - } - if strings.Contains(subAttrs.Name, "version.txt") { - cnt, err := sr.readFile(ctx, epoch, "version.txt") - if err != nil { - return nil, err - } - s.Version = strings.Trim(string(cnt), "\n") - continue - } - - if snapshotRegEx.MatchString(subAttrs.Name) { - s.SnapshotPath = fmt.Sprintf("%s/%s", strings.TrimRight(sr.bucket.String(), "/"), subAttrs.Name) - continue - } - } - if seenRocksDbFolder && s.RocksDBPath == "" { - s.RocksDBPath = fmt.Sprintf("%s/%d/rocksdb", strings.TrimRight(sr.bucket.String(), "/"), s.Slot) - s.RocksDBCompressed = false - } - if s.SnapshotPath == "" { - s.SnapshotPath = hourlySnapshot - } - return s, nil -} - -func (sr *SnapshotReader) readSnapshotBound(ctx context.Context, epoch uint64) (slotCount uint64, startSlot uint64, endSlot uint64, err error) { - cnt, err := sr.readFile(ctx, epoch, "bounds.txt") - if err != nil { - return 0, 0, 0, err - } - matches := boundsARegEx.FindStringSubmatch(string(cnt)) - if len(matches) != 4 { - matches := boundsBRegEx.FindStringSubmatch(string(cnt)) - if len(matches) != 3 { - return 0, 0, 0, fmt.Errorf("unable to parse bound file for epoch %d: %s", epoch, string(cnt)) - } - startSlot, err = strconv.ParseUint(matches[1], 10, 64) - if err != nil { - zlog.Debug("failed to parse bound.txt start slot", zap.Error(err), zap.String("match", matches[2])) - } - endSlot, err = strconv.ParseUint(matches[2], 10, 64) - if err != nil { - zlog.Debug("failed to parse bound.txt end slot", zap.Error(err), zap.String("match", matches[3])) - } - slotCount = endSlot - startSlot + 1 - } else { - slotCount, err = strconv.ParseUint(matches[1], 10, 64) - if err != nil { - zlog.Debug("failed to parse bound.txt slot count", zap.Error(err), zap.String("match", matches[1])) - } - startSlot, err = strconv.ParseUint(matches[2], 10, 64) - if err != nil { - zlog.Debug("failed to parse bound.txt start slot", zap.Error(err), zap.String("match", matches[2])) - } - endSlot, err = strconv.ParseUint(matches[3], 10, 64) - if err != nil { - zlog.Debug("failed to parse bound.txt end slot", zap.Error(err), zap.String("match", matches[3])) - } - } - - return slotCount, startSlot, endSlot, nil -} - -func (sr *SnapshotReader) readFile(ctx context.Context, epoch uint64, filename string) ([]byte, error) { - filepath := path.Join(strings.TrimLeft(sr.bucket.Path, "/"), fmt.Sprintf("%d", epoch), filename) - zlog.Debug("retrieving file", zap.String("filepath", filepath)) - filereader, err := sr.client.Bucket(sr.bucket.Host).Object(filepath).NewReader(ctx) - if err != nil { - return nil, err - } - return ioutil.ReadAll(filereader) -} - -func (sr *SnapshotReader) hasFile(ctx context.Context, epoch uint64, filename string) (bool, error) { - filepath := path.Join(strings.TrimLeft(sr.bucket.Path, "/"), fmt.Sprintf("%d", epoch), filename) - _, err := sr.client.Bucket(sr.bucket.Host).Object(filepath).Attrs(ctx) - if err != nil { - if err == storage.ErrObjectNotExist { - return false, nil - } - - return false, err - } - return true, nil -} - -type Snapshot struct { - Slot uint64 - Bucket string - // bound - HasBound bool - SlotCount uint64 - StartSlot uint64 - EndSlot uint64 - - //version - Version string - - // rocksdb - RocksDBPath string - RocksDBCompressed bool - - //Snapshot - SnapshotPath string -} diff --git a/tools/snapshot_path.go b/tools/snapshot_path.go deleted file mode 100644 index cfda9393..00000000 --- a/tools/snapshot_path.go +++ /dev/null @@ -1,156 +0,0 @@ -package tools - -import ( - "bufio" - "encoding/csv" - "encoding/json" - "fmt" - "github.com/spf13/cobra" - "io" - "os" - "sort" -) - -var pathSnapshotCmd = &cobra.Command{ - Use: "path {csv_file} {cvs_file}", - Short: `Prints to a CSV file the shortest path for full block history -`, - Args: cobra.ExactArgs(2), - RunE: pathSnapshotRunE, -} - -func init() { - snapshotCmd.AddCommand(pathSnapshotCmd) -} - -func pathSnapshotRunE(cmd *cobra.Command, args []string) error { - f, err := os.Open(args[0]) - if err != nil { - return fmt.Errorf("unable to open file %q: %w", args[0], err) - } - defer f.Close() - - reader := bufio.NewReader(f) - - snapshots := []*Snapshot{} - - for { - line, _, err := reader.ReadLine() - if err != nil { - if err == io.EOF { - break - } - return fmt.Errorf("unable to read line: %w", err) - } - - snapshotObj := &Snapshot{} - err = json.Unmarshal(line, snapshotObj) - if err != nil { - return fmt.Errorf("unable unmarshal open object: %w", err) - } - snapshots = append(snapshots, snapshotObj) - } - sort.SliceStable(snapshots, func(i, j int) bool { - return snapshots[i].StartSlot < snapshots[j].StartSlot - }) - out := shortestPath(snapshots) - - file, err := os.Create(args[1]) - if err != nil { - return fmt.Errorf("failed to open a file: %w", err) - } - defer file.Close() - - var csvwriter *csv.Writer - - csvwriter = csv.NewWriter(file) - csvwriter.Write([]string{"slot", "bucket", "has bounds", "slot count", "start slot", "end slot", "version", "rocksdb path", "rocksdb compression", "snapshot path"}) - defer csvwriter.Flush() - - var lastSnapshot *Snapshot - versions := map[string]bool{} - holeCount := 0 - for _, snapshot := range out { - err = csvwriter.Write([]string{ - fmt.Sprintf("%d", snapshot.Slot), - snapshot.Bucket, - fmt.Sprintf("%t", snapshot.HasBound), - fmt.Sprintf("%d", snapshot.SlotCount), - fmt.Sprintf("%d", snapshot.StartSlot), - fmt.Sprintf("%d", snapshot.EndSlot), - snapshot.Version, - snapshot.RocksDBPath, - fmt.Sprintf("%t", snapshot.RocksDBCompressed), - snapshot.SnapshotPath, - }) - if err != nil { - return fmt.Errorf("failed to write to csv: %w", err) - } - - isContiguous := true - overlap := 0 - if lastSnapshot != nil { - if snapshot.StartSlot > lastSnapshot.EndSlot { - isContiguous = false - holeCount++ - } - overlap = (int(lastSnapshot.EndSlot) - int(snapshot.StartSlot)) - } - prefix := "✅" - if !isContiguous { - prefix = "🆘" - } - fmt.Printf("%s Snapshot %d - %d (%s | %d count | %d overlap)\n", prefix, snapshot.StartSlot, snapshot.EndSlot, snapshot.Version, snapshot.SlotCount, overlap) - lastSnapshot = snapshot - versions[snapshot.Version] = true - } - - fmt.Printf("Snapshot Count: %d\n", len(out)) - fmt.Printf("Hole Count: %d\n", holeCount) - fmt.Printf("Unique Version Count: %d\n", len(versions)) - return nil -} - -func shortestPath(array []*Snapshot) (out []*Snapshot) { - - var curBestCandidate *Snapshot - var lastValidSnapshot *Snapshot - for _, snapshot := range array { - if snapshot.StartSlot == 0 { - continue - } - - if lastValidSnapshot == nil { - lastValidSnapshot = snapshot - out = append(out, lastValidSnapshot) - continue - } - - if snapshot.StartSlot > lastValidSnapshot.EndSlot { - if curBestCandidate != nil { - lastValidSnapshot = curBestCandidate - out = append(out, lastValidSnapshot) - curBestCandidate = nil - } else { - lastValidSnapshot = snapshot - out = append(out, lastValidSnapshot) - curBestCandidate = nil - } - //if (snapshot != nil) && (curBestCandidate != nil) && (snapshot.StartSlot > curBestCandidate.EndSlot) { - // curBestCandidate = snapshot - //} - } - - if snapshot.StartSlot < lastValidSnapshot.EndSlot { - if (curBestCandidate == nil) || (curBestCandidate != nil && snapshot.EndSlot > curBestCandidate.EndSlot) { - curBestCandidate = snapshot - } - } - } - - if curBestCandidate != nil { - out = append(out, curBestCandidate) - } - - return out -} diff --git a/tools/snapshot_path_test.go b/tools/snapshot_path_test.go deleted file mode 100644 index 43aa935a..00000000 --- a/tools/snapshot_path_test.go +++ /dev/null @@ -1,68 +0,0 @@ -package tools - -import ( - "github.com/test-go/testify/assert" - "testing" -) - -func TestSnapshotPath(t *testing.T) { - - tests := []struct { - name string - input []*Snapshot - expect []*Snapshot - }{ - { - name: "Last Valid", - input: []*Snapshot{ - {SnapshotPath: "A", StartSlot: 1, EndSlot: 4}, - {SnapshotPath: "B", StartSlot: 2, EndSlot: 6}, - {SnapshotPath: "C", StartSlot: 2, EndSlot: 10}, - {SnapshotPath: "D", StartSlot: 3, EndSlot: 7}, - {SnapshotPath: "E", StartSlot: 6, EndSlot: 15}, - }, - expect: []*Snapshot{ - {SnapshotPath: "A", StartSlot: 1, EndSlot: 4}, - {SnapshotPath: "C", StartSlot: 2, EndSlot: 10}, - {SnapshotPath: "E", StartSlot: 6, EndSlot: 15}, - }, - }, - { - name: "Last ! Valid", - input: []*Snapshot{ - {SnapshotPath: "A", StartSlot: 1, EndSlot: 4}, - {SnapshotPath: "B", StartSlot: 2, EndSlot: 6}, - {SnapshotPath: "C", StartSlot: 2, EndSlot: 10}, - {SnapshotPath: "D", StartSlot: 3, EndSlot: 7}, - {SnapshotPath: "E", StartSlot: 6, EndSlot: 15}, - {SnapshotPath: "F", StartSlot: 5, EndSlot: 12}, - }, - expect: []*Snapshot{ - {SnapshotPath: "A", StartSlot: 1, EndSlot: 4}, - {SnapshotPath: "C", StartSlot: 2, EndSlot: 10}, - {SnapshotPath: "E", StartSlot: 6, EndSlot: 15}, - }, - }, - { - name: "Hole", - input: []*Snapshot{ - {SnapshotPath: "A", StartSlot: 1, EndSlot: 4}, - {SnapshotPath: "B", StartSlot: 2, EndSlot: 6}, - {SnapshotPath: "C", StartSlot: 2, EndSlot: 10}, - {SnapshotPath: "D", StartSlot: 3, EndSlot: 7}, - {SnapshotPath: "E", StartSlot: 12, EndSlot: 14}, - }, - expect: []*Snapshot{ - {SnapshotPath: "A", StartSlot: 1, EndSlot: 4}, - {SnapshotPath: "C", StartSlot: 2, EndSlot: 10}, - }, - }, - } - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - out := shortestPath(test.input) - assert.Equal(t, test.expect, out) - }) - } - -} diff --git a/tools/types.go b/tools/types.go deleted file mode 100644 index 1db106f0..00000000 --- a/tools/types.go +++ /dev/null @@ -1,113 +0,0 @@ -package tools - -import ( - "fmt" - "os" - "strconv" - "strings" - - "github.com/spf13/viper" -) - -type BlockRange struct { - Start uint64 - Stop uint64 -} - -func getBlockRangeFromFlag() (out BlockRange, err error) { - return decodeBlockRange(viper.GetString("range")) -} - -func decodeBlockRange(stringRange string) (out BlockRange, err error) { - if stringRange == "" { - return - } - - rawRanges := strings.Split(stringRange, ",") - if len(rawRanges) == 0 { - return - } - - if len(rawRanges) > 1 { - return out, fmt.Errorf("accepting a single range for now, got %d", len(rawRanges)) - } - - out, err = decodeRange(rawRanges[0]) - if err != nil { - return out, fmt.Errorf("decode range: %w", err) - } - - return -} - -func decodeRanges(rawRanges string) (out []BlockRange, err error) { - for _, rawRange := range strings.Split(rawRanges, ",") { - blockRange, err := decodeRange(rawRange) - if err != nil { - fmt.Println(err.Error()) - os.Exit(1) - } - - out = append(out, blockRange) - } - - return -} - -func decodeRange(rawRange string) (out BlockRange, err error) { - parts := strings.SplitN(rawRange, ":", 2) - if len(parts) != 2 { - return out, fmt.Errorf("invalid range %q, not matching format `:`", rawRange) - } - - out.Start, err = decodeBlockNum("start", parts[0]) - if err != nil { - return - } - - out.Stop, err = decodeBlockNum("end", parts[1]) - if err != nil { - return - } - - return -} - -func decodeBlockNum(tag string, part string) (out uint64, err error) { - trimmedValue := strings.Trim(part, " ") - - if trimmedValue != "" { - out, err = strconv.ParseUint(trimmedValue, 10, 64) - if err != nil { - return out, fmt.Errorf("`<%s>` value %q is not a valid integer", tag, part) - } - - if out < 0 { - return out, fmt.Errorf("`<%s>` value %q should be positive (or 0)", tag, part) - } - } - - return -} - -func (b BlockRange) Unbounded() bool { - return b.Start == 0 && b.Stop == 0 -} - -func (b BlockRange) ReprocRange() string { - return fmt.Sprintf("%d:%d", b.Start, b.Stop+1) -} - -func (b BlockRange) String() string { - return fmt.Sprintf("%s - %s", blockNum(b.Start), blockNum(b.Stop)) -} - -type FilteringFilters struct { - Include string - Exclude string - System string -} - -func (f *FilteringFilters) Key() string { - return f.System + f.Exclude + f.System -} diff --git a/transform/program_filter.go b/transform/program_filter.go index 7e4276cc..8d0ef8d9 100644 --- a/transform/program_filter.go +++ b/transform/program_filter.go @@ -4,11 +4,10 @@ import ( "bytes" "fmt" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" - "github.com/streamingfast/bstream" "github.com/streamingfast/bstream/transform" - pbtransforms "github.com/streamingfast/firehose-solana/types/pb/sf/solana/transforms/v1" + pbtransforms "github.com/streamingfast/firehose-solana/pb/sf/solana/transforms/v1" + pbsolv2 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v2" "github.com/streamingfast/solana-go" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/anypb" diff --git a/transform/program_filter_test.go b/transform/program_filter_test.go index 36e7a1ba..07ef6068 100644 --- a/transform/program_filter_test.go +++ b/transform/program_filter_test.go @@ -3,8 +3,8 @@ package transform import ( "testing" - pbtransforms "github.com/streamingfast/firehose-solana/types/pb/sf/solana/transforms/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" + pbtransforms "github.com/streamingfast/firehose-solana/pb/sf/solana/transforms/v1" + pbsolv2 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v2" "github.com/streamingfast/bstream/transform" "github.com/streamingfast/solana-go" diff --git a/transform/testing.go b/transform/testing.go index a7af167d..d393d8bb 100644 --- a/transform/testing.go +++ b/transform/testing.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/streamingfast/bstream" - "github.com/streamingfast/firehose-solana/types" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" + pbsolv2 "github.com/streamingfast/firehose-solana/pb/sf/solana/type/v2" + pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" "github.com/stretchr/testify/require" "google.golang.org/protobuf/proto" ) @@ -23,7 +23,7 @@ func testBlock(t *testing.T) *bstream.Block { Number: b.Number, PreviousId: string(b.PreviousId), LibNum: 1, - PayloadKind: types.Protocol_SOL, + PayloadKind: pbbstream.Protocol_SOLANA, PayloadVersion: 1, } diff --git a/types/block.go b/types/block.go deleted file mode 100644 index 726b5d62..00000000 --- a/types/block.go +++ /dev/null @@ -1,48 +0,0 @@ -package types - -import ( - "fmt" - "time" - - "github.com/streamingfast/bstream" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" - "google.golang.org/protobuf/proto" -) - -func BlockFromPBSolProto(slot *pbsolv2.Block) (*bstream.Block, error) { - blockTime := slot.Time() - - content, err := proto.Marshal(slot) - if err != nil { - return nil, fmt.Errorf("unable to marshal to binary form: %s", err) - } - - block := &bstream.Block{ - Id: slot.ID(), - Number: slot.Num(), - PreviousId: slot.PreviousID(), - Timestamp: blockTime, - PayloadKind: Protocol_SOL, - PayloadVersion: int32(slot.Version), - } - return bstream.GetBlockPayloadSetter(block, content) -} - -func BlockFromPBSolanaProto(blk *pbsolv1.Block) (*bstream.Block, error) { - content, err := proto.Marshal(blk) - if err != nil { - return nil, fmt.Errorf("unable to marshal to binary form: %s", err) - } - blockTime := time.Unix(blk.BlockTime.GetTimestamp(), 0) - block := &bstream.Block{ - Id: blk.Blockhash, - Number: blk.Slot, - PreviousId: blk.PreviousBlockhash, - LibNum: blk.ParentSlot, - Timestamp: blockTime, - PayloadKind: Protocol_SOL, - PayloadVersion: 1, - } - return bstream.GetBlockPayloadSetter(block, content) -} diff --git a/types/decoder.go b/types/decoder.go deleted file mode 100644 index 4f256ed4..00000000 --- a/types/decoder.go +++ /dev/null @@ -1,69 +0,0 @@ -package types - -import ( - "fmt" - - "github.com/streamingfast/bstream" - pbsolv1 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v1" - pbsolv2 "github.com/streamingfast/firehose-solana/types/pb/sf/solana/type/v2" - pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" - "google.golang.org/protobuf/proto" -) - -// FIXME: Solana protocol will be the value 3, might not work everywehre ... we will see! -var Protocol_SOL = pbbstream.Protocol(3) - -func PBSolBlockDecoder(blk *bstream.Block) (interface{}, error) { - if blk.Kind() != Protocol_SOL { - return nil, fmt.Errorf("expected kind %s, got %s", Protocol_SOL, blk.Kind()) - } - - if blk.Version() != 1 { - return nil, fmt.Errorf("this decoder only knows about version 1, got %d", blk.Version()) - } - - block := new(pbsolv2.Block) - payload, err := blk.Payload.Get() - if err != nil { - return nil, fmt.Errorf("getting payload: %s", err) - } - - err = proto.Unmarshal(payload, block) - if err != nil { - return nil, fmt.Errorf("unable to decode payload: %s", err) - } - - // This whole BlockDecoder method is being called through the `bstream.Block.ToNative()` - // method. Hence, it's a great place to add temporary data normalization calls to backport - // some features that were not in all blocks yet (because we did not re-process all blocks - // yet). - // - // Thoughts for the future: Ideally, we would leverage the version information here to take - // a decision, like `do X if version <= 2.1` so we would not pay the performance hit - // automatically instead of having to re-deploy a new version of bstream (which means - // rebuild everything mostly) - - return block, nil -} - -func PBSolanaBlockDecoder(blk *bstream.Block) (interface{}, error) { - if blk.Kind() != Protocol_SOL { - return nil, fmt.Errorf("expected kind %s, got %s", Protocol_SOL, blk.Kind()) - } - - if blk.Version() != 1 { - return nil, fmt.Errorf("this decoder only knows about version 1, got %d", blk.Version()) - } - - block := new(pbsolv1.Block) - payload, err := blk.Payload.Get() - if err != nil { - return nil, fmt.Errorf("getting payload: %s", err) - } - - err = proto.Unmarshal(payload, block) - if err != nil { - return nil, fmt.Errorf("unable to decode payload: %s", err) - } - return block, nil -} diff --git a/types/go.mod b/types/go.mod deleted file mode 100644 index f58315a7..00000000 --- a/types/go.mod +++ /dev/null @@ -1,79 +0,0 @@ -module github.com/streamingfast/firehose-solana/types - -go 1.17 - -require ( - github.com/mr-tron/base58 v1.2.0 - github.com/streamingfast/bstream v0.0.2-0.20220428192925-5d0312d274f0 - github.com/streamingfast/logging v0.0.0-20220304214715-bc750a74b424 - github.com/streamingfast/pbgo v0.0.6-0.20220428192744-f80aee7d4688 - github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8 - go.uber.org/zap v1.21.0 - google.golang.org/grpc v1.44.0 - google.golang.org/protobuf v1.27.1 -) - -require ( - cloud.google.com/go v0.100.2 // indirect - cloud.google.com/go/compute v1.3.0 // indirect - cloud.google.com/go/iam v0.1.1 // indirect - cloud.google.com/go/monitoring v1.4.0 // indirect - cloud.google.com/go/storage v1.21.0 // indirect - cloud.google.com/go/trace v1.2.0 // indirect - contrib.go.opencensus.io/exporter/stackdriver v0.13.10 // indirect - contrib.go.opencensus.io/exporter/zipkin v0.1.1 // indirect - filippo.io/edwards25519 v1.0.0-rc.1 // indirect - github.com/Azure/azure-pipeline-go v0.2.3 // indirect - github.com/Azure/azure-storage-blob-go v0.14.0 // indirect - github.com/aws/aws-sdk-go v1.37.0 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/blendle/zapdriver v1.3.1 // indirect - github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect - github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/dustin/go-humanize v1.0.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.2 // indirect - github.com/google/go-cmp v0.5.7 // indirect - github.com/google/uuid v1.2.0 // indirect - github.com/googleapis/gax-go/v2 v2.1.1 // indirect - github.com/gorilla/mux v1.8.0 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect - github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect - github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/klauspost/compress v1.11.3 // indirect - github.com/logrusorgru/aurora v2.0.3+incompatible // indirect - github.com/mattn/go-ieproxy v0.0.1 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect - github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/openzipkin/zipkin-go v0.1.6 // indirect - github.com/prometheus/client_golang v1.12.1 // indirect - github.com/prometheus/client_model v0.2.0 // indirect - github.com/prometheus/common v0.32.1 // indirect - github.com/prometheus/procfs v0.7.3 // indirect - github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680 // indirect - github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5 // indirect - github.com/streamingfast/dbin v0.0.0-20210809205249-73d5eca35dc5 // indirect - github.com/streamingfast/dgrpc v0.0.0-20220301153539-536adf71b594 // indirect - github.com/streamingfast/dmetrics v0.0.0-20210811180524-8494aeb34447 // indirect - github.com/streamingfast/dstore v0.1.1-0.20220304164644-696f9c5fc231 // indirect - github.com/streamingfast/dtracing v0.0.0-20210811175635-d55665d3622a // indirect - github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308 // indirect - github.com/streamingfast/shutter v1.5.0 // indirect - github.com/tidwall/gjson v1.11.0 // indirect - github.com/tidwall/match v1.1.1 // indirect - github.com/tidwall/pretty v1.2.0 // indirect - go.opencensus.io v0.23.0 // indirect - go.uber.org/atomic v1.9.0 // indirect - go.uber.org/multierr v1.7.0 // indirect - golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect - golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect - golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect - golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect - golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect - golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect - golang.org/x/text v0.3.7 // indirect - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect - google.golang.org/api v0.70.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf // indirect -) diff --git a/types/go.sum b/types/go.sum deleted file mode 100644 index eaff43de..00000000 --- a/types/go.sum +++ /dev/null @@ -1,958 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= -cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= -cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= -cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= -cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= -cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= -cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= -cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= -cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= -cloud.google.com/go v0.100.2 h1:t9Iw5QH5v4XtlEQaCtUY7x6sCABps8sW0acw7e2WQ6Y= -cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= -cloud.google.com/go/compute v1.2.0/go.mod h1:xlogom/6gr8RJGBe7nT2eGsQYAFUbbv8dbC29qE3Xmw= -cloud.google.com/go/compute v1.3.0 h1:mPL/MzDDYHsh5tHRS9mhmhWlcgClCrCa6ApQCU6wnHI= -cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/iam v0.1.1 h1:4CapQyNFjiksks1/x7jsvsygFPhihslYk5GptIrlX68= -cloud.google.com/go/iam v0.1.1/go.mod h1:CKqrcnI/suGpybEHxZ7BMehL0oA4LpdyJdUlTl9jVMw= -cloud.google.com/go/monitoring v1.1.0/go.mod h1:L81pzz7HKn14QCMaCs6NTQkdBnE87TElyanS95vIcl4= -cloud.google.com/go/monitoring v1.4.0 h1:05+IuNMbh40hbxcqQ4SnynbwZbLG1Wc9dysIJxnfv7U= -cloud.google.com/go/monitoring v1.4.0/go.mod h1:y6xnxfwI3hTFWOdkOaD7nfJVlwuC3/mS/5kvtT131p4= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.21.0 h1:HwnT2u2D309SFDHQII6m18HlrCi3jAXhUMTLOWXYH14= -cloud.google.com/go/storage v1.21.0/go.mod h1:XmRlxkgPjlBONznT2dDUU/5XlpU2OjMnKuqnZI01LAA= -cloud.google.com/go/trace v1.0.0/go.mod h1:4iErSByzxkyHWzzlAj63/Gmjz0NH1ASqhJguHpGcr6A= -cloud.google.com/go/trace v1.2.0 h1:oIaB4KahkIUOpLSAAjEJ8y2desbjY/x/RfP4O3KAtTI= -cloud.google.com/go/trace v1.2.0/go.mod h1:Wc8y/uYyOhPy12KEnXG9XGrvfMz5F5SrYecQlbW1rwM= -contrib.go.opencensus.io/exporter/stackdriver v0.12.6/go.mod h1:8x999/OcIPy5ivx/wDiV7Gx4D+VUPODf0mWRGRc5kSk= -contrib.go.opencensus.io/exporter/stackdriver v0.13.8/go.mod h1:huNtlWx75MwO7qMs0KrMxPZXzNNWebav1Sq/pm02JdQ= -contrib.go.opencensus.io/exporter/stackdriver v0.13.10 h1:a9+GZPUe+ONKUwULjlEOucMMG0qfSCCenlji0Nhqbys= -contrib.go.opencensus.io/exporter/stackdriver v0.13.10/go.mod h1:I5htMbyta491eUxufwwZPQdcKvvgzMB4O9ni41YnIM8= -contrib.go.opencensus.io/exporter/zipkin v0.1.1 h1:PR+1zWqY8ceXs1qDQQIlgXe+sdiwCf0n32bH4+Epk8g= -contrib.go.opencensus.io/exporter/zipkin v0.1.1/go.mod h1:GMvdSl3eJ2gapOaLKzTKE3qDgUkJ86k9k3yY2eqwkzc= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-rc.1 h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU= -filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= -github.com/Azure/azure-pipeline-go v0.2.3 h1:7U9HBg1JFK3jHl5qmo4CTZKFTVgMwdFHMVtCdfBE21U= -github.com/Azure/azure-pipeline-go v0.2.3/go.mod h1:x841ezTBIMG6O3lAcl8ATHnsOPVl2bqk7S3ta6S6u4k= -github.com/Azure/azure-storage-blob-go v0.14.0 h1:1BCg74AmVdYwO3dlKwtFU1V0wU2PZdREkXvAmZJRUlM= -github.com/Azure/azure-storage-blob-go v0.14.0/go.mod h1:SMqIBi+SuiQH32bvyjngEewEeXoPfKMgWlBDaYf6fck= -github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest/adal v0.9.13 h1:Mp5hbtOePIzM8pJVRa3YLrWWmZtoxRXqUEzCfJt3+/Q= -github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg= -github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/GeertJohan/go.incremental v1.0.0/go.mod h1:6fAjUhbVuX1KcMD3c8TEgVUqmo4seqhv0i0kdATSkM0= -github.com/GeertJohan/go.rice v1.0.0/go.mod h1:eH6gbSOAUv07dQuZVnBmoDP8mgsM1rtixis4Tib9if0= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/RoaringBitmap/roaring v0.9.4/go.mod h1:icnadbWcNyfEHlYdr+tDlOTih1Bf/h+rzPpv4sbomAA= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= -github.com/alecthomas/gometalinter v2.0.11+incompatible/go.mod h1:qfIpQGGz3d+NmgyPBqv+LSh50emm1pt72EtcX2vKYQk= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/aws/aws-sdk-go v1.22.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.25.43/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.37.0 h1:GzFnhOIsrGyQ69s7VgqtrG2BG8v7X7vwB3Xpbd/DBBk= -github.com/aws/aws-sdk-go v1.37.0/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= -github.com/blendle/zapdriver v1.3.1 h1:C3dydBOWYRiOk+B8X9IVZ5IOe+7cl+tGOexN4QqHfpE= -github.com/blendle/zapdriver v1.3.1/go.mod h1:mdXfREi6u5MArG4j9fewC+FGnXaBR+T4Ox4J2u4eHCc= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.3.0 h1:t/LhUZLVitR1Ow2YOnduCsavhwFUklBMoGVYUCqmCqk= -github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.2.1 h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1VLQ= -github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf/go.mod h1:RpwtwJQFrIEPstU94h88MWPXP2ektJZ8cZ0YntAmXiE= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs= -github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= -github.com/googleapis/gax-go/v2 v2.1.1 h1:dp3bWCh+PPO1zjRRiCSczJav13sBvG4UhNyVTa1KqdU= -github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= -github.com/gordonklaus/ineffassign v0.0.0-20180909121442-1003c8bd00dc/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/rpc v1.2.0 h1:WvvdC2lNeT1SP32zrIce5l0ECBfbAlmrmSBsuc57wfk= -github.com/gorilla/rpc v1.2.0/go.mod h1:V4h9r+4sF5HnzqbwIez0fKSpANP0zlYd3qR7p36jkTQ= -github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a/go.mod h1:UJSiEoRfvx3hP73CvoARgeLjaIOjybY9vj8PUPPFGeU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.10.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.3 h1:dB4Bn0tN3wdCzQxnS8r06kV74qN/TAfaIS0bVE8h3jc= -github.com/klauspost/compress v1.11.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= -github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= -github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/manifoldco/promptui v0.3.2/go.mod h1:8JU+igZ+eeiiRku4T5BjtKh2ms8sziGpSYl1gN8Bazw= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-ieproxy v0.0.1 h1:qiyop7gCflfhwCzGyeT0gro3sF9AIg9HU98JORTkqfI= -github.com/mattn/go-ieproxy v0.0.1/go.mod h1:pYabZ6IHcRpFh7vIaLfK7rdcWgFEb3SFJ6/gNWuh88E= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= -github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= -github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOlotKw= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/near/borsh-go v0.3.1-0.20210831082424-4377deff6791/go.mod h1:NeMochZp7jN/pYFuxLkrZtmLqbADmnp/y1+/dL+AsyQ= -github.com/nkovacs/streamquote v0.0.0-20170412213628-49af9bddb229/go.mod h1:0aYXnNPJ8l7uZxf45rWW1a/uME32OF0rhiYGNQ2oF2E= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/openzipkin/zipkin-go v0.1.6 h1:yXiysv1CSK7Q5yjGy1710zZGnsbMUIjluWBxtLXHPBo= -github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680 h1:fGJnUx0shX9Y312QOlz+/+yLquihXRhNqctJ26jtZZM= -github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680/go.mod h1:iISPGAstbUsPgyC3auLLi7PYUTi9lHv5z0COam0OPOY= -github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5 h1:xCVaIP9q+nqRxHrb1wCLs3AABUcCgLGK0IakN4CMQbk= -github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5/go.mod h1:LEQhe6qUvAQSYBJu7MZvDU1kx4JrZzxru3Ga1rRCCuo= -github.com/streamingfast/bstream v0.0.2-0.20220428192925-5d0312d274f0 h1:h0tl0BvogxoU05g6bjCFv9W862Wb07t/RAvp1U8GfeY= -github.com/streamingfast/bstream v0.0.2-0.20220428192925-5d0312d274f0/go.mod h1:5uiGlDGmqMmjY5rz4uIet74NyAiv/YZRShjFftFJtDE= -github.com/streamingfast/dbin v0.0.0-20210809205249-73d5eca35dc5 h1:m/3aIPNXCwZ9m/dfYdOs8ftrS7GJl82ipVr6K2aZiBs= -github.com/streamingfast/dbin v0.0.0-20210809205249-73d5eca35dc5/go.mod h1:YStE7K5/GH47JsWpY7LMKsDaXXpMLU/M26vYFzXHYRk= -github.com/streamingfast/dgrpc v0.0.0-20220301153539-536adf71b594 h1:/TrU0xalSNFsX6mZVRBqyCAMrNtVPgF4jy8ymfHn0mY= -github.com/streamingfast/dgrpc v0.0.0-20220301153539-536adf71b594/go.mod h1:HFjyAk8wkkb92dLBq1lxArfaWvDHb9Y53+fg7O5WTiU= -github.com/streamingfast/dmetrics v0.0.0-20210811180524-8494aeb34447 h1:oZwOVjxpWCqLUjgcPgVigVCHYR40JkmXfm1kuMcCOQk= -github.com/streamingfast/dmetrics v0.0.0-20210811180524-8494aeb34447/go.mod h1:VLdQY/FwczmC/flqWkcsBbqXO4BhU4zQDSK7GMrpcjY= -github.com/streamingfast/dstore v0.1.1-0.20220304164644-696f9c5fc231 h1:i977bgPOzaKZJT/JeZgA+EfSFlSXhXxOdvBKZazv8AA= -github.com/streamingfast/dstore v0.1.1-0.20220304164644-696f9c5fc231/go.mod h1:aii8QXJg+2b5CXw+Y1SkTf5QJkJOu8ujq6+rw8J1OK0= -github.com/streamingfast/dtracing v0.0.0-20210811175635-d55665d3622a h1:/7Rw3pYpueJYOQReTJpfAhAPk0uZD4I58LfiUAr4IMc= -github.com/streamingfast/dtracing v0.0.0-20210811175635-d55665d3622a/go.mod h1:bqiYZaX6L/MoXNfFQeAdau6g9HLA3yKHkX8KzStt58Q= -github.com/streamingfast/logging v0.0.0-20210811175431-f3b44b61606a/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= -github.com/streamingfast/logging v0.0.0-20210908162127-bdc5856d5341/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= -github.com/streamingfast/logging v0.0.0-20220222131651-12c3943aac2e/go.mod h1:4GdqELhZOXj4xwc4IaBmzofzdErGynnaSzuzxy0ZIBo= -github.com/streamingfast/logging v0.0.0-20220304214715-bc750a74b424 h1:qKt1W13L7GXL3xqvD6z2ufSkIy/KDm9oGrfurypC78E= -github.com/streamingfast/logging v0.0.0-20220304214715-bc750a74b424/go.mod h1:VlduQ80JcGJSargkRU4Sg9Xo63wZD/l8A5NC/Uo1/uU= -github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308 h1:xlWSfi1BoPfsHtPb0VEHGUcAdBF208LUiFCwfaVPfLA= -github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308/go.mod h1:K1p8Bj/wG34KJvYzPUqtzpndffmpkrVY11u2hkyxCWQ= -github.com/streamingfast/pbgo v0.0.6-0.20220428192744-f80aee7d4688 h1:TNGT5KhvyowkTU68qVwpUv15BQ2VLynOun28B++p32U= -github.com/streamingfast/pbgo v0.0.6-0.20220428192744-f80aee7d4688/go.mod h1:huKwfgTGFIFZMKSVbD5TywClM7zAeBUG/zePZMqvXQQ= -github.com/streamingfast/shutter v1.5.0 h1:NpzDYzj0HVpSiDJVO/FFSL6QIK/YKOxY0gJAtyaTOgs= -github.com/streamingfast/shutter v1.5.0/go.mod h1:B/T6efqdeMGbGwjzPS1ToXzYZI4kDzI5/u4I+7qbjY8= -github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8 h1:M9HcIwlbl7PipqrKPgNzfEWD9oxAA0mmjdRd2dTk9/4= -github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8/go.mod h1:9NfZWSK0zqA+M1YU2pTI8sr1BfijCpqBFceLQARQiNw= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf/go.mod h1:M8agBzgqHIhgj7wEn9/0hJUZcrvt9VY+Ln+S1I5Mha0= -github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE= -github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU= -github.com/tidwall/gjson v1.6.3/go.mod h1:BaHyNc5bjzYkPqgLq7mdVzeiRtULKULXLgZFKsxEHI0= -github.com/tidwall/gjson v1.11.0 h1:C16pk7tQNiH6VlCrtIXL1w8GaOsi1X3W8KDkE1BuYd4= -github.com/tidwall/gjson v1.11.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.0.1/go.mod h1:LujAq0jyVjBy028G1WhWfIzbpQfMO8bBZ6Tyb0+pL9E= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= -github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= -github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tsenart/deadcode v0.0.0-20160724212837-210d2dc333e9/go.mod h1:q+QjxYvZ+fpjMXqs+XEriussHjSYqeXVnAdSV1tkMYk= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= -github.com/ybbus/jsonrpc v2.1.2+incompatible h1:V4mkE9qhbDQ92/MLMIhlhMSbz8jNXdagC3xBR5NDwaQ= -github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.22.6/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.5.1/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.7.0 h1:zaiO/rmgFjbmCXdSYJWQcdvOCsthmdaHfr3Gm2Kx4Ec= -go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.14.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= -go.uber.org/zap v1.21.0 h1:WefMeulhovoZ2sYXz7st6K0sLj7bBhpiFaud4r4zST8= -go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 h1:RerP+noqYHUQ8CMRcPlC2nvTa4dcBIjegkuWdcUDuqg= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210917161153-d61c044b1678/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181122213734-04b5d21e00f1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.37.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= -google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= -google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= -google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= -google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= -google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.58.0/go.mod h1:cAbP2FsxoGVNwtgNAmmn3y5G1TWAiVYRmg4yku3lv+E= -google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= -google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= -google.golang.org/api v0.64.0/go.mod h1:931CdxA8Rm4t6zqTFGSsgwbAEZ2+GMYurbndwSimebM= -google.golang.org/api v0.66.0/go.mod h1:I1dmXYpX7HGwz/ejRxwQp2qj5bFAz93HiCU1C1oYd9M= -google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= -google.golang.org/api v0.69.0/go.mod h1:boanBiw+h5c3s+tBPgEzLDRHfFLWV0qXxRHz3ws7C80= -google.golang.org/api v0.70.0 h1:67zQnAE0T2rB0A3CwLSas0K+SbVzSxP+zTLkQLexeiw= -google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= -google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210921142501-181ce0d877f6/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211018162055-cf77aa76bad2/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211223182754-3ac035c7e7cb/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220111164026-67b88f271998/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220114231437-d2e6a121cae0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220201184016-50beb8ab5c44/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220211171837-173942840c17/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220216160803-4663080d8bc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf h1:SVYXkUz2yZS9FWb2Gm8ivSlbNQzL2Z/NpPKE3RG2jWk= -google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.44.0 h1:weqSxi/TMs1SqFRMHCtBgXRs8k3X39QIDEZ0pRcttUg= -google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/types/init.go b/types/init.go deleted file mode 100644 index 9c6fd6d5..00000000 --- a/types/init.go +++ /dev/null @@ -1,55 +0,0 @@ -package types - -import ( - "fmt" - "io" - "sync" - "time" - - "github.com/streamingfast/bstream" -) - -var CurrentMode = "standard" -var SetCurrentMode sync.Once - -func IsSfSolAugmented() bool { - return CurrentMode == "augmented" -} - -func SetupSfSolAugmented() { - bstream.GetBlockDecoder = bstream.BlockDecoderFunc(PBSolBlockDecoder) - SetCurrentMode.Do(func() { - CurrentMode = "augmented" - }) -} - -func init() { - if CurrentMode == "" { - CurrentMode = "standard" - } else { - SetCurrentMode.Do(func() { - CurrentMode = "augmented" - }) - } - bstream.GetBlockReaderFactory = bstream.BlockReaderFactoryFunc(blockReaderFactory) - bstream.GetBlockWriterFactory = bstream.BlockWriterFactoryFunc(blockWriterFactory) - bstream.GetProtocolFirstStreamableBlock = 0 - bstream.GetBlockWriterHeaderLen = 10 - bstream.GetBlockPayloadSetter = bstream.MemoryBlockPayloadSetter - bstream.GetMemoizeMaxAge = 200 * 15 * time.Second - bstream.GetBlockDecoder = bstream.BlockDecoderFunc(PBSolanaBlockDecoder) -} - -func blockReaderFactory(reader io.Reader) (bstream.BlockReader, error) { - return bstream.NewDBinBlockReader(reader, func(contentType string, version int32) error { - if contentType != "SOL" && version != 1 { - return fmt.Errorf("reader only knows about %s block kind at version 1, got %s at version %d", "SOL", contentType, version) - } - - return nil - }) -} - -func blockWriterFactory(writer io.Writer) (bstream.BlockWriter, error) { - return bstream.NewDBinBlockWriter(writer, "SOL", 1) -} diff --git a/types/logging.go b/types/logging.go deleted file mode 100644 index 147dd644..00000000 --- a/types/logging.go +++ /dev/null @@ -1,19 +0,0 @@ -package types - -import ( - "github.com/mr-tron/base58" - "github.com/streamingfast/logging" - "go.uber.org/zap" -) - -var zlog, tracer = logging.PackageLogger("types", "github.com/streamingfast/firehose-solana/types") - -type zapBase58 []byte - -func (b zapBase58) String() string { - return base58.Encode([]byte(b)) -} - -func ZapBase58(key string, input []byte) zap.Field { - return zap.Stringer(key, zapBase58(input)) -} diff --git a/types/pb/last_generate.txt b/types/pb/last_generate.txt deleted file mode 100644 index abec1b2a..00000000 --- a/types/pb/last_generate.txt +++ /dev/null @@ -1,3 +0,0 @@ -generate.sh - Fri Jan 27 10:32:12 EST 2023 - eduardvoiculescu -streamingfast/proto revision: aace594d959fbd3952377cea25c92a92316c35a8 -streamingfast/proto-solana revision: 710df7a276e97f410e96b131c1b64eec7b7d8a89 diff --git a/types/pb/sf/solana/serumhist/v1/serumhist.pb.go b/types/pb/sf/solana/serumhist/v1/serumhist.pb.go deleted file mode 100644 index a4c992ea..00000000 --- a/types/pb/sf/solana/serumhist/v1/serumhist.pb.go +++ /dev/null @@ -1,1360 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.9 -// source: sf/solana/serumhist/v1/serumhist.proto - -package pbserumhist - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Side int32 - -const ( - Side_BID Side = 0 - Side_ASK Side = 1 -) - -// Enum value maps for Side. -var ( - Side_name = map[int32]string{ - 0: "BID", - 1: "ASK", - } - Side_value = map[string]int32{ - "BID": 0, - "ASK": 1, - } -) - -func (x Side) Enum() *Side { - p := new(Side) - *p = x - return p -} - -func (x Side) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Side) Descriptor() protoreflect.EnumDescriptor { - return file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[0].Descriptor() -} - -func (Side) Type() protoreflect.EnumType { - return &file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[0] -} - -func (x Side) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Side.Descriptor instead. -func (Side) EnumDescriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{0} -} - -type FeeTier int32 - -const ( - FeeTier_Base FeeTier = 0 - FeeTier_SRM2 FeeTier = 1 - FeeTier_SRM3 FeeTier = 2 - FeeTier_SRM4 FeeTier = 3 - FeeTier_SRM5 FeeTier = 4 - FeeTier_SRM6 FeeTier = 5 - FeeTier_MSRM FeeTier = 6 -) - -// Enum value maps for FeeTier. -var ( - FeeTier_name = map[int32]string{ - 0: "Base", - 1: "SRM2", - 2: "SRM3", - 3: "SRM4", - 4: "SRM5", - 5: "SRM6", - 6: "MSRM", - } - FeeTier_value = map[string]int32{ - "Base": 0, - "SRM2": 1, - "SRM3": 2, - "SRM4": 3, - "SRM5": 4, - "SRM6": 5, - "MSRM": 6, - } -) - -func (x FeeTier) Enum() *FeeTier { - p := new(FeeTier) - *p = x - return p -} - -func (x FeeTier) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (FeeTier) Descriptor() protoreflect.EnumDescriptor { - return file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[1].Descriptor() -} - -func (FeeTier) Type() protoreflect.EnumType { - return &file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[1] -} - -func (x FeeTier) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use FeeTier.Descriptor instead. -func (FeeTier) EnumDescriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{1} -} - -type OrderType int32 - -const ( - OrderType_LIMIT OrderType = 0 - OrderType_IMMEDIATE_OR_CANCEL OrderType = 1 - OrderType_POST_ONLY OrderType = 2 -) - -// Enum value maps for OrderType. -var ( - OrderType_name = map[int32]string{ - 0: "LIMIT", - 1: "IMMEDIATE_OR_CANCEL", - 2: "POST_ONLY", - } - OrderType_value = map[string]int32{ - "LIMIT": 0, - "IMMEDIATE_OR_CANCEL": 1, - "POST_ONLY": 2, - } -) - -func (x OrderType) Enum() *OrderType { - p := new(OrderType) - *p = x - return p -} - -func (x OrderType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrderType) Descriptor() protoreflect.EnumDescriptor { - return file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[2].Descriptor() -} - -func (OrderType) Type() protoreflect.EnumType { - return &file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[2] -} - -func (x OrderType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrderType.Descriptor instead. -func (OrderType) EnumDescriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{2} -} - -type OrderTransition_State int32 - -const ( - OrderTransition_STATE_UNKNOWN OrderTransition_State = 0 - OrderTransition_STATE_APPROVED OrderTransition_State = 1 - OrderTransition_STATE_CANCEL_PENDING OrderTransition_State = 2 - OrderTransition_STATE_CANCELLED OrderTransition_State = 3 - OrderTransition_STATE_PARTIAL OrderTransition_State = 4 - OrderTransition_STATE_EXECUTED OrderTransition_State = 5 -) - -// Enum value maps for OrderTransition_State. -var ( - OrderTransition_State_name = map[int32]string{ - 0: "STATE_UNKNOWN", - 1: "STATE_APPROVED", - 2: "STATE_CANCEL_PENDING", - 3: "STATE_CANCELLED", - 4: "STATE_PARTIAL", - 5: "STATE_EXECUTED", - } - OrderTransition_State_value = map[string]int32{ - "STATE_UNKNOWN": 0, - "STATE_APPROVED": 1, - "STATE_CANCEL_PENDING": 2, - "STATE_CANCELLED": 3, - "STATE_PARTIAL": 4, - "STATE_EXECUTED": 5, - } -) - -func (x OrderTransition_State) Enum() *OrderTransition_State { - p := new(OrderTransition_State) - *p = x - return p -} - -func (x OrderTransition_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrderTransition_State) Descriptor() protoreflect.EnumDescriptor { - return file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[3].Descriptor() -} - -func (OrderTransition_State) Type() protoreflect.EnumType { - return &file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[3] -} - -func (x OrderTransition_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrderTransition_State.Descriptor instead. -func (OrderTransition_State) EnumDescriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{3, 0} -} - -type OrderTransition_Transition int32 - -const ( - OrderTransition_TRANS_INIT OrderTransition_Transition = 0 - OrderTransition_TRANS_ACCEPTED OrderTransition_Transition = 1 - OrderTransition_TRANS_CANCELLED OrderTransition_Transition = 2 - OrderTransition_TRANS_FILLED OrderTransition_Transition = 3 - OrderTransition_TRANS_EXECUTED OrderTransition_Transition = 4 -) - -// Enum value maps for OrderTransition_Transition. -var ( - OrderTransition_Transition_name = map[int32]string{ - 0: "TRANS_INIT", - 1: "TRANS_ACCEPTED", - 2: "TRANS_CANCELLED", - 3: "TRANS_FILLED", - 4: "TRANS_EXECUTED", - } - OrderTransition_Transition_value = map[string]int32{ - "TRANS_INIT": 0, - "TRANS_ACCEPTED": 1, - "TRANS_CANCELLED": 2, - "TRANS_FILLED": 3, - "TRANS_EXECUTED": 4, - } -) - -func (x OrderTransition_Transition) Enum() *OrderTransition_Transition { - p := new(OrderTransition_Transition) - *p = x - return p -} - -func (x OrderTransition_Transition) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrderTransition_Transition) Descriptor() protoreflect.EnumDescriptor { - return file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[4].Descriptor() -} - -func (OrderTransition_Transition) Type() protoreflect.EnumType { - return &file_sf_solana_serumhist_v1_serumhist_proto_enumTypes[4] -} - -func (x OrderTransition_Transition) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrderTransition_Transition.Descriptor instead. -func (OrderTransition_Transition) EnumDescriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{3, 1} -} - -type GetFillsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Trader []byte `protobuf:"bytes,1,opt,name=trader,proto3" json:"trader,omitempty"` - Market []byte `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"` -} - -func (x *GetFillsRequest) Reset() { - *x = GetFillsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetFillsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetFillsRequest) ProtoMessage() {} - -func (x *GetFillsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetFillsRequest.ProtoReflect.Descriptor instead. -func (*GetFillsRequest) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{0} -} - -func (x *GetFillsRequest) GetTrader() []byte { - if x != nil { - return x.Trader - } - return nil -} - -func (x *GetFillsRequest) GetMarket() []byte { - if x != nil { - return x.Market - } - return nil -} - -type FillsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Fill []*Fill `protobuf:"bytes,1,rep,name=fill,proto3" json:"fill,omitempty"` - HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` -} - -func (x *FillsResponse) Reset() { - *x = FillsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FillsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FillsResponse) ProtoMessage() {} - -func (x *FillsResponse) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FillsResponse.ProtoReflect.Descriptor instead. -func (*FillsResponse) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{1} -} - -func (x *FillsResponse) GetFill() []*Fill { - if x != nil { - return x.Fill - } - return nil -} - -func (x *FillsResponse) GetHasMore() bool { - if x != nil { - return x.HasMore - } - return false -} - -type TrackOrderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Market []byte `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` - OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` -} - -func (x *TrackOrderRequest) Reset() { - *x = TrackOrderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TrackOrderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TrackOrderRequest) ProtoMessage() {} - -func (x *TrackOrderRequest) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TrackOrderRequest.ProtoReflect.Descriptor instead. -func (*TrackOrderRequest) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{2} -} - -func (x *TrackOrderRequest) GetMarket() []byte { - if x != nil { - return x.Market - } - return nil -} - -func (x *TrackOrderRequest) GetOrderId() string { - if x != nil { - return x.OrderId - } - return "" -} - -type OrderTransition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PreviousState OrderTransition_State `protobuf:"varint,1,opt,name=previous_state,json=previousState,proto3,enum=sf.solana.serumhist.v1.OrderTransition_State" json:"previous_state,omitempty"` - CurrentState OrderTransition_State `protobuf:"varint,2,opt,name=current_state,json=currentState,proto3,enum=sf.solana.serumhist.v1.OrderTransition_State" json:"current_state,omitempty"` - Transition OrderTransition_Transition `protobuf:"varint,3,opt,name=transition,proto3,enum=sf.solana.serumhist.v1.OrderTransition_Transition" json:"transition,omitempty"` - Order *Order `protobuf:"bytes,4,opt,name=order,proto3" json:"order,omitempty"` - AddedFill *Fill `protobuf:"bytes,5,opt,name=added_fill,json=addedFill,proto3" json:"added_fill,omitempty"` - Cancellation *InstructionRef `protobuf:"bytes,6,opt,name=cancellation,proto3" json:"cancellation,omitempty"` -} - -func (x *OrderTransition) Reset() { - *x = OrderTransition{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrderTransition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrderTransition) ProtoMessage() {} - -func (x *OrderTransition) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrderTransition.ProtoReflect.Descriptor instead. -func (*OrderTransition) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{3} -} - -func (x *OrderTransition) GetPreviousState() OrderTransition_State { - if x != nil { - return x.PreviousState - } - return OrderTransition_STATE_UNKNOWN -} - -func (x *OrderTransition) GetCurrentState() OrderTransition_State { - if x != nil { - return x.CurrentState - } - return OrderTransition_STATE_UNKNOWN -} - -func (x *OrderTransition) GetTransition() OrderTransition_Transition { - if x != nil { - return x.Transition - } - return OrderTransition_TRANS_INIT -} - -func (x *OrderTransition) GetOrder() *Order { - if x != nil { - return x.Order - } - return nil -} - -func (x *OrderTransition) GetAddedFill() *Fill { - if x != nil { - return x.AddedFill - } - return nil -} - -func (x *OrderTransition) GetCancellation() *InstructionRef { - if x != nil { - return x.Cancellation - } - return nil -} - -type InstructionRef struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BlockNum uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` - TrxId []byte `protobuf:"bytes,2,opt,name=trx_id,json=trxId,proto3" json:"trx_id,omitempty"` - TrxIdx uint32 `protobuf:"varint,3,opt,name=trx_idx,json=trxIdx,proto3" json:"trx_idx,omitempty"` - InstIdx uint32 `protobuf:"varint,4,opt,name=inst_idx,json=instIdx,proto3" json:"inst_idx,omitempty"` - BlockId []byte `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *InstructionRef) Reset() { - *x = InstructionRef{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstructionRef) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstructionRef) ProtoMessage() {} - -func (x *InstructionRef) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstructionRef.ProtoReflect.Descriptor instead. -func (*InstructionRef) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{4} -} - -func (x *InstructionRef) GetBlockNum() uint64 { - if x != nil { - return x.BlockNum - } - return 0 -} - -func (x *InstructionRef) GetTrxId() []byte { - if x != nil { - return x.TrxId - } - return nil -} - -func (x *InstructionRef) GetTrxIdx() uint32 { - if x != nil { - return x.TrxIdx - } - return 0 -} - -func (x *InstructionRef) GetInstIdx() uint32 { - if x != nil { - return x.InstIdx - } - return 0 -} - -func (x *InstructionRef) GetBlockId() []byte { - if x != nil { - return x.BlockId - } - return nil -} - -func (x *InstructionRef) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -type Checkpoint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LastWrittenBlockNum uint64 `protobuf:"varint,1,opt,name=last_written_block_num,json=lastWrittenBlockNum,proto3" json:"last_written_block_num,omitempty"` - LastWrittenBlockId []byte `protobuf:"bytes,2,opt,name=last_written_block_id,json=lastWrittenBlockId,proto3" json:"last_written_block_id,omitempty"` -} - -func (x *Checkpoint) Reset() { - *x = Checkpoint{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Checkpoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Checkpoint) ProtoMessage() {} - -func (x *Checkpoint) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead. -func (*Checkpoint) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{5} -} - -func (x *Checkpoint) GetLastWrittenBlockNum() uint64 { - if x != nil { - return x.LastWrittenBlockNum - } - return 0 -} - -func (x *Checkpoint) GetLastWrittenBlockId() []byte { - if x != nil { - return x.LastWrittenBlockId - } - return nil -} - -type Fill struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Trader []byte `protobuf:"bytes,1,opt,name=trader,proto3" json:"trader,omitempty"` - Market []byte `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"` - OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - Side Side `protobuf:"varint,4,opt,name=side,proto3,enum=sf.solana.serumhist.v1.Side" json:"side,omitempty"` - Maker bool `protobuf:"varint,5,opt,name=maker,proto3" json:"maker,omitempty"` - NativeQtyPaid uint64 `protobuf:"varint,6,opt,name=native_qty_paid,json=nativeQtyPaid,proto3" json:"native_qty_paid,omitempty"` - NativeQtyReceived uint64 `protobuf:"varint,7,opt,name=native_qty_received,json=nativeQtyReceived,proto3" json:"native_qty_received,omitempty"` - NativeFeeOrRebate uint64 `protobuf:"varint,8,opt,name=native_fee_or_rebate,json=nativeFeeOrRebate,proto3" json:"native_fee_or_rebate,omitempty"` - FeeTier FeeTier `protobuf:"varint,9,opt,name=fee_tier,json=feeTier,proto3,enum=sf.solana.serumhist.v1.FeeTier" json:"fee_tier,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - BlockNum uint64 `protobuf:"varint,20,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` - BlockId []byte `protobuf:"bytes,24,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - TrxId []byte `protobuf:"bytes,25,opt,name=trx_id,json=trxId,proto3" json:"trx_id,omitempty"` - TrxIdx uint32 `protobuf:"varint,21,opt,name=trx_idx,json=trxIdx,proto3" json:"trx_idx,omitempty"` - InstIdx uint32 `protobuf:"varint,22,opt,name=inst_idx,json=instIdx,proto3" json:"inst_idx,omitempty"` - OrderSeqNum uint64 `protobuf:"varint,23,opt,name=order_seq_num,json=orderSeqNum,proto3" json:"order_seq_num,omitempty"` -} - -func (x *Fill) Reset() { - *x = Fill{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Fill) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Fill) ProtoMessage() {} - -func (x *Fill) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Fill.ProtoReflect.Descriptor instead. -func (*Fill) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{6} -} - -func (x *Fill) GetTrader() []byte { - if x != nil { - return x.Trader - } - return nil -} - -func (x *Fill) GetMarket() []byte { - if x != nil { - return x.Market - } - return nil -} - -func (x *Fill) GetOrderId() string { - if x != nil { - return x.OrderId - } - return "" -} - -func (x *Fill) GetSide() Side { - if x != nil { - return x.Side - } - return Side_BID -} - -func (x *Fill) GetMaker() bool { - if x != nil { - return x.Maker - } - return false -} - -func (x *Fill) GetNativeQtyPaid() uint64 { - if x != nil { - return x.NativeQtyPaid - } - return 0 -} - -func (x *Fill) GetNativeQtyReceived() uint64 { - if x != nil { - return x.NativeQtyReceived - } - return 0 -} - -func (x *Fill) GetNativeFeeOrRebate() uint64 { - if x != nil { - return x.NativeFeeOrRebate - } - return 0 -} - -func (x *Fill) GetFeeTier() FeeTier { - if x != nil { - return x.FeeTier - } - return FeeTier_Base -} - -func (x *Fill) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -func (x *Fill) GetBlockNum() uint64 { - if x != nil { - return x.BlockNum - } - return 0 -} - -func (x *Fill) GetBlockId() []byte { - if x != nil { - return x.BlockId - } - return nil -} - -func (x *Fill) GetTrxId() []byte { - if x != nil { - return x.TrxId - } - return nil -} - -func (x *Fill) GetTrxIdx() uint32 { - if x != nil { - return x.TrxIdx - } - return 0 -} - -func (x *Fill) GetInstIdx() uint32 { - if x != nil { - return x.InstIdx - } - return 0 -} - -func (x *Fill) GetOrderSeqNum() uint64 { - if x != nil { - return x.OrderSeqNum - } - return 0 -} - -type Order struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Num uint64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` - Market []byte `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"` - Trader []byte `protobuf:"bytes,3,opt,name=trader,proto3" json:"trader,omitempty"` - Side Side `protobuf:"varint,4,opt,name=side,proto3,enum=sf.solana.serumhist.v1.Side" json:"side,omitempty"` - LimitPrice uint64 `protobuf:"varint,5,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"` - MaxQuantity uint64 `protobuf:"varint,6,opt,name=max_quantity,json=maxQuantity,proto3" json:"max_quantity,omitempty"` - Type OrderType `protobuf:"varint,7,opt,name=type,proto3,enum=sf.solana.serumhist.v1.OrderType" json:"type,omitempty"` - Fills []*Fill `protobuf:"bytes,10,rep,name=fills,proto3" json:"fills,omitempty"` // this only gets populated for transport - BlockNum uint64 `protobuf:"varint,20,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` - BlockId []byte `protobuf:"bytes,24,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - TrxId []byte `protobuf:"bytes,25,opt,name=trx_id,json=trxId,proto3" json:"trx_id,omitempty"` - TrxIdx uint32 `protobuf:"varint,21,opt,name=trx_idx,json=trxIdx,proto3" json:"trx_idx,omitempty"` - InstIdx uint32 `protobuf:"varint,22,opt,name=inst_idx,json=instIdx,proto3" json:"inst_idx,omitempty"` -} - -func (x *Order) Reset() { - *x = Order{} - if protoimpl.UnsafeEnabled { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Order) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Order) ProtoMessage() {} - -func (x *Order) ProtoReflect() protoreflect.Message { - mi := &file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Order.ProtoReflect.Descriptor instead. -func (*Order) Descriptor() ([]byte, []int) { - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP(), []int{7} -} - -func (x *Order) GetNum() uint64 { - if x != nil { - return x.Num - } - return 0 -} - -func (x *Order) GetMarket() []byte { - if x != nil { - return x.Market - } - return nil -} - -func (x *Order) GetTrader() []byte { - if x != nil { - return x.Trader - } - return nil -} - -func (x *Order) GetSide() Side { - if x != nil { - return x.Side - } - return Side_BID -} - -func (x *Order) GetLimitPrice() uint64 { - if x != nil { - return x.LimitPrice - } - return 0 -} - -func (x *Order) GetMaxQuantity() uint64 { - if x != nil { - return x.MaxQuantity - } - return 0 -} - -func (x *Order) GetType() OrderType { - if x != nil { - return x.Type - } - return OrderType_LIMIT -} - -func (x *Order) GetFills() []*Fill { - if x != nil { - return x.Fills - } - return nil -} - -func (x *Order) GetBlockNum() uint64 { - if x != nil { - return x.BlockNum - } - return 0 -} - -func (x *Order) GetBlockId() []byte { - if x != nil { - return x.BlockId - } - return nil -} - -func (x *Order) GetTrxId() []byte { - if x != nil { - return x.TrxId - } - return nil -} - -func (x *Order) GetTrxIdx() uint32 { - if x != nil { - return x.TrxIdx - } - return 0 -} - -func (x *Order) GetInstIdx() uint32 { - if x != nil { - return x.InstIdx - } - return 0 -} - -var File_sf_solana_serumhist_v1_serumhist_proto protoreflect.FileDescriptor - -var file_sf_solana_serumhist_v1_serumhist_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x73, 0x66, 0x2f, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2f, 0x73, 0x65, 0x72, 0x75, - 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, - 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, - 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, - 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x41, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x22, 0x5c, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, - 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, - 0x6c, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, - 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, - 0x72, 0x65, 0x22, 0x46, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, - 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc1, 0x05, 0x0a, 0x0f, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, - 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, - 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x73, 0x66, - 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, - 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, - 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x05, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x66, - 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x6c, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, - 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, - 0x69, 0x6c, 0x6c, 0x52, 0x09, 0x61, 0x64, 0x64, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x6c, 0x12, 0x4a, - 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, - 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, - 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x52, 0x0c, 0x63, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x05, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x45, - 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x50, 0x45, 0x4e, 0x44, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, - 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, - 0x41, 0x54, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x04, 0x12, 0x12, 0x0a, - 0x0e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x44, 0x10, - 0x05, 0x22, 0x6b, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x0e, 0x0a, 0x0a, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x10, 0x00, 0x12, - 0x12, 0x0a, 0x0e, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, - 0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x5f, 0x43, 0x41, 0x4e, - 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x52, 0x41, 0x4e, - 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x52, - 0x41, 0x4e, 0x53, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x44, 0x10, 0x04, 0x22, 0xcd, - 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x15, - 0x0a, 0x06, 0x74, 0x72, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, - 0x74, 0x72, 0x78, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x72, 0x78, 0x5f, 0x69, 0x64, 0x78, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x72, 0x78, 0x49, 0x64, 0x78, 0x12, 0x19, - 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x69, 0x6e, 0x73, 0x74, 0x49, 0x64, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x74, - 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x16, - 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x6c, 0x61, - 0x73, 0x74, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, - 0x6d, 0x12, 0x31, 0x0a, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, - 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x49, 0x64, 0x22, 0xbf, 0x04, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x6c, 0x12, 0x16, 0x0a, - 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x74, - 0x72, 0x61, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, - 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x69, 0x64, 0x65, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, - 0x6b, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x61, 0x6b, 0x65, 0x72, - 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x71, 0x74, 0x79, 0x5f, 0x70, - 0x61, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x51, 0x74, 0x79, 0x50, 0x61, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x71, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x51, 0x74, 0x79, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x62, 0x61, 0x74, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x65, - 0x65, 0x4f, 0x72, 0x52, 0x65, 0x62, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x66, 0x65, 0x65, - 0x5f, 0x74, 0x69, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x73, 0x66, - 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x65, 0x54, 0x69, 0x65, 0x72, 0x52, 0x07, 0x66, 0x65, - 0x65, 0x54, 0x69, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x1b, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x14, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x19, 0x0a, 0x08, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x72, 0x78, 0x5f, 0x69, - 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x72, 0x78, 0x49, 0x64, 0x12, 0x17, - 0x0a, 0x07, 0x74, 0x72, 0x78, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x06, 0x74, 0x72, 0x78, 0x49, 0x64, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x5f, - 0x69, 0x64, 0x78, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x74, 0x49, - 0x64, 0x78, 0x12, 0x22, 0x0a, 0x0d, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x71, 0x5f, - 0x6e, 0x75, 0x6d, 0x18, 0x17, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x53, 0x65, 0x71, 0x4e, 0x75, 0x6d, 0x22, 0xad, 0x03, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6e, - 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x72, - 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, - 0x65, 0x72, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1c, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, - 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x64, 0x65, 0x52, 0x04, - 0x73, 0x69, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x70, 0x72, - 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x71, 0x75, 0x61, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, - 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, - 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x32, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, - 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x6c, 0x52, 0x05, 0x66, 0x69, - 0x6c, 0x6c, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, - 0x18, 0x14, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, - 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x18, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x74, - 0x72, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x72, 0x78, - 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x72, 0x78, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x15, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x72, 0x78, 0x49, 0x64, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x78, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x69, - 0x6e, 0x73, 0x74, 0x49, 0x64, 0x78, 0x2a, 0x18, 0x0a, 0x04, 0x53, 0x69, 0x64, 0x65, 0x12, 0x07, - 0x0a, 0x03, 0x42, 0x49, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x53, 0x4b, 0x10, 0x01, - 0x2a, 0x4f, 0x0a, 0x07, 0x46, 0x65, 0x65, 0x54, 0x69, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x42, - 0x61, 0x73, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x52, 0x4d, 0x32, 0x10, 0x01, 0x12, - 0x08, 0x0a, 0x04, 0x53, 0x52, 0x4d, 0x33, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x52, 0x4d, - 0x34, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x52, 0x4d, 0x35, 0x10, 0x04, 0x12, 0x08, 0x0a, - 0x04, 0x53, 0x52, 0x4d, 0x36, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x53, 0x52, 0x4d, 0x10, - 0x06, 0x2a, 0x3e, 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, - 0x0a, 0x05, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4d, 0x4d, - 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x5f, 0x4f, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, - 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, - 0x02, 0x32, 0x77, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x75, 0x6d, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, - 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x62, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, - 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, - 0x61, 0x63, 0x6b, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, - 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x32, 0x6a, 0x0a, 0x0c, 0x53, 0x65, - 0x72, 0x75, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x5a, 0x0a, 0x08, 0x47, 0x65, - 0x74, 0x46, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x27, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, - 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x25, 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2e, 0x73, 0x65, 0x72, 0x75, - 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, 0x5a, 0x54, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x66, 0x61, - 0x73, 0x74, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x68, 0x6f, 0x73, 0x65, 0x2d, 0x73, 0x6f, 0x6c, 0x61, - 0x6e, 0x61, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x66, 0x2f, 0x73, - 0x6f, 0x6c, 0x61, 0x6e, 0x61, 0x2f, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x2f, - 0x76, 0x31, 0x3b, 0x70, 0x62, 0x73, 0x65, 0x72, 0x75, 0x6d, 0x68, 0x69, 0x73, 0x74, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_sf_solana_serumhist_v1_serumhist_proto_rawDescOnce sync.Once - file_sf_solana_serumhist_v1_serumhist_proto_rawDescData = file_sf_solana_serumhist_v1_serumhist_proto_rawDesc -) - -func file_sf_solana_serumhist_v1_serumhist_proto_rawDescGZIP() []byte { - file_sf_solana_serumhist_v1_serumhist_proto_rawDescOnce.Do(func() { - file_sf_solana_serumhist_v1_serumhist_proto_rawDescData = protoimpl.X.CompressGZIP(file_sf_solana_serumhist_v1_serumhist_proto_rawDescData) - }) - return file_sf_solana_serumhist_v1_serumhist_proto_rawDescData -} - -var file_sf_solana_serumhist_v1_serumhist_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_sf_solana_serumhist_v1_serumhist_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_sf_solana_serumhist_v1_serumhist_proto_goTypes = []interface{}{ - (Side)(0), // 0: sf.solana.serumhist.v1.Side - (FeeTier)(0), // 1: sf.solana.serumhist.v1.FeeTier - (OrderType)(0), // 2: sf.solana.serumhist.v1.OrderType - (OrderTransition_State)(0), // 3: sf.solana.serumhist.v1.OrderTransition.State - (OrderTransition_Transition)(0), // 4: sf.solana.serumhist.v1.OrderTransition.Transition - (*GetFillsRequest)(nil), // 5: sf.solana.serumhist.v1.GetFillsRequest - (*FillsResponse)(nil), // 6: sf.solana.serumhist.v1.FillsResponse - (*TrackOrderRequest)(nil), // 7: sf.solana.serumhist.v1.TrackOrderRequest - (*OrderTransition)(nil), // 8: sf.solana.serumhist.v1.OrderTransition - (*InstructionRef)(nil), // 9: sf.solana.serumhist.v1.InstructionRef - (*Checkpoint)(nil), // 10: sf.solana.serumhist.v1.Checkpoint - (*Fill)(nil), // 11: sf.solana.serumhist.v1.Fill - (*Order)(nil), // 12: sf.solana.serumhist.v1.Order - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp -} -var file_sf_solana_serumhist_v1_serumhist_proto_depIdxs = []int32{ - 11, // 0: sf.solana.serumhist.v1.FillsResponse.fill:type_name -> sf.solana.serumhist.v1.Fill - 3, // 1: sf.solana.serumhist.v1.OrderTransition.previous_state:type_name -> sf.solana.serumhist.v1.OrderTransition.State - 3, // 2: sf.solana.serumhist.v1.OrderTransition.current_state:type_name -> sf.solana.serumhist.v1.OrderTransition.State - 4, // 3: sf.solana.serumhist.v1.OrderTransition.transition:type_name -> sf.solana.serumhist.v1.OrderTransition.Transition - 12, // 4: sf.solana.serumhist.v1.OrderTransition.order:type_name -> sf.solana.serumhist.v1.Order - 11, // 5: sf.solana.serumhist.v1.OrderTransition.added_fill:type_name -> sf.solana.serumhist.v1.Fill - 9, // 6: sf.solana.serumhist.v1.OrderTransition.cancellation:type_name -> sf.solana.serumhist.v1.InstructionRef - 13, // 7: sf.solana.serumhist.v1.InstructionRef.timestamp:type_name -> google.protobuf.Timestamp - 0, // 8: sf.solana.serumhist.v1.Fill.side:type_name -> sf.solana.serumhist.v1.Side - 1, // 9: sf.solana.serumhist.v1.Fill.fee_tier:type_name -> sf.solana.serumhist.v1.FeeTier - 13, // 10: sf.solana.serumhist.v1.Fill.timestamp:type_name -> google.protobuf.Timestamp - 0, // 11: sf.solana.serumhist.v1.Order.side:type_name -> sf.solana.serumhist.v1.Side - 2, // 12: sf.solana.serumhist.v1.Order.type:type_name -> sf.solana.serumhist.v1.OrderType - 11, // 13: sf.solana.serumhist.v1.Order.fills:type_name -> sf.solana.serumhist.v1.Fill - 7, // 14: sf.solana.serumhist.v1.SerumOrderTracker.TrackOrder:input_type -> sf.solana.serumhist.v1.TrackOrderRequest - 5, // 15: sf.solana.serumhist.v1.SerumHistory.GetFills:input_type -> sf.solana.serumhist.v1.GetFillsRequest - 8, // 16: sf.solana.serumhist.v1.SerumOrderTracker.TrackOrder:output_type -> sf.solana.serumhist.v1.OrderTransition - 6, // 17: sf.solana.serumhist.v1.SerumHistory.GetFills:output_type -> sf.solana.serumhist.v1.FillsResponse - 16, // [16:18] is the sub-list for method output_type - 14, // [14:16] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name -} - -func init() { file_sf_solana_serumhist_v1_serumhist_proto_init() } -func file_sf_solana_serumhist_v1_serumhist_proto_init() { - if File_sf_solana_serumhist_v1_serumhist_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFillsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FillsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TrackOrderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderTransition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstructionRef); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Checkpoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Fill); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sf_solana_serumhist_v1_serumhist_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Order); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_sf_solana_serumhist_v1_serumhist_proto_rawDesc, - NumEnums: 5, - NumMessages: 8, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_sf_solana_serumhist_v1_serumhist_proto_goTypes, - DependencyIndexes: file_sf_solana_serumhist_v1_serumhist_proto_depIdxs, - EnumInfos: file_sf_solana_serumhist_v1_serumhist_proto_enumTypes, - MessageInfos: file_sf_solana_serumhist_v1_serumhist_proto_msgTypes, - }.Build() - File_sf_solana_serumhist_v1_serumhist_proto = out.File - file_sf_solana_serumhist_v1_serumhist_proto_rawDesc = nil - file_sf_solana_serumhist_v1_serumhist_proto_goTypes = nil - file_sf_solana_serumhist_v1_serumhist_proto_depIdxs = nil -} diff --git a/types/pb/sf/solana/serumhist/v1/serumhist_grpc.pb.go b/types/pb/sf/solana/serumhist/v1/serumhist_grpc.pb.go deleted file mode 100644 index 4b2b8411..00000000 --- a/types/pb/sf/solana/serumhist/v1/serumhist_grpc.pb.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package pbserumhist - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// SerumOrderTrackerClient is the client API for SerumOrderTracker service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SerumOrderTrackerClient interface { - TrackOrder(ctx context.Context, in *TrackOrderRequest, opts ...grpc.CallOption) (SerumOrderTracker_TrackOrderClient, error) -} - -type serumOrderTrackerClient struct { - cc grpc.ClientConnInterface -} - -func NewSerumOrderTrackerClient(cc grpc.ClientConnInterface) SerumOrderTrackerClient { - return &serumOrderTrackerClient{cc} -} - -func (c *serumOrderTrackerClient) TrackOrder(ctx context.Context, in *TrackOrderRequest, opts ...grpc.CallOption) (SerumOrderTracker_TrackOrderClient, error) { - stream, err := c.cc.NewStream(ctx, &SerumOrderTracker_ServiceDesc.Streams[0], "/sf.solana.serumhist.v1.SerumOrderTracker/TrackOrder", opts...) - if err != nil { - return nil, err - } - x := &serumOrderTrackerTrackOrderClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SerumOrderTracker_TrackOrderClient interface { - Recv() (*OrderTransition, error) - grpc.ClientStream -} - -type serumOrderTrackerTrackOrderClient struct { - grpc.ClientStream -} - -func (x *serumOrderTrackerTrackOrderClient) Recv() (*OrderTransition, error) { - m := new(OrderTransition) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// SerumOrderTrackerServer is the server API for SerumOrderTracker service. -// All implementations should embed UnimplementedSerumOrderTrackerServer -// for forward compatibility -type SerumOrderTrackerServer interface { - TrackOrder(*TrackOrderRequest, SerumOrderTracker_TrackOrderServer) error -} - -// UnimplementedSerumOrderTrackerServer should be embedded to have forward compatible implementations. -type UnimplementedSerumOrderTrackerServer struct { -} - -func (UnimplementedSerumOrderTrackerServer) TrackOrder(*TrackOrderRequest, SerumOrderTracker_TrackOrderServer) error { - return status.Errorf(codes.Unimplemented, "method TrackOrder not implemented") -} - -// UnsafeSerumOrderTrackerServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SerumOrderTrackerServer will -// result in compilation errors. -type UnsafeSerumOrderTrackerServer interface { - mustEmbedUnimplementedSerumOrderTrackerServer() -} - -func RegisterSerumOrderTrackerServer(s grpc.ServiceRegistrar, srv SerumOrderTrackerServer) { - s.RegisterService(&SerumOrderTracker_ServiceDesc, srv) -} - -func _SerumOrderTracker_TrackOrder_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TrackOrderRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SerumOrderTrackerServer).TrackOrder(m, &serumOrderTrackerTrackOrderServer{stream}) -} - -type SerumOrderTracker_TrackOrderServer interface { - Send(*OrderTransition) error - grpc.ServerStream -} - -type serumOrderTrackerTrackOrderServer struct { - grpc.ServerStream -} - -func (x *serumOrderTrackerTrackOrderServer) Send(m *OrderTransition) error { - return x.ServerStream.SendMsg(m) -} - -// SerumOrderTracker_ServiceDesc is the grpc.ServiceDesc for SerumOrderTracker service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var SerumOrderTracker_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "sf.solana.serumhist.v1.SerumOrderTracker", - HandlerType: (*SerumOrderTrackerServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "TrackOrder", - Handler: _SerumOrderTracker_TrackOrder_Handler, - ServerStreams: true, - }, - }, - Metadata: "sf/solana/serumhist/v1/serumhist.proto", -} - -// SerumHistoryClient is the client API for SerumHistory service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SerumHistoryClient interface { - GetFills(ctx context.Context, in *GetFillsRequest, opts ...grpc.CallOption) (*FillsResponse, error) -} - -type serumHistoryClient struct { - cc grpc.ClientConnInterface -} - -func NewSerumHistoryClient(cc grpc.ClientConnInterface) SerumHistoryClient { - return &serumHistoryClient{cc} -} - -func (c *serumHistoryClient) GetFills(ctx context.Context, in *GetFillsRequest, opts ...grpc.CallOption) (*FillsResponse, error) { - out := new(FillsResponse) - err := c.cc.Invoke(ctx, "/sf.solana.serumhist.v1.SerumHistory/GetFills", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SerumHistoryServer is the server API for SerumHistory service. -// All implementations should embed UnimplementedSerumHistoryServer -// for forward compatibility -type SerumHistoryServer interface { - GetFills(context.Context, *GetFillsRequest) (*FillsResponse, error) -} - -// UnimplementedSerumHistoryServer should be embedded to have forward compatible implementations. -type UnimplementedSerumHistoryServer struct { -} - -func (UnimplementedSerumHistoryServer) GetFills(context.Context, *GetFillsRequest) (*FillsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFills not implemented") -} - -// UnsafeSerumHistoryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SerumHistoryServer will -// result in compilation errors. -type UnsafeSerumHistoryServer interface { - mustEmbedUnimplementedSerumHistoryServer() -} - -func RegisterSerumHistoryServer(s grpc.ServiceRegistrar, srv SerumHistoryServer) { - s.RegisterService(&SerumHistory_ServiceDesc, srv) -} - -func _SerumHistory_GetFills_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetFillsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SerumHistoryServer).GetFills(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sf.solana.serumhist.v1.SerumHistory/GetFills", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SerumHistoryServer).GetFills(ctx, req.(*GetFillsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// SerumHistory_ServiceDesc is the grpc.ServiceDesc for SerumHistory service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var SerumHistory_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "sf.solana.serumhist.v1.SerumHistory", - HandlerType: (*SerumHistoryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetFills", - Handler: _SerumHistory_GetFills_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "sf/solana/serumhist/v1/serumhist.proto", -} diff --git a/types/pb/sf/solana/type/v1/type.go b/types/pb/sf/solana/type/v1/type.go deleted file mode 100644 index aea26b30..00000000 --- a/types/pb/sf/solana/type/v1/type.go +++ /dev/null @@ -1,30 +0,0 @@ -package pbsol - -import ( - "time" - - "github.com/streamingfast/bstream" -) - -func (b *Block) Num() uint64 { - return b.Slot -} - -func (b *Block) Time() time.Time { - if b.BlockTime == nil { - return time.Unix(0, 0) - } - return time.Unix(int64(b.BlockTime.Timestamp), 0) -} - -func (b *Block) ID() string { - return b.Blockhash -} - -func (b *Block) PreviousID() string { - return b.PreviousBlockhash -} - -func (b *Block) AsRef() bstream.BlockRef { - return bstream.NewBlockRef(b.ID(), b.Num()) -} diff --git a/types/pb/sf/solana/type/v2/type.go b/types/pb/sf/solana/type/v2/type.go deleted file mode 100644 index cc06fcab..00000000 --- a/types/pb/sf/solana/type/v2/type.go +++ /dev/null @@ -1,28 +0,0 @@ -package pbsol - -import ( - "time" - - "github.com/mr-tron/base58" - "github.com/streamingfast/bstream" -) - -func (b *Block) ID() string { - return base58.Encode(b.Id) -} - -func (b *Block) Num() uint64 { - return b.Number -} - -func (b *Block) PreviousID() string { - return base58.Encode(b.PreviousId) -} - -func (b *Block) Time() time.Time { - return time.Unix(int64(b.GenesisUnixTimestamp), 0) -} - -func (b *Block) AsRef() bstream.BlockRef { - return bstream.NewBlockRef(b.ID(), b.Number) -}