The Status module that consumes go-ethereum https://status.im
Go to file
shashankshampi 14dcd29eee test_: Code Migration from status-cli-tests
author shashankshampi <shashank.sanket1995@gmail.com> 1729780155 +0530
committer shashankshampi <shashank.sanket1995@gmail.com> 1730274350 +0530

test: Code Migration from status-cli-tests
fix_: functional tests (#5979)

* fix_: generate on test-functional

* chore(test)_: fix functional test assertion

---------

Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>

feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977)

* feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766)

The original GH issue https://github.com/status-im/status-mobile/issues/21113
came from a request from the Legal team. We must show to Status v1 users the new
terms (Terms of Use & Privacy Policy) right after they upgrade to Status v2
from the stores.

The solution we use is to create a flag in the accounts table, named
hasAcceptedTerms. The flag will be set to true on the first account ever
created in v2 and we provide a native call in mobile/status.go#AcceptTerms,
which allows the client to persist the user's choice in case they are upgrading
(from v1 -> v2, or from a v2 older than this PR).

This solution is not the best because we should store the setting in a separate
table, not in the accounts table.

Related Mobile PR https://github.com/status-im/status-mobile/pull/21124

* fix(test)_: Compare addresses using uppercased strings

---------

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>

test_: restore account (#5960)

feat_: `LogOnPanic` linter (#5969)

* feat_: LogOnPanic linter

* fix_: add missing defer LogOnPanic

* chore_: make vendor

* fix_: tests, address pr comments

* fix_: address pr comments

fix(ci)_: remove workspace and tmp dir

This ensures we do not encounter weird errors like:
```
+ ln -s /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907 /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go
ln: failed to create symbolic link '/home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go': File exists
script returned exit code 1
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>

chore_: enable windows and macos CI build (#5840)

- Added support for Windows and macOS in CI pipelines
- Added missing dependencies for Windows and x86-64-darwin
- Resolved macOS SDK version compatibility for darwin-x86_64

The `mkShell` override was necessary to ensure compatibility with the newer
macOS SDK (version 11.0) for x86_64. The default SDK (10.12) was causing build failures
because of the missing libs and frameworks. OverrideSDK creates a mapping from
the default SDK in all package categories to the requested SDK (11.0).

fix(contacts)_: fix trust status not being saved to cache when changed (#5965)

Fixes https://github.com/status-im/status-desktop/issues/16392

cleanup

added logger and cleanup

review comments changes

fix_: functional tests (#5979)

* fix_: generate on test-functional

* chore(test)_: fix functional test assertion

---------

Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>

feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977)

* feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766)

The original GH issue https://github.com/status-im/status-mobile/issues/21113
came from a request from the Legal team. We must show to Status v1 users the new
terms (Terms of Use & Privacy Policy) right after they upgrade to Status v2
from the stores.

The solution we use is to create a flag in the accounts table, named
hasAcceptedTerms. The flag will be set to true on the first account ever
created in v2 and we provide a native call in mobile/status.go#AcceptTerms,
which allows the client to persist the user's choice in case they are upgrading
(from v1 -> v2, or from a v2 older than this PR).

This solution is not the best because we should store the setting in a separate
table, not in the accounts table.

Related Mobile PR https://github.com/status-im/status-mobile/pull/21124

* fix(test)_: Compare addresses using uppercased strings

---------

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>

test_: restore account (#5960)

feat_: `LogOnPanic` linter (#5969)

* feat_: LogOnPanic linter

* fix_: add missing defer LogOnPanic

* chore_: make vendor

* fix_: tests, address pr comments

* fix_: address pr comments

chore_: enable windows and macos CI build (#5840)

- Added support for Windows and macOS in CI pipelines
- Added missing dependencies for Windows and x86-64-darwin
- Resolved macOS SDK version compatibility for darwin-x86_64

The `mkShell` override was necessary to ensure compatibility with the newer
macOS SDK (version 11.0) for x86_64. The default SDK (10.12) was causing build failures
because of the missing libs and frameworks. OverrideSDK creates a mapping from
the default SDK in all package categories to the requested SDK (11.0).

fix(contacts)_: fix trust status not being saved to cache when changed (#5965)

Fixes https://github.com/status-im/status-desktop/issues/16392

test_: remove port bind

chore(wallet)_: move route execution code to separate module

chore_: replace geth logger with zap logger (#5962)

closes: #6002

feat(telemetry)_: add metrics for message reliability (#5899)

* feat(telemetry)_: track message reliability

Add metrics for dial errors, missed messages,
missed relevant messages, and confirmed delivery.

* fix_: handle error from json marshal

chore_: use zap logger as request logger

iterates: status-im/status-desktop#16536

test_: unique project per run

test_: use docker compose v2, more concrete project name

fix(codecov)_: ignore folders without tests

Otherwise Codecov reports incorrect numbers when making changes.
https://docs.codecov.com/docs/ignoring-paths

Signed-off-by: Jakub Sokołowski <jakub@status.im>

test_: verify schema of signals during init; fix schema verification warnings (#5947)

fix_: update defaultGorushURL (#6011)

fix(tests)_: use non-standard port to avoid conflicts

We have observed `nimbus-eth2` build failures reporting this port:
```json
{
  "lvl": "NTC",
  "ts": "2024-10-28 13:51:32.308+00:00",
  "msg": "REST HTTP server could not be started",
  "topics": "beacnde",
  "address": "127.0.0.1:5432",
  "reason": "(98) Address already in use"
}
```
https://ci.status.im/job/nimbus-eth2/job/platforms/job/linux/job/x86_64/job/main/job/PR-6683/3/

Signed-off-by: Jakub Sokołowski <jakub@status.im>

fix_: create request logger ad-hoc in tests

Fixes `TestCall` failing when run concurrently.

chore_: configure codecov (#6005)

* chore_: configure codecov

* fix_: after_n_builds
2024-10-30 14:49:26 +05:30
.dependabot Patch/dependabot protocol (#1980) 2020-05-19 00:14:02 +01:00
.github ci_: validate pr title (#5872) 2024-09-26 09:10:59 +01:00
.vscode feat(wallet) implement Wallet Connect sign APIs 2023-11-15 15:52:02 +01:00
_assets test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
_docs chore_: rename integration tests to functional tests (#5908) 2024-10-03 14:51:51 +01:00
_examples chore_: drop wakuv2 fleets, use waku fleets 2024-05-17 18:53:40 +02:00
abi-spec Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
account test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
api test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
appdatabase test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
appmetrics fix(tests): moved test db setup to a common place 't/helpers', created 2023-08-18 09:00:56 +02:00
build/bin add .gitkeep to build/bin so it always exists 2019-03-05 14:22:00 +01:00
centralizedmetrics test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
circuitbreaker test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
cmd test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
common test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
config chore_: bump go-waku with filter loop fix (#5909) 2024-10-10 17:03:36 +05:30
connection Address linter issues 2022-03-28 13:14:12 +01:00
constants feat_: accounts/saved addresses capacity related api endpoints added 2024-08-06 08:19:33 +02:00
contracts chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
db test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
deprecation fx: deprecate profile and timeline chats (#3809) 2023-08-03 17:16:11 +03:00
discovery test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
errors chore_: map insufficient funds error 2024-08-28 08:23:18 +02:00
eth-node feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
exchanges URL unfurling (initial implementation) (#3471) 2023-05-18 15:43:06 -03:00
exportlogs Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
extkeys Upgrade geth 2021-07-20 10:57:38 +02:00
healthmanager test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
images test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
ipfs test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
logutils test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
mailserver test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
metrics test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
mobile test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
multiaccounts test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
nix test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
node test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
nodecfg chore(wallet)_: remove unused upstream client (#5934) 2024-10-11 21:01:14 +04:00
notifier Notifier package to interact with gorush notifications (#910) 2018-05-08 16:30:03 +02:00
params test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
peers test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
postgres fix_: enable tests to run with `-count` more than 1 (#5757) 2024-08-23 19:30:58 +00:00
profiling test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
protocol test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
rpc test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
rtt feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
scripts nix: Updating Nix Shell and Makefile to use nix-shell 2024-04-09 12:49:06 +03:00
server test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
services test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
signal test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
sqlite fix: close messenger's databases in tests 2023-11-28 20:59:25 +01:00
static refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
t chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
telemetry test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
tests-functional test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
tests-unit-network fix(wallet)_: limit max parameter length in cryptocompare price fetches (#5957) 2024-10-21 08:57:28 -03:00
timesource test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
transactions test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
vendor test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
waku test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
wakuv2 test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
walletdatabase refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
.codeclimate.yml This PR (status-go) fixes #12821 (#4516) 2024-01-08 10:18:57 -08:00
.codecov.yml test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
.dockerignore fix(ci)_: lock Go at 1.20 and Alpine at 3.18 2024-05-20 08:25:49 +02:00
.gitignore fix_: delete endpoints file (#5922) 2024-10-07 13:07:33 +01:00
.golangci.yml chore_: bump go to 1.20 (#5027) 2024-04-18 18:48:02 +02:00
.travis.yml Remove Ropsten and Rinkeby test networks 2022-10-24 14:17:46 +02:00
BOOTNODE.md docs: clarify purpose and describe ports 2020-02-06 18:44:23 +01:00
CMakeLists.txt dev: allow option to force compiling for apple silicon 2022-06-30 09:42:19 +02:00
CONTRIBUTING.md chore_: rename integration tests to functional tests (#5908) 2024-10-03 14:51:51 +01:00
LICENSE.md Create LICENSE.md 2016-09-21 10:00:29 +08:00
MAILSERVER.md rcp.sh: curl wrapper for easier RPC calls 2021-08-24 11:23:25 +02:00
Makefile test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
README.md docs_: better usage docs for status-backend (#5955) 2024-10-18 21:59:09 +03:00
RELEASING.md chore_: Add tag-version command 2024-04-10 11:43:13 +01:00
WAKU.md Create WAKU.md with spec support (#1855) 2020-02-21 17:56:15 +08:00
default.nix nix: Updating Nix Shell and Makefile to use nix-shell 2024-04-09 12:49:06 +03:00
go.mod test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
go.sum test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
shell.nix nix: Updating Nix Shell and Makefile to use nix-shell 2024-04-09 12:49:06 +03:00