Skip to content

feat: zetaclient - multiple rpc endpoints #3454

feat: zetaclient - multiple rpc endpoints

feat: zetaclient - multiple rpc endpoints #3454

Triggered via pull request April 8, 2024 20:18
Status Failure
Total duration 4m 5s
Artifacts

sast-linters.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 6 warnings
gosec-cosmos: zetaclient/config/config_chain.go#L55
cannot use "" (untyped string constant) as []string value in struct literal
gosec-cosmos: zetaclient/config/config_chain.go#L59
cannot use "" (untyped string constant) as []string value in struct literal
gosec-cosmos: zetaclient/config/config_chain.go#L63
cannot use "" (untyped string constant) as []string value in struct literal
gosec-cosmos: zetaclient/config/config_chain.go#L67
cannot use "" (untyped string constant) as []string value in struct literal
gosec-cosmos: zetaclient/config/config_chain.go#L71
cannot use "http://eth:8545" (untyped string constant) as []string value in struct literal
gosec-cosmos
Process completed with exit code 2.
gosec: zetaclient/config/config_chain.go#L55
cannot use "" (untyped string constant) as []string value in struct literal
gosec: zetaclient/config/config_chain.go#L59
cannot use "" (untyped string constant) as []string value in struct literal
gosec: zetaclient/config/config_chain.go#L63
cannot use "" (untyped string constant) as []string value in struct literal
gosec: zetaclient/config/config_chain.go#L67
cannot use "" (untyped string constant) as []string value in struct literal
gosec: zetaclient/config/config_chain.go#L71
cannot use "http://eth:8545" (untyped string constant) as []string value in struct literal
lint
cannot use \"http://eth:8545\" (untyped string constant) as []string value in struct literal)","Severity":"","SourceLines":["\t\"github.com/zeta-chain/zetacore/zetaclient/config\""],"Replacement":null,"Pos":{"Filename":"zetaclient/compliance/compliance.go","Offset":0,"Line":6,"Column":2},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.BlockNumber undefined (type EthClientFallbackInterface has no field or method BlockNumber)","Severity":"","SourceLines":["\t\t\tbn, err := ob.evmClient.BlockNumber(context.Background())"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":264,"Column":28},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.SuggestGasPrice undefined (type EthClientFallbackInterface has no field or method SuggestGasPrice)","Severity":"","SourceLines":["\t\t\tgasPrice, err := ob.evmClient.SuggestGasPrice(context.Background())"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":269,"Column":34},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.HeaderByNumber undefined (type EthClientFallbackInterface has no field or method HeaderByNumber)","Severity":"","SourceLines":["\t\t\theader, err := ob.evmClient.HeaderByNumber(context.Background(), new(big.Int).SetUint64(bn))"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":274,"Column":32},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.TransactionByHash undefined (type EthClientFallbackInterface has no field or method TransactionByHash)","Severity":"","SourceLines":["\ttransaction, isPending, err := ob.evmClient.TransactionByHash(ctxt, ethcommon.HexToHash(txHash))"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":706,"Column":46},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.TransactionReceipt undefined (type EthClientFallbackInterface has no field or method TransactionReceipt)","Severity":"","SourceLines":["\treceipt, err := ob.evmClient.TransactionReceipt(ctxt, ethcommon.HexToHash(txHash))"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":740,"Column":31},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.BlockNumber undefined (type EthClientFallbackInterface has no field or method BlockNumber)","Severity":"","SourceLines":["\tblockNumber, err := ob.evmClient.BlockNumber(context.Background())"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":899,"Column":35},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.SuggestGasPrice undefined (type EthClientFallbackInterface has no field or method SuggestGasPrice)","Severity":"","SourceLines":["\tgasPrice, err := ob.evmClient.SuggestGasPrice(context.TODO())"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":1178,"Column":32},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.BlockNumber undefined (type EthClientFallbackInterface has no field or method BlockNumber)","Severity":"","SourceLines":["\tblockNum, err := ob.evmClient.BlockNumber(context.TODO())"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":1183,"Column":32},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.HeaderByNumber undefined (type EthClientFallbackInterface has no field or method HeaderByNumber)","Severity":"","SourceLines":["\t\t\theader, err := ob.evmClient.HeaderByNumber(context.Background(), nil)"],"Replacement":null,"Pos":{"Filename":"zetaclient/evm/evm_client.go","Offset":0,"Line":1209,"Column":32},"ExpectNoLint":false,"ExpectedNoLintLinter":""},{"FromLinter":"typecheck","Text":"ob.evmClient.HeaderByNumber undefined (type EthClientFallbackInterface has no fi
lint: zetaclient/config/config.go#L1
: # github.com/zeta-chain/zetacore/zetaclient/config
lint: zetaclient/config/config_chain.go#L55
cannot use "" (untyped string constant) as []string value in struct literal
lint: zetaclient/config/config_chain.go#L59
cannot use "" (untyped string constant) as []string value in struct literal
lint: zetaclient/config/config_chain.go#L63
cannot use "" (untyped string constant) as []string value in struct literal
lint: zetaclient/config/config_chain.go#L67
cannot use "" (untyped string constant) as []string value in struct literal
lint: zetaclient/config/config_chain.go#L71
cannot use "http://eth:8545" (untyped string constant) as []string value in struct literal (typecheck)
lint: zetaclient/core_context/zeta_core_context.go#L11
could not import github.com/zeta-chain/zetacore/zetaclient/config (-: # github.com/zeta-chain/zetacore/zetaclient/config
lint: zetaclient/config/config_chain.go#L55
cannot use "" (untyped string constant) as []string value in struct literal
lint: zetaclient/config/config_chain.go#L59
cannot use "" (untyped string constant) as []string value in struct literal
gosec-cosmos
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
gosec-cosmos
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
gosec
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
gosec
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/