Skip to content

Conversation

@zachfedor
Copy link
Collaborator

Relies on #496

This adds a new singularity wallet init <address> command and associated API endpoint to lookup the actor ID for a newly created wallet address (i.e. from singularity wallet create) after it's been initialized on chain.

masih and others added 30 commits July 7, 2023 23:54
Consistently optimise imports across all files and consistently format
files.

In go code, group SDK package imports together for better readability of
non-sdk imports.
* Change swaggo annotation to unexported functions
* Regenerate CLI reference
* Regenerate swagger.json

This solves #54
* Use a more reliable cron library to manage deal making push mode
* Work in progress. Check in unfinished code before a long week leave.
Co-authored-by: Xinan Xu <39632914+xinaxu@users.noreply.github.com>
Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
So that the front end engineer from FF can be unblocked
Also, unblock the CI actions
Reduce test time so CI runs faster
Basic coverage for deal making service
This creates a tester tool that can be used to export prepared CAR files
to a folder structure so that the tester can verify the correctness of
the preparation process.
* folder CID -> folder
* file CID -> file
* Black box tests for now to unblock testers.
# Goals

Move more code into handlers, so we can setup a library interface --
this removes the last major piece of logic code in the API

# Implementation

- HandlePostSource to CreateSourceHandler
- A few cleanups around handler errors
- Move PushItem under datasource directory (this is where one would
expect it to be given the API syntax)
- Fix tests to work with the handler
- Adds a check on the parameter names to make sure they match the
datasource type (reject inappropriately named params)
- 

# For discussion

This also fixes the build errors I introduced when I merged #85
Add CI workflows to build the Singularity container on each PR, and publish it onto ghcr.io for convenience on merge to main and tagged versions.
Update code to use `any` keyword instead of `interface{}` since the go mod version is 1.19.

The changes here are purely cosmetic and have no effect on net functionality.
Allow only once instance of deal maker and deal tracker. Later we will
also only allow one instance of metrics reporter.
- [x] Testnet/Calibnet can be enabled by setting
  * LOTUS_API
  * MARKET_DEAL_URL
* The genesis timestamp will be figured out by calling
lotus.ChainGetGenesis, or default to mainnet genesis timestamp if
LOTUS_API is the default GLIF mainnet API endpoint
- [x] Remove places that set address.CurrentNetwork
`go generate` is run during CI to check if any file is not updated.
Below files are automatically generated
* data source add swagger annotation will be generated from supported
Rclone backend options
* swagger file will be generated from swagger annotation
* CLI reference will be generated from capturing the help page for all
subcommands
* WebAPI reference will be generated from the swagger file

Plus some other fixes
* Changed the documentation to point to the ghcr.io for installing via
docker
* The doc generated will use no longer use current user as the default
value but a string literal '$USER' instead
* The default sqlite database is the one from the current directory
instead of assuming there is a home directory
* Fix a race condition from zstd Read and Close at the same time by
wrapping it in a thread safe struct
adds an API for interacting with singularity over HTTP or through code
parkan and others added 26 commits February 14, 2025 23:25
This enables use of HTTP_PROXY (ws transports) and TCP_PROXY (tcp
transport) in addition to other enhancements. Includes a doc generate
and other chores.
- update go-libp2p to v0.39.1
- enable HTTP(S)_PROXY and TCP_PROXY
fixes for linter env and lint errors

---------

Co-authored-by: Arkadiy Kukarkin <arkadiy@archive.org>
- Add init function to create full current schema on brand new clean
databases and run missing migrations on any databases using old
auto-migrate strategy with existing data.
- Add CLI commands to migrate up, down, or to a specified version by ID
- Add utility functions to get list of migration IDs ran on current
database, check if migration has run by ID, etc.
Fix struct tag ordering in handler/storage/types_gen.go to match
the current code generator output. This resolves CI failures where
go generate was detecting differences between committed and generated files.
@codecov
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 49.80916% with 263 lines in your changes missing coverage. Please review.

Project coverage is 70.78%. Comparing base (2eb3c72) to head (c7dd568).
Report is 30 commits behind head on main.

Files with missing lines Patch % Lines
migrate/migrations/202505010840_wallet_actor_id.go 37.40% 81 Missing and 1 partial ⚠️
cmd/admin/migrate.go 0.00% 53 Missing ⚠️
model/migrate.go 43.82% 44 Missing and 6 partials ⚠️
migrate/migrations/202505010830_initial_schema.go 40.38% 30 Missing and 1 partial ⚠️
handler/wallet/create.go 70.00% 16 Missing and 8 partials ⚠️
cmd/wallet/init.go 57.14% 4 Missing and 2 partials ⚠️
model/replication.go 60.00% 4 Missing ⚠️
cmd/wallet/create.go 86.95% 2 Missing and 1 partial ⚠️
handler/wallet/init.go 85.00% 2 Missing and 1 partial ⚠️
handler/wallet/remove.go 50.00% 1 Missing and 2 partials ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #504      +/-   ##
==========================================
- Coverage   74.05%   70.78%   -3.27%     
==========================================
  Files         150      159       +9     
  Lines        9980    10503     +523     
==========================================
+ Hits         7391     7435      +44     
- Misses       1828     2315     +487     
+ Partials      761      753       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.