-
Notifications
You must be signed in to change notification settings - Fork 0
feat: UCAN 1.0 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alanshaw
wants to merge
23
commits into
main
Choose a base branch
from
ash/feat/ucan1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
256e508
feat: UCAN 1.0
alanshaw 31fba55
feat: migrate postgres stores
alanshaw cd5c4a1
fix: postgres datastore import
alanshaw 402dd58
chore: appease linter
alanshaw bda5b2b
chore: use error definitions from libforge
alanshaw 4e81137
fix: missing change
alanshaw 043567d
chore: mod tidy
alanshaw d143017
fix: remove last ipld prime reference
alanshaw daf9d39
chore: upgrade libforge
alanshaw 43b47ac
chore: upgrade for deferred types in ucantone (#3)
alanshaw a1dfb17
fix: include indexer delegation
alanshaw b25816c
chore: upgrade ucantone
alanshaw f4d6c5f
refactor: use proof store implementation from ucanlib
alanshaw 3094181
refactor: upgrade ucantone
alanshaw 5f7a6d7
refactor: commands
alanshaw 14d8638
refactor: consolidate migrations
alanshaw 435007e
fix: sometimes I forget to save the files
alanshaw f62a8e7
chore: upgrade ucantone and libforge
alanshaw 43210e9
fix: receipts endpoint
alanshaw e92ca8f
fix: use libforge PEM decoder
alanshaw 670c930
refactor: package alias renames
alanshaw a951bfa
chore: upgrade libforge and ucantone
alanshaw 759bac2
chore: appease linter
alanshaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,3 +37,6 @@ clean: | |
|
|
||
| docker-build: | ||
| $(DOCKER) build -t sprue:latest . | ||
|
|
||
| gen: | ||
| go generate ./... | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ package lib | |
|
|
||
| import ( | ||
| "fmt" | ||
| "net/url" | ||
|
|
||
| "github.com/fil-forge/sprue/internal/config" | ||
| "github.com/fil-forge/sprue/internal/fx" | ||
|
|
@@ -25,10 +26,10 @@ func InitClient(cmd *cobra.Command) (*client.Client, *config.Config, *zap.Logger | |
| id, err := fx.NewIdentity(cfg, logger) | ||
| cobra.CheckErr(err) | ||
|
|
||
| c, err := client.New( | ||
| id.Signer.DID(), | ||
| client.WithServiceURL(fmt.Sprintf("http://%s:%d", cfg.Server.Host, cfg.Server.Port)), | ||
| ) | ||
| endpoint, err := url.Parse(fmt.Sprintf("http://%s:%d", cfg.Server.Host, cfg.Server.Port)) | ||
| cobra.CheckErr(err) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| c, err := client.New(id.Signer.DID(), endpoint, id.Signer, logger) | ||
| cobra.CheckErr(err) | ||
| return c, cfg, logger, id | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.