diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7d8a96960..2e77d36eb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,10 @@ "features": { "ghcr.io/akhildevelops/devcontainer-features/apt:0": {}, "ghcr.io/withfig/features/fig:1": {}, - "ghcr.io/devcontainers/features/go:1": {} + "ghcr.io/devcontainers/features/go:1": {}, + "ghcr.io/earthly/devcontainer-features/earthly:1": { + "bootstrap": true + } }, "hostRequirements": { "cpus": 12 diff --git a/.github/contribution/CLIENT_GUIDELINES.md b/.github/contribution/CLIENT_GUIDELINES.md index 6d881fde2..ef06887ad 100644 --- a/.github/contribution/CLIENT_GUIDELINES.md +++ b/.github/contribution/CLIENT_GUIDELINES.md @@ -34,7 +34,7 @@ You will need to install and configure the following dependencies on your machin You can setup your macOS or Linux machine to be ready for local development with these steps: ```sh -git clone https://github.com/sonrhq/core.git # Clone the repository +git clone https://github.com/sonr-io/core.git # Clone the repository sh scripts/install.sh # Install dependencies task # Display the available commands ``` diff --git a/.github/contribution/DEVELOPERS.md b/.github/contribution/DEVELOPERS.md index 974357a7f..48edd4ddb 100644 --- a/.github/contribution/DEVELOPERS.md +++ b/.github/contribution/DEVELOPERS.md @@ -32,7 +32,7 @@ You will need to install and configure the following dependencies on your machin You can setup your macOS or Linux machine to be ready for local development with these steps: ```sh -git clone https://github.com/sonrhq/core.git # Clone the repository +git clone https://github.com/sonr-io/core.git # Clone the repository sh scripts/install.sh # Install dependencies task # Display the available commands ``` diff --git a/.github/contribution/TESTNET.md b/.github/contribution/TESTNET.md index 5ea02bbf5..6b4d51454 100644 --- a/.github/contribution/TESTNET.md +++ b/.github/contribution/TESTNET.md @@ -29,7 +29,7 @@ You will need to install and configure the following dependencies on your machin You can setup your macOS or Linux machine to be ready for local development with these steps: ```sh -git clone https://github.com/sonrhq/core.git # Clone the repository +git clone https://github.com/sonr-io/core.git # Clone the repository sh scripts/install.sh # Install dependencies task # Display the available commands ``` @@ -45,7 +45,7 @@ You will need to install and configure the following dependencies on your machin You can setup your macOS or Linux machine to be ready for local development with these steps: ```sh -git clone https://github.com/sonrhq/core.git # Clone the repository +git clone https://github.com/sonr-io/core.git # Clone the repository sh scripts/install.sh # Install dependencies task # Display the available commands ``` diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml new file mode 100644 index 000000000..4de0ee1e1 --- /dev/null +++ b/.github/workflows/proto.yml @@ -0,0 +1,31 @@ +name: Protobuf +# Protobuf runs buf (https://buf.build/) lint and check-breakage +# This workflow is only run when a .proto file has been changed +on: + pull_request: + paths: + - "proto/**" + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1.27.1 + - uses: bufbuild/buf-lint-action@v1 + with: + input: "proto" + + break-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1.27.1 + - uses: bufbuild/buf-breaking-action@v1 + with: + input: "proto" + against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1878d09d1..521418983 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,6 @@ jobs: - run: make release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - publish-buf: name: Publish buf.build proto runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f56d889be..a54a9958b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,6 +54,10 @@ jobs: go.sum Makefile .github/workflows/build.yml + - uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} - uses: actions/setup-go@v4 if: env.GIT_DIFF @@ -62,6 +66,7 @@ jobs: env: GOOS: ${{ matrix.targetos }} GOARCH: ${{ matrix.arch }} + - name: Download Dependencies if: env.GIT_DIFF run: go mod download diff --git a/.gitignore b/.gitignore index 3fef4a190..5021d6fc1 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,5 @@ yarn-error.log* # vercel .vercel bin/sonr + +studio/ \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1437343b0..8931b52f3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,10 +5,6 @@ env: - CGO_ENABLED=1 - WASMVM_URL=https://github.com/CosmWasm/wasmvm/releases/download - COSMWASM_VERSION=v1.2.4 -before: - hooks: - - go mod download - builds: # Build - Linux (amd64) - id: sonrd-linux-amd64 @@ -46,7 +42,7 @@ builds: - CC=aarch64-linux-gnu-gcc hooks: pre: - - wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a + - wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvm_muslc.aarch64.a -O /opt/homebrew/lib/aarch64-linux-gnu/libwasmvm_muslc.a main: ./cmd/sonrd binary: sonrd goos: @@ -137,7 +133,7 @@ universal_binaries: ids: - sonrd-darwin-amd64 - sonrd-darwin-arm64 - replace: false + replace: true archives: - id: zipped builds: @@ -158,7 +154,7 @@ archives: name_template: "{{.ProjectName}}-{{ .Os }}-{{ .Arch }}" format: binary checksum: - name_template: "sha256sum.txt" + name_template: sha256sum.txt algorithm: sha256 # ! ||--------------------------------------------------------------------------------|| # ! || Release and Changelog || @@ -186,7 +182,7 @@ release: If you prefer to build from source, you can use the following commands: ````bash - git clone https://github.com/sonrhq/core + git clone https://github.com/sonr-io/core cd core && git checkout v{{ .Version }} make install # Then run sonrd @@ -225,16 +221,16 @@ changelog: abbrev: -1 groups: - title: Features - regexp: '.*?feat\(.*\):.*$' + regexp: .*?feat\(.*\):.*$ order: 0 - - title: "Documentation" - regexp: '.*?docs\(.*\):.*$' + - title: Documentation + regexp: .*?docs\(.*\):.*$ order: 1 - - title: "Fixes" - regexp: '.*?fix\(.*\):.*$' + - title: Fixes + regexp: .*?fix\(.*\):.*$ order: 2 - - title: "Misc" - regexp: '.*?chore\(.*\):.*$' + - title: Misc + regexp: .*?chore\(.*\):.*$ order: 3 - title: Others order: 999 diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 877044857..11e57cd93 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -11,6 +11,7 @@ "kangping.protobuf", "hangxingliu.vscode-systemd-support", "atommaterial.a-file-icon-vscode", - "davidanson.vscode-markdownlint" + "davidanson.vscode-markdownlint", + "chrisbibby.hide-git-ignored" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 4d4d1e22b..e9f0427e1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -51,31 +51,7 @@ "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, - "**/Thumbs.db": true, - "!**/.git/hooks": true, - ".dart_tool": true, - "**/.classpath": true, - "**/.factorypath": true, - "**/.flutter-plugins": true, - "**/.flutter-plugins-dependencies": true, - "**/.packages": true, - "**/.project": true, - "**/.settings": true, - "**/largeFolder": true, - "**/pubspec.lock": true, - "**pubspec.lock": true, - "**/.trunk/*out/": true, - "**/.trunk/*actions/": true, - "**/.trunk/*logs/": true, - "**/.trunk/*plugins/": true, - "**/**/types/*_test.go": true, - "proto/buf.lock": true, - "**/.circleci": true, - "**/.compodocrc*": true, - "**/.editorconfig": true, - "**/.gitattributes": true, - "**/.gitkeep": true, - "**/.gitignore": true, + ".vscode/": true }, "svg.preview.background": "custom", "typescript.preferences.importModuleSpecifier": "non-relative", @@ -140,5 +116,7 @@ "titleBar.inactiveBackground": "#7900f799", "titleBar.inactiveForeground": "#e7e7e799" }, - "peacock.remoteColor": "#d31135" + "peacock.remoteColor": "#d31135", + "hidefiles.configurationType": "global", + "hidefiles.selectedProfile": "Strict" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c6f6ba5a..554f95f7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,17 @@ # CHANGELOG -## [v0.7.4](https://github.com/sonrhq/core/releases/tag/v0.7.4) - 2023-08-13 23:55:00 +## [v0.7.4](https://github.com/sonr-io/core/releases/tag/v0.7.4) - 2023-08-13 23:55:00 This release has no changes ## What's Changed -* Fix/docker deploy [OSS-4] by @prnk28 in -* Setup/testnet env [OSS-6] by @prnk28 in +* Fix/docker deploy [OSS-4] by @prnk28 in +* Setup/testnet env [OSS-6] by @prnk28 in -**Full Changelog**: +**Full Changelog**: -## [v0.7.3](https://github.com/sonrhq/core/releases/tag/v0.7.3) - 2023-08-07 23:55:39 +## [v0.7.3](https://github.com/sonr-io/core/releases/tag/v0.7.3) - 2023-08-07 23:55:39 * 58a93d3 *chore(Taskfile.yml): remove docker build command for cosmos-faucet target* chore(Taskfile.yml): remove docker tag and push commands for sonr-faucet image * chore(Taskfile.yml): remove publish task for k8s manifests * 2b64d4f *refactor(Dockerfile): remove unused comments and empty lines* chore(Dockerfile): remove cosmos-faucet section @@ -55,9 +55,9 @@ This release has no changes ### Documentation * swimm: - * create doc: "README" (#104) ([1951a12](https://github.com/sonrhq/core/commit/1951a123a7fb321fe85015aaf3aed79a9b22c516)) ([#104](https://github.com/sonrhq/core/pull/104)) + * create doc: "README" (#104) ([1951a12](https://github.com/sonr-io/core/commit/1951a123a7fb321fe85015aaf3aed79a9b22c516)) ([#104](https://github.com/sonr-io/core/pull/104)) -## [v0.7.3-beta.4](https://github.com/sonrhq/core/releases/tag/v0.7.3-beta.4) - 2023-08-02 03:50:58 +## [v0.7.3-beta.4](https://github.com/sonr-io/core/releases/tag/v0.7.3-beta.4) - 2023-08-02 03:50:58 * b11386b * feat(sonrd): add new file cored (#102) * e19ae8e Add Gex explorer cmd @@ -65,290 +65,290 @@ This release has no changes * c054b42 *feat(bump.yml): add bump configuration file* feat(bump.yml): define release and branch configuration *feat(bump.yml): define categories for breaking changes, features, maintenance, bug fixes, documentation, and dependency updates* feat(bump.yml): define bump configuration for major, minor, and patch versions * fe0820d Update README.md -## [v0.7.3-beta.3](https://github.com/sonrhq/core/releases/tag/v0.7.3-beta.3) - 2023-07-31 21:35:25 +## [v0.7.3-beta.3](https://github.com/sonr-io/core/releases/tag/v0.7.3-beta.3) - 2023-07-31 21:35:25 * 257d1ef *chore(go.mod): update github.com/go-webauthn/webauthn to v0.8.6* chore(go.mod): update github.com/stretchr/testify to v1.8.4 *chore(go.mod): update github.com/go-webauthn/x to v0.1.4* chore(go.mod): update github.com/golang-jwt/jwt/v5 to v5.0.0 * chore(go.mod): update github.com/google/go-tpm to v0.9.0 * 715ccae *fix(auth.go): remove unused isAuthenticated variable in SignInWithCredential function* fix(auth.go): remove unused addr variable in SignInWithCredential function *fix(auth.go): remove unused chal variable in RegisterEscrowIdentity function* fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function *fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function* fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function *fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function* fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function *fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function* fix(auth.go): add blank line after alias variable declaration in RegisterEscrowIdentity function * fix(auth.go): add blank line after alias variable declaration in RegisterEscrow -## [v0.7.3-beta.1](https://github.com/sonrhq/core/releases/tag/v0.7.3-beta.1) - 2023-07-28 01:32:34 +## [v0.7.3-beta.1](https://github.com/sonr-io/core/releases/tag/v0.7.3-beta.1) - 2023-07-28 01:32:34 * 9b2d7e8 * fix(authr.go): fix method call to serialize credential -* 8926128 *feat(crypto/keys.go): add EncryptionKey interface* refactor(account.go): update NewAccountV1 function signature to return v1types.KeyshareSet instead of *v1types.Keyshare* refactor(account.go): remove unused import of github.com/sonrhq/core/pkg/did/types *refactor(account.go): remove unused variable privKs in NewAccountV1 function* refactor(account.go): update return statement in NewAccountV1 function to return v1types.EmptyKeyshareSet() instead of nil *refactor(account.go): update return statement in NewAccountV1 function to return kss instead of privKs* refactor(account.go): remove DIDIdentifier method from AccountV1 struct *refactor(account.go): remove DIDMethod method from AccountV1 struct* refactor(account.go): remove DIDUrl method from AccountV1 struct * refactor(account.go): remove comment explaining PublicKey method, as it is incomplete +* 8926128 *feat(crypto/keys.go): add EncryptionKey interface* refactor(account.go): update NewAccountV1 function signature to return v1types.KeyshareSet instead of *v1types.Keyshare* refactor(account.go): remove unused import of github.com/sonr-io/core/pkg/did/types *refactor(account.go): remove unused variable privKs in NewAccountV1 function* refactor(account.go): update return statement in NewAccountV1 function to return v1types.EmptyKeyshareSet() instead of nil *refactor(account.go): update return statement in NewAccountV1 function to return kss instead of privKs* refactor(account.go): remove DIDIdentifier method from AccountV1 struct *refactor(account.go): remove DIDMethod method from AccountV1 struct* refactor(account.go): remove DIDUrl method from AccountV1 struct * refactor(account.go): remove comment explaining PublicKey method, as it is incomplete * ca6183b *refactor(keyshare.go): remove unnecessary role check in GetAliceDKGResult() method* refactor(keyshare.go): remove unnecessary role check in GetBobDKGResult() method * d61b5b3 * chore(application-services.mdx): delete application-services.mdx file from docs/static/whitepaper directory * a6f2a7c *chore(account.go): remove unused code in Marshal method* chore(account.go): remove unused code in Unmarshal method * feat(keyshare.go): add UnmarshalAlice method to unmarshal keyshare for Alice * 631dc29 *fix(openapi.yml): remove id property from objects in paths and definitions* chore(highway.go): rearrange middleware order in initGin function * 0d3b537 *chore(app.go): import highlight-go SDK package* chore(app.go): import highlight-go middleware for Gorilla Mux *chore(app.go): set project ID for highlight-go SDK* chore(app.go): start highlight-go SDK * chore(main.go): stop highlight-go SDK before exiting -## [v0.7.3-beta.0](https://github.com/sonrhq/core/releases/tag/v0.7.3-beta.0) - 2023-07-27 18:09:16 +## [v0.7.3-beta.0](https://github.com/sonr-io/core/releases/tag/v0.7.3-beta.0) - 2023-07-27 18:09:16 * ec4e2fb *chore(root.go): update Viper configuration to use "SONR" as the config file name* chore(go.mod): add go.opentelemetry.io/otel v1.13.0 as a required module * chore(parser.go): delete internal/crypto/parser.go file -## [v0.7.2](https://github.com/sonrhq/core/releases/tag/v0.7.2) - 2023-07-27 11:48:51 +## [v0.7.2](https://github.com/sonr-io/core/releases/tag/v0.7.2) - 2023-07-27 11:48:51 -## [v0.7.1](https://github.com/sonrhq/core/releases/tag/v0.7.1) - 2023-07-27 02:35:51 +## [v0.7.1](https://github.com/sonr-io/core/releases/tag/v0.7.1) - 2023-07-27 02:35:51 -## [v0.7.1-beta.4](https://github.com/sonrhq/core/releases/tag/v0.7.1-beta.4) - 2023-07-14 05:50:49 +## [v0.7.1-beta.4](https://github.com/sonr-io/core/releases/tag/v0.7.1-beta.4) - 2023-07-14 05:50:49 -## [v0.7.1-beta.3](https://github.com/sonrhq/core/releases/tag/v0.7.1-beta.3) - 2023-07-13 02:43:22 +## [v0.7.1-beta.3](https://github.com/sonr-io/core/releases/tag/v0.7.1-beta.3) - 2023-07-13 02:43:22 -## [v0.7.0](https://github.com/sonrhq/core/releases/tag/v0.7.0) - 2023-06-28 22:51:16 +## [v0.7.0](https://github.com/sonr-io/core/releases/tag/v0.7.0) - 2023-06-28 22:51:16 -## [v0.6.29-beta.5](https://github.com/sonrhq/core/releases/tag/v0.6.29-beta.5) - 2023-06-23 21:28:33 +## [v0.6.29-beta.5](https://github.com/sonr-io/core/releases/tag/v0.6.29-beta.5) - 2023-06-23 21:28:33 -## [v0.6.29-beta.0](https://github.com/sonrhq/core/releases/tag/v0.6.29-beta.0) - 2023-06-23 21:25:15 +## [v0.6.29-beta.0](https://github.com/sonr-io/core/releases/tag/v0.6.29-beta.0) - 2023-06-23 21:25:15 -## [v0.6.29](https://github.com/sonrhq/core/releases/tag/v0.6.29) - 2023-06-23 21:28:33 +## [v0.6.29](https://github.com/sonr-io/core/releases/tag/v0.6.29) - 2023-06-23 21:28:33 -## [v0.6.28-beta.16](https://github.com/sonrhq/core/releases/tag/v0.6.28-beta.16) - 2023-06-23 15:52:25 +## [v0.6.28-beta.16](https://github.com/sonr-io/core/releases/tag/v0.6.28-beta.16) - 2023-06-23 15:52:25 -## [v0.6.28](https://github.com/sonrhq/core/releases/tag/v0.6.28) - 2023-06-23 16:46:22 +## [v0.6.28](https://github.com/sonr-io/core/releases/tag/v0.6.28) - 2023-06-23 16:46:22 -## [v0.6.28-beta.9](https://github.com/sonrhq/core/releases/tag/v0.6.28-beta.9) - 2023-06-11 00:42:34 +## [v0.6.28-beta.9](https://github.com/sonr-io/core/releases/tag/v0.6.28-beta.9) - 2023-06-11 00:42:34 -## [v0.6.28-beta.10](https://github.com/sonrhq/core/releases/tag/v0.6.28-beta.10) - 2023-06-11 00:42:34 +## [v0.6.28-beta.10](https://github.com/sonr-io/core/releases/tag/v0.6.28-beta.10) - 2023-06-11 00:42:34 -## [v0.6.28-beta.2](https://github.com/sonrhq/core/releases/tag/v0.6.28-beta.2) - 2023-06-10 16:40:10 +## [v0.6.28-beta.2](https://github.com/sonr-io/core/releases/tag/v0.6.28-beta.2) - 2023-06-10 16:40:10 -## [v0.6.27](https://github.com/sonrhq/core/releases/tag/v0.6.27) - 2023-06-01 18:10:36 +## [v0.6.27](https://github.com/sonr-io/core/releases/tag/v0.6.27) - 2023-06-01 18:10:36 -## [v0.6.26](https://github.com/sonrhq/core/releases/tag/v0.6.26) - 2023-05-28 20:30:43 +## [v0.6.26](https://github.com/sonr-io/core/releases/tag/v0.6.26) - 2023-05-28 20:30:43 -## [v0.6.26-beta.9](https://github.com/sonrhq/core/releases/tag/v0.6.26-beta.9) - 2023-05-16 19:52:29 +## [v0.6.26-beta.9](https://github.com/sonr-io/core/releases/tag/v0.6.26-beta.9) - 2023-05-16 19:52:29 -## [v0.6.26-beta.6](https://github.com/sonrhq/core/releases/tag/v0.6.26-beta.6) - 2023-05-14 00:41:56 +## [v0.6.26-beta.6](https://github.com/sonr-io/core/releases/tag/v0.6.26-beta.6) - 2023-05-14 00:41:56 -**Full Changelog**: +**Full Changelog**: -## [v0.6.26-beta.5](https://github.com/sonrhq/core/releases/tag/v0.6.26-beta.5) - 2023-05-14 00:35:32 +## [v0.6.26-beta.5](https://github.com/sonr-io/core/releases/tag/v0.6.26-beta.5) - 2023-05-14 00:35:32 -**Full Changelog**: +**Full Changelog**: -## [v0.6.26-beta.4](https://github.com/sonrhq/core/releases/tag/v0.6.26-beta.4) - 2023-05-14 00:29:30 +## [v0.6.26-beta.4](https://github.com/sonr-io/core/releases/tag/v0.6.26-beta.4) - 2023-05-14 00:29:30 -## [v0.6.26-beta.0](https://github.com/sonrhq/core/releases/tag/v0.6.26-beta.0) - 2023-05-13 18:43:07 +## [v0.6.26-beta.0](https://github.com/sonr-io/core/releases/tag/v0.6.26-beta.0) - 2023-05-13 18:43:07 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25](https://github.com/sonrhq/core/releases/tag/v0.6.25) - 2023-05-13 17:57:50 +## [v0.6.25](https://github.com/sonr-io/core/releases/tag/v0.6.25) - 2023-05-13 17:57:50 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25-beta.5](https://github.com/sonrhq/core/releases/tag/v0.6.25-beta.5) - 2023-05-13 16:53:57 +## [v0.6.25-beta.5](https://github.com/sonr-io/core/releases/tag/v0.6.25-beta.5) - 2023-05-13 16:53:57 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25-beta.4](https://github.com/sonrhq/core/releases/tag/v0.6.25-beta.4) - 2023-05-13 16:16:42 +## [v0.6.25-beta.4](https://github.com/sonr-io/core/releases/tag/v0.6.25-beta.4) - 2023-05-13 16:16:42 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25-beta.3](https://github.com/sonrhq/core/releases/tag/v0.6.25-beta.3) - 2023-05-12 19:57:22 +## [v0.6.25-beta.3](https://github.com/sonr-io/core/releases/tag/v0.6.25-beta.3) - 2023-05-12 19:57:22 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25-beta.2](https://github.com/sonrhq/core/releases/tag/v0.6.25-beta.2) - 2023-05-12 19:36:49 +## [v0.6.25-beta.2](https://github.com/sonr-io/core/releases/tag/v0.6.25-beta.2) - 2023-05-12 19:36:49 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25-beta.1](https://github.com/sonrhq/core/releases/tag/v0.6.25-beta.1) - 2023-05-10 15:28:26 +## [v0.6.25-beta.1](https://github.com/sonr-io/core/releases/tag/v0.6.25-beta.1) - 2023-05-10 15:28:26 -**Full Changelog**: +**Full Changelog**: -## [v0.6.25-beta.0](https://github.com/sonrhq/core/releases/tag/v0.6.25-beta.0) - 2023-05-08 17:18:39 +## [v0.6.25-beta.0](https://github.com/sonr-io/core/releases/tag/v0.6.25-beta.0) - 2023-05-08 17:18:39 -**Full Changelog**: +**Full Changelog**: -## [v0.6.24](https://github.com/sonrhq/core/releases/tag/v0.6.24) - 2023-05-08 13:42:52 +## [v0.6.24](https://github.com/sonr-io/core/releases/tag/v0.6.24) - 2023-05-08 13:42:52 -## [v0.6.24-beta.1](https://github.com/sonrhq/core/releases/tag/v0.6.24-beta.1) - 2023-05-05 02:10:41 +## [v0.6.24-beta.1](https://github.com/sonr-io/core/releases/tag/v0.6.24-beta.1) - 2023-05-05 02:10:41 -**Full Changelog**: +**Full Changelog**: -## [v0.6.24-beta.0](https://github.com/sonrhq/core/releases/tag/v0.6.24-beta.0) - 2023-05-03 17:42:04 +## [v0.6.24-beta.0](https://github.com/sonr-io/core/releases/tag/v0.6.24-beta.0) - 2023-05-03 17:42:04 -**Full Changelog**: +**Full Changelog**: -## [v0.6.23](https://github.com/sonrhq/core/releases/tag/v0.6.23) - 2023-05-03 15:22:26 +## [v0.6.23](https://github.com/sonr-io/core/releases/tag/v0.6.23) - 2023-05-03 15:22:26 -**Full Changelog**: +**Full Changelog**: -## [v0.6.22-beta.0](https://github.com/sonrhq/core/releases/tag/v0.6.22-beta.0) - 2023-05-02 14:22:38 +## [v0.6.22-beta.0](https://github.com/sonr-io/core/releases/tag/v0.6.22-beta.0) - 2023-05-02 14:22:38 -**Full Changelog**: +**Full Changelog**: -## [v0.6.21](https://github.com/sonrhq/core/releases/tag/v0.6.21) - 2023-05-01 02:35:02 +## [v0.6.21](https://github.com/sonr-io/core/releases/tag/v0.6.21) - 2023-05-01 02:35:02 -**Full Changelog**: +**Full Changelog**: -## [v0.6.20](https://github.com/sonrhq/core/releases/tag/v0.6.20) - 2023-04-30 18:45:17 +## [v0.6.20](https://github.com/sonr-io/core/releases/tag/v0.6.20) - 2023-04-30 18:45:17 -## [v0.6.17](https://github.com/sonrhq/core/releases/tag/v0.6.17) - 2023-04-19 01:09:00 +## [v0.6.17](https://github.com/sonr-io/core/releases/tag/v0.6.17) - 2023-04-19 01:09:00 -## [v0.6.12](https://github.com/sonrhq/core/releases/tag/v0.6.12) - 2023-04-13 15:32:29 +## [v0.6.12](https://github.com/sonr-io/core/releases/tag/v0.6.12) - 2023-04-13 15:32:29 -## [v0.6.11](https://github.com/sonrhq/core/releases/tag/v0.6.11) - 2023-04-12 20:40:19 +## [v0.6.11](https://github.com/sonr-io/core/releases/tag/v0.6.11) - 2023-04-12 20:40:19 -**Full Changelog**: +**Full Changelog**: -## [v0.6.10](https://github.com/sonrhq/core/releases/tag/v0.6.10) - 2023-04-11 19:51:42 +## [v0.6.10](https://github.com/sonr-io/core/releases/tag/v0.6.10) - 2023-04-11 19:51:42 -## [v0.6.9](https://github.com/sonrhq/core/releases/tag/v0.6.9) - 2023-04-05 23:55:01 +## [v0.6.9](https://github.com/sonr-io/core/releases/tag/v0.6.9) - 2023-04-05 23:55:01 -## [v0.6.8](https://github.com/sonrhq/core/releases/tag/v0.6.8) - 2023-04-04 15:58:38 +## [v0.6.8](https://github.com/sonr-io/core/releases/tag/v0.6.8) - 2023-04-04 15:58:38 -**Full Changelog**: +**Full Changelog**: -## [v0.6.7](https://github.com/sonrhq/core/releases/tag/v0.6.7) - 2023-04-03 19:51:22 +## [v0.6.7](https://github.com/sonr-io/core/releases/tag/v0.6.7) - 2023-04-03 19:51:22 -## [v0.6.6](https://github.com/sonrhq/core/releases/tag/v0.6.6) - 2023-04-02 23:41:16 +## [v0.6.6](https://github.com/sonr-io/core/releases/tag/v0.6.6) - 2023-04-02 23:41:16 -## [v0.6.5](https://github.com/sonrhq/core/releases/tag/v0.6.5) - 2023-04-02 15:21:51 +## [v0.6.5](https://github.com/sonr-io/core/releases/tag/v0.6.5) - 2023-04-02 15:21:51 -## [v0.6.5-beta.3](https://github.com/sonrhq/core/releases/tag/v0.6.5-beta.3) - 2023-03-31 17:35:48 +## [v0.6.5-beta.3](https://github.com/sonr-io/core/releases/tag/v0.6.5-beta.3) - 2023-03-31 17:35:48 -**Full Changelog**: +**Full Changelog**: -## [v0.6.5-beta.2](https://github.com/sonrhq/core/releases/tag/v0.6.5-beta.2) - 2023-03-29 13:57:13 +## [v0.6.5-beta.2](https://github.com/sonr-io/core/releases/tag/v0.6.5-beta.2) - 2023-03-29 13:57:13 -**Full Changelog**: +**Full Changelog**: -## [v0.6.5-beta.1](https://github.com/sonrhq/core/releases/tag/v0.6.5-beta.1) - 2023-03-29 12:53:48 +## [v0.6.5-beta.1](https://github.com/sonr-io/core/releases/tag/v0.6.5-beta.1) - 2023-03-29 12:53:48 -**Full Changelog**: +**Full Changelog**: -## [v0.6.5-beta.0](https://github.com/sonrhq/core/releases/tag/v0.6.5-beta.0) - 2023-03-29 12:23:07 +## [v0.6.5-beta.0](https://github.com/sonr-io/core/releases/tag/v0.6.5-beta.0) - 2023-03-29 12:23:07 -**Full Changelog**: +**Full Changelog**: -## [v0.6.4](https://github.com/sonrhq/core/releases/tag/v0.6.4) - 2023-03-29 12:00:32 +## [v0.6.4](https://github.com/sonr-io/core/releases/tag/v0.6.4) - 2023-03-29 12:00:32 -**Full Changelog**: +**Full Changelog**: -## [v0.6.3](https://github.com/sonrhq/core/releases/tag/v0.6.3) - 2023-03-28 08:59:33 +## [v0.6.3](https://github.com/sonr-io/core/releases/tag/v0.6.3) - 2023-03-28 08:59:33 -## [v0.6.2](https://github.com/sonrhq/core/releases/tag/v0.6.2) - 2023-03-25 18:10:40 +## [v0.6.2](https://github.com/sonr-io/core/releases/tag/v0.6.2) - 2023-03-25 18:10:40 -**Full Changelog**: +**Full Changelog**: -## [v0.6.1](https://github.com/sonrhq/core/releases/tag/v0.6.1) - 2023-03-25 00:26:30 +## [v0.6.1](https://github.com/sonr-io/core/releases/tag/v0.6.1) - 2023-03-25 00:26:30 -**Full Changelog**: +**Full Changelog**: -## [v0.6.0-beta.6](https://github.com/sonrhq/core/releases/tag/v0.6.0-beta.6) - 2023-03-24 01:51:08 +## [v0.6.0-beta.6](https://github.com/sonr-io/core/releases/tag/v0.6.0-beta.6) - 2023-03-24 01:51:08 -**Full Changelog**: +**Full Changelog**: -## [v0.6.0-beta.5](https://github.com/sonrhq/core/releases/tag/v0.6.0-beta.5) - 2023-03-24 01:33:02 +## [v0.6.0-beta.5](https://github.com/sonr-io/core/releases/tag/v0.6.0-beta.5) - 2023-03-24 01:33:02 -**Full Changelog**: +**Full Changelog**: -## [v0.6.0-beta.4](https://github.com/sonrhq/core/releases/tag/v0.6.0-beta.4) - 2023-03-23 22:58:38 +## [v0.6.0-beta.4](https://github.com/sonr-io/core/releases/tag/v0.6.0-beta.4) - 2023-03-23 22:58:38 -**Full Changelog**: +**Full Changelog**: -## [v0.6.0-beta.3](https://github.com/sonrhq/core/releases/tag/v0.6.0-beta.3) - 2023-03-23 03:57:10 +## [v0.6.0-beta.3](https://github.com/sonr-io/core/releases/tag/v0.6.0-beta.3) - 2023-03-23 03:57:10 -**Full Changelog**: +**Full Changelog**: -## [v0.6.0-beta.2](https://github.com/sonrhq/core/releases/tag/v0.6.0-beta.2) - 2023-03-23 03:33:41 +## [v0.6.0-beta.2](https://github.com/sonr-io/core/releases/tag/v0.6.0-beta.2) - 2023-03-23 03:33:41 -**Full Changelog**: +**Full Changelog**: -## [v0.6.0-beta.1](https://github.com/sonrhq/core/releases/tag/v0.6.0-beta.1) - 2023-03-23 00:00:42 +## [v0.6.0-beta.1](https://github.com/sonr-io/core/releases/tag/v0.6.0-beta.1) - 2023-03-23 00:00:42 -## [v0.5.1](https://github.com/sonrhq/core/releases/tag/v0.5.1) - 2023-03-20 22:32:22 +## [v0.5.1](https://github.com/sonr-io/core/releases/tag/v0.5.1) - 2023-03-20 22:32:22 -## [v0.5.0](https://github.com/sonrhq/core/releases/tag/v0.5.0) - 2023-03-16 19:21:23 +## [v0.5.0](https://github.com/sonr-io/core/releases/tag/v0.5.0) - 2023-03-16 19:21:23 -## [v0.5.0-beta.1](https://github.com/sonrhq/core/releases/tag/v0.5.0-beta.1) - 2023-03-16 07:26:07 +## [v0.5.0-beta.1](https://github.com/sonr-io/core/releases/tag/v0.5.0-beta.1) - 2023-03-16 07:26:07 -## [v0.4.4](https://github.com/sonrhq/core/releases/tag/v0.4.4) - 2023-03-14 20:13:46 +## [v0.4.4](https://github.com/sonr-io/core/releases/tag/v0.4.4) - 2023-03-14 20:13:46 -## [v0.4.3](https://github.com/sonrhq/core/releases/tag/v0.4.3) - 2023-03-12 09:38:57 +## [v0.4.3](https://github.com/sonr-io/core/releases/tag/v0.4.3) - 2023-03-12 09:38:57 -## [v0.4.3-beta.0](https://github.com/sonrhq/core/releases/tag/v0.4.3-beta.0) - 2023-03-10 20:19:14 +## [v0.4.3-beta.0](https://github.com/sonr-io/core/releases/tag/v0.4.3-beta.0) - 2023-03-10 20:19:14 -**Full Changelog**: +**Full Changelog**: -## [v0.4.2](https://github.com/sonrhq/core/releases/tag/v0.4.2) - 2023-03-10 03:59:34 +## [v0.4.2](https://github.com/sonr-io/core/releases/tag/v0.4.2) - 2023-03-10 03:59:34 -**Full Changelog**: +**Full Changelog**: -## [v0.4.1](https://github.com/sonrhq/core/releases/tag/v0.4.1) - 2023-03-10 00:55:15 +## [v0.4.1](https://github.com/sonr-io/core/releases/tag/v0.4.1) - 2023-03-10 00:55:15 -**Full Changelog**: +**Full Changelog**: -## [v0.4.0](https://github.com/sonrhq/core/releases/tag/v0.4.0) - 2023-03-09 04:28:44 +## [v0.4.0](https://github.com/sonr-io/core/releases/tag/v0.4.0) - 2023-03-09 04:28:44 -## [v0.3.2](https://github.com/sonrhq/core/releases/tag/v0.3.2) - 2023-03-07 00:24:31 +## [v0.3.2](https://github.com/sonr-io/core/releases/tag/v0.3.2) - 2023-03-07 00:24:31 -## [v0.3.1](https://github.com/sonrhq/core/releases/tag/v0.3.1) - 2023-01-30 08:12:26 +## [v0.3.1](https://github.com/sonr-io/core/releases/tag/v0.3.1) - 2023-01-30 08:12:26 -## [v0.3.0](https://github.com/sonrhq/core/releases/tag/v0.3.0) - 2023-01-29 07:15:27 +## [v0.3.0](https://github.com/sonr-io/core/releases/tag/v0.3.0) - 2023-01-29 07:15:27 -## [v0.2.5](https://github.com/sonrhq/core/releases/tag/v0.2.5) - 2023-01-27 04:54:16 +## [v0.2.5](https://github.com/sonr-io/core/releases/tag/v0.2.5) - 2023-01-27 04:54:16 -**Full Changelog**: +**Full Changelog**: -## [v0.2.4](https://github.com/sonrhq/core/releases/tag/v0.2.4) - 2023-01-23 20:32:32 +## [v0.2.4](https://github.com/sonr-io/core/releases/tag/v0.2.4) - 2023-01-23 20:32:32 -## [v0.2.3](https://github.com/sonrhq/core/releases/tag/v0.2.3) - 2023-01-22 23:27:14 +## [v0.2.3](https://github.com/sonr-io/core/releases/tag/v0.2.3) - 2023-01-22 23:27:14 -## [v0.2.2](https://github.com/sonrhq/core/releases/tag/v0.2.2) - 2023-01-22 21:37:51 +## [v0.2.2](https://github.com/sonr-io/core/releases/tag/v0.2.2) - 2023-01-22 21:37:51 -## [v0.2.1](https://github.com/sonrhq/core/releases/tag/v0.2.1) - 2023-01-18 23:53:55 +## [v0.2.1](https://github.com/sonr-io/core/releases/tag/v0.2.1) - 2023-01-18 23:53:55 -## [v0.2.0](https://github.com/sonrhq/core/releases/tag/v0.2.0) - 2023-01-14 02:54:44 +## [v0.2.0](https://github.com/sonr-io/core/releases/tag/v0.2.0) - 2023-01-14 02:54:44 -## [v0.1.14](https://github.com/sonrhq/core/releases/tag/v0.1.14) - 2023-01-11 05:01:03 +## [v0.1.14](https://github.com/sonr-io/core/releases/tag/v0.1.14) - 2023-01-11 05:01:03 -## [v0.1.13](https://github.com/sonrhq/core/releases/tag/v0.1.13) - 2023-01-10 22:04:14 +## [v0.1.13](https://github.com/sonr-io/core/releases/tag/v0.1.13) - 2023-01-10 22:04:14 -## [v0.1.12](https://github.com/sonrhq/core/releases/tag/v0.1.12) - 2023-01-09 18:29:41 +## [v0.1.12](https://github.com/sonr-io/core/releases/tag/v0.1.12) - 2023-01-09 18:29:41 -## [v0.1.11](https://github.com/sonrhq/core/releases/tag/v0.1.11) - 2023-01-08 00:26:46 +## [v0.1.11](https://github.com/sonr-io/core/releases/tag/v0.1.11) - 2023-01-08 00:26:46 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.10...v0.1.11 -## [v0.1.10](https://github.com/sonrhq/core/releases/tag/v0.1.10) - 2023-01-08 00:19:38 +## [v0.1.10](https://github.com/sonr-io/core/releases/tag/v0.1.10) - 2023-01-08 00:19:38 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.9...v0.1.10 -## [v0.1.9](https://github.com/sonrhq/core/releases/tag/v0.1.9) - 2023-01-07 22:56:22 +## [v0.1.9](https://github.com/sonr-io/core/releases/tag/v0.1.9) - 2023-01-07 22:56:22 -## [v0.1.8](https://github.com/sonrhq/core/releases/tag/v0.1.8) - 2023-01-07 22:34:54 +## [v0.1.8](https://github.com/sonr-io/core/releases/tag/v0.1.8) - 2023-01-07 22:34:54 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.7...v0.1.8 -## [v0.1.7](https://github.com/sonrhq/core/releases/tag/v0.1.7) - 2023-01-07 21:25:19 +## [v0.1.7](https://github.com/sonr-io/core/releases/tag/v0.1.7) - 2023-01-07 21:25:19 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.6...v0.1.7 -## [v0.1.6](https://github.com/sonrhq/core/releases/tag/v0.1.6) - 2023-01-07 21:15:28 +## [v0.1.6](https://github.com/sonr-io/core/releases/tag/v0.1.6) - 2023-01-07 21:15:28 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.5...v0.1.6 -## [v0.1.5](https://github.com/sonrhq/core/releases/tag/v0.1.5) - 2023-01-07 20:41:40 +## [v0.1.5](https://github.com/sonr-io/core/releases/tag/v0.1.5) - 2023-01-07 20:41:40 -## [v0.1.4](https://github.com/sonrhq/core/releases/tag/v0.1.4) - 2023-01-07 20:00:55 +## [v0.1.4](https://github.com/sonr-io/core/releases/tag/v0.1.4) - 2023-01-07 20:00:55 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.3...v0.1.4 -## [v0.1.3](https://github.com/sonrhq/core/releases/tag/v0.1.3) - 2023-01-07 04:48:24 +## [v0.1.3](https://github.com/sonr-io/core/releases/tag/v0.1.3) - 2023-01-07 04:48:24 -## [v0.1.2](https://github.com/sonrhq/core/releases/tag/v0.1.2) - 2023-01-07 04:04:12 +## [v0.1.2](https://github.com/sonr-io/core/releases/tag/v0.1.2) - 2023-01-07 04:04:12 **Full Changelog**: https://github.com/sonr-hq/sonr/compare/v0.1.1...v0.1.2 -## [v0.1.1](https://github.com/sonrhq/core/releases/tag/v0.1.1) - 2023-01-07 02:59:05 +## [v0.1.1](https://github.com/sonr-io/core/releases/tag/v0.1.1) - 2023-01-07 02:59:05 -## [v0.1.0](https://github.com/sonrhq/core/releases/tag/v0.1.0) - 2023-01-04 22:21:55 +## [v0.1.0](https://github.com/sonr-io/core/releases/tag/v0.1.0) - 2023-01-04 22:21:55 -## [v0.0.3](https://github.com/sonrhq/core/releases/tag/v0.0.3) - 2022-12-27 21:03:35 +## [v0.0.3](https://github.com/sonr-io/core/releases/tag/v0.0.3) - 2022-12-27 21:03:35 -## [v0.0.2](https://github.com/sonrhq/core/releases/tag/v0.0.2) - 2022-12-23 07:23:20 +## [v0.0.2](https://github.com/sonr-io/core/releases/tag/v0.0.2) - 2022-12-23 07:23:20 -## [v0.0.1](https://github.com/sonrhq/core/releases/tag/v0.0.1) - 2022-12-13 19:22:04 +## [v0.0.1](https://github.com/sonr-io/core/releases/tag/v0.0.1) - 2022-12-13 19:22:04 **Full Changelog**: https://github.com/sonr-hq/sonr/commits/v0.0.1 diff --git a/Dockerfile b/Dockerfile index bf380fa62..6d0764ddc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,54 +2,6 @@ ARG GO_VERSION="1.19" ARG RUNNER_IMAGE="debian:bullseye-slim" -# ! ||--------------------------------------------------------------------------------|| -# ! || Sonrd Builder || -# ! ||--------------------------------------------------------------------------------|| -FROM golang:${GO_VERSION}-alpine as sonr-builder - -ARG GIT_VERSION -ARG GIT_COMMIT - -RUN apk add --no-cache \ - ca-certificates \ - build-base \ - linux-headers - - -# Download go dependencies -WORKDIR /root -COPY go.mod go.sum ./ -RUN --mount=type=cache,target=/root/.cache/go-build \ - --mount=type=cache,target=/root/go/pkg/mod \ - go mod download - -# Cosmwasm - Download correct libwasmvm version -RUN set -eux; \ - export ARCH=$(uname -m); \ - WASM_VERSION=$(go list -m all | grep github.com/CosmWasm/wasmvm | awk '{print $2}'); \ - if [ ! -z "${WASM_VERSION}" ]; then \ - wget -O /lib/libwasmvm_muslc.a https://github.com/CosmWasm/wasmvm/releases/download/${WASM_VERSION}/libwasmvm_muslc.${ARCH}.a; \ - fi; \ - go mod download; - -# Copy the remaining files -COPY . . -RUN --mount=type=cache,target=/root/.cache/go-build \ - --mount=type=cache,target=/root/go/pkg/mod \ - GOWORK=off go build \ - -mod=readonly \ - -tags "netgo,ledger,muslc" \ - -ldflags \ - "-X github.com/cosmos/cosmos-sdk/version.Name="sonr" \ - -X github.com/cosmos/cosmos-sdk/version.AppName="sonrd" \ - -X github.com/cosmos/cosmos-sdk/version.Version=${GIT_VERSION} \ - -X github.com/cosmos/cosmos-sdk/version.Commit=${GIT_COMMIT} \ - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc \ - -w -s -linkmode=external -extldflags '-Wl,-z,muldefs -static'" \ - -trimpath \ - -o /root/sonr/build/sonrd ./cmd/sonrd/main.go - - # ! ||-----------------------------------------------------------------------------|| # ! || Sonr Base Image || @@ -57,9 +9,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ FROM ${RUNNER_IMAGE} LABEL org.opencontainers.image.source https://github.com/sonr-io/sonr -LABEL org.opencontainers.image.description "Default node image for sonr" +LABEL org.opencontainers.image.description "Sonr Validator node container" # Copy sonrd binary and config -COPY --from=sonr-builder /root/sonr/build/sonrd /usr/local/bin/sonrd +COPY bin/sonrd /usr/local/bin/sonrd COPY scripts scripts # Expose ports diff --git a/Dockerfile.dev b/Dockerfile.dev index f4470d73a..2d581b2ee 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -52,7 +52,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ # ! ||----------------------------------------------------------------------------------|| FROM --platform=linux alpine -LABEL org.opencontainers.image.source https://github.com/sonrhq/core +LABEL org.opencontainers.image.source https://github.com/sonr-io/core LABEL org.opencontainers.image.description "Base sonr daemon image" # Copy sonrd binary and config COPY --from=sonr-builder /root/sonr/build/sonrd /usr/local/bin/sonrd diff --git a/Makefile b/Makefile index abf69cc95..9ad0a1995 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,25 @@ #!/usr/bin/make -f -VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//') +BRANCH := $(shell git rev-parse --abbrev-ref HEAD) COMMIT := $(shell git log -1 --format='%H') -PATH := $(PATH):/usr/local/go/bin + +ifeq (,$(VERSION)) + VERSION := $(shell git describe --tags) + # if VERSION is empty, then populate it with branch's name and raw commit hash + ifeq (,$(VERSION)) + VERSION := $(BRANCH)-$(COMMIT) + endif +endif + LEDGER_ENABLED ?= false +SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g') DOCKER := $(shell which docker) -E2E_UPGRADE_VERSION := "v17" -#SHELL := /bin/bash - -GO_VERSION := $(shell cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f 2) -GO_MODULE := $(shell cat go.mod | grep "module " | cut -d ' ' -f 2) -GO_MAJOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1) -GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) -protoVer=0.11.2 -protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) -protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) +DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf:1.0.0-rc8 +BUILDDIR ?= $(CURDIR)/build +HTTPS_GIT := https://github.com/sonr-io/sonr.git + +export GO111MODULE = on + # process build tags build_tags = netgo @@ -41,182 +46,115 @@ ifeq ($(LEDGER_ENABLED),true) endif endif -ifeq (cleveldb,$(findstring cleveldb,$(SONR_BUILD_OPTIONS))) - build_tags += gcc -else ifeq (rocksdb,$(findstring rocksdb,$(SONR_BUILD_OPTIONS))) - build_tags += gcc +ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS))) + build_tags += gcc cleveldb endif build_tags += $(BUILD_TAGS) build_tags := $(strip $(build_tags)) whitespace := -whitespace := $(whitespace) $(whitespace) +whitespace += $(whitespace) comma := , build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags)) # process linker flags - ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sonr \ -X github.com/cosmos/cosmos-sdk/version.AppName=sonrd \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" -ifeq (cleveldb,$(findstring cleveldb,$(SONR_BUILD_OPTIONS))) +ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS))) ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb -else ifeq (rocksdb,$(findstring rocksdb,$(SONR_BUILD_OPTIONS))) - ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb endif -ifeq (,$(findstring nostrip,$(SONR_BUILD_OPTIONS))) +ifeq ($(LINK_STATICALLY),true) + ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static" +endif +ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS))) ldflags += -w -s endif -ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static" ldflags += $(LDFLAGS) ldflags := $(strip $(ldflags)) BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)' # check for nostrip option -ifeq (,$(findstring nostrip,$(SONR_BUILD_OPTIONS))) +ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS))) BUILD_FLAGS += -trimpath endif -# Note that this skips certain tests that are not supported on WSL -# This is a workaround to enable quickly running full unit test suite locally -# on WSL without failures. The failures are stemming from trying to upload -# wasm code. An OS permissioning issue. -is_wsl := $(shell uname -a | grep -i Microsoft) -ifeq ($(is_wsl),) - # Not in WSL - SKIP_WASM_WSL_TESTS := "false" -else - # In WSL - SKIP_WASM_WSL_TESTS := "true" -endif -############################################################################### -### Build ### -############################################################################### all: install install: go.sum go install -mod=readonly $(BUILD_FLAGS) ./cmd/sonrd build: - rm -rf ./build - rm -rf ./dist - mkdir -p build - go build $(BUILD_FLAGS) -o ./build/sonrd ./cmd/sonrd/main.go - -build-linux: - GOOS=linux GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o ./build/sonrd-linux-amd64/sonrd ./cmd/sonrd/main.go - GOOS=linux GOARCH=arm64 go build -mod=readonly $(BUILD_FLAGS) -o ./build/sonrd-linux-arm64/sonrd ./cmd/sonrd/main.go - -do-checksum-linux: - cd build && sha256sum sonrd-linux-amd64/sonrd sonrd-linux-arm64/sonrd > sonr-checksum-linux + go build $(BUILD_FLAGS) -o bin/sonrd ./cmd/sonrd -build-linux-with-checksum: build-linux do-checksum-linux +docker-build-debug: + @DOCKER_BUILDKIT=1 docker build -t sonr:debug -f Dockerfile . -build-darwin: - go build -mod=readonly $(BUILD_FLAGS) -o ./build/sonrd-darwin-amd64/sonrd ./cmd/sonrd/main.go - go build -mod=readonly $(BUILD_FLAGS) -o ./build/sonrd-darwin-arm64/sonrd ./cmd/sonrd/main.go - -do-checksum-darwin: - cd build && sha256sum sonrd-darwin-amd64/sonrd sonrd-darwin-arm64/sonrd > sonr-checksum-darwin - -build-darwin-with-checksum: build-darwin do-checksum-darwin - -build-all-with-checksum: build build-linux-with-checksum build-darwin-with-checksum +lint: + @find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' -not -name '*.gw.go' | xargs go run mvdan.cc/gofumpt -w . + @find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' -not -name '*.gw.go' | xargs go run github.com/client9/misspell/cmd/misspell -w + @find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' -not -name '*.gw.go' | xargs go run golang.org/x/tools/cmd/goimports -w -local github.com/notional-labs/centauri +.PHONY: lint ############################################################################### -### Release ### +### Proto ### ############################################################################### -GORELEASER_IMAGE := ghcr.io/goreleaser/goreleaser-cross:v$(GO_VERSION) -COSMWASM_VERSION := $(shell go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') - -release: - docker run \ - --rm \ - -e GITHUB_TOKEN=$(GITHUB_TOKEN) \ - -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v `pwd`:/go/src/sonrd \ - -w /go/src/sonrd \ - $(GORELEASER_IMAGE) \ - release \ - --clean - -release-docker: - task release - -release-dry-run: - docker run \ - --rm \ - -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v `pwd`:/go/src/sonrd \ - -w /go/src/sonrd \ - $(GORELEASER_IMAGE) \ - release \ - --clean \ - --skip-publish - -release-snapshot: - docker run \ - --rm \ - -e COSMWASM_VERSION=$(COSMWASM_VERSION) \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v `pwd`:/go/src/sonrd \ - -w /go/src/sonrd \ - $(GORELEASER_IMAGE) \ - release \ - --clean \ - --snapshot \ - --skip-validate \ - --skip-publish +protoVer=0.11.6 +protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) +containerProtoGen=proto-gen-$(protoVer) +containerProtoFmt=proto-fmt-$(protoVer) -############################################################################### -### Linting ### -############################################################################### +proto-all: proto-format proto-gen -lint: - @echo "--> Running linter" - @go run github.com/golangci/golangci-lint/cmd/golangci-lint run --timeout=10m - @docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" +proto-gen: + @echo "Generating Protobuf files" + @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ + sh ./scripts/protocgen.sh; fi -format: - @go run github.com/golangci/golangci-lint/cmd/golangci-lint run ./... --fix - @go run mvdan.cc/gofumpt -l -w x/ app/ ante/ tests/ - @docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" --fix +proto-format: + @echo "Formatting Protobuf files" + @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ + find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi -mdlint: - @echo "--> Running markdown linter" - @docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" +proto-lint: + @$(DOCKER_BUF) lint --error-format=json -markdown: - @docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" --fix +proto-check-breaking: + @$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=main +.PHONY: proto-all proto-gen proto-format proto-lint proto-check-breaking +### Interchain test ### +############################################################################### +# Executes start chain tests via interchaintest +ictest-start-cosmos: + cd tests/interchaintest && go test -race -v -run TestStartComposable . -############################################################################### -### Protobuf ### -############################################################################### +ictest-validator: + cd tests/interchaintest && go test -race -v -run TestValidator . -proto-all: proto-format proto-lint proto-gen +# Executes start chain tests via interchaintest +ictest-start-polkadot: + cd tests/interchaintest && go test -timeout=25m -race -v -run TestPolkadotComposableChainStart . -proto-gen: - @echo "Generating Protobuf files" - @$(protoImage) sh ./scripts/protocgen.sh +# Executes IBC tests via interchaintest +ictest-ibc: + cd tests/interchaintest && go test -timeout=25m -race -v -run TestComposablePicassoIBCTransfer . -proto-swagger-gen: - @echo "Generating Protobuf Swagger" - @$(protoImage) sh ./scripts/protoc-swagger-gen.sh +# Executes Basic Upgrade Chain tests via interchaintest +ictest-upgrade: + cd tests/interchaintest && go test -timeout=25m -race -v -run TestComposableUpgrade . -proto-format: - @$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \; +# Executes all tests via interchaintest after compling a local image as juno:local +ictest-all: ictest-start-cosmos ictest-start-polkadot ictest-ibc -proto-lint: - @$(protoImage) buf lint --error-format=json +# Executes push wasm client tests via interchaintest +ictest-push-wasm: + cd tests/interchaintest && go test -race -v -run TestPushWasmClientCode . -proto-check-breaking: - @$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main +.PHONY: ictest-start-cosmos ictest-start-polkadot ictest-ibc ictest-push-wasm ictest-all diff --git a/Taskfile.yml b/Taskfile.yml index c82fac880..cdfeca98b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -3,8 +3,8 @@ dotenv: [".env", "{{.ENV}}/.env.", "{{.HOME}}/.env"] vars: CGO_ENABLED: 1 + REGISTRY: "ghcr.io/sonr-io" WASMVM_URL: https://github.com/CosmWasm/wasmvm/releases/download - COSMWASM_VERSION: v1.3.0 VERSION: sh: echo $(git describe --tags --abbrev=0) default: v0.0.0 @@ -14,8 +14,16 @@ vars: DATE: sh: date -u '+%m/%d/%y %I:%M:%S%p' default: "1970-01-01_00:00:00AM" - REGISTRY: "ghcr.io/sonr-io" - + COSMWASM_VERSION: + sh: go list -m github.com/CosmWasm/wasmvm | sed 's/.* //' + default: v1.3.0 + GO_VERSION: + sh: cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f 2 + default: 1.21 + GITHUB_TOKEN: + sh: echo $GITHUB_TOKEN + default: "" + GORELEASER_IMAGE: ghcr.io/goreleaser/goreleaser-cross:v{{.GO_VERSION}} tasks: # ---------------------------------------------------------------------------- # -- Run Tasks --------------------------------------------------------------- @@ -26,105 +34,26 @@ tasks: cmds: - task -l - deps: - desc: Pull Docker dependencies - cmds: - - docker compose pull - - dev: - desc: Serve the blockchain locally with verbose logging - cmds: - - go build -o ./bin/sonrd ./cmd/sonrd - - sh scripts/localnet.sh ./bin/sonrd - - # ---------------------------------------------------------------------------- - # -- Build Tasks ------------------------------------------------------------- - # ---------------------------------------------------------------------------- build: - desc: Build the binary - cmds: - - task: build-darwin-arm64 - - build-linux-amd64: - cmds: - # - wget {{.WASMVM_URL}}/v1.3.0/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.a - - go build -mod=readonly -trimpath -o bin/sonr-linux-amd64/sonrd ./cmd/sonrd -v - env: - CC: "x86_64-linux-gnu-gcc" - CGO_ENABLED: "1" - GOOS: "linux" - GOARCH: "amd64" - - build-linux-arm64: - cmds: - - wget {{.WASMVM_URL}}/v1.3.0/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a - - go build -mod=readonly -trimpath -o bin/sonr-linux-arm64/sonrd ./cmd/sonrd -v - env: - CC: "aarch64-linux-gnu-gcc" - CGO_ENABLED: "1" - GOOS: "linux" - GOARCH: "arm64" - - build-darwin-amd64: - cmds: - - wget "{{.WASMVM_URL}}/v1.3.0/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a" - - go build -mod=readonly -trimpath -o bin/sonr-darwin-amd64/sonrd ./cmd/sonrd/main.go - env: - CC: "o64-clang" - CGO_LDFLAGS: "-L/lib" - CGO_ENABLED: "1" - GOOS: "darwin" - GOARCH: "amd64" - - build-darwin-arm64: - cmds: - # - wget "{{.WASMVM_URL}}/v1.3.0/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a - - go build -mod=readonly -trimpath -o bin/sonrd ./cmd/sonrd/main.go - env: - CC: "oa64-clang" - CGO_ENABLED: "1" - GOOS: "darwin" - GOARCH: "arm64" - - # ------------------------------------------------------------------------------ - # -- Release Tasks ------------------------------------------------------------- - # ------------------------------------------------------------------------------ - tarball: - cmds: - - tar -czvf sonrd-{{.OS}}-{{.ARCH}}.tar.gz sonrd - - sha256: + desc: Build the binary for all platforms cmds: - - sha256sum sonrd-{{.OS}}-{{.ARCH}}.tar.gz > sha256sum.txt + - make build - setup: - cmds: - - go mod download - - release:github: - deps: - - setup - - build-linux-amd64 - - build-linux-arm64 - - build-darwin-amd64 - - build-darwin-arm64 - - tarball - - sha256 - - release:docker: + release-docker: desc: Build the binary for docker cmds: - - task: docker-release + - task: docker-build-push vars: IMAGE: sonrd - docker-release: + docker-build-push: silent: true internal: true desc: Build, tag and push the docker image cmds: - docker build -f ./Dockerfile . -t {{.IMAGE}} + - docker tag {{.IMAGE}} {{.IMAGE}}:latest - docker tag {{.IMAGE}} {{.REGISTRY}}/{{.IMAGE}}:latest - docker tag {{.IMAGE}} {{.REGISTRY}}/{{.IMAGE}}:{{.VERSION}} - docker tag {{.IMAGE}} {{.REGISTRY}}/{{.IMAGE}}:{{.COMMIT}} @@ -166,6 +95,24 @@ tasks: desc: Generate the protobuf files cmds: - | - make proto-gen + make proto-all git add . git commit -m "chore: update proto files" + + go-cross-build: + desc: Build the binary for all platforms + cmds: + - | + docker run \ + --rm \ + -e COSMWASM_VERSION={{.COSMWASM_VERSION}} \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v `pwd`:/go/src/sonrd \ + -w /go/src/sonrd \ + {{.GORELEASER_IMAGE}} \ + build \ + --clean \ + --skip=validate \ + --id={{.ID}} \ + requires: + vars: [ID] diff --git a/app/app.go b/app/app.go index a95b3f23d..239379ce8 100644 --- a/app/app.go +++ b/app/app.go @@ -2,16 +2,15 @@ package app import ( "encoding/json" - "fmt" "io" "os" "path/filepath" - "strings" // this line is used by starport scaffolding # stargate/app/moduleImport autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" + "github.com/CosmWasm/wasmd/x/wasm" dbm "github.com/cometbft/cometbft-db" abci "github.com/cometbft/cometbft/abci/types" "github.com/cometbft/cometbft/libs/log" @@ -113,23 +112,19 @@ import ( solomachine "github.com/cosmos/ibc-go/v7/modules/light-clients/06-solomachine" ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" + appparams "github.com/sonr-io/core/app/params" + "github.com/sonr-io/core/docs" + "github.com/sonr-io/core/internal/highway" + domainmodule "github.com/sonr-io/core/x/domain" + domainmodulekeeper "github.com/sonr-io/core/x/domain/keeper" + domainmoduletypes "github.com/sonr-io/core/x/domain/types" + identitymodule "github.com/sonr-io/core/x/identity" + identitymodulekeeper "github.com/sonr-io/core/x/identity/keeper" + identitymoduletypes "github.com/sonr-io/core/x/identity/types" + servicemodule "github.com/sonr-io/core/x/service" + servicemodulekeeper "github.com/sonr-io/core/x/service/keeper" + servicemoduletypes "github.com/sonr-io/core/x/service/types" "github.com/spf13/cast" - - "github.com/CosmWasm/wasmd/x/wasm" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - appparams "github.com/sonrhq/core/app/params" - "github.com/sonrhq/core/docs" - "github.com/sonrhq/core/internal/highway" - domainmodule "github.com/sonrhq/core/x/domain" - domainmodulekeeper "github.com/sonrhq/core/x/domain/keeper" - domainmoduletypes "github.com/sonrhq/core/x/domain/types" - identitymodule "github.com/sonrhq/core/x/identity" - identitymodulekeeper "github.com/sonrhq/core/x/identity/keeper" - identitymoduletypes "github.com/sonrhq/core/x/identity/types" - servicemodule "github.com/sonrhq/core/x/service" - servicemodulekeeper "github.com/sonrhq/core/x/service/keeper" - servicemoduletypes "github.com/sonrhq/core/x/service/types" ) const ( @@ -147,22 +142,6 @@ const ( EnableSpecificProposals = "" ) -// GetEnabledProposals parses the ProposalsEnabled / EnableSpecificProposals values to -// produce a list of enabled proposals to pass into wasmd app. -func GetEnabledProposals() []wasmtypes.ProposalType { - if EnableSpecificProposals == "" { - if ProposalsEnabled == "true" { - return wasmtypes.EnableAllProposals - } - return wasmtypes.DisableAllProposals - } - chunks := strings.Split(EnableSpecificProposals, ",") - proposals, err := wasmtypes.ConvertToProposals(chunks) - if err != nil { - panic(err) - } - return proposals -} // this line is used by starport scaffolding # stargate/wasm/app/enabledProposals @@ -231,7 +210,6 @@ var ( govtypes.ModuleName: {authtypes.Burner}, ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, identitymoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking}, - wasmtypes.ModuleName: {authtypes.Burner}, // this line is used by starport scaffolding # stargate/app/maccPerms } ) @@ -289,7 +267,6 @@ type App struct { FeeGrantKeeper feegrantkeeper.Keeper GroupKeeper groupkeeper.Keeper ConsensusParamsKeeper consensusparamkeeper.Keeper - WasmKeeper wasmkeeper.Keeper ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedICAHostKeeper capabilitykeeper.ScopedKeeper @@ -324,9 +301,7 @@ func New( homePath string, invCheckPeriod uint, encodingConfig appparams.EncodingConfig, - enabledProposals []wasmtypes.ProposalType, appOpts servertypes.AppOptions, - wasmOpts []wasmkeeper.Option, highwayCnfg *highway.Config, baseAppOptions ...func(*baseapp.BaseApp), ) *App { @@ -353,7 +328,7 @@ func New( crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, - wasmtypes.StoreKey, icahosttypes.StoreKey, +icahosttypes.StoreKey, capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, consensusparamtypes.StoreKey, identitymoduletypes.StoreKey, servicemoduletypes.StoreKey, @@ -398,7 +373,6 @@ func New( scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName) scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName) scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName) - scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName) // this line is used by starport scaffolding # stargate/app/scopedKeeper // add keepers @@ -617,41 +591,6 @@ func New( ) domainModule := domainmodule.NewAppModule(appCodec, app.DomainKeeper, app.AccountKeeper, app.BankKeeper) - wasmDir := filepath.Join(homePath, "wasm") - wasmConfig, err := wasm.ReadWasmConfig(appOpts) - if err != nil { - panic(fmt.Sprintf("error while reading wasm config: %s", err)) - } - - // The last arguments can contain custom message handlers, and custom query handlers, - // if we want to allow any custom callbacks - availableCapabilities := strings.Join(AllCapabilities(), ",") - app.WasmKeeper = wasmkeeper.NewKeeper( - appCodec, - keys[wasmtypes.StoreKey], - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - distrkeeper.NewQuerier(app.DistrKeeper), - app.IBCFeeKeeper, // ISC4 Wrapper: fee IBC middleware - app.IBCKeeper.ChannelKeeper, - &app.IBCKeeper.PortKeeper, - scopedWasmKeeper, - app.TransferKeeper, - app.MsgServiceRouter(), - app.GRPCQueryRouter(), - wasmDir, - wasmConfig, - availableCapabilities, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - wasmOpts..., - ) - - // The gov proposal types can be individually enabled - if len(enabledProposals) != 0 { - govRouter.AddRoute(wasmtypes.RouterKey, wasmkeeper.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) //nolint:staticcheck // we still need this despite the deprecation of the gov handler - } - // this line is used by starport scaffolding # stargate/app/keeperDefinition /**** IBC Routing ****/ diff --git a/app/encoding.go b/app/encoding.go index 15fedf79b..42e002899 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/std" "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/sonrhq/core/app/params" + "github.com/sonr-io/core/app/params" ) // makeEncodingConfig creates an EncodingConfig for an amino based test configuration. diff --git a/bob.yaml b/bob.yaml index bb7e57e96..65612cfb5 100644 --- a/bob.yaml +++ b/bob.yaml @@ -3,19 +3,33 @@ nixpkgs: https://github.com/NixOS/nixpkgs/archive/refs/tags/23.05.tar.gz # Declare tasks below the build keyword. build: - # build - is the default task execute when calling "bob build". + # build - is the default task execute when building go binary. build: + dependson: + - binary + - docker + + # generate - is the default task execute when executing code generation. + generate: + cmd: task generate + input: proto + + # binary - is the default task execute when building go binary. + binary: cmd: task build - rebuild: always + target: ./bin/sonrd - # docker - is the default task execute when calling "bob docker". + # docker - is the default task execute when building docker image. docker: - cmd: task release:docker - rebuild: always - + cmd: task release-docker + dependson: + - binary + target: + image: ghcr.io/sonr-io/sonrd:latest dependencies: - go-task - go_1_19 - git - wget - docker + - gcc diff --git a/cmd/sonrd/cmd/geninit.go b/cmd/sonrd/cmd/geninit.go index 08d704e3b..67c6835e8 100644 --- a/cmd/sonrd/cmd/geninit.go +++ b/cmd/sonrd/cmd/geninit.go @@ -20,7 +20,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/genutil" "github.com/cosmos/go-bip39" "github.com/pkg/errors" - "github.com/sonrhq/core/cmd/sonrd/config" + "github.com/sonr-io/core/cmd/sonrd/config" "github.com/spf13/cobra" ) diff --git a/cmd/sonrd/cmd/launch.go b/cmd/sonrd/cmd/launch.go index 3529595e5..45d15b76c 100644 --- a/cmd/sonrd/cmd/launch.go +++ b/cmd/sonrd/cmd/launch.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/genutil/types" - "github.com/sonrhq/core/cmd/sonrd/config" + "github.com/sonr-io/core/cmd/sonrd/config" "github.com/spf13/cobra" ) diff --git a/cmd/sonrd/cmd/root.go b/cmd/sonrd/cmd/root.go index 9bf69f0f9..a1063509e 100644 --- a/cmd/sonrd/cmd/root.go +++ b/cmd/sonrd/cmd/root.go @@ -10,7 +10,6 @@ import ( // this line is used by starport scaffolding # root/moduleImport "github.com/CosmWasm/wasmd/x/wasm" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" dbm "github.com/cometbft/cometbft-db" tmcfg "github.com/cometbft/cometbft/config" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -37,15 +36,15 @@ import ( "github.com/cosmos/cosmos-sdk/x/genutil" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - sonrdconfig "github.com/sonrhq/core/cmd/sonrd/config" - "github.com/sonrhq/core/internal/highway" + sonrdconfig "github.com/sonr-io/core/cmd/sonrd/config" + "github.com/sonr-io/core/internal/highway" "github.com/spf13/cast" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" - "github.com/sonrhq/core/app" - appparams "github.com/sonrhq/core/app/params" + "github.com/sonr-io/core/app" + appparams "github.com/sonr-io/core/app/params" ) var ( @@ -309,7 +308,6 @@ func (a appCreator) newApp( cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent)), ) - var emptyWasmOpts []wasm.Option return app.New( logger, db, @@ -319,9 +317,7 @@ func (a appCreator) newApp( cast.ToString(appOpts.Get(flags.FlagHome)), cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), a.encodingConfig, - app.GetEnabledProposals(), appOpts, - emptyWasmOpts, highway.NewConfig(highwayHost, highwayPort), baseapp.SetPruning(pruningOpts), baseapp.SetMinGasPrices(cast.ToString(appOpts.Get(server.FlagMinGasPrices))), @@ -354,7 +350,6 @@ func (a appCreator) appExport( return servertypes.ExportedApp{}, errors.New("application home not set") } - var emptyWasmOpts []wasmkeeper.Option app := app.New( logger, db, @@ -364,9 +359,7 @@ func (a appCreator) appExport( homePath, uint(1), a.encodingConfig, - app.GetEnabledProposals(), appOpts, - emptyWasmOpts, highway.DefaultConfig(), ) diff --git a/cmd/sonrd/config/defaults.go b/cmd/sonrd/config/defaults.go index b23d47df4..c58a7fa84 100644 --- a/cmd/sonrd/config/defaults.go +++ b/cmd/sonrd/config/defaults.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/spf13/viper" - "github.com/sonrhq/core/app" + "github.com/sonr-io/core/app" ) // Masthead is the masthead of the application. diff --git a/cmd/sonrd/main.go b/cmd/sonrd/main.go index 92e632536..a0398239b 100644 --- a/cmd/sonrd/main.go +++ b/cmd/sonrd/main.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/server" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/sonrhq/core/app" - "github.com/sonrhq/core/cmd/sonrd/cmd" + "github.com/sonr-io/core/app" + "github.com/sonr-io/core/cmd/sonrd/cmd" ) func main() { diff --git a/docker/deploy.sh b/docker/deploy.sh new file mode 100755 index 000000000..a9bf588e2 --- /dev/null +++ b/docker/deploy.sh @@ -0,0 +1 @@ +#!/bin/bash diff --git a/docker-compose.yml b/docker/docker-compose.yml similarity index 59% rename from docker-compose.yml rename to docker/docker-compose.yml index 0d38ffe38..4f0b3920f 100644 --- a/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,24 +1,6 @@ -# version: "3" - -# services: -# node: -# image: sonr-node -# init: true -# container_name: validator -# networks: -# - sonr-net -# ports: -# - 1317:1317 # rest -# - 26656:26656 # p2p -# - 26657:26657 # rpc -# - 9090:9090 # grpc -# - 8000:8080 # highway -# restart: always - - version: "3" networks: - sonr-net: + sonr-net: {} services: node: init: true diff --git a/docker/start.sh b/docker/start.sh new file mode 100755 index 000000000..a9bf588e2 --- /dev/null +++ b/docker/start.sh @@ -0,0 +1 @@ +#!/bin/bash diff --git a/docs/static/swagger/core/domain/query.swagger.json b/docs/static/swagger/core/domain/query.swagger.json new file mode 100644 index 000000000..e50d3f7e1 --- /dev/null +++ b/docs/static/swagger/core/domain/query.swagger.json @@ -0,0 +1,265 @@ +{ + "swagger": "2.0", + "info": { + "title": "core/domain/query.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/core/domain/params": { + "get": { + "summary": "Params queries the parameters of the module.\nIt returns the parameters of the module.", + "operationId": "Params", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.domain.QueryParamsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "Query" + ] + } + }, + "/core/domain/username": { + "get": { + "summary": "UsernameRecordAll queries all UsernameRecords items.\nIt returns all UsernameRecords items.", + "operationId": "UsernameRecordAll", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.domain.QueryAllUsernameRecordsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "pagination.key", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.", + "in": "query", + "required": false, + "type": "string", + "format": "byte" + }, + { + "name": "pagination.offset", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.limit", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.count_total", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "pagination.reverse", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/domain/username/{index}": { + "get": { + "summary": "UsernameRecord queries a list of UsernameRecords items by index.\nIt returns a list of UsernameRecords items.", + "operationId": "UsernameRecord", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.domain.QueryGetUsernameRecordsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "index", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + } + }, + "definitions": { + "core.domain.Params": { + "type": "object", + "description": "Params defines the parameters for the module." + }, + "core.domain.QueryAllUsernameRecordsResponse": { + "type": "object", + "properties": { + "usernameRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/core.domain.UsernameRecord" + } + }, + "pagination": { + "$ref": "#/definitions/cosmos.base.query.v1beta1.PageResponse" + } + }, + "description": "QueryAllUsernameRecordsResponse is the response type for the\nQuery/UsernameRecordAll RPC method. It contains all queried UsernameRecords\nand the pagination information." + }, + "core.domain.QueryGetUsernameRecordsResponse": { + "type": "object", + "properties": { + "usernameRecords": { + "$ref": "#/definitions/core.domain.UsernameRecord" + } + }, + "description": "QueryGetUsernameRecordsResponse is the response type for the\nQuery/UsernameRecord RPC method. It contains the queried UsernameRecords." + }, + "core.domain.QueryParamsResponse": { + "type": "object", + "properties": { + "params": { + "$ref": "#/definitions/core.domain.Params", + "description": "params holds all the parameters of this module." + } + }, + "description": "QueryParamsResponse is response type for the Query/Params RPC method.\nIt holds all the parameters of this module." + }, + "core.domain.UsernameRecord": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "address": { + "type": "string" + }, + "method": { + "type": "string" + } + } + }, + "cosmos.base.query.v1beta1.PageRequest": { + "type": "object", + "properties": { + "key": { + "type": "string", + "format": "byte", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." + }, + "offset": { + "type": "string", + "format": "uint64", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." + }, + "limit": { + "type": "string", + "format": "uint64", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." + }, + "count_total": { + "type": "boolean", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." + }, + "reverse": { + "type": "boolean", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43" + } + }, + "description": "message SomeRequest {\n Foo some_parameter = 1;\n PageRequest pagination = 2;\n }", + "title": "PageRequest is to be embedded in gRPC request messages for efficient\npagination. Ex:" + }, + "cosmos.base.query.v1beta1.PageResponse": { + "type": "object", + "properties": { + "next_key": { + "type": "string", + "format": "byte", + "description": "next_key is the key to be passed to PageRequest.key to\nquery the next page most efficiently. It will be empty if\nthere are no more results." + }, + "total": { + "type": "string", + "format": "uint64", + "title": "total is total number of results available if PageRequest.count_total\nwas set, its value is undefined otherwise" + } + }, + "description": "PageResponse is to be embedded in gRPC response messages where the\ncorresponding request message has used PageRequest.\n\n message SomeResponse {\n repeated Bar results = 1;\n PageResponse page = 2;\n }" + }, + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + } + } +} diff --git a/docs/static/swagger/core/identity/query.swagger.json b/docs/static/swagger/core/identity/query.swagger.json new file mode 100644 index 000000000..e79d9e9d6 --- /dev/null +++ b/docs/static/swagger/core/identity/query.swagger.json @@ -0,0 +1,790 @@ +{ + "swagger": "2.0", + "info": { + "title": "core/identity/query.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/core/id": { + "get": { + "summary": "DIDDocumentAll queries all DIDDocument items.", + "operationId": "DIDDocumentAll", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryAllDIDDocumentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "pagination.key", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.", + "in": "query", + "required": false, + "type": "string", + "format": "byte" + }, + { + "name": "pagination.offset", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.limit", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.count_total", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "pagination.reverse", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/id/alias/{alias}": { + "get": { + "summary": "DidByAlsoKnownAs returns DIDDocument based on an alias *only Sonr\nIdentities.", + "operationId": "DidByAlsoKnownAs", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryDidByAlsoKnownAsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "alias", + "description": "aka_aliasid is the unique identifier of the DIDDocument - it appears like\n(\"example.snr\")", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/id/alias/{alias}/check": { + "get": { + "summary": "AliasAvailable checks if a given alias is available to register *only Sonr\nIdentities.", + "operationId": "AliasAvailable", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryAliasAvailableResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "alias", + "description": "alias is the unique identifier of the DIDDocument - it appears like\n(\"example.snr\")", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/id/controllers": { + "get": { + "summary": "ControllerAccountAll queries all ControllerAccount items.", + "operationId": "ControllerAccountAll", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryAllControllerAccountResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "pagination.key", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.", + "in": "query", + "required": false, + "type": "string", + "format": "byte" + }, + { + "name": "pagination.offset", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.limit", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.count_total", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "pagination.reverse", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/id/controllers/{address}": { + "get": { + "summary": "ControllerAccount queries a list of ControllerAccount items.", + "operationId": "ControllerAccount", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryGetControllerAccountResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "address", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/id/owner/{owner}": { + "get": { + "summary": "DidByOwner returns DIDDocument based on an owner.", + "operationId": "DidByOwner", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryDidByOwnerResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/id/{did}": { + "get": { + "summary": "DIDDocument queries a list of DIDDocument items.", + "operationId": "DIDDocument", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryGetDIDDocumentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "did", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/params/identity": { + "get": { + "summary": "Params queries the parameters of the module.", + "operationId": "Params", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryParamsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "Query" + ] + } + }, + "/sonr-io/core/identity/escrow_account": { + "get": { + "summary": "EscrowAccountAll queries all EscrowAccount items.", + "operationId": "EscrowAccountAll", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryAllEscrowAccountResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "pagination.key", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.", + "in": "query", + "required": false, + "type": "string", + "format": "byte" + }, + { + "name": "pagination.offset", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.limit", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.count_total", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "pagination.reverse", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Query" + ] + } + }, + "/sonr-io/core/identity/escrow_account/{address}": { + "get": { + "summary": "EscrowAccount queries a list of EscrowAccount items.", + "operationId": "EscrowAccount", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.identity.QueryGetEscrowAccountResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "address", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + } + }, + "definitions": { + "core.identity.ControllerAccount": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "publicKey": { + "type": "string" + }, + "authenticators": { + "type": "array", + "items": { + "type": "string" + } + }, + "wallets": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "core.identity.DIDDocument": { + "type": "object", + "properties": { + "context": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + }, + "controller": { + "type": "array", + "items": { + "type": "string" + } + }, + "authentication": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.VerificationRelationship" + } + }, + "assertion_method": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.VerificationRelationship" + } + }, + "capability_invocation": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.VerificationRelationship" + } + }, + "capability_delegation": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.VerificationRelationship" + } + }, + "key_agreement": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.VerificationRelationship" + } + }, + "also_known_as": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "DIDDocument represents a Decentralized Identifier (DID) document that\ncontains information about the DID subject, such as public keys, verification\nmethods, and services." + }, + "core.identity.EscrowAccount": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uint64" + }, + "address": { + "type": "string" + }, + "publicKey": { + "type": "string" + }, + "lockupUsdBalance": { + "type": "string" + }, + "creator": { + "type": "string" + } + } + }, + "core.identity.Params": { + "type": "object", + "properties": { + "account_did_method_name": { + "type": "string" + }, + "account_did_method_context": { + "type": "string" + }, + "acccount_discovery_reward": { + "type": "string", + "format": "int64" + }, + "did_base_context": { + "type": "string" + }, + "maximum_identity_aliases": { + "type": "integer", + "format": "int32" + }, + "supported_did_methods": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "Params defines the parameters for the module." + }, + "core.identity.QueryAliasAvailableResponse": { + "type": "object", + "properties": { + "available": { + "type": "boolean" + }, + "existing_document": { + "$ref": "#/definitions/core.identity.DIDDocument" + } + }, + "description": "QueryAliasAvailableResponse is the response type for the Query/AliasAvailable\nRPC method." + }, + "core.identity.QueryAllControllerAccountResponse": { + "type": "object", + "properties": { + "controllerAccount": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.ControllerAccount" + } + }, + "pagination": { + "$ref": "#/definitions/cosmos.base.query.v1beta1.PageResponse" + } + }, + "description": "QueryAllControllerAccountResponse is the response type for the\nQuery/ControllerAccountAll RPC method." + }, + "core.identity.QueryAllDIDDocumentResponse": { + "type": "object", + "properties": { + "dIDDocument": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.DIDDocument" + } + }, + "pagination": { + "$ref": "#/definitions/cosmos.base.query.v1beta1.PageResponse" + } + }, + "description": "QueryAllDIDDocumentResponse is the response type for the Query/DIDDocumentAll\nRPC method." + }, + "core.identity.QueryAllEscrowAccountResponse": { + "type": "object", + "properties": { + "escrowAccount": { + "type": "array", + "items": { + "$ref": "#/definitions/core.identity.EscrowAccount" + } + }, + "pagination": { + "$ref": "#/definitions/cosmos.base.query.v1beta1.PageResponse" + } + }, + "description": "QueryAllEscrowAccountResponse is the response type for the\nQuery/EscrowAccountAll RPC method." + }, + "core.identity.QueryDidByAlsoKnownAsResponse": { + "type": "object", + "properties": { + "didDocument": { + "$ref": "#/definitions/core.identity.DIDDocument", + "title": "A DIDDocument is a JSON-LD object that contains a set of public keys" + } + }, + "description": "QueryDidByAlsoKnownAsResponse is the response type for the\nQuery/DidByAlsoKnownAs RPC method." + }, + "core.identity.QueryDidByOwnerResponse": { + "type": "object", + "properties": { + "didDocument": { + "$ref": "#/definitions/core.identity.DIDDocument" + } + }, + "description": "QueryDidByOwnerResponse is the response type for the Query/DidByOwner RPC\nmethod." + }, + "core.identity.QueryGetControllerAccountResponse": { + "type": "object", + "properties": { + "controllerAccount": { + "$ref": "#/definitions/core.identity.ControllerAccount" + } + }, + "description": "QueryGetControllerAccountResponse is the response type for the\nQuery/ControllerAccount RPC method." + }, + "core.identity.QueryGetDIDDocumentResponse": { + "type": "object", + "properties": { + "dIDDocument": { + "$ref": "#/definitions/core.identity.DIDDocument" + } + }, + "description": "QueryGetDIDDocumentResponse is the response type for the Query/DIDDocument\nRPC method." + }, + "core.identity.QueryGetEscrowAccountResponse": { + "type": "object", + "properties": { + "escrowAccount": { + "$ref": "#/definitions/core.identity.EscrowAccount" + } + }, + "description": "QueryGetEscrowAccountResponse is the response type for the\nQuery/EscrowAccount RPC method." + }, + "core.identity.QueryParamsResponse": { + "type": "object", + "properties": { + "params": { + "$ref": "#/definitions/core.identity.Params", + "description": "params holds all the parameters of this module." + } + }, + "description": "QueryParamsResponse is response type for the Query/Params RPC method." + }, + "core.identity.VerificationMethod": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "controller": { + "type": "string" + }, + "public_key_jwk": { + "type": "string" + }, + "public_key_multibase": { + "type": "string" + }, + "blockchain_account_id": { + "type": "string" + }, + "attestation_type": { + "type": "string" + }, + "transports": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "VerificationMethod represents a verification method that can be used to\nauthenticate the DID subject or perform other cryptographic operations." + }, + "core.identity.VerificationRelationship": { + "type": "object", + "properties": { + "verification_method": { + "$ref": "#/definitions/core.identity.VerificationMethod" + }, + "reference": { + "type": "string" + }, + "type": { + "type": "string" + }, + "owner": { + "type": "string" + } + }, + "description": "VerificationRelationship represents a relationship between a verification\nmethod and a specific verification purpose (e.g., authentication, assertion,\netc.)." + }, + "cosmos.base.query.v1beta1.PageRequest": { + "type": "object", + "properties": { + "key": { + "type": "string", + "format": "byte", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." + }, + "offset": { + "type": "string", + "format": "uint64", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." + }, + "limit": { + "type": "string", + "format": "uint64", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." + }, + "count_total": { + "type": "boolean", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." + }, + "reverse": { + "type": "boolean", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43" + } + }, + "description": "message SomeRequest {\n Foo some_parameter = 1;\n PageRequest pagination = 2;\n }", + "title": "PageRequest is to be embedded in gRPC request messages for efficient\npagination. Ex:" + }, + "cosmos.base.query.v1beta1.PageResponse": { + "type": "object", + "properties": { + "next_key": { + "type": "string", + "format": "byte", + "description": "next_key is the key to be passed to PageRequest.key to\nquery the next page most efficiently. It will be empty if\nthere are no more results." + }, + "total": { + "type": "string", + "format": "uint64", + "title": "total is total number of results available if PageRequest.count_total\nwas set, its value is undefined otherwise" + } + }, + "description": "PageResponse is to be embedded in gRPC response messages where the\ncorresponding request message has used PageRequest.\n\n message SomeResponse {\n repeated Bar results = 1;\n PageResponse page = 2;\n }" + }, + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + } + } +} diff --git a/docs/static/swagger/core/service/query.swagger.json b/docs/static/swagger/core/service/query.swagger.json new file mode 100644 index 000000000..511312158 --- /dev/null +++ b/docs/static/swagger/core/service/query.swagger.json @@ -0,0 +1,274 @@ +{ + "swagger": "2.0", + "info": { + "title": "core/service/query.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/core/params/service": { + "get": { + "summary": "Params queries the parameters of the module.", + "operationId": "Params", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.service.QueryParamsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "Query" + ] + } + }, + "/core/service": { + "get": { + "summary": "ServiceRecordAll queries all ServiceRecord items.", + "operationId": "ServiceRecordAll", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.service.QueryAllServiceRecordResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "pagination.key", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.", + "in": "query", + "required": false, + "type": "string", + "format": "byte" + }, + { + "name": "pagination.offset", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.limit", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "pagination.count_total", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "pagination.reverse", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "Query" + ] + } + }, + "/core/service/{origin}": { + "get": { + "summary": "ServiceRecord queries a list of ServiceRecord items.", + "operationId": "ServiceRecord", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/core.service.QueryGetServiceRecordResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "origin", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Query" + ] + } + } + }, + "definitions": { + "core.service.Params": { + "type": "object", + "description": "Params defines the parameters for the module." + }, + "core.service.QueryAllServiceRecordResponse": { + "type": "object", + "properties": { + "ServiceRecord": { + "type": "array", + "items": { + "$ref": "#/definitions/core.service.ServiceRecord" + } + }, + "pagination": { + "$ref": "#/definitions/cosmos.base.query.v1beta1.PageResponse" + } + }, + "description": "QueryAllServiceRecordResponse is the response type for the\nQuery/ServiceRecordAll RPC method." + }, + "core.service.QueryGetServiceRecordResponse": { + "type": "object", + "properties": { + "ServiceRecord": { + "$ref": "#/definitions/core.service.ServiceRecord" + } + }, + "description": "QueryGetServiceRecordResponse is the response type for the\nQuery/ServiceRecord RPC method." + }, + "core.service.QueryParamsResponse": { + "type": "object", + "properties": { + "params": { + "$ref": "#/definitions/core.service.Params", + "description": "params holds all the parameters of this module." + } + }, + "description": "QueryParamsResponse is response type for the Query/Params RPC method." + }, + "core.service.ServiceRecord": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "controller": { + "type": "string" + }, + "origins": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "cosmos.base.query.v1beta1.PageRequest": { + "type": "object", + "properties": { + "key": { + "type": "string", + "format": "byte", + "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." + }, + "offset": { + "type": "string", + "format": "uint64", + "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." + }, + "limit": { + "type": "string", + "format": "uint64", + "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." + }, + "count_total": { + "type": "boolean", + "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." + }, + "reverse": { + "type": "boolean", + "description": "reverse is set to true if results are to be returned in the descending order.\n\nSince: cosmos-sdk 0.43" + } + }, + "description": "message SomeRequest {\n Foo some_parameter = 1;\n PageRequest pagination = 2;\n }", + "title": "PageRequest is to be embedded in gRPC request messages for efficient\npagination. Ex:" + }, + "cosmos.base.query.v1beta1.PageResponse": { + "type": "object", + "properties": { + "next_key": { + "type": "string", + "format": "byte", + "description": "next_key is the key to be passed to PageRequest.key to\nquery the next page most efficiently. It will be empty if\nthere are no more results." + }, + "total": { + "type": "string", + "format": "uint64", + "title": "total is total number of results available if PageRequest.count_total\nwas set, its value is undefined otherwise" + } + }, + "description": "PageResponse is to be embedded in gRPC response messages where the\ncorresponding request message has used PageRequest.\n\n message SomeResponse {\n repeated Bar results = 1;\n PageResponse page = 2;\n }" + }, + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + } + } +} diff --git a/docs/static/swagger/highway/authentication/v1/service.swagger.json b/docs/static/swagger/highway/authentication/v1/service.swagger.json new file mode 100644 index 000000000..358eff692 --- /dev/null +++ b/docs/static/swagger/highway/authentication/v1/service.swagger.json @@ -0,0 +1,370 @@ +{ + "swagger": "2.0", + "info": { + "title": "highway/authentication/v1/service.proto", + "description": "Package highway.authentication.v1 provides authentication services.", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/highway/auth/current": { + "get": { + "summary": "CurrentUser retrieves the currently authenticated user.", + "operationId": "CurrentUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.authentication.v1.CurrentUserResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "AuthenticationService" + ] + } + }, + "/highway/auth/jwt/refresh/{jwt}": { + "post": { + "summary": "RefreshToken refreshes a user's authentication token.", + "operationId": "RefreshToken", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.authentication.v1.RefreshTokenResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "jwt", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AuthenticationService" + ] + } + }, + "/highway/auth/jwt/verify/{jwt}": { + "post": { + "summary": "VerifyToken verifies a user's authentication token.", + "operationId": "VerifyToken", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.authentication.v1.VerifyTokenResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "jwt", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AuthenticationService" + ] + } + }, + "/highway/auth/login/{origin}": { + "post": { + "summary": "Login authenticates a user.", + "operationId": "Login", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.authentication.v1.LoginResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "origin", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AuthenticationService" + ] + } + }, + "/highway/auth/params/{origin}": { + "get": { + "summary": "Params retrieves authentication parameters.", + "operationId": "Params", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.authentication.v1.ParamsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "origin", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "existing", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "alias", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AuthenticationService" + ] + } + }, + "/highway/auth/register/{origin}": { + "post": { + "summary": "Register registers a new user.", + "operationId": "Register", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.authentication.v1.RegisterResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "origin", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AuthenticationService" + ] + } + } + }, + "definitions": { + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + }, + "highway.authentication.v1.CurrentUserResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "address": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "origin": { + "type": "string" + } + }, + "description": "CurrentUserResponse is the response from the CurrentUser method." + }, + "highway.authentication.v1.LoginResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "jwt": { + "type": "string" + }, + "address": { + "type": "string" + }, + "origin": { + "type": "string" + } + }, + "description": "LoginResponse is the response from the Login method." + }, + "highway.authentication.v1.ParamsResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "existing": { + "type": "boolean" + }, + "origin": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "address": { + "type": "string" + }, + "challenge": { + "type": "string" + }, + "attestation_options": { + "type": "string" + }, + "assertion_options": { + "type": "string" + } + }, + "description": "ParamsResponse is the response from the Params method." + }, + "highway.authentication.v1.RefreshTokenResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "new_jwt": { + "type": "string" + } + }, + "description": "RefreshTokenResponse is the response from the RefreshToken method." + }, + "highway.authentication.v1.RegisterResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "tx_hash": { + "type": "string" + }, + "address": { + "type": "string" + }, + "jwt": { + "type": "string" + }, + "origin": { + "type": "string" + } + }, + "description": "RegisterResponse is the response from the Register method." + }, + "highway.authentication.v1.VerifyTokenResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "is_valid": { + "type": "boolean" + } + }, + "description": "VerifyTokenResponse is the response from the VerifyToken method." + } + } +} diff --git a/docs/static/swagger/highway/database/v1/service.swagger.json b/docs/static/swagger/highway/database/v1/service.swagger.json new file mode 100644 index 000000000..b03b7cefd --- /dev/null +++ b/docs/static/swagger/highway/database/v1/service.swagger.json @@ -0,0 +1,89 @@ +{ + "swagger": "2.0", + "info": { + "title": "highway/database/v1/service.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/health": { + "get": { + "operationId": "Health", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.database.v1.HealthResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "DatabaseService" + ] + } + } + }, + "definitions": { + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + }, + "highway.database.v1.HealthResponse": { + "type": "object", + "properties": { + "ok": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "details": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } +} diff --git a/docs/static/swagger/highway/storage/v1/service.swagger.json b/docs/static/swagger/highway/storage/v1/service.swagger.json new file mode 100644 index 000000000..e769420d0 --- /dev/null +++ b/docs/static/swagger/highway/storage/v1/service.swagger.json @@ -0,0 +1,136 @@ +{ + "swagger": "2.0", + "info": { + "title": "highway/storage/v1/service.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/cid/{cid}": { + "get": { + "summary": "GetCID retrieves data associated with a given CID.", + "operationId": "GetCID", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.storage.v1.GetCIDResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "cid", + "description": "cid is the content identifier of the data to retrieve.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "StorageService" + ] + }, + "post": { + "summary": "PutData stores data and associates it with a given CID.", + "operationId": "PutData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.storage.v1.PutDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "parameters": [ + { + "name": "cid", + "description": "cid is the content identifier to associate with the data.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "StorageService" + ] + } + } + }, + "definitions": { + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + }, + "highway.storage.v1.GetCIDResponse": { + "type": "object", + "properties": { + "cid": { + "type": "string", + "description": "cid is the content identifier of the retrieved data." + }, + "data": { + "type": "string", + "description": "data is the retrieved data." + } + }, + "description": "GetCIDResponse is the response type for the GetCID method." + }, + "highway.storage.v1.PutDataResponse": { + "type": "object", + "properties": { + "cid": { + "type": "string", + "description": "cid is the content identifier associated with the stored data." + } + }, + "description": "PutDataResponse is the response type for the PutData method." + } + } +} diff --git a/docs/static/swagger/highway/wallet/v1/service.swagger.json b/docs/static/swagger/highway/wallet/v1/service.swagger.json new file mode 100644 index 000000000..45afca5f5 --- /dev/null +++ b/docs/static/swagger/highway/wallet/v1/service.swagger.json @@ -0,0 +1,312 @@ +{ + "swagger": "2.0", + "info": { + "title": "highway/wallet/v1/service.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/highway/wallet/accounts/create": { + "post": { + "summary": "CreateAccount creates a new account.", + "operationId": "CreateAccount", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.wallet.v1.CreateAccountResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "WalletService" + ] + } + }, + "/highway/wallet/accounts/get": { + "post": { + "summary": "GetAccount retrieves an account by its address.", + "operationId": "GetAccount", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.wallet.v1.GetAccountResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "WalletService" + ] + } + }, + "/highway/wallet/accounts/list": { + "post": { + "summary": "ListAccounts lists all accounts.", + "operationId": "ListAccounts", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.wallet.v1.ListAccountsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "WalletService" + ] + } + }, + "/highway/wallet/accounts/sign": { + "post": { + "summary": "SignMessage signs a message with the private key of an account.", + "operationId": "SignMessage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.wallet.v1.SignMessageResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "WalletService" + ] + } + }, + "/highway/wallet/accounts/verify": { + "post": { + "summary": "VerifySignature verifies a signature with the public key of an account.", + "operationId": "VerifySignature", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.wallet.v1.VerifySignatureResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "WalletService" + ] + } + }, + "/highway/wallet/export": { + "post": { + "summary": "ExportWallet exports a wallet.", + "operationId": "ExportWallet", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/highway.wallet.v1.ExportWalletResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/grpc.gateway.runtime.Error" + } + } + }, + "tags": [ + "WalletService" + ] + } + } + }, + "definitions": { + "core.crypto.CoinType": { + "type": "string", + "enum": [ + "CoinType_BITCOIN", + "CoinType_TESTNET", + "CoinType_LITECOIN", + "CoinType_DOGE", + "CoinType_ETHEREUM", + "CoinType_SONR", + "CoinType_COSMOS", + "CoinType_FILECOIN", + "CoinType_HNS", + "CoinType_SOLANA", + "CoinType_XRP" + ], + "default": "CoinType_BITCOIN", + "description": "CoinType is the BIP-0044 coin type for each supported coin.\n\n - CoinType_BITCOIN: Bitcoins coin type is 0\n - CoinType_TESTNET: Testnet coin type is 1\n - CoinType_LITECOIN: Litecoin coin type is 2\n - CoinType_DOGE: Dogecoin coin type is 3\n - CoinType_ETHEREUM: Ethereum coin type is 60\n - CoinType_SONR: Sonr coin type is 703\n - CoinType_COSMOS: Cosmos coin type is 118\n - CoinType_FILECOIN: Filecoin coin type is 461\n - CoinType_HNS: Handshake coin type is 5353\n - CoinType_SOLANA: Solana coin type is 501\n - CoinType_XRP: Ripple coin type is 144" + }, + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "grpc.gateway.runtime.Error": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + } + } + } + }, + "highway.wallet.v1.CreateAccountResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "address": { + "type": "string" + }, + "coin_type": { + "$ref": "#/definitions/core.crypto.CoinType" + }, + "owner": { + "type": "string" + } + }, + "description": "CreateAccountResponse is the response message for creating an account." + }, + "highway.wallet.v1.ExportWalletResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "encrypted_wallet_buffer": { + "type": "string" + } + }, + "description": "ExportWalletResponse is the response message for exporting a wallet." + }, + "highway.wallet.v1.GetAccountResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "address": { + "type": "string" + }, + "coin_type": { + "$ref": "#/definitions/core.crypto.CoinType" + }, + "owner": { + "type": "string" + } + }, + "description": "GetAccountResponse is the response message for getting an account." + }, + "highway.wallet.v1.ListAccountsResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "accounts": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "ListAccountsResponse is the response message for listing accounts." + }, + "highway.wallet.v1.SignMessageResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "signature": { + "type": "string", + "format": "byte" + } + }, + "description": "SignMessageResponse is the response message for signing a message." + }, + "highway.wallet.v1.VerifySignatureResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "message_verified": { + "type": "boolean" + } + }, + "description": "VerifySignatureResponse is the response message for verifying a signature." + } + } +} diff --git a/go.mod b/go.mod index cdc316269..49990886e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/sonrhq/core +module github.com/sonr-io/core -go 1.19 +go 1.21 require ( cosmossdk.io/api v0.3.1 @@ -9,7 +9,7 @@ require ( github.com/CosmWasm/wasmvm v1.3.0 // indirect github.com/cometbft/cometbft v0.37.2 github.com/cometbft/cometbft-db v0.8.0 - github.com/cosmos/cosmos-sdk v0.47.4 + github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/go-bip39 v1.0.0 github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/ibc-go/v7 v7.2.0 @@ -35,14 +35,19 @@ require ( github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.8.4 github.com/yoseplee/vrf v0.0.0-20210814110709-d1caf509310b - golang.org/x/crypto v0.14.0 + golang.org/x/crypto v0.11.0 google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e google.golang.org/grpc v1.57.0 gopkg.in/yaml.v2 v2.4.0 lukechampine.com/blake3 v1.2.1 ) -require google.golang.org/protobuf v1.31.0 +require ( + github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401 + github.com/cayleygraph/cayley v0.7.7 + github.com/cayleygraph/quad v1.1.0 + google.golang.org/protobuf v1.31.0 +) require ( cloud.google.com/go v0.110.4 // indirect @@ -51,10 +56,10 @@ require ( cloud.google.com/go/iam v1.1.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect cosmossdk.io/core v0.5.1 // indirect - cosmossdk.io/depinject v1.0.0-alpha.3 // indirect + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect cosmossdk.io/errors v1.0.0 // indirect - cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect - cosmossdk.io/math v1.0.1 // indirect + cosmossdk.io/log v1.2.1 // indirect + cosmossdk.io/math v1.1.2 // indirect cosmossdk.io/tools/rosetta v0.2.1 // indirect filippo.io/edwards25519 v1.0.0 // indirect git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9 // indirect @@ -69,7 +74,6 @@ require ( github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect github.com/bits-and-blooms/bitset v1.7.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect - github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect github.com/bwesterb/go-ristretto v1.2.0 // indirect github.com/bytedance/sonic v1.9.2 // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect @@ -78,10 +82,13 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect github.com/chzyer/readline v1.5.1 // indirect github.com/cockroachdb/apd/v2 v2.0.2 // indirect + github.com/cockroachdb/errors v1.10.0 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/redact v1.1.5 // indirect github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect github.com/confio/ics23/go v0.9.0 // indirect github.com/consensys/bavard v0.1.13 // indirect - github.com/consensys/gnark-crypto v0.12.0 // indirect + github.com/consensys/gnark-crypto v0.10.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect @@ -105,6 +112,7 @@ require ( github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/fxamacker/cbor/v2 v2.4.0 // indirect github.com/gabriel-vasile/mimetype v1.4.2 // indirect + github.com/getsentry/sentry-go v0.23.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-kit/kit v0.12.0 // indirect @@ -116,6 +124,10 @@ require ( github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/validator/v10 v10.14.1 // indirect github.com/go-webauthn/x v0.1.4 // indirect + github.com/gobuffalo/envy v1.7.1 // indirect + github.com/gobuffalo/logger v1.0.1 // indirect + github.com/gobuffalo/packd v0.3.0 // indirect + github.com/gobuffalo/packr/v2 v2.7.1 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect @@ -154,9 +166,12 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect + github.com/joho/godotenv v1.3.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.16.7 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/leodido/go-urn v1.2.4 // indirect github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect @@ -188,8 +203,9 @@ require ( github.com/prometheus/procfs v0.10.1 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rs/cors v1.8.3 // indirect - github.com/rs/zerolog v1.29.1 // indirect + github.com/rs/zerolog v1.30.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/afero v1.9.5 // indirect @@ -215,13 +231,14 @@ require ( go.opentelemetry.io/otel/trace v1.13.0 // indirect go.opentelemetry.io/proto/otlp v0.19.0 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect - golang.org/x/net v0.17.0 // indirect + golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect + golang.org/x/mod v0.11.0 // indirect + golang.org/x/net v0.12.0 // indirect golang.org/x/oauth2 v0.10.0 // indirect golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.13.0 // indirect - golang.org/x/term v0.13.0 // indirect - golang.org/x/text v0.13.0 // indirect + golang.org/x/sys v0.11.0 // indirect + golang.org/x/term v0.10.0 // indirect + golang.org/x/text v0.12.0 // indirect golang.org/x/tools v0.9.3 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.126.0 // indirect diff --git a/go.sum b/go.sum index 83ad16bc0..dbf2279d6 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,6 @@ 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.37.4/go.mod h1:NHPJ89PdicEuT9hdPXMROBD91xc5uRDxsMtSB16k7hw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 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= @@ -191,14 +192,14 @@ cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE= cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw= cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI= cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= -cosmossdk.io/depinject v1.0.0-alpha.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= -cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= -cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca h1:msenprh2BLLRwNT7zN56TbBHOGk/7ARQckXHxXyvjoQ= -cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca/go.mod h1:PkIAKXZvaxrTRc++z53XMRvFk8AcGGWYHcMIPzVYX9c= -cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= -cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= +cosmossdk.io/log v1.2.1 h1:Xc1GgTCicniwmMiKwDxUjO4eLhPxoVdI9vtMW8Ti/uk= +cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/math v1.1.2 h1:ORZetZCTyWkI5GlZ6CZS28fMHi83ZYf+A2vVnHNzZBM= +cosmossdk.io/math v1.1.2/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff h1:P1ialzTepD1oxdNPYc5N8Eggq3RdejZq3cJs8YYMs9Y= cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff/go.mod h1:AKzx6Mb544LjJ9RHmGFHjY9rEOLiUAi8I0F727TR0dY= cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw= @@ -215,7 +216,10 @@ github.com/99designs/gqlgen v0.17.24 h1:pcd/HFIoSdRvyADYQG2dHvQN2KZqX/nXzlVm6TMM github.com/99designs/gqlgen v0.17.24/go.mod h1:BMhYIhe4bp7OlCo5I2PnowSK/Wimpv/YlxfNkqZGwLo= github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= +github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -227,8 +231,11 @@ github.com/CosmWasm/wasmvm v1.3.0 h1:x12X4bKlUPS7TT9QQP45+fJo2sp30GEbiSSgb9jsec8 github.com/CosmWasm/wasmvm v1.3.0/go.mod h1:vW/E3h8j9xBQs9bCoijDuawKo9kCtxOaS8N8J7KFtkc= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Microsoft/go-winio v0.4.12/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= @@ -236,10 +243,11 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMx github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= -github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= 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= @@ -264,6 +272,7 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX github.com/aws/aws-sdk-go v1.44.295 h1:SGjU1+MqttXfRiWHD6WU0DRhaanJgAFY+xIhEaugV8Y= github.com/aws/aws-sdk-go v1.44.295/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/badgerodon/peg v0.0.0-20130729175151-9e5f7f4d07ca/go.mod h1:TWe0N2hv5qvpLHT+K16gYcGBllld4h65dQ/5CNuirmk= 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= @@ -275,19 +284,37 @@ github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2 github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.7.0 h1:YjAGVd3XmtK9ktAbX8Zg2g2PwLIMjGREZJHlV4j7NEo= github.com/bits-and-blooms/bitset v1.7.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= +github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401 h1:0tjUthKCaF8zwF9Qg7lfnep0xdo4n8WiFUfQPaMHX6g= +github.com/btcsuite/btcd v0.21.0-beta.0.20201114000516-e9c7a5ac6401/go.mod h1:Sv4JPQ3/M+teHz9Bo5jBpkNcP0x6r7rdihlNL/7tTAs= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.2 h1:XLMbX8JQEiwMcYft2EGi8zPUkoa0abKIU6/BJSRsjzQ= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btcd/btcutil v1.1.2/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/bwesterb/go-ristretto v1.2.0 h1:xxWOVbN5m8NNKiSDZXE1jtZvZnC6JSJ9cYFADiZcWtw= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= github.com/bytedance/sonic v1.9.2 h1:GDaNjuWSGu09guE9Oql0MSTNhNCLlWwO8y/xM5BzcbM= github.com/bytedance/sonic v1.9.2/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cayleygraph/cayley v0.7.7 h1:z+7xkAbg6bKiXJOtOkEG3zCm2K084sr/aGwFV7xcQNs= +github.com/cayleygraph/cayley v0.7.7/go.mod h1:VUd+PInYf94/VY41ePeFtFyP99BAs953kFT4N+6F7Ko= +github.com/cayleygraph/quad v1.1.0 h1:w1nXAmn+nz07+qlw89dke9LwWkYpeX+OcvfTvGQRBpM= +github.com/cayleygraph/quad v1.1.0/go.mod h1:maWODEekEhrO0mdc9h5n/oP7cH1h/OTgqQ2qWbuI9M4= +github.com/cenkalti/backoff v2.1.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= @@ -325,10 +352,16 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH 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/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= -github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/errors v1.10.0 h1:lfxS8zZz1+OjtV4MtNWgboi/W5tyLEB6VQZBXN+0VUU= +github.com/cockroachdb/errors v1.10.0/go.mod h1:lknhIsEVQ9Ss/qKDBQS/UqFSvPQjOwNq2qyKAxtHRqE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= @@ -340,21 +373,28 @@ github.com/confio/ics23/go v0.9.0 h1:cWs+wdbS2KRPZezoaaj+qBleXgUk5WOQFMP3CQFGTr4 github.com/confio/ics23/go v0.9.0/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ= github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= -github.com/consensys/gnark-crypto v0.12.0 h1:1OnSpOykNkUIBIBJKdhwy2p0JlW5o+Az02ICzZmvvdg= -github.com/consensys/gnark-crypto v0.12.0/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5UlG+EM5t7MPHiLuY= +github.com/consensys/gnark-crypto v0.10.0 h1:zRh22SR7o4K35SoNqouS9J/TKHTyU2QWaj5ldehyXtA= +github.com/consensys/gnark-crypto v0.10.0/go.mod h1:Iq/P3HHl0ElSjsg2E1gsMwhAyxnxoKK5nVyZKd+/KhU= +github.com/containerd/continuity v0.0.0-20181203112020-004b46473808/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= +github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/bbolt v1.3.3/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+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-systemd v0.0.0-20180511133405-39ca1b05acc7/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.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= -github.com/cosmos/cosmos-sdk v0.47.4 h1:FVUpEprm58nMmBX4xkRdMDaIG5Nr4yy92HZAfGAw9bg= -github.com/cosmos/cosmos-sdk v0.47.4/go.mod h1:R5n+uM7vguVPFap4pgkdvQCT1nVo/OtPwrlAU40rvok= +github.com/cosmos/cosmos-sdk v0.47.5 h1:n1+WjP/VM/gAEOx3TqU2/Ny734rj/MX1kpUnn7zVJP8= +github.com/cosmos/cosmos-sdk v0.47.5/go.mod h1:EHwCeN9IXonsjKcjpS12MqeStdZvIdxt3VYXhus3G3c= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= @@ -380,34 +420,56 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= -github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/cznic/mathutil v0.0.0-20170313102836-1447ad269d64 h1:oad14P7M0/ZAPSMH1nl1vC8zdKVkA3kfHLO59z1l8Eg= +github.com/cznic/mathutil v0.0.0-20170313102836-1447ad269d64/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM= +github.com/d4l3k/messagediff v1.2.1/go.mod h1:Oozbb1TVXFac9FtSIxHBMnBCq2qeH/2KkEQxENCrlLo= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= +github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= +github.com/dennwc/base v1.0.0/go.mod h1:zaTDIiAcg2oKW9XhjIaRc1kJVteCFXSSW6jwmCedUaI= +github.com/dennwc/graphql v0.0.0-20180603144102-12cfed44bc5d/go.mod h1:lg9KQn0BgRCSCGNpcGvJp/0Ljf1Yxk8TZq9HSYc43fk= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger v1.5.4/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ= +github.com/dgraph-io/badger v1.5.5/go.mod h1:QgCntgIUPsjnp7cMLhUybJHb7iIoQWAHT6tF8ngCjWk= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-farm v0.0.0-20190416075124-e1214b5e05dc/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= +github.com/dlclark/regexp2 v1.1.4/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= +github.com/dlclark/regexp2 v1.7.0 h1:7lJfhqlPssTb1WQx4yvTHN0uElPEv52sbaECrAQxjAo= +github.com/dlclark/regexp2 v1.7.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v0.7.3-0.20180412203414-a422774e593b/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= 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/dop251/goja v0.0.0-20190105122144-6d5bf35058fa/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= +github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3 h1:+3HCtB74++ClLy8GgjUQYeC8R4ILzVcIe8+5edAJJnE= +github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= @@ -435,18 +497,28 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/flimzy/diff v0.1.5/go.mod h1:lFJtC7SPsK0EroDmGTSrdtWKAxOk3rO+q+e04LL05Hs= +github.com/flimzy/diff v0.1.6/go.mod h1:lFJtC7SPsK0EroDmGTSrdtWKAxOk3rO+q+e04LL05Hs= +github.com/flimzy/kivik v1.8.1/go.mod h1:S2aPycbG0eDFll4wgXt9uacSNkXISPufutnc9sv+mdA= +github.com/flimzy/testy v0.1.16/go.mod h1:3szguN8NXqgq9bt9Gu8TQVj698PJWmyx/VY1frwwKrM= +github.com/fortytw2/leaktest v1.2.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= 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.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fsouza/go-dockerclient v1.2.2/go.mod h1:KpcjM623fQYE9MZiTGzKhjfxXAV9wbyX2C1cyRHfhl0= github.com/fxamacker/cbor/v2 v2.4.0 h1:ri0ArlOR+5XunOP8CRUowT0pSJOwhW098ZCUyskZD88= github.com/fxamacker/cbor/v2 v2.4.0/go.mod h1:TA1xS00nchWmaBnEIxPSE5oHLuJBAVvqrtAnWBwBCVo= github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= +github.com/getsentry/sentry-go v0.23.0 h1:dn+QRCeJv4pPt9OjVXiMcGIBIefaTJPw/h0bZWO05nE= +github.com/getsentry/sentry-go v0.23.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= @@ -455,6 +527,8 @@ github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwv github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= github.com/go-echarts/go-echarts v0.0.0-20190915064101-cbb3b43ade5d/go.mod h1:v4lFmU586g/A0xaH1RMDS86YlYrwpj8eHtR+xBReKE8= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= +github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= 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= @@ -465,6 +539,10 @@ github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-kivik/couchdb v1.8.1/go.mod h1:5XJRkAMpBlEVA4q0ktIZjUPYBjoBmRoiWvwUBzP3BOQ= +github.com/go-kivik/kivik v1.8.1/go.mod h1:nIuJ8z4ikBrVUSk3Ua8NoDqYKULPNjuddjqRvlSUyyQ= +github.com/go-kivik/kiviktest v1.1.2/go.mod h1:JdhVyzixoYhoIDUt6hRf1yAfYyaDa5/u9SDOindDkfQ= +github.com/go-kivik/pouchdb v1.3.5/go.mod h1:U+siUrqLCVxeMU3QjQTYIC3/F/e6EUKm+o5buJb7vpw= 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= @@ -477,6 +555,7 @@ 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-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= @@ -488,17 +567,28 @@ github.com/go-playground/validator/v10 v10.14.1 h1:9c50NUPC30zyuKprjL3vNZ0m5oG+j github.com/go-playground/validator/v10 v10.14.1/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= +github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= +github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= +github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-webauthn/webauthn v0.8.6 h1:bKMtL1qzd2WTFkf1mFTVbreYrwn7dsYmEPjTq6QN90E= github.com/go-webauthn/webauthn v0.8.6/go.mod h1:emwVLMCI5yx9evTTvr0r+aOZCdWJqMfbRhF0MufyUog= github.com/go-webauthn/x v0.1.4 h1:sGmIFhcY70l6k7JIDfnjVBiAAFEssga5lXIUXe0GtAs= github.com/go-webauthn/x v0.1.4/go.mod h1:75Ug0oK6KYpANh5hDOanfDI+dvPWHk788naJVG/37H8= github.com/gobuffalo/envy v1.7.0/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI= +github.com/gobuffalo/envy v1.7.1 h1:OQl5ys5MBea7OGCdvPbBJWRgnhC/fGona6QKfvFeau8= +github.com/gobuffalo/envy v1.7.1/go.mod h1:FurDp9+EDPE4aIUS3ZLyD+7/9fpx7YRt/ukY6jIHf0w= github.com/gobuffalo/logger v1.0.0/go.mod h1:2zbswyIUa45I+c+FLXuWl9zSWEiVuthsk8ze5s8JvPs= +github.com/gobuffalo/logger v1.0.1 h1:ZEgyRGgAm4ZAhAO45YXMs5Fp+bzGLESFewzAVBMKuTg= +github.com/gobuffalo/logger v1.0.1/go.mod h1:2zbswyIUa45I+c+FLXuWl9zSWEiVuthsk8ze5s8JvPs= +github.com/gobuffalo/packd v0.3.0 h1:eMwymTkA1uXsqxS0Tpoop3Lc0u3kTfiMBE6nKtQU4g4= github.com/gobuffalo/packd v0.3.0/go.mod h1:zC7QkmNkYVGKPw4tHpBQ+ml7W/3tIebgeo1b36chA3Q= github.com/gobuffalo/packr v1.30.1/go.mod h1:ljMyFO2EcrnzsHsN99cvbq055Y9OhRrIaviy289eRuk= github.com/gobuffalo/packr/v2 v2.5.1/go.mod h1:8f9c96ITobJlPzI44jj+4tHnEKNt0xXWSVlXRN9X1Iw= +github.com/gobuffalo/packr/v2 v2.7.1 h1:n3CIW5T17T8v4GGK5sWXLVWJhCz7b5aNLSxW6gYim4o= +github.com/gobuffalo/packr/v2 v2.7.1/go.mod h1:qYEvAazPaVxy7Y7KR0W8qYEE+RymX74kETFqjFoFlOc= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= @@ -510,7 +600,6 @@ github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MG github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= @@ -518,6 +607,7 @@ github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6x 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.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= 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= @@ -528,6 +618,7 @@ github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0L github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +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= @@ -564,6 +655,7 @@ 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/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= @@ -600,6 +692,7 @@ github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIG github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -617,11 +710,14 @@ github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLe 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/pprof v0.0.0-20230207041349-798e818bf904 h1:4/hN5RUoecvl+RmJRE2YxKWtnnQls6rQjjW5oV7qg2U= +github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +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.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -644,6 +740,9 @@ github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5i 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/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/gopherjs v0.0.0-20190411002643-bd77b112433e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/jsbuiltin v0.0.0-20180426082241-50091555e127/go.mod h1:7X1acUyFRf+oVFTU6SWw9mnb57Vxn+Nbh8iPbKg95hs= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= @@ -652,18 +751,22 @@ github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= github.com/graph-gophers/graphql-go v1.4.0 h1:JE9wveRTSXwJyjdRd6bOQ7Ob5bewTUQ58Jv4OiVdpdE= github.com/graph-gophers/graphql-go v1.4.0/go.mod h1:YtmJZDLbF1YYNrlNAuiO5zAStUWc3XZT07iGsVqe1Os= github.com/graph-gophers/graphql-transport-ws v0.0.2 h1:DbmSkbIGzj8SvHei6n8Mh9eLQin8PtA8xY9eCzjRpvo= github.com/graph-gophers/graphql-transport-ws v0.0.2/go.mod h1:5BVKvFzOd2BalVIBFfnfmHjpJi/MZ5rOj8G55mXvZ8g= +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.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= 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/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= @@ -719,6 +822,7 @@ github.com/hasura/go-graphql-client v0.9.0 h1:IPL+8CjLrTw4lAJno6qP6e9Nz64+fHSwJT github.com/hasura/go-graphql-client v0.9.0/go.mod h1:jlTUQWgTJOI4opQssMlCkzVjpRVSyL+PQsTjkAwcr3w= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +github.com/hidal-go/hidalgo v0.0.0-20190814174001-42e03f3b5eaa/go.mod h1:bPkrxDlroXxigw8BMWTEPTv4W5/rQwNgg2BECXsgyX0= github.com/highlight/highlight/sdk/highlight-go v0.9.9 h1:joKICta1t0y4k4j9bxr82UkImkVuDcgBZLED12z0G1Q= github.com/highlight/highlight/sdk/highlight-go v0.9.9/go.mod h1:U+PdcT8fqnnOZGc48O62flvANbZ6x9czxwE3xiunFqU= github.com/holiman/uint256 v1.2.3 h1:K8UWO1HUJpRMXBxbmaY1Y8IAMZC/RsKB+ArEnnK4l5o= @@ -731,13 +835,19 @@ github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXM github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= 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/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/jackc/fake v0.0.0-20150926172116-812a484cc733/go.mod h1:WrMFNQdiFJ80sQsxDoMokWK1W5TQtxBFNpzWTD84ibQ= +github.com/jackc/pgx v3.3.0+incompatible/go.mod h1:0ZGrqGqkRlliWnWB4zKnWtjbSWbGkVEFm4TeybAXq+I= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= +github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= 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= @@ -745,9 +855,11 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGw github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= 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.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -768,6 +880,7 @@ github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvW github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 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/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= @@ -784,26 +897,37 @@ 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.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= +github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= +github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linkeddata/gojsonld v0.0.0-20170418210642-4f5db6791326 h1:YP3lfXXYiQV5MKeUqVnxRP5uuMQTLPx+PGYm1UBoU98= +github.com/linkeddata/gojsonld v0.0.0-20170418210642-4f5db6791326/go.mod h1:nfqkuSNlsk1bvti/oa7TThx4KmRMBmSxf3okHI9wp3E= github.com/linxGnu/grocksdb v1.7.16 h1:Q2co1xrpdkr5Hx3Fp+f+f7fRGhQFQhvi/+226dtLmA8= github.com/linxGnu/grocksdb v1.7.16/go.mod h1:JkS7pl5qWpGpuVb3bPqTz8nC12X3YtPZT+Xq7+QfQo4= github.com/logrusorgru/aurora/v3 v3.0.0/go.mod h1:vsR12bk5grlLvLXAYrBsb5Oc/N+LxAlxggSjiwMnCUc= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= 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.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/mailru/easyjson v0.0.0-20180730094502-03f2033d19d5/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190403194419-1ea4449da983/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= github.com/matryer/moq v0.2.7/go.mod h1:kITsx543GOENm48TUAQyJ9+SAvFSr7iGQXPoth/VUBk= @@ -820,6 +944,7 @@ github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APP github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 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= @@ -878,23 +1003,36 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= 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.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.5.0/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.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= +github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +github.com/opencontainers/selinux v1.0.0/go.mod h1:+BLncwf63G4dgOzykXAxcmnFlUaOlkDdmw/CqsW6pjs= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -904,21 +1042,28 @@ github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxS github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/ory/dockertest v3.3.4+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/peterh/liner v0.0.0-20170317030525-88609521dc4b/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= +github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= 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= @@ -930,6 +1075,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN 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.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +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.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= @@ -944,7 +1090,9 @@ github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6T github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +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.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= @@ -954,29 +1102,35 @@ github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/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.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= 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 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= 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.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.4.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.5.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= 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/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= -github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c= +github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= 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= @@ -984,19 +1138,23 @@ github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shengdoushi/base58 v1.0.0 h1:tGe4o6TmdXFJWoI31VoSWvuaKxf0Px3gqa3sUWhAxBs= github.com/shengdoushi/base58 v1.0.0/go.mod h1:m5uIILfzcKMw6238iWAhP4l3s5+uXyF3+bJKUNhAL9I= +github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= 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.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= 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.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9/go.mod h1:SnhjPscd9TpLiy1LpzGSKh3bXCfxxXuqd9xmQJy3slM= 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/sonr-io/kryptology v1.10.0 h1:vZ3S1Ct29SKDH6VwYPa9xUeFfwZ0O20mgPIXknCuPM0= @@ -1006,6 +1164,7 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO 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.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= @@ -1023,6 +1182,7 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn 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.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= @@ -1054,10 +1214,14 @@ github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2l github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg= github.com/tidwall/btree v1.6.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= +github.com/tylertreat/BoomFilters v0.0.0-20181028192813-611b3dbe80e8/go.mod h1:OYRfF6eb5wY9VRFkXJH8FFBi3plw2v+giaIu7P054pM= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= @@ -1073,6 +1237,8 @@ github.com/vektah/gqlparser/v2 v2.5.1 h1:ZGu+bquAY23jsxDRcYpWjttRZrUz07LbiY77gUO github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= +github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= +github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= 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/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= @@ -1091,10 +1257,12 @@ github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.mongodb.org/mongo-driver v1.0.4/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -1134,6 +1302,7 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 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= @@ -1142,16 +1311,19 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/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-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= +golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= 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= @@ -1163,8 +1335,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 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/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU= -golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb h1:xIApU0ow1zwMa2uL1VDNeQlNVFTWMQxZUZCMDy0Q4Us= +golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= 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= @@ -1192,7 +1364,9 @@ 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.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= +golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= +golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 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= @@ -1207,6 +1381,7 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn 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-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 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= @@ -1255,10 +1430,11 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= +golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= 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-20190402181905-9f3314589c9a/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= @@ -1313,11 +1489,13 @@ golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5h 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-20190419153524-e8e3143a4f4a/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-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190614160838-b47fdc937951/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= @@ -1325,6 +1503,7 @@ golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7w 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-20191009170203-06d7bd2c5f4f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/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= @@ -1402,13 +1581,13 @@ golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= +golang.org/x/sys v0.11.0/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/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= -golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/term v0.10.0 h1:3R7pNqamzBraeqj/Tj8qt1aQ2HpmlC+Cx/qL/7hn4/c= +golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= 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= @@ -1420,8 +1599,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 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= @@ -1445,6 +1624,8 @@ golang.org/x/tools v0.0.0-20190624180213-70d37148ca0c/go.mod h1:/rFqwRUd4F7ZHNgw 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-20191004055002-72853e10c5a3/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/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= @@ -1502,6 +1683,7 @@ golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNq 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.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.3.2/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= 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= @@ -1564,6 +1746,7 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/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-20190404172233-64821d5d2107/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= @@ -1743,6 +1926,7 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/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/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= @@ -1750,6 +1934,8 @@ gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMy gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= 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.v5 v5.0.80/go.mod h1:uhHoB4o3bvX5sorxBU29rPcmBQdV2Qfg0FBrx5D6pV0= +gopkg.in/olivere/elastic.v5 v5.0.81/go.mod h1:uhHoB4o3bvX5sorxBU29rPcmBQdV2Qfg0FBrx5D6pV0= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= @@ -1769,7 +1955,9 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= +gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY= +gotest.tools/v3 v3.5.0/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= 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= diff --git a/internal/highway/handler/auth.go b/internal/highway/handler/auth.go index 4b93c48f7..7dc221132 100644 --- a/internal/highway/handler/auth.go +++ b/internal/highway/handler/auth.go @@ -5,9 +5,9 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client" - mdw "github.com/sonrhq/core/internal/highway/middleware" - "github.com/sonrhq/core/internal/highway/types" - authenticationpb "github.com/sonrhq/core/types/highway/authentication/v1" + mdw "github.com/sonr-io/core/internal/highway/middleware" + "github.com/sonr-io/core/internal/highway/types" + authenticationpb "github.com/sonr-io/core/types/highway/authentication/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" ) diff --git a/internal/highway/handler/database.go b/internal/highway/handler/database.go index e9d770e53..8e6d1937f 100644 --- a/internal/highway/handler/database.go +++ b/internal/highway/handler/database.go @@ -3,7 +3,7 @@ package handler import ( "context" - databasepb "github.com/sonrhq/core/types/highway/database/v1" + databasepb "github.com/sonr-io/core/types/highway/database/v1" ) // DatabaseHandler is the handler for the authentication service diff --git a/internal/highway/handler/handler.go b/internal/highway/handler/handler.go index 1b99c6b95..6aff9b13b 100644 --- a/internal/highway/handler/handler.go +++ b/internal/highway/handler/handler.go @@ -4,10 +4,10 @@ import ( "context" "github.com/grpc-ecosystem/grpc-gateway/runtime" - authenticationpb "github.com/sonrhq/core/types/highway/authentication/v1" - databasepb "github.com/sonrhq/core/types/highway/database/v1" - storagepb "github.com/sonrhq/core/types/highway/storage/v1" - walletpb "github.com/sonrhq/core/types/highway/wallet/v1" + authenticationpb "github.com/sonr-io/core/types/highway/authentication/v1" + databasepb "github.com/sonr-io/core/types/highway/database/v1" + storagepb "github.com/sonr-io/core/types/highway/storage/v1" + walletpb "github.com/sonr-io/core/types/highway/wallet/v1" ) // RegisterHandlers registers the Highway Service Server. diff --git a/internal/highway/handler/storage.go b/internal/highway/handler/storage.go index 92cf86861..94e995856 100644 --- a/internal/highway/handler/storage.go +++ b/internal/highway/handler/storage.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client" - storagepb "github.com/sonrhq/core/types/highway/storage/v1" + storagepb "github.com/sonr-io/core/types/highway/storage/v1" ) // StorageHandler is the handler for the authentication service diff --git a/internal/highway/handler/wallet.go b/internal/highway/handler/wallet.go index ac87e7a30..5ebac81e5 100644 --- a/internal/highway/handler/wallet.go +++ b/internal/highway/handler/wallet.go @@ -5,10 +5,10 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client" - mdw "github.com/sonrhq/core/internal/highway/middleware" - "github.com/sonrhq/core/pkg/crypto" + mdw "github.com/sonr-io/core/internal/highway/middleware" + "github.com/sonr-io/core/pkg/crypto" - walletpb "github.com/sonrhq/core/types/highway/wallet/v1" + walletpb "github.com/sonr-io/core/types/highway/wallet/v1" ) // WalletAPI is the alias for the Highway Wallet Service Server. diff --git a/internal/highway/highway.go b/internal/highway/highway.go index 3fa5cb344..93ddcc178 100644 --- a/internal/highway/highway.go +++ b/internal/highway/highway.go @@ -6,7 +6,7 @@ import ( "net/http" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/sonrhq/core/internal/highway/handler" + "github.com/sonr-io/core/internal/highway/handler" ) var hway *Instance diff --git a/internal/highway/middleware/options.go b/internal/highway/middleware/options.go index ded6b1462..8af75b6f8 100644 --- a/internal/highway/middleware/options.go +++ b/internal/highway/middleware/options.go @@ -5,7 +5,7 @@ import ( "github.com/go-webauthn/webauthn/protocol" - authenticationpb "github.com/sonrhq/core/types/highway/authentication/v1" + authenticationpb "github.com/sonr-io/core/types/highway/authentication/v1" ) // GetCredentialAttestationParams returns the credential attestation options to start wallet registration. diff --git a/internal/highway/middleware/proxy.go b/internal/highway/middleware/proxy.go index c86e50e25..a807efdc0 100644 --- a/internal/highway/middleware/proxy.go +++ b/internal/highway/middleware/proxy.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - domaintypes "github.com/sonrhq/core/x/domain/types" - identitytypes "github.com/sonrhq/core/x/identity/types" - servicetypes "github.com/sonrhq/core/x/service/types" + domaintypes "github.com/sonr-io/core/x/domain/types" + identitytypes "github.com/sonr-io/core/x/identity/types" + servicetypes "github.com/sonr-io/core/x/service/types" "github.com/spf13/viper" "google.golang.org/grpc" ) diff --git a/internal/highway/middleware/verifier.go b/internal/highway/middleware/verifier.go index 34bfe7922..2ac4fc658 100644 --- a/internal/highway/middleware/verifier.go +++ b/internal/highway/middleware/verifier.go @@ -6,12 +6,12 @@ import ( "github.com/gin-gonic/gin" "github.com/go-webauthn/webauthn/protocol" - "github.com/sonrhq/core/internal/highway/types" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/controller" - domaintypes "github.com/sonrhq/core/x/domain/types" - identitytypes "github.com/sonrhq/core/x/identity/types" - servicetypes "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/internal/highway/types" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/controller" + domaintypes "github.com/sonr-io/core/x/domain/types" + identitytypes "github.com/sonr-io/core/x/identity/types" + servicetypes "github.com/sonr-io/core/x/service/types" ) // The function GetAuthCookies takes a gin.Context as input and returns three strings and an error. @@ -112,7 +112,7 @@ func UseControllerAccount(token string) (*controller.SonrController, error) { } // PublishControllerAccount creates a new controller account and publishes it to the blockchain -func PublishControllerAccount(alias string, cred *servicetypes.WebauthnCredential, origin string) (*controller.SonrController, *types.TxResponse, error) { +func PublishControllerAccount(alias string, cred *servicetypes.Credential, origin string) (*controller.SonrController, *types.TxResponse, error) { controller, err := controller.New(alias, cred, origin) if err != nil { return nil, nil, fmt.Errorf("failed to create controller: %w", err) diff --git a/internal/highway/types/claims.go b/internal/highway/types/claims.go index 11f023c11..7b31fd466 100644 --- a/internal/highway/types/claims.go +++ b/internal/highway/types/claims.go @@ -9,8 +9,8 @@ import ( "github.com/kataras/jwt" "github.com/spf13/viper" - "github.com/sonrhq/core/pkg/crypto" - identitytypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + identitytypes "github.com/sonr-io/core/x/identity/types" ) // ! ||--------------------------------------------------------------------------------|| diff --git a/internal/highway/types/response.go b/internal/highway/types/response.go index 91134efa7..8be3efbf3 100644 --- a/internal/highway/types/response.go +++ b/internal/highway/types/response.go @@ -3,8 +3,8 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/pkg/crypto" - identitytypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + identitytypes "github.com/sonr-io/core/x/identity/types" ) // AuthenticationResult struct is defining a data structure that represents the response returned after a successful authentication process. It contains various fields such as `Account`, `Address`, `Alias`, `DID`, `DIDDocument`, and `JWT`, which hold information related to diff --git a/internal/sfs/base/redis/client.go b/internal/sfs/base/redis/client.go index 17bbab019..35284c402 100644 --- a/internal/sfs/base/redis/client.go +++ b/internal/sfs/base/redis/client.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/go-redis/redis/v8" - "github.com/sonrhq/core/internal/sfs/types" + "github.com/sonr-io/core/internal/sfs/types" "github.com/spf13/viper" ) diff --git a/internal/sfs/base/redis/map.go b/internal/sfs/base/redis/map.go index 9abb21617..d2f038e2f 100644 --- a/internal/sfs/base/redis/map.go +++ b/internal/sfs/base/redis/map.go @@ -1,7 +1,7 @@ package redis import ( - "github.com/sonrhq/core/internal/sfs/types" + "github.com/sonr-io/core/internal/sfs/types" ) type sfsMap struct { diff --git a/internal/sfs/base/redis/set.go b/internal/sfs/base/redis/set.go index c022342d3..3cb9135b6 100644 --- a/internal/sfs/base/redis/set.go +++ b/internal/sfs/base/redis/set.go @@ -3,7 +3,7 @@ package redis import ( "fmt" - "github.com/sonrhq/core/internal/sfs/types" + "github.com/sonr-io/core/internal/sfs/types" ) type sfsSet struct { diff --git a/internal/sfs/graph/mem_graph.go b/internal/sfs/graph/mem_graph.go new file mode 100644 index 000000000..691ebc56a --- /dev/null +++ b/internal/sfs/graph/mem_graph.go @@ -0,0 +1,143 @@ +package graph + +import ( + "context" + "fmt" + "io/ioutil" + "math/rand" + "os" + + "github.com/cayleygraph/cayley" + "github.com/cayleygraph/cayley/graph" + "github.com/cayleygraph/cayley/schema" + "github.com/cayleygraph/quad" + "github.com/cayleygraph/quad/voc" +) + +type Person struct { + // dummy field to enforce all object to have a relation + // means nothing for Go itself + rdfType struct{} `quad:"@type > ex:Person"` + ID quad.IRI `json:"@id"` // tag @id is a special one - graph node value will be stored in this field + Name string `json:"ex:name"` // field name (predicate) may be written as json field name + Age int `quad:"ex:age"` // or in a quad tag +} + +type Coords struct { + // Object may be without id - it will be generated automatically. + // It's also not necessary to have a type definition. + Lat float64 `json:"ex:lat"` + Lng float64 `json:"ex:lng"` +} + + +func NewGraph() error { + // Define an "ex:" prefix for IRIs that will be expanded to "http://example.org". + // "ex:name" will become "http://example.org/name" + voc.RegisterPrefix("ex:", "http://example.org/") + + // Associate Go type with an IRI. + // All Coords objects will now generate a triple. + schema.RegisterType(quad.IRI("ex:Coords"), Coords{}) + + sch := schema.NewConfig() + // Override a function to generate IDs. Can be changed to generate UUIDs, for example. + sch.GenerateID = func(_ interface{}) quad.Value { + return quad.BNode(fmt.Sprintf("node%d", rand.Intn(1000))) + } + + // File for your new BoltDB. Use path to regular file and not temporary in the real world + tmpdir, err := ioutil.TempDir("", "example") + if err != nil { + return err + } + + defer os.RemoveAll(tmpdir) // clean up + + // Initialize the database + err = graph.InitQuadStore("bolt", tmpdir, nil) + if err != nil { + return err + } + + // Open and use the database + store, err := cayley.NewGraph("bolt", tmpdir, nil) + if err != nil { + return err + } + defer store.Close() + qw := graph.NewWriter(store) + + // Save an object + bob := Person{ + ID: quad.IRI("ex:bob").Full().Short(), + Name: "Bob", Age: 32, + } + fmt.Printf("saving: %+v\n", bob) + id, err := sch.WriteAsQuads(qw, bob) + if err != nil { + return err + } + err = qw.Close() + if err != nil { + return err + } + + fmt.Println("id for object:", id, "=", bob.ID) // should be equal + + // Get object by id + var someone Person + err = sch.LoadTo(nil, store, &someone, id) + if err != nil { + return err + } + fmt.Printf("loaded: %+v\n", someone) + + // Or get all objects of type Person + var people []Person + err = sch.LoadTo(nil, store, &people) + if err != nil { + return err + } + fmt.Printf("people: %+v\n", people) + + fmt.Println() + + // Store objects with no ID and type + coords := []Coords{ + {Lat: 12.3, Lng: 34.5}, + {Lat: 39.7, Lng: 8.41}, + } + qw = graph.NewWriter(store) + for _, c := range coords { + id, err = sch.WriteAsQuads(qw, c) + if err != nil { + return err + } + fmt.Println("generated id:", id) + } + err = qw.Close() + if err != nil { + return err + } + + // Get coords back + var newCoords []Coords + err = sch.LoadTo(nil, store, &newCoords) + if err != nil { + return err + } + fmt.Printf("coords: %+v\n", newCoords) + + // Print quads + fmt.Println("\nquads:") + ctx := context.TODO() + it := store.QuadsAllIterator() + for it.Next(ctx) { + fmt.Println(store.Quad(it.Result())) + } + if err := it.Err(); err != nil { + return err + } + return nil +} diff --git a/internal/sfs/sfs.go b/internal/sfs/sfs.go index 65d707b93..f4de55fa7 100644 --- a/internal/sfs/sfs.go +++ b/internal/sfs/sfs.go @@ -1,8 +1,8 @@ package sfs import ( - "github.com/sonrhq/core/internal/sfs/base/redis" - "github.com/sonrhq/core/internal/sfs/types" + "github.com/sonr-io/core/internal/sfs/base/redis" + "github.com/sonr-io/core/internal/sfs/types" ) type Map = types.SFSMap diff --git a/pkg/crypto/credential.go b/pkg/crypto/credential.go index 92290641f..03ffd7817 100644 --- a/pkg/crypto/credential.go +++ b/pkg/crypto/credential.go @@ -6,7 +6,7 @@ import ( "github.com/go-webauthn/webauthn/protocol" - "github.com/sonrhq/core/types/crypto" + "github.com/sonr-io/core/types/crypto" ) const ( diff --git a/pkg/crypto/crypto.go b/pkg/crypto/crypto.go index 9a048ebfd..a1846bb17 100644 --- a/pkg/crypto/crypto.go +++ b/pkg/crypto/crypto.go @@ -11,7 +11,7 @@ import ( mb "github.com/multiformats/go-multibase" "github.com/multiformats/go-varint" "github.com/shengdoushi/base58" - types "github.com/sonrhq/core/types/crypto" + types "github.com/sonr-io/core/types/crypto" ) // Secp256k1PubKey is a type alias for secp256k1.PubKey in pkg/crypto/keys/secp256k1. diff --git a/pkg/did/controller/controller.go b/pkg/did/controller/controller.go index a527f8f35..eeb8aab49 100644 --- a/pkg/did/controller/controller.go +++ b/pkg/did/controller/controller.go @@ -5,12 +5,12 @@ import ( "fmt" "github.com/highlight/highlight/sdk/highlight-go" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/method/btcr" - "github.com/sonrhq/core/pkg/did/method/ethr" - "github.com/sonrhq/core/pkg/did/method/sonr" - "github.com/sonrhq/core/pkg/did/types" - identitytypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/method/btcr" + "github.com/sonr-io/core/pkg/did/method/ethr" + "github.com/sonr-io/core/pkg/did/method/sonr" + "github.com/sonr-io/core/pkg/did/types" + identitytypes "github.com/sonr-io/core/x/identity/types" ) // Account returns the controller account diff --git a/pkg/did/controller/idx.go b/pkg/did/controller/idx.go index a53821f89..53d504583 100644 --- a/pkg/did/controller/idx.go +++ b/pkg/did/controller/idx.go @@ -6,10 +6,10 @@ import ( "fmt" - "github.com/sonrhq/core/pkg/did/method/authr" - "github.com/sonrhq/core/pkg/did/method/sonr" - "github.com/sonrhq/core/pkg/did/types" - identitytypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/did/method/authr" + "github.com/sonr-io/core/pkg/did/method/sonr" + "github.com/sonr-io/core/pkg/did/types" + identitytypes "github.com/sonr-io/core/x/identity/types" ) var defaultDidMethod = types.DIDMethod("idxr") diff --git a/pkg/did/method/authr/authr.go b/pkg/did/method/authr/authr.go index 62185bad7..8932af756 100644 --- a/pkg/did/method/authr/authr.go +++ b/pkg/did/method/authr/authr.go @@ -4,9 +4,9 @@ import ( "fmt" "github.com/go-webauthn/webauthn/protocol" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/types" "github.com/sonr-io/kryptology/pkg/core/curves" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/types" ) const Method = types.DIDMethod("authr") diff --git a/pkg/did/method/authr/data.go b/pkg/did/method/authr/data.go index c3036771c..2e5d6d538 100644 --- a/pkg/did/method/authr/data.go +++ b/pkg/did/method/authr/data.go @@ -9,7 +9,7 @@ import ( "fmt" "io" - "github.com/sonrhq/core/pkg/did/types" + "github.com/sonr-io/core/pkg/did/types" "golang.org/x/crypto/hkdf" "lukechampine.com/blake3" ) diff --git a/pkg/did/method/authr/secret.go b/pkg/did/method/authr/secret.go index 124b72ffa..217dcfc8c 100644 --- a/pkg/did/method/authr/secret.go +++ b/pkg/did/method/authr/secret.go @@ -9,9 +9,9 @@ import ( "io" "github.com/google/uuid" + "github.com/sonr-io/core/pkg/crypto" "github.com/sonr-io/kryptology/pkg/accumulator" "github.com/sonr-io/kryptology/pkg/core/curves" - "github.com/sonrhq/core/pkg/crypto" "golang.org/x/crypto/hkdf" "lukechampine.com/blake3" ) diff --git a/pkg/did/method/btcr/account.go b/pkg/did/method/btcr/account.go index be0e0d47e..efe2e5ff1 100644 --- a/pkg/did/method/btcr/account.go +++ b/pkg/did/method/btcr/account.go @@ -1,9 +1,9 @@ package btcr import ( - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/types" - "github.com/sonrhq/core/pkg/mpc" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/types" + "github.com/sonr-io/core/pkg/mpc" ) const Method = types.DIDMethod("btcr") diff --git a/pkg/did/method/ethr/account.go b/pkg/did/method/ethr/account.go index 4f2a46bb4..b6dde1069 100644 --- a/pkg/did/method/ethr/account.go +++ b/pkg/did/method/ethr/account.go @@ -1,9 +1,9 @@ package ethr import ( - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/types" - "github.com/sonrhq/core/pkg/mpc" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/types" + "github.com/sonr-io/core/pkg/mpc" ) const Method = types.DIDMethod("ethr") diff --git a/pkg/did/method/sonr/account.go b/pkg/did/method/sonr/account.go index 9a2d0cf76..bd4fd2f35 100644 --- a/pkg/did/method/sonr/account.go +++ b/pkg/did/method/sonr/account.go @@ -3,9 +3,9 @@ package sonr import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/types" - "github.com/sonrhq/core/pkg/mpc" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/types" + "github.com/sonr-io/core/pkg/mpc" ) // Method is the DID method for Sonr Wallet Actor DIDs diff --git a/pkg/did/method/sonr/client.go b/pkg/did/method/sonr/client.go index acbd0eed2..cd39a0e76 100644 --- a/pkg/did/method/sonr/client.go +++ b/pkg/did/method/sonr/client.go @@ -9,8 +9,8 @@ import ( "github.com/spf13/viper" "google.golang.org/grpc" - "github.com/sonrhq/core/internal/local" - "github.com/sonrhq/core/pkg/did/types" + "github.com/sonr-io/core/internal/local" + "github.com/sonr-io/core/pkg/did/types" ) // ! ||--------------------------------------------------------------------------------|| diff --git a/pkg/did/method/sonr/signer.go b/pkg/did/method/sonr/signer.go index e4db1d4b5..867d0e9ad 100644 --- a/pkg/did/method/sonr/signer.go +++ b/pkg/did/method/sonr/signer.go @@ -7,9 +7,9 @@ import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" txtypes "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/did/types" - identitytypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/did/types" + identitytypes "github.com/sonr-io/core/x/identity/types" ) // SignCosmosTx signs a transaction with the given inputs. diff --git a/pkg/did/types/accumulator.go b/pkg/did/types/accumulator.go index d62e19a9f..67b23087a 100644 --- a/pkg/did/types/accumulator.go +++ b/pkg/did/types/accumulator.go @@ -7,7 +7,7 @@ import ( "github.com/sonr-io/kryptology/pkg/accumulator" "github.com/sonr-io/kryptology/pkg/core/curves" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" ) // DIDAccumulator is a ZKSet accumulator for a DID diff --git a/pkg/did/types/identifier.go b/pkg/did/types/identifier.go index 5bfc5aad0..fbf301cbb 100644 --- a/pkg/did/types/identifier.go +++ b/pkg/did/types/identifier.go @@ -3,8 +3,8 @@ package types import ( "github.com/sonr-io/kryptology/pkg/accumulator" - "github.com/sonrhq/core/pkg/crypto" - identitytypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + identitytypes "github.com/sonr-io/core/x/identity/types" ) // DIDIdentifier is a DID identifier diff --git a/pkg/did/types/method.go b/pkg/did/types/method.go index da860c5b5..d3a08ee65 100644 --- a/pkg/did/types/method.go +++ b/pkg/did/types/method.go @@ -1,6 +1,6 @@ package types -import "github.com/sonrhq/core/pkg/crypto" +import "github.com/sonr-io/core/pkg/crypto" // DIDMethod is a DID method type DIDMethod string diff --git a/pkg/did/types/resource.go b/pkg/did/types/resource.go index 33a9de8f0..ad0c6c453 100644 --- a/pkg/did/types/resource.go +++ b/pkg/did/types/resource.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" ) // TxResponse is a type alias for sdk.TxResponse diff --git a/pkg/did/types/store.go b/pkg/did/types/store.go index 26776485f..abb621dfc 100644 --- a/pkg/did/types/store.go +++ b/pkg/did/types/store.go @@ -6,7 +6,7 @@ import ( "lukechampine.com/blake3" - "github.com/sonrhq/core/internal/sfs" + "github.com/sonr-io/core/internal/sfs" "github.com/spf13/viper" ) diff --git a/pkg/did/types/url.go b/pkg/did/types/url.go index e8ba9f1b7..737f8e4bc 100644 --- a/pkg/did/types/url.go +++ b/pkg/did/types/url.go @@ -5,11 +5,11 @@ import ( "strings" txtypes "github.com/cosmos/cosmos-sdk/types/tx" - servicetypes "github.com/sonrhq/core/x/service/types" + servicetypes "github.com/sonr-io/core/x/service/types" ) // Credential is a webauthn credential -type Credential = servicetypes.WebauthnCredential +type Credential = servicetypes.Credential // BroadcastTxResponse is a tx response type BroadcastTxResponse = txtypes.BroadcastTxResponse diff --git a/pkg/mpc/base/account.go b/pkg/mpc/base/account.go index d8203dfff..25d90ea12 100644 --- a/pkg/mpc/base/account.go +++ b/pkg/mpc/base/account.go @@ -4,11 +4,11 @@ import ( "encoding/json" "fmt" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - algo "github.com/sonrhq/core/pkg/mpc/protocol/dkls" - v1types "github.com/sonrhq/core/pkg/mpc/types/v1" + algo "github.com/sonr-io/core/pkg/mpc/protocol/dkls" + v1types "github.com/sonr-io/core/pkg/mpc/types/v1" ) type EncryptionKey = *secp256k1.PubKey diff --git a/pkg/mpc/mpc.go b/pkg/mpc/mpc.go index 5c02f70f4..9b1952558 100644 --- a/pkg/mpc/mpc.go +++ b/pkg/mpc/mpc.go @@ -1,11 +1,11 @@ package mpc import ( - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/mpc/base" - models "github.com/sonrhq/core/pkg/mpc/base" - v1algo "github.com/sonrhq/core/pkg/mpc/protocol/dkls" - v1types "github.com/sonrhq/core/pkg/mpc/types/v1" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/mpc/base" + models "github.com/sonr-io/core/pkg/mpc/base" + v1algo "github.com/sonr-io/core/pkg/mpc/protocol/dkls" + v1types "github.com/sonr-io/core/pkg/mpc/types/v1" ) // AccountV1 is a type alias for the AccountV1 struct in the base package. diff --git a/pkg/mpc/mpc_test.go b/pkg/mpc/mpc_test.go index 420a69f81..8a5f8f681 100644 --- a/pkg/mpc/mpc_test.go +++ b/pkg/mpc/mpc_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "github.com/sonrhq/core/pkg/crypto" - v1 "github.com/sonrhq/core/pkg/mpc/base" + "github.com/sonr-io/core/pkg/crypto" + v1 "github.com/sonr-io/core/pkg/mpc/base" "github.com/stretchr/testify/assert" ) diff --git a/pkg/mpc/protocol/dkls/dkls.go b/pkg/mpc/protocol/dkls/dkls.go index 713d89aa1..975a1fd94 100644 --- a/pkg/mpc/protocol/dkls/dkls.go +++ b/pkg/mpc/protocol/dkls/dkls.go @@ -3,10 +3,10 @@ package dkls import ( "fmt" + mpcv1types "github.com/sonr-io/core/pkg/mpc/types/v1" "github.com/sonr-io/kryptology/pkg/core/curves" "github.com/sonr-io/kryptology/pkg/core/protocol" dklsv1 "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1" - mpcv1types "github.com/sonrhq/core/pkg/mpc/types/v1" ) // The DKLSKeygen function generates a set of keyshares. diff --git a/pkg/mpc/protocol/dkls/dkls_test.go b/pkg/mpc/protocol/dkls/dkls_test.go index 1e9ed79e2..9c941cbe3 100644 --- a/pkg/mpc/protocol/dkls/dkls_test.go +++ b/pkg/mpc/protocol/dkls/dkls_test.go @@ -3,8 +3,8 @@ package dkls_test import ( "testing" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/pkg/mpc/protocol/dkls" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/pkg/mpc/protocol/dkls" "github.com/stretchr/testify/assert" ) diff --git a/pkg/mpc/types/v1/keyshare.go b/pkg/mpc/types/v1/keyshare.go index 199f7a9e1..fba1db75f 100644 --- a/pkg/mpc/types/v1/keyshare.go +++ b/pkg/mpc/types/v1/keyshare.go @@ -5,11 +5,11 @@ import ( "fmt" "math/big" + sonrcrypto "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/types/crypto" "github.com/sonr-io/kryptology/pkg/core/curves" "github.com/sonr-io/kryptology/pkg/core/protocol" dklsv1 "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1" - sonrcrypto "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/types/crypto" secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1/dkg" diff --git a/pkg/mpc/types/v1/kss.go b/pkg/mpc/types/v1/kss.go index 5ee29baf5..3de991b92 100644 --- a/pkg/mpc/types/v1/kss.go +++ b/pkg/mpc/types/v1/kss.go @@ -8,7 +8,7 @@ import ( dklsv1 "github.com/sonr-io/kryptology/pkg/tecdsa/dkls/v1" secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" "golang.org/x/crypto/sha3" ) diff --git a/pkg/mpc/types/v1/zkset.go b/pkg/mpc/types/v1/zkset.go index e255edd38..6491bff91 100644 --- a/pkg/mpc/types/v1/zkset.go +++ b/pkg/mpc/types/v1/zkset.go @@ -7,9 +7,9 @@ import ( "errors" "io" + "github.com/sonr-io/core/pkg/crypto" "github.com/sonr-io/kryptology/pkg/accumulator" "github.com/sonr-io/kryptology/pkg/core/curves" - "github.com/sonrhq/core/pkg/crypto" ) func (zk ZKEphemeralKey) String() string { diff --git a/pkg/mpc/types/v1/zkset_test.go b/pkg/mpc/types/v1/zkset_test.go index 40b8f7c5e..1a21ba9c2 100644 --- a/pkg/mpc/types/v1/zkset_test.go +++ b/pkg/mpc/types/v1/zkset_test.go @@ -4,7 +4,7 @@ import ( "testing" secp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/sonrhq/core/pkg/mpc/types/v1" + "github.com/sonr-io/core/pkg/mpc/types/v1" "github.com/stretchr/testify/assert" ) diff --git a/pkg/txs/export.go b/pkg/txs/export.go index 954d4d6e3..8249d134f 100644 --- a/pkg/txs/export.go +++ b/pkg/txs/export.go @@ -3,9 +3,9 @@ package txs import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" grouptypes "github.com/cosmos/cosmos-sdk/x/group" - domaintypes "github.com/sonrhq/core/x/domain/types" - identitytypes "github.com/sonrhq/core/x/identity/types" - servicetypes "github.com/sonrhq/core/x/service/types" + domaintypes "github.com/sonr-io/core/x/domain/types" + identitytypes "github.com/sonr-io/core/x/identity/types" + servicetypes "github.com/sonr-io/core/x/service/types" ) // ! ||--------------------------------------------------------------------------------|| diff --git a/proto/buf.gen.swagger.yaml b/proto/buf.gen.swagger.yaml new file mode 100644 index 000000000..ad701d2fb --- /dev/null +++ b/proto/buf.gen.swagger.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - name: swagger + out: ../docs/static/swagger + opt: + - fqn_for_swagger_name=true + - simple_operation_ids=true + - logtostderr=true diff --git a/proto/buf.md b/proto/buf.md new file mode 100644 index 000000000..a8c5ab2c2 --- /dev/null +++ b/proto/buf.md @@ -0,0 +1,3 @@ +# Protobufs + +This is the public protocol buffers API for the [Sonr Blockchain](https://github.com/sonr-io/sonr). diff --git a/proto/core/crypto/coin.proto b/proto/core/crypto/coin.proto index e889f8e29..58776614b 100644 --- a/proto/core/crypto/coin.proto +++ b/proto/core/crypto/coin.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package core.crypto; -option go_package = "github.com/sonrhq/core/types/crypto"; +option go_package = "github.com/sonr-io/core/types/crypto"; // CoinType is the BIP-0044 coin type for each supported coin. enum CoinType { diff --git a/proto/core/crypto/ssi.proto b/proto/core/crypto/ssi.proto index 1879093d0..eb2437e35 100644 --- a/proto/core/crypto/ssi.proto +++ b/proto/core/crypto/ssi.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package core.crypto; -option go_package = "github.com/sonrhq/core/types/crypto"; +option go_package = "github.com/sonr-io/core/types/crypto"; // KeyType is the type of key used to sign a DID document. enum KeyType { diff --git a/proto/core/crypto/vc.proto b/proto/core/crypto/vc.proto index 2861f193e..9f2fa85df 100644 --- a/proto/core/crypto/vc.proto +++ b/proto/core/crypto/vc.proto @@ -3,7 +3,7 @@ package core.crypto; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/sonrhq/core/types/crypto"; +option go_package = "github.com/sonr-io/core/types/crypto"; // PubKey represents a public key in bytes format. message PubKey { diff --git a/proto/core/crypto/webauthn/credential.proto b/proto/core/crypto/webauthn/credential.proto new file mode 100644 index 000000000..672d5264b --- /dev/null +++ b/proto/core/crypto/webauthn/credential.proto @@ -0,0 +1,51 @@ +// The core.service package contains all the core services. +syntax = "proto3"; +package core.crypto.webauthn; + +option go_package = "github.com/sonr-io/core/x/service/types"; + +// Credential is a message type that contains all needed information +// about a WebAuthn credential for storage. +message Credential { + // id is a probabilistically-unique byte sequence identifying a public key + // credential source and its authentication assertions. + bytes id = 1; + + // public_key is the public key portion of a Relying Party-specific credential + // key pair, generated by an authenticator and returned to a Relying Party at + // registration time. + bytes public_key = 2; + + // attestation_type is the attestation format used (if any) by the + // authenticator when creating the credential. + string attestation_type = 3; + + // transport is the transports used by the authenticator when creating the + // credential. + repeated string transport = 4; + + // Authenticator is the Authenticator information for a given certificate. + Authenticator authenticator = 5; + + // controller is the DID Controller of the credential. + string controller = 6; +} + +// Authenticator is a message type that contains certificate information +// about a WebAuthn authenticator. +message Authenticator { + // aaguid is the AAGUID of the authenticator. An AAGUID is defined as an array + // containing the globally unique identifier of the authenticator model being + // sought. + bytes aaguid = 1; + + // sign_count is the SignCount -Upon a new login operation, the Relying Party + // compares the stored signature counter value with the new signCount value + // returned in the assertion’s authenticator data. + uint32 sign_count = 2; + + // attachment is a signal that the authenticator may be cloned, i.e. at + // least two copies of the credential private key may exist and are being used + // in parallel. + string attachment = 3; +} diff --git a/proto/core/domain/genesis.proto b/proto/core/domain/genesis.proto index 3a9678434..504aa5ca6 100644 --- a/proto/core/domain/genesis.proto +++ b/proto/core/domain/genesis.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "core/domain/params.proto"; import "core/domain/record.proto"; -option go_package = "github.com/sonrhq/core/x/domain/types"; +option go_package = "github.com/sonr-io/core/x/domain/types"; // GenesisState defines the domain module's genesis state. message GenesisState { diff --git a/proto/core/domain/params.proto b/proto/core/domain/params.proto index e4b5b5e4b..a45a3a2f7 100644 --- a/proto/core/domain/params.proto +++ b/proto/core/domain/params.proto @@ -3,7 +3,7 @@ package core.domain; import "gogoproto/gogo.proto"; -option go_package = "github.com/sonrhq/core/x/domain/types"; +option go_package = "github.com/sonr-io/core/x/domain/types"; // Params defines the parameters for the module. message Params { option (gogoproto.goproto_stringer) = false; } diff --git a/proto/core/domain/query.proto b/proto/core/domain/query.proto index e8c494d2d..d813a1747 100644 --- a/proto/core/domain/query.proto +++ b/proto/core/domain/query.proto @@ -8,48 +8,65 @@ import "cosmos/base/query/v1beta1/pagination.proto"; import "core/domain/params.proto"; import "core/domain/record.proto"; -option go_package = "github.com/sonrhq/core/x/domain/types"; +option go_package = "github.com/sonr-io/core/x/domain/types"; // Query defines the gRPC querier service. +// It provides methods to query parameters and UsernameRecords. service Query { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. + // It returns the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/core/domain/params"; } - // Queries a list of UsernameRecords items. + // UsernameRecord queries a list of UsernameRecords items by index. + // It returns a list of UsernameRecords items. rpc UsernameRecord(QueryGetUsernameRecordsRequest) returns (QueryGetUsernameRecordsResponse) { option (google.api.http).get = "/core/domain/username/{index}"; } - // Queries a list of UsernameRecords items. + // UsernameRecordAll queries all UsernameRecords items. + // It returns all UsernameRecords items. rpc UsernameRecordAll(QueryAllUsernameRecordsRequest) returns (QueryAllUsernameRecordsResponse) { option (google.api.http).get = "/core/domain/username"; } } + // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. +// It holds all the parameters of this module. message QueryParamsResponse { // params holds all the parameters of this module. Params params = 1 [ (gogoproto.nullable) = false ]; } +// QueryGetUsernameRecordsRequest is the request type for the +// Query/UsernameRecord RPC method. It contains the index of the UsernameRecords +// to be queried. message QueryGetUsernameRecordsRequest { string index = 1; } +// QueryGetUsernameRecordsResponse is the response type for the +// Query/UsernameRecord RPC method. It contains the queried UsernameRecords. message QueryGetUsernameRecordsResponse { UsernameRecord usernameRecords = 1 [ (gogoproto.nullable) = false ]; } +// QueryAllUsernameRecordsRequest is the request type for the +// Query/UsernameRecordAll RPC method. It contains the pagination information +// for the query. message QueryAllUsernameRecordsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } +// QueryAllUsernameRecordsResponse is the response type for the +// Query/UsernameRecordAll RPC method. It contains all queried UsernameRecords +// and the pagination information. message QueryAllUsernameRecordsResponse { repeated UsernameRecord usernameRecords = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; diff --git a/proto/core/domain/record.proto b/proto/core/domain/record.proto index 568cb52c8..d0682a530 100644 --- a/proto/core/domain/record.proto +++ b/proto/core/domain/record.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package core.domain; -option go_package = "github.com/sonrhq/core/x/domain/types"; +option go_package = "github.com/sonr-io/core/x/domain/types"; message UsernameRecord { string index = 1; diff --git a/proto/core/domain/tx.proto b/proto/core/domain/tx.proto index 0d99d16b5..a25f95587 100644 --- a/proto/core/domain/tx.proto +++ b/proto/core/domain/tx.proto @@ -4,35 +4,51 @@ package core.domain; import "core/domain/record.proto"; -option go_package = "github.com/sonrhq/core/x/domain/types"; +option go_package = "github.com/sonr-io/core/x/domain/types"; // Msg defines the Msg service. +// This service provides CRUD operations for UsernameRecords. service Msg { + // CreateUsernameRecord creates a new UsernameRecord. rpc CreateUsernameRecord(MsgCreateUsernameRecords) returns (MsgCreateUsernameRecordsResponse); + + // UpdateUsernameRecord updates an existing UsernameRecord. rpc UpdateUsernameRecord(MsgUpdateUsernameRecords) returns (MsgUpdateUsernameRecordsResponse); + + // DeleteUsernameRecord deletes an existing UsernameRecord. rpc DeleteUsernameRecord(MsgDeleteUsernameRecords) returns (MsgDeleteUsernameRecordsResponse); } + +// MsgCreateUsernameRecords represents a request to create a UsernameRecord. message MsgCreateUsernameRecords { - string creator = 1; - string index = 2; - string method = 3; + string creator = 1; // The creator of the UsernameRecord. + string index = 2; // The index of the UsernameRecord. + string method = 3; // The method used to create the UsernameRecord. } +// MsgCreateUsernameRecordsResponse represents the response from creating a +// UsernameRecord. message MsgCreateUsernameRecordsResponse {} +// MsgUpdateUsernameRecords represents a request to update a UsernameRecord. message MsgUpdateUsernameRecords { - string creator = 1; - string index = 2; + string creator = 1; // The creator of the UsernameRecord. + string index = 2; // The index of the UsernameRecord. } +// MsgUpdateUsernameRecordsResponse represents the response from updating a +// UsernameRecord. message MsgUpdateUsernameRecordsResponse {} +// MsgDeleteUsernameRecords represents a request to delete a UsernameRecord. message MsgDeleteUsernameRecords { - string creator = 1; - string index = 2; + string creator = 1; // The creator of the UsernameRecord. + string index = 2; // The index of the UsernameRecord. } +// MsgDeleteUsernameRecordsResponse represents the response from deleting a +// UsernameRecord. message MsgDeleteUsernameRecordsResponse {} diff --git a/proto/core/identity/account.proto b/proto/core/identity/account.proto index a56cb4fdd..0e26ae820 100644 --- a/proto/core/identity/account.proto +++ b/proto/core/identity/account.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package core.identity; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; message EscrowAccount { uint64 id = 1; diff --git a/proto/core/identity/did.proto b/proto/core/identity/did.proto index 0775238bd..1853e12eb 100644 --- a/proto/core/identity/did.proto +++ b/proto/core/identity/did.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package core.identity; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; // DIDDocument represents a Decentralized Identifier (DID) document that // contains information about the DID subject, such as public keys, verification diff --git a/proto/core/identity/genesis.proto b/proto/core/identity/genesis.proto index c427586c1..377a919f1 100644 --- a/proto/core/identity/genesis.proto +++ b/proto/core/identity/genesis.proto @@ -7,7 +7,7 @@ import "core/identity/params.proto"; import "core/identity/did.proto"; import "core/identity/account.proto"; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; // GenesisState defines the identity module's genesis state. message GenesisState { diff --git a/proto/core/identity/identifier.proto b/proto/core/identity/identifier.proto new file mode 100644 index 000000000..33cb767de --- /dev/null +++ b/proto/core/identity/identifier.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package core.identity; + +option go_package = "github.com/sonr-io/core/x/identity/types"; + +// UserIdentifierType defines the type of the user identifier\ +enum UserIdentifierType { +NONE = 0; +EMAIL = 1; +PHONE = 2; +FIDO = 3; +PASSKEY = 4; +GPG = 5; +} + +// UserIdentifier defines a user identifier +message UserIdentifier { + UserIdentifierType type = 1; + string identifier = 2; +} + +// WalletIdentifier defines a wallet identifier +message WalletIdentifier { + uint64 chain_id = 1; + string address = 2; +} diff --git a/proto/core/identity/packet.proto b/proto/core/identity/packet.proto index 1577fb916..f929d8224 100644 --- a/proto/core/identity/packet.proto +++ b/proto/core/identity/packet.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package core.identity; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; message IdentityPacketData { oneof packet { NoData noData = 1; } diff --git a/proto/core/identity/params.proto b/proto/core/identity/params.proto index a153dc2dd..5fee8dd3a 100644 --- a/proto/core/identity/params.proto +++ b/proto/core/identity/params.proto @@ -3,7 +3,7 @@ package core.identity; import "gogoproto/gogo.proto"; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; // Params defines the parameters for the module. message Params { diff --git a/proto/core/identity/query.proto b/proto/core/identity/query.proto index bf5ee65f8..142b36ae2 100644 --- a/proto/core/identity/query.proto +++ b/proto/core/identity/query.proto @@ -9,65 +9,73 @@ import "core/identity/params.proto"; import "core/identity/did.proto"; import "core/identity/account.proto"; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; // Query defines the gRPC querier service. service Query { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/core/params/identity"; } - // Queries a list of DIDDocument items. + // DIDDocument queries a list of DIDDocument items. rpc DIDDocument(QueryGetDIDDocumentRequest) returns (QueryGetDIDDocumentResponse) { option (google.api.http).get = "/core/id/{did}"; } + + // DIDDocumentAll queries all DIDDocument items. rpc DIDDocumentAll(QueryAllDIDDocumentRequest) returns (QueryAllDIDDocumentResponse) { option (google.api.http).get = "/core/id"; } - // Returns DIDDocument based on an owner + // DidByOwner returns DIDDocument based on an owner. rpc DidByOwner(QueryDidByOwnerRequest) returns (QueryDidByOwnerResponse) { option (google.api.http).get = "/core/id/owner/{owner}"; } - // Returns DIDDocument based on an alias *only Sonr Identities + // DidByAlsoKnownAs returns DIDDocument based on an alias *only Sonr + // Identities. rpc DidByAlsoKnownAs(QueryDidByAlsoKnownAsRequest) returns (QueryDidByAlsoKnownAsResponse) { option (google.api.http).get = "/core/id/alias/{alias}"; } - // Checks if a given alias is available to register *only Sonr Identities + // AliasAvailable checks if a given alias is available to register *only Sonr + // Identities. rpc AliasAvailable(QueryAliasAvailableRequest) returns (QueryAliasAvailableResponse) { option (google.api.http).get = "/core/id/alias/{alias}/check"; } - // Queries a list of ControllerAccount items. + // ControllerAccount queries a list of ControllerAccount items. rpc ControllerAccount(QueryGetControllerAccountRequest) returns (QueryGetControllerAccountResponse) { option (google.api.http).get = "/core/id/controllers/{address}"; } + // ControllerAccountAll queries all ControllerAccount items. rpc ControllerAccountAll(QueryAllControllerAccountRequest) returns (QueryAllControllerAccountResponse) { option (google.api.http).get = "/core/id/controllers"; } - // Queries a list of EscrowAccount items. + // EscrowAccount queries a list of EscrowAccount items. rpc EscrowAccount(QueryGetEscrowAccountRequest) returns (QueryGetEscrowAccountResponse) { option (google.api.http).get = "/sonr-io/core/identity/escrow_account/{address}"; } + + // EscrowAccountAll queries all EscrowAccount items. rpc EscrowAccountAll(QueryAllEscrowAccountRequest) returns (QueryAllEscrowAccountResponse) { option (google.api.http).get = "/sonr-io/core/identity/escrow_account"; } } + // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} @@ -78,21 +86,31 @@ message QueryParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; } +// QueryGetDIDDocumentRequest is the request type for the Query/DIDDocument RPC +// method. message QueryGetDIDDocumentRequest { string did = 1; } +// QueryGetDIDDocumentResponse is the response type for the Query/DIDDocument +// RPC method. message QueryGetDIDDocumentResponse { DIDDocument dIDDocument = 1 [ (gogoproto.nullable) = false ]; } +// QueryAllDIDDocumentRequest is the request type for the Query/DIDDocumentAll +// RPC method. message QueryAllDIDDocumentRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } +// QueryAllDIDDocumentResponse is the response type for the Query/DIDDocumentAll +// RPC method. message QueryAllDIDDocumentResponse { repeated DIDDocument dIDDocument = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } +// QueryDidByAlsoKnownAsRequest is the request type for the +// Query/DidByAlsoKnownAs RPC method. message QueryDidByAlsoKnownAsRequest { // aka_aliasid is the unique identifier of the DIDDocument - it appears like @@ -100,12 +118,16 @@ message QueryDidByAlsoKnownAsRequest { string alias = 1; } +// QueryDidByAlsoKnownAsResponse is the response type for the +// Query/DidByAlsoKnownAs RPC method. message QueryDidByAlsoKnownAsResponse { // A DIDDocument is a JSON-LD object that contains a set of public keys DIDDocument didDocument = 1 [ (gogoproto.nullable) = false ]; } +// QueryAliasAvailableRequest is the request type for the Query/AliasAvailable +// RPC method. message QueryAliasAvailableRequest { // alias is the unique identifier of the DIDDocument - it appears like @@ -113,44 +135,66 @@ message QueryAliasAvailableRequest { string alias = 1; } +// QueryAliasAvailableResponse is the response type for the Query/AliasAvailable +// RPC method. message QueryAliasAvailableResponse { bool available = 1; DIDDocument existing_document = 2 [ (gogoproto.nullable) = true ]; } +// QueryDidByOwnerRequest is the request type for the Query/DidByOwner RPC +// method. message QueryDidByOwnerRequest { string owner = 1; } +// QueryDidByOwnerResponse is the response type for the Query/DidByOwner RPC +// method. message QueryDidByOwnerResponse { DIDDocument didDocument = 1 [ (gogoproto.nullable) = false ]; } +// QueryGetControllerAccountRequest is the request type for the +// Query/ControllerAccount RPC method. message QueryGetControllerAccountRequest { string address = 1; } +// QueryGetControllerAccountResponse is the response type for the +// Query/ControllerAccount RPC method. message QueryGetControllerAccountResponse { - ControllerAccount ControllerAccount = 1 [ (gogoproto.nullable) = false ]; + ControllerAccount controllerAccount = 1 [ (gogoproto.nullable) = false ]; } +// QueryAllControllerAccountRequest is the request type for the +// Query/ControllerAccountAll RPC method. message QueryAllControllerAccountRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } +// QueryAllControllerAccountResponse is the response type for the +// Query/ControllerAccountAll RPC method. message QueryAllControllerAccountResponse { - repeated ControllerAccount ControllerAccount = 1 + repeated ControllerAccount controllerAccount = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } +// QueryGetEscrowAccountRequest is the request type for the Query/EscrowAccount +// RPC method. message QueryGetEscrowAccountRequest { string address = 1; } +// QueryGetEscrowAccountResponse is the response type for the +// Query/EscrowAccount RPC method. message QueryGetEscrowAccountResponse { - EscrowAccount EscrowAccount = 1 [ (gogoproto.nullable) = false ]; + EscrowAccount escrowAccount = 1 [ (gogoproto.nullable) = false ]; } +// QueryAllEscrowAccountRequest is the request type for the +// Query/EscrowAccountAll RPC method. message QueryAllEscrowAccountRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } +// QueryAllEscrowAccountResponse is the response type for the +// Query/EscrowAccountAll RPC method. message QueryAllEscrowAccountResponse { - repeated EscrowAccount EscrowAccount = 1 [ (gogoproto.nullable) = false ]; + repeated EscrowAccount escrowAccount = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/core/identity/tx.proto b/proto/core/identity/tx.proto index 6b326a3d0..b714ebe47 100644 --- a/proto/core/identity/tx.proto +++ b/proto/core/identity/tx.proto @@ -5,89 +5,138 @@ package core.identity; import "core/identity/did.proto"; import "core/identity/account.proto"; -option go_package = "github.com/sonrhq/core/x/identity/types"; +option go_package = "github.com/sonr-io/core/x/identity/types"; // Msg defines the Msg service. +// This service provides methods for managing identities. service Msg { + // RegisterIdentity registers a new identity. rpc RegisterIdentity(MsgRegisterIdentity) returns (MsgRegisterIdentityResponse); + + // CreateControllerAccount creates a new controller account. rpc CreateControllerAccount(MsgCreateControllerAccount) returns (MsgCreateControllerAccountResponse); + + // UpdateControllerAccount updates an existing controller account. rpc UpdateControllerAccount(MsgUpdateControllerAccount) returns (MsgUpdateControllerAccountResponse); + + // DeleteControllerAccount deletes a controller account. rpc DeleteControllerAccount(MsgDeleteControllerAccount) returns (MsgDeleteControllerAccountResponse); + + // CreateEscrowAccount creates a new escrow account. rpc CreateEscrowAccount(MsgCreateEscrowAccount) returns (MsgCreateEscrowAccountResponse); + + // UpdateEscrowAccount updates an existing escrow account. rpc UpdateEscrowAccount(MsgUpdateEscrowAccount) returns (MsgUpdateEscrowAccountResponse); + + // DeleteEscrowAccount deletes an escrow account. rpc DeleteEscrowAccount(MsgDeleteEscrowAccount) returns (MsgDeleteEscrowAccountResponse); } + +// MsgRegisterIdentity represents a request to register a new identity. message MsgRegisterIdentity { - string creator = 1; - DIDDocument did_document = 2; - uint64 wallet_id = 3; + string creator = 1; // The creator of the identity. + DIDDocument did_document = + 2; // The DID document associated with the identity. + uint64 wallet_id = 3; // The wallet ID associated with the identity. } +// MsgRegisterIdentityResponse represents the response to a register identity +// request. message MsgRegisterIdentityResponse { - bool success = 1; - DIDDocument did_document = 2; + bool success = 1; // Indicates if the registration was successful. + DIDDocument did_document = + 2; // The DID document associated with the registered identity. } +// MsgCreateControllerAccount represents a request to create a new controller +// account. message MsgCreateControllerAccount { - string address = 1; - string publicKey = 3; - repeated string authenticators = 4; - repeated string wallets = 5; + string address = 1; // The address of the controller account. + string publicKey = 3; // The public key of the controller account. + repeated string authenticators = + 4; // The authenticators of the controller account. + repeated string wallets = + 5; // The wallets associated with the controller account. } +// MsgCreateControllerAccountResponse represents the response to a create +// controller account request. message MsgCreateControllerAccountResponse { - uint64 id = 1; - ControllerAccount account = 2; + uint64 id = 1; // The ID of the created controller account. + ControllerAccount account = 2; // The created controller account. } +// MsgUpdateControllerAccount represents a request to update an existing +// controller account. message MsgUpdateControllerAccount { - string address = 1; - uint64 id = 2; - repeated string authenticators = 4; - repeated string wallets = 5; + string address = 1; // The address of the controller account to be updated. + uint64 id = 2; // The ID of the controller account to be updated. + repeated string authenticators = + 4; // The updated authenticators of the controller account. + repeated string wallets = + 5; // The updated wallets associated with the controller account. } -message MsgUpdateControllerAccountResponse { ControllerAccount account = 1; } +// MsgUpdateControllerAccountResponse represents the response to an update +// controller account request. +message MsgUpdateControllerAccountResponse { + ControllerAccount account = 1; // The updated controller account. +} +// MsgDeleteControllerAccount represents a request to delete a controller +// account. message MsgDeleteControllerAccount { - string creator = 1; - string address = 2; + string creator = 1; // The creator of the controller account. + string address = 2; // The address of the controller account to be deleted. } +// MsgDeleteControllerAccountResponse represents the response to a delete +// controller account request. message MsgDeleteControllerAccountResponse {} +// MsgCreateEscrowAccount represents a request to create a new escrow account. message MsgCreateEscrowAccount { - string creator = 1; - string address = 2; - string publicKey = 3; - string lockupUsdBalance = 4; + string creator = 1; // The creator of the escrow account. + string address = 2; // The address of the escrow account. + string publicKey = 3; // The public key of the escrow account. + string lockupUsdBalance = 4; // The lockup USD balance of the escrow account. } +// MsgCreateEscrowAccountResponse represents the response to a create escrow +// account request. message MsgCreateEscrowAccountResponse { - uint64 id = 1; - EscrowAccount account = 2; + uint64 id = 1; // The ID of the created escrow account. + EscrowAccount account = 2; // The created escrow account. } +// MsgUpdateEscrowAccount represents a request to update an existing escrow +// account. message MsgUpdateEscrowAccount { - string creator = 1; - uint64 id = 2; - string address = 3; - string publicKey = 4; - string lockupUsdBalance = 5; + string creator = 1; // The creator of the escrow account. + uint64 id = 2; // The ID of the escrow account to be updated. + string address = 3; // The address of the escrow account to be updated. + string publicKey = 4; // The updated public key of the escrow account. + string lockupUsdBalance = + 5; // The updated lockup USD balance of the escrow account. } +// MsgUpdateEscrowAccountResponse represents the response to an update escrow +// account request. message MsgUpdateEscrowAccountResponse {} +// MsgDeleteEscrowAccount represents a request to delete an escrow account. message MsgDeleteEscrowAccount { - string creator = 1; - string address = 2; + string creator = 1; // The creator of the escrow account. + string address = 2; // The address of the escrow account to be deleted. } +// MsgDeleteEscrowAccountResponse represents the response to a delete escrow +// account request. message MsgDeleteEscrowAccountResponse {} diff --git a/proto/core/service/credential.proto b/proto/core/service/credential.proto deleted file mode 100644 index fdf47f75e..000000000 --- a/proto/core/service/credential.proto +++ /dev/null @@ -1,57 +0,0 @@ -syntax = "proto3"; -package core.service; - -option go_package = "github.com/sonrhq/core/x/service/types"; - -// WebauthnCredential contains all needed information about a WebAuthn -// credential for storage -message WebauthnCredential { - // A probabilistically-unique byte sequence identifying a public key - // credential source and its authentication assertions. - bytes id = 1; - - // The public key portion of a Relying Party-specific credential key pair, - // generated by an authenticator and returned to a Relying Party at - // registration time (see also public key credential). The private key portion - // of the credential key pair is known as the credential private key. Note - // that in the case of self attestation, the credential key pair is also used - // as the attestation key pair, see self attestation for details. - bytes public_key = 2; - - // The attestation format used (if any) by the authenticator when creating the - // credential. - string attestation_type = 3; - - // The transports used by the authenticator when creating the credential. - repeated string transport = 4; - - // The Authenticator information for a given certificate - WebauthnAuthenticator authenticator = 5; - - // The DID Controller of the credential - string controller = 6; -} - -// WebauthnAuthenticator contains certificate information about a WebAuthn -// authenticator -message WebauthnAuthenticator { - // The AAGUID of the authenticator. An AAGUID is defined as an array - // containing the globally unique identifier of the authenticator model being - // sought. - bytes aaguid = 1; - - // SignCount -Upon a new login operation, the Relying Party compares the - // stored signature counter value with the new signCount value returned in the - // assertion’s authenticator data. If this new signCount value is less than or - // equal to the stored value, a cloned authenticator may exist, or the - // authenticator may be malfunctioning. - uint32 sign_count = 2; - - // Attachment - This is a signal that the authenticator may be cloned, i.e. at - // least two copies of the credential private key may exist and are being used - // in parallel. Relying Parties should incorporate this information into their - // risk scoring. Whether the Relying Party updates the stored signature - // counter value in this case, or not, or fails the authentication ceremony or - // not, is Relying Party-specific. - string attachment = 3; -} diff --git a/proto/core/service/genesis.proto b/proto/core/service/genesis.proto index bbafb4197..82acf42fc 100644 --- a/proto/core/service/genesis.proto +++ b/proto/core/service/genesis.proto @@ -6,7 +6,7 @@ import "core/service/params.proto"; import "core/service/record.proto"; import "gogoproto/gogo.proto"; -option go_package = "github.com/sonrhq/core/x/service/types"; +option go_package = "github.com/sonr-io/core/x/service/types"; // GenesisState defines the service module's genesis state. message GenesisState { diff --git a/proto/core/service/org.proto b/proto/core/service/org.proto index 8d8027875..bcb08d263 100644 --- a/proto/core/service/org.proto +++ b/proto/core/service/org.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package core.service; -option go_package = "github.com/sonrhq/core/x/service/types"; +option go_package = "github.com/sonr-io/core/x/service/types"; message ServiceOrganization { string id = 1; diff --git a/proto/core/service/params.proto b/proto/core/service/params.proto index edf44385f..d647de697 100644 --- a/proto/core/service/params.proto +++ b/proto/core/service/params.proto @@ -3,7 +3,7 @@ package core.service; import "gogoproto/gogo.proto"; -option go_package = "github.com/sonrhq/core/x/service/types"; +option go_package = "github.com/sonr-io/core/x/service/types"; // Params defines the parameters for the module. message Params { option (gogoproto.goproto_stringer) = false; } diff --git a/proto/core/service/query.proto b/proto/core/service/query.proto index d1e03388d..10922d340 100644 --- a/proto/core/service/query.proto +++ b/proto/core/service/query.proto @@ -2,54 +2,63 @@ syntax = "proto3"; package core.service; +// Importing necessary proto files import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "core/service/params.proto"; import "core/service/record.proto"; -import "core/service/credential.proto"; import "core/identity/did.proto"; -option go_package = "github.com/sonrhq/core/x/service/types"; +option go_package = "github.com/sonr-io/core/x/service/types"; // Query defines the gRPC querier service. service Query { - - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/core/params/service"; } - // Queries a list of ServiceRecord items. + // ServiceRecord queries a list of ServiceRecord items. rpc ServiceRecord(QueryGetServiceRecordRequest) returns (QueryGetServiceRecordResponse) { option (google.api.http).get = "/core/service/{origin}"; } + + // ServiceRecordAll queries all ServiceRecord items. rpc ServiceRecordAll(QueryAllServiceRecordRequest) returns (QueryAllServiceRecordResponse) { option (google.api.http).get = "/core/service"; } } + // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { - // params holds all the parameters of this module. Params params = 1 [ (gogoproto.nullable) = false ]; } +// QueryGetServiceRecordRequest is the request type for the Query/ServiceRecord +// RPC method. message QueryGetServiceRecordRequest { string origin = 1; } +// QueryGetServiceRecordResponse is the response type for the +// Query/ServiceRecord RPC method. message QueryGetServiceRecordResponse { ServiceRecord ServiceRecord = 1 [ (gogoproto.nullable) = false ]; } +// QueryAllServiceRecordRequest is the request type for the +// Query/ServiceRecordAll RPC method. message QueryAllServiceRecordRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } +// QueryAllServiceRecordResponse is the response type for the +// Query/ServiceRecordAll RPC method. message QueryAllServiceRecordResponse { repeated ServiceRecord ServiceRecord = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; diff --git a/proto/core/service/record.proto b/proto/core/service/record.proto index f1159fb96..31e8be2ec 100644 --- a/proto/core/service/record.proto +++ b/proto/core/service/record.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package core.service; -option go_package = "github.com/sonrhq/core/x/service/types"; +option go_package = "github.com/sonr-io/core/x/service/types"; message ServiceRecord { string id = 1; diff --git a/proto/core/service/tx.proto b/proto/core/service/tx.proto index f7763a095..117436337 100644 --- a/proto/core/service/tx.proto +++ b/proto/core/service/tx.proto @@ -2,33 +2,54 @@ syntax = "proto3"; package core.service; +// Importing the necessary proto file. import "core/service/record.proto"; -option go_package = "github.com/sonrhq/core/x/service/types"; +// Specifying the go package for this service. +option go_package = "github.com/sonr-io/core/x/service/types"; // Msg defines the Msg service. +// This service provides CRUD operations for ServiceRecord. service Msg { + // CreateServiceRecord creates a new ServiceRecord. rpc CreateServiceRecord(MsgCreateServiceRecord) returns (MsgCreateServiceRecordResponse); + + // UpdateServiceRecord updates an existing ServiceRecord. rpc UpdateServiceRecord(MsgUpdateServiceRecord) returns (MsgUpdateServiceRecordResponse); + + // DeleteServiceRecord deletes an existing ServiceRecord. rpc DeleteServiceRecord(MsgDeleteServiceRecord) returns (MsgDeleteServiceRecordResponse); } + +// MsgCreateServiceRecord is the request type for the CreateServiceRecord +// method. It takes a creator as a parameter. message MsgCreateServiceRecord { string creator = 1; } +// MsgCreateServiceRecordResponse is the response type for the +// CreateServiceRecord method. It returns the id of the created ServiceRecord. message MsgCreateServiceRecordResponse { uint64 id = 1; } +// MsgUpdateServiceRecord is the request type for the UpdateServiceRecord +// method. It takes a creator and an id as parameters. message MsgUpdateServiceRecord { string creator = 1; uint64 id = 2; } +// MsgUpdateServiceRecordResponse is the response type for the +// UpdateServiceRecord method. It doesn't return any specific value. message MsgUpdateServiceRecordResponse {} +// MsgDeleteServiceRecord is the request type for the DeleteServiceRecord +// method. It takes a creator and an id as parameters. message MsgDeleteServiceRecord { string creator = 1; uint64 id = 2; } +// MsgDeleteServiceRecordResponse is the response type for the +// DeleteServiceRecord method. It doesn't return any specific value. message MsgDeleteServiceRecordResponse {} diff --git a/proto/highway/authentication/v1/service.proto b/proto/highway/authentication/v1/service.proto index 2258a503c..341831702 100644 --- a/proto/highway/authentication/v1/service.proto +++ b/proto/highway/authentication/v1/service.proto @@ -1,106 +1,125 @@ syntax = "proto3"; +// Package highway.authentication.v1 provides authentication services. package highway.authentication.v1; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; -option go_package = "github.com/sonrhq/core/types/highway/authentication/v1;authenticationpb"; +option go_package = "github.com/sonr-io/core/types/highway/authentication/v1;authenticationpb"; +// AuthenticationService provides methods for user authentication. service AuthenticationService { + // Params retrieves authentication parameters. rpc Params(ParamsRequest) returns (ParamsResponse) { option (google.api.http).get = "/highway/auth/params/{origin}"; } + // Login authenticates a user. rpc Login(LoginRequest) returns (LoginResponse) { option (google.api.http).post = "/highway/auth/login/{origin}"; } + // Register registers a new user. rpc Register(RegisterRequest) returns (RegisterResponse) { option (google.api.http).post = "/highway/auth/register/{origin}"; } + // CurrentUser retrieves the currently authenticated user. rpc CurrentUser(google.protobuf.Empty) returns (CurrentUserResponse) { option (google.api.http).get = "/highway/auth/current"; } + // RefreshToken refreshes a user's authentication token. rpc RefreshToken(RefreshTokenRequest) returns (RefreshTokenResponse) { option (google.api.http).post = "/highway/auth/jwt/refresh/{jwt}"; } + // VerifyToken verifies a user's authentication token. rpc VerifyToken(VerifyTokenRequest) returns (VerifyTokenResponse) { option (google.api.http).post = "/highway/auth/jwt/verify/{jwt}"; } } +// LoginRequest is the request for the Login method. message LoginRequest { - string origin = 1; - string alias = 2; - string assertion = 3; + string origin = 1; // The origin of the request. + string alias = 2; // The user's alias. + string assertion = 3; // The user's assertion. } +// LoginResponse is the response from the Login method. message LoginResponse { - bool success = 1; - string message = 2; - string jwt = 3; - string address = 4; - string origin = 5; + bool success = 1; // Indicates if the login was successful. + string message = 2; // A message about the login attempt. + string jwt = 3; // The user's JSON Web Token. + string address = 4; // The user's address. + string origin = 5; // The origin of the request. } +// CurrentUserResponse is the response from the CurrentUser method. message CurrentUserResponse { - bool success = 1; - string message = 2; - string address = 3; - string alias = 4; - string origin = 5; + bool success = 1; // Indicates if the request was successful. + string message = 2; // A message about the request. + string address = 3; // The user's address. + string alias = 4; // The user's alias. + string origin = 5; // The origin of the request. } +// ParamsRequest is the request for the Params method. message ParamsRequest { - bool existing = 1; - string origin = 2; - string alias = 3; + bool existing = 1; // Indicates if the user exists. + string origin = 2; // The origin of the request. + string alias = 3; // The user's alias. } +// ParamsResponse is the response from the Params method. message ParamsResponse { -bool success = 1; - string message = 2; - bool existing = 3; - string origin = 4; - string alias = 5; - string address = 6; - string challenge = 7; - string attestation_options = 8; - string assertion_options = 9; + bool success = 1; // Indicates if the request was successful. + string message = 2; // A message about the request. + bool existing = 3; // Indicates if the user exists. + string origin = 4; // The origin of the request. + string alias = 5; // The user's alias. + string address = 6; // The user's address. + string challenge = 7; // The challenge for the user. + string attestation_options = 8; // The attestation options for the user. + string assertion_options = 9; // The assertion options for the user. } +// RegisterRequest is the request for the Register method. message RegisterRequest { - string origin = 1; - string username = 2; - string attestation = 3; - string challenge = 4; + string origin = 1; // The origin of the request. + string username = 2; // The user's username. + string attestation = 3; // The user's attestation. + string challenge = 4; // The challenge for the user. } +// RegisterResponse is the response from the Register method. message RegisterResponse { - bool success = 1; - string message = 2; - string tx_hash = 3; - string address = 4; - string jwt = 5; - string origin = 6; + bool success = 1; // Indicates if the registration was successful. + string message = 2; // A message about the registration attempt. + string tx_hash = 3; // The transaction hash of the registration. + string address = 4; // The user's address. + string jwt = 5; // The user's JSON Web Token. + string origin = 6; // The origin of the request. } -message RefreshTokenRequest { string jwt = 1; } +// RefreshTokenRequest is the request for the RefreshToken method. +message RefreshTokenRequest { string jwt = 1; } // The user's JSON Web Token. +// RefreshTokenResponse is the response from the RefreshToken method. message RefreshTokenResponse { - bool success = 1; - string message = 2; - string new_jwt = 3; + bool success = 1; // Indicates if the token refresh was successful. + string message = 2; // A message about the token refresh attempt. + string new_jwt = 3; // The new JSON Web Token. } -message VerifyTokenRequest { string jwt = 1; } +// VerifyTokenRequest is the request for the VerifyToken method. +message VerifyTokenRequest { string jwt = 1; } // The user's JSON Web Token. +// VerifyTokenResponse is the response from the VerifyToken method. message VerifyTokenResponse { - bool success = 1; - string message = 2; - bool is_valid = 3; + bool success = 1; // Indicates if the token verification was successful. + string message = 2; // A message about the token verification attempt. + bool is_valid = 3; // Indicates if the token is valid. } diff --git a/proto/highway/database/v1/service.proto b/proto/highway/database/v1/service.proto index fa63e6122..31f404198 100644 --- a/proto/highway/database/v1/service.proto +++ b/proto/highway/database/v1/service.proto @@ -5,7 +5,7 @@ package highway.database.v1; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; -option go_package = "github.com/sonrhq/core/types/highway/database/v1;databasepb"; +option go_package = "github.com/sonr-io/core/types/highway/database/v1;databasepb"; service DatabaseService { rpc Health(HealthRequest) returns (HealthResponse) { diff --git a/proto/highway/storage/v1/service.proto b/proto/highway/storage/v1/service.proto index be2e900e4..d576be9d9 100644 --- a/proto/highway/storage/v1/service.proto +++ b/proto/highway/storage/v1/service.proto @@ -4,15 +4,18 @@ package highway.storage.v1; import "google/api/annotations.proto"; -option go_package = "github.com/sonrhq/core/types/highway/storage/v1;storagepb"; +option go_package = "github.com/sonr-io/core/types/highway/storage/v1;storagepb"; +// StorageService provides methods for storing and retrieving data. service StorageService { + // GetCID retrieves data associated with a given CID. rpc GetCID(GetCIDRequest) returns (GetCIDResponse) { option (google.api.http) = { get : "/v1/cid/{cid}" }; } + // PutData stores data and associates it with a given CID. rpc PutData(PutDataRequest) returns (PutDataResponse) { option (google.api.http) = { post : "/v1/cid/{cid}" @@ -20,16 +23,30 @@ service StorageService { } } -message GetCIDRequest { string cid = 1; } +// GetCIDRequest is the request type for the GetCID method. +message GetCIDRequest { + // cid is the content identifier of the data to retrieve. + string cid = 1; +} +// GetCIDResponse is the response type for the GetCID method. message GetCIDResponse { + // cid is the content identifier of the retrieved data. string cid = 1; + // data is the retrieved data. string data = 2; } +// PutDataRequest is the request type for the PutData method. message PutDataRequest { + // cid is the content identifier to associate with the data. string cid = 1; + // data is the data to store. string data = 2; } -message PutDataResponse { string cid = 1; } +// PutDataResponse is the response type for the PutData method. +message PutDataResponse { + // cid is the content identifier associated with the stored data. + string cid = 1; +} diff --git a/proto/highway/wallet/v1/service.proto b/proto/highway/wallet/v1/service.proto index ad7ad1110..76543ff55 100644 --- a/proto/highway/wallet/v1/service.proto +++ b/proto/highway/wallet/v1/service.proto @@ -5,32 +5,38 @@ package highway.wallet.v1; import "core/crypto/coin.proto"; import "google/api/annotations.proto"; -option go_package = "github.com/sonrhq/core/types/highway/wallet/v1;walletpb"; +option go_package = "github.com/sonr-io/core/types/highway/wallet/v1;walletpb"; +// WalletService provides methods for managing wallet accounts. service WalletService { + // CreateAccount creates a new account. rpc CreateAccount(CreateAccountRequest) returns (CreateAccountResponse) { option (google.api.http).post = "/highway/wallet/accounts/create"; } + // GetAccount retrieves an account by its address. rpc GetAccount(GetAccountRequest) returns (GetAccountResponse) { option (google.api.http).post = "/highway/wallet/accounts/get"; } + // ListAccounts lists all accounts. rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { option (google.api.http).post = "/highway/wallet/accounts/list"; } - + // SignMessage signs a message with the private key of an account. rpc SignMessage(SignMessageRequest) returns (SignMessageResponse) { option (google.api.http).post = "/highway/wallet/accounts/sign"; } - - rpc VerifySignature(VerifySignatureRequest) returns (VerifySignatureResponse) { + // VerifySignature verifies a signature with the public key of an account. + rpc VerifySignature(VerifySignatureRequest) + returns (VerifySignatureResponse) { option (google.api.http).post = "/highway/wallet/accounts/verify"; } - + // ExportWallet exports a wallet. rpc ExportWallet(ExportWalletRequest) returns (ExportWalletResponse) { option (google.api.http).post = "/highway/wallet/export"; } } +// CreateAccountRequest is the request message for creating an account. message CreateAccountRequest { string jwt = 1; string name = 2; @@ -38,6 +44,7 @@ message CreateAccountRequest { string network = 4; } +// CreateAccountResponse is the response message for creating an account. message CreateAccountResponse { bool success = 1; string message = 2; @@ -46,11 +53,13 @@ message CreateAccountResponse { string owner = 5; } +// GetAccountRequest is the request message for getting an account. message GetAccountRequest { string jwt = 1; string address = 2; } +// GetAccountResponse is the response message for getting an account. message GetAccountResponse { bool success = 1; string message = 2; @@ -59,28 +68,31 @@ message GetAccountResponse { string owner = 5; } -message ListAccountsRequest { - string jwt = 1; -} +// ListAccountsRequest is the request message for listing accounts. +message ListAccountsRequest { string jwt = 1; } +// ListAccountsResponse is the response message for listing accounts. message ListAccountsResponse { bool success = 1; string message = 2; repeated string accounts = 3; } +// SignMessageRequest is the request message for signing a message. message SignMessageRequest { string jwt = 1; string address = 2; bytes message = 3; } +// SignMessageResponse is the response message for signing a message. message SignMessageResponse { bool success = 1; string message = 2; bytes signature = 3; } +// VerifySignatureRequest is the request message for verifying a signature. message VerifySignatureRequest { string jwt = 1; string address = 2; @@ -88,17 +100,20 @@ message VerifySignatureRequest { bytes signature = 4; } +// VerifySignatureResponse is the response message for verifying a signature. message VerifySignatureResponse { bool success = 1; string message = 2; bool message_verified = 3; } +// ExportWalletRequest is the request message for exporting a wallet. message ExportWalletRequest { string jwt = 1; string address = 2; } +// ExportWalletResponse is the response message for exporting a wallet. message ExportWalletResponse { bool success = 1; string message = 2; diff --git a/scripts/protoc-swagger-gen.sh b/scripts/protoc-swagger-gen.sh new file mode 100644 index 000000000..301f73eec --- /dev/null +++ b/scripts/protoc-swagger-gen.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -eo pipefail + +mkdir -p ./docs/static/swagger +cd proto +proto_dirs=$(find ./ -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +for dir in $proto_dirs; do + # generate swagger files (filter query files) + query_file=$(find "${dir}" -maxdepth 1 \( -name 'query.proto' -o -name 'service.proto' \)) + if [[ ! -z "$query_file" ]]; then + buf generate --template buf.gen.swagger.yaml $query_file + fi +done diff --git a/scripts/protocgen-pulsar.sh b/scripts/protocgen-pulsar.sh new file mode 100644 index 000000000..c43efac04 --- /dev/null +++ b/scripts/protocgen-pulsar.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# this script is for generating protobuf files for the new google.golang.org/protobuf API +set -eo pipefail + +echo "Cleaning API directory" +(cd api; find ./ -type f \( -iname \*.pulsar.go -o -iname \*.pb.go -o -iname \*.cosmos_orm.go -o -iname \*.pb.gw.go \) -delete; find . -empty -type d -delete; cd ..) + +echo "Generating API module" +(cd proto; buf generate --template buf.gen.pulsar.yaml) + +echo "Generate Pulsar Test Data" +(cd testutil/testdata; buf generate --template buf.gen.pulsar.yaml) + +echo "Generate x/tx" +(cd x/tx; make codegen) diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index a5e96c360..41434761e 100644 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -23,5 +23,5 @@ done cd .. # move proto files to the right places -cp -r github.com/sonrhq/core/* ./ +cp -r github.com/sonr-io/core/* ./ rm -rf github.com diff --git a/testutil/keeper/domain.go b/testutil/keeper/domain.go index 61df6f8d7..c8d51a756 100644 --- a/testutil/keeper/domain.go +++ b/testutil/keeper/domain.go @@ -12,8 +12,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/testutil/keeper/identity.go b/testutil/keeper/identity.go index cf18a3aba..699bc5586 100644 --- a/testutil/keeper/identity.go +++ b/testutil/keeper/identity.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" tmdb "github.com/cometbft/cometbft-db" "github.com/cometbft/cometbft/libs/log" diff --git a/testutil/keeper/service.go b/testutil/keeper/service.go index fe4be256e..9884b649c 100644 --- a/testutil/keeper/service.go +++ b/testutil/keeper/service.go @@ -12,8 +12,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/sonrhq/core/x/service/keeper" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/keeper" + "github.com/sonr-io/core/x/service/types" "github.com/stretchr/testify/require" ) diff --git a/testutil/network/network.go b/testutil/network/network.go index 0d47d27b9..18adae145 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -18,8 +18,8 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/stretchr/testify/require" - "github.com/sonrhq/core/app" - "github.com/sonrhq/core/internal/highway" + "github.com/sonr-io/core/app" + "github.com/sonr-io/core/internal/highway" ) type ( @@ -73,9 +73,7 @@ func DefaultConfig() network.Config { val.GetCtx().Config.RootDir, 0, encoding, - nil, simtestutil.EmptyAppOptions{}, - nil, highway.DefaultConfig(), baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), baseapp.SetMinGasPrices(val.GetAppConfig().MinGasPrices), diff --git a/testutil/wasm/README.md b/testutil/wasm/README.md deleted file mode 100644 index 1c526ec99..000000000 --- a/testutil/wasm/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# WASM TEST - -This file contains a simple script that uploads and inits a CW721 NFT contract. - -To Run the Test simply update in the wallet.js - -Run `yarn` to install the node modules - -To Run The Test Run: `node wasm_test.js` - -Successful run should print address in console(eg): - -```shell -Upload succeeded. Receipt: {"originalSize":253184,"originalChecksum":"774e483a4a133ec4dc418aac96a233fff292e6efaf73afd78160de1b422ca3e3","compressedSize":83970,"compressedChecksum":"ed5f33ab36241d37435d566ce4c15a0afb9cf1f6e66cf4dcb1c -39629d1f8de87","codeId":1,"logs":[{"msg_index":0,"log":"","events":[{"type":"message","attributes":[{"key":"action","value":"/cosmwasm.wasm.v1.MsgStoreCode"},{"key":"module","value":"wasm"},{"key":"sender","value":"snr1vl4xg8quydtgj -9p7psqcpzs9x5azv534hdh49q"}]},{"type":"store_code","attributes":[{"key":"code_id","value":"1"}]}]}],"height":415,"transactionHash":"14A1981ADF3FEFB66254160D569C0B6545969BEF1440C2E8063C924E157529B6","gasWanted":0,"gasUsed":933124} - - -Contract instantiated at snr14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sxac83d -Contract Address snr14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sxac83d -snr14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sxac83d -``` diff --git a/testutil/wasm/constants.js b/testutil/wasm/constants.js deleted file mode 100644 index d3a8be8a6..000000000 --- a/testutil/wasm/constants.js +++ /dev/null @@ -1,2 +0,0 @@ -export const main_addr = "idx1vl4xg8quydtgj9p7psqcpzs9x5azv534hdh49q" -export const NftContractAddress = "artifacts/cw721_base.wasm" diff --git a/testutil/wasm/nft_test.js b/testutil/wasm/nft_test.js deleted file mode 100644 index f21c5d115..000000000 --- a/testutil/wasm/nft_test.js +++ /dev/null @@ -1,418 +0,0 @@ -import {NftContractAddress} from "./constants.js"; -import {Wallet} from "./wallet.js"; - -let test_name = "Test" - -export class NftTestEngine extends Wallet { - - constructor( - mnemonic, - minter, - name, - symbol, - ) { - super(mnemonic); - this.contract_path = NftContractAddress - this.init_message = { - "minter": minter, - "name": name, - "symbol": symbol, - } - - } - - async setup() { - await this.initialize(); - this.code_id = await this.upload(this.contract_path) - console.log() - this.contract_address = await this.init(this.code_id.codeId, this.init_message); - console.log(`Contract Address ${this.contract_address}`) - - } - - async transfer_nft( - recipient, - token_id, - ) { - console.log("Executing transfer_nft") - let message = { - transfer_nft: { - - "recipient": recipient, - - "token_id": token_id, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async send_nft( - contract, - msg, - token_id, - ) { - console.log("Executing send_nft") - let message = { - send_nft: { - - "contract": contract, - - "msg": msg, - - "token_id": token_id, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async approve( - spender, - token_id, - ) { - console.log("Executing approve") - let message = { - approve: { - - "spender": spender, - - "token_id": token_id, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async revoke( - spender, - token_id, - ) { - console.log("Executing revoke") - let message = { - revoke: { - - "spender": spender, - - "token_id": token_id, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async approve_all( - operator, - ) { - console.log("Executing approve_all") - let message = { - approve_all: { - - "operator": operator, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async revoke_all( - operator, - ) { - console.log("Executing revoke_all") - let message = { - revoke_all: { - - "operator": operator, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async mint() { - console.log("Executing mint") - let message = { - mint: {} - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async burn( - token_id, - ) { - console.log("Executing burn") - let message = { - burn: { - - "token_id": token_id, - - - } - } - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async owner_of( - token_id, - ) { - console.log("Querying owner_of") - let message = { - owner_of: { - - "token_id": token_id, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async approval( - spender, - token_id, - ) { - console.log("Querying approval") - let message = { - approval: { - - "spender": spender, - - "token_id": token_id, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async approvals( - token_id, - ) { - console.log("Querying approvals") - let message = { - approvals: { - - "token_id": token_id, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async all_operators( - owner, - ) { - console.log("Querying all_operators") - let message = { - all_operators: { - - "owner": owner, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async num_tokens() { - console.log("Querying num_tokens") - let message = { - num_tokens: {} - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async contract_info() { - console.log("Querying contract_info") - let message = { - contract_info: {} - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async nft_info( - token_id, - ) { - console.log("Querying nft_info") - let message = { - nft_info: { - - "token_id": token_id, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async all_nft_info( - token_id, - ) { - console.log("Querying all_nft_info") - let message = { - all_nft_info: { - - "token_id": token_id, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async tokens( - owner, - ) { - console.log("Querying tokens") - let message = { - tokens: { - - "owner": owner, - - - } - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async all_tokens() { - console.log("Querying all_tokens") - let message = { - all_tokens: {} - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - - async minter() { - console.log("Querying minter") - let message = { - minter: {} - } - - - let response = this.execute_contract(message, this.contract_address) - console.log(response) - return response - - - } - - -} \ No newline at end of file diff --git a/testutil/wasm/package.json b/testutil/wasm/package.json deleted file mode 100644 index 06048ae1c..000000000 --- a/testutil/wasm/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "testing", - "version": "1.0.0", - "description": "Testing", - "license": "NO LICENSE", - "scripts": { - "start": "node -r dotenv/config index.js", - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "Utkarsh Varma", - "dependencies": { - "@cosmjs/stargate": "^0.28.4", - "@cosmjs/cosmwasm-stargate": "^0.28.4", - "@cosmjs/proto-signing": "^0.28.4", - "chai": "^4.3.6", - "node-fetch": "^3.2.5", - "protobufjs": "^6.10.2" - }, - "devDependencies": { - "chalk": "^4.1.2" - }, - "type": "module" -} diff --git a/testutil/wasm/wallet.js b/testutil/wasm/wallet.js deleted file mode 100644 index 54ada7e23..000000000 --- a/testutil/wasm/wallet.js +++ /dev/null @@ -1,154 +0,0 @@ -//import message from "@cosmostation/cosmosjs/src/messages/proto.js"; -import fs from "fs"; -import fetch from "node-fetch"; -//import {Cosmos} from "@cosmostation/cosmosjs"; -import {SigningCosmWasmClient} from "@cosmjs/cosmwasm-stargate"; -import {DirectSecp256k1HdWallet} from "@cosmjs/proto-signing"; -import {calculateFee, GasPrice} from "@cosmjs/stargate"; -import wasmTxType from "cosmjs-types/cosmwasm/wasm/v1/tx.js"; -import {toUtf8} from "@cosmjs/encoding"; - -const {MsgExecuteContract, MsgSend} = wasmTxType; - -const debug = true - -const chainId = "sonr" -//const lcdUrl = "http://localhost:1317" -const endpoint = "http://localhost:26657"; - - -// Copy Memonic from the Terminal and UPDATE IT HERE -export const mnemonic = "service ball cushion genius salmon cross find grape inject long inquiry rent liberty object raw nest alarm category crime adapt awesome taxi visual exhibit" - - -export class Wallet { - wallet_address; - publicKey; - privateKey; - client; - gasPrice; - memonic; - - constructor(memonic) { - - this.memonic = memonic; - } - - async initialize() { - const wallet = await DirectSecp256k1HdWallet.fromMnemonic(this.memonic, {prefix: "snr"}); - const account = await wallet.getAccounts(); - this.wallet_address = account[0].address; - this.client = await SigningCosmWasmClient.connectWithSigner(endpoint, wallet, {gasPrice: GasPrice.fromString("1snr")}); - } - - async sign_and_broadcast(messages) { - const memo = "sign_and_broadcast_memo"; - console.log(messages) - return this.client.signAndBroadcast(this.wallet_address, messages, "auto", memo) - } - - async send_funds(to_address, amount, denom) { - - return this.sign_and_broadcast([{ - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: { - fromAddress: this.wallet_address, - toAddress: to_address, - amount: [{amount: amount, denom: denom}] - } - } - ]) - } - - async execute_contract(msg, contractAddress, coins) { - let msg_list = [] - if (Array.isArray(msg)) { - msg.forEach((msg) => { - msg_list.push(this.get_execute(msg, contractAddress, coins)) - }) - - } else { - msg_list = [ - this.get_execute(msg, contractAddress, coins) - ] - } - console.log("execute_contract is called") - console.log(JSON.stringify(msg_list)) - let response = await this.sign_and_broadcast(msg_list) - console.log(response) - return response - } - - get_execute(msg, contract, coins) { - - if (typeof coins === "object") { - coins = [coins] - } else { - coins = [] - } - - const executeContractMsg = { - typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract", - value: MsgExecuteContract.fromPartial({ - sender: this.wallet_address, - contract: contract, - msg: (0, toUtf8)(JSON.stringify(msg)), - funds: coins, - }), - }; - return executeContractMsg; - } - - query(address, query) { - - return this.client.queryContractSmart(address, JSON.stringify(query)) - } - - - async upload(file) { - const code = fs.readFileSync(file); - const uploadReceipt = await this.client.upload( - this.wallet_address, - code, - "auto", - "Uploading contract", - ); - console.info(`Upload succeeded. Receipt: ${JSON.stringify(uploadReceipt)}`); - return uploadReceipt - } - - async init(code_id, contract_init) { - - const instantiateFee = calculateFee(500, GasPrice.fromString("0.0001snr")); - const {contractAddress} = await this.client.instantiate( - this.wallet_address, - code_id, - contract_init, - "some_label", - "auto", - { - memo: `Create a instance of contract`, - admin: this.wallet_address, - }, - ); - console.info(`Contract instantiated at ${contractAddress}`); - return contractAddress - - } - - - sleep(time) { - return new Promise((resolve) => setTimeout(resolve, time)); - } - - queryBankUusd(address) { - let api = "/cosmos/bank/1beta1/balances/"; - return fetch(this.url + api + address).then(response => response.json()) - } - - -} - - -let wallet = new Wallet(mnemonic) -await wallet.initialize(); diff --git a/testutil/wasm/wasm_test.js b/testutil/wasm/wasm_test.js deleted file mode 100644 index a0c08fbf8..000000000 --- a/testutil/wasm/wasm_test.js +++ /dev/null @@ -1,15 +0,0 @@ -import {mnemonic} from "./wallet.js"; -import {NftTestEngine} from "./nft_test.js"; -import {main_addr} from "./constants.js"; - -let NFT721 = new NftTestEngine( - mnemonic, - main_addr, - "TEST", - "TEST" -) - -await NFT721.setup() -console.log(NFT721.contract_address) -// console.log("Re-resending Same TX to crash and regenerate the error ( tx already exists in cache )") -// await NFT721.setup() diff --git a/types/crypto/coin.pb.go b/types/crypto/coin.pb.go index b61757995..825268e77 100644 --- a/types/crypto/coin.pb.go +++ b/types/crypto/coin.pb.go @@ -154,28 +154,28 @@ func init() { func init() { proto.RegisterFile("core/crypto/coin.proto", fileDescriptor_13d3edf1068b796d) } var fileDescriptor_13d3edf1068b796d = []byte{ - // 321 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0xd1, 0xcb, 0x4e, 0xf2, 0x40, - 0x1c, 0x05, 0xf0, 0x0e, 0xf0, 0x71, 0xf9, 0xc3, 0x17, 0x87, 0xf1, 0x92, 0x2e, 0x4c, 0x43, 0x74, - 0x43, 0x5c, 0xd0, 0x85, 0x6b, 0x17, 0x5c, 0x46, 0x69, 0x84, 0xd6, 0xb4, 0x63, 0xa2, 0x6e, 0x4c, - 0x19, 0x1a, 0x68, 0x82, 0x9d, 0xda, 0x96, 0x45, 0xdf, 0xc2, 0xc7, 0x72, 0xc9, 0xd2, 0xa5, 0xa1, - 0x0f, 0xe0, 0x2b, 0x18, 0x8b, 0xd4, 0xcc, 0xee, 0x3f, 0xbf, 0x9c, 0x93, 0x59, 0x1c, 0x38, 0xe1, - 0x22, 0xf2, 0x74, 0x1e, 0xa5, 0x61, 0x22, 0x74, 0x2e, 0xfc, 0xa0, 0x17, 0x46, 0x22, 0x11, 0xa4, - 0xf9, 0xe3, 0xbd, 0x9d, 0x9f, 0x3d, 0x42, 0xb3, 0xcf, 0xb9, 0x58, 0x07, 0xc9, 0xc8, 0x4d, 0x5c, - 0xa2, 0x42, 0xcd, 0x9d, 0xcf, 0x23, 0x2f, 0x8e, 0x55, 0xd4, 0x41, 0xdd, 0x86, 0xbd, 0x7f, 0x12, - 0x02, 0x15, 0x77, 0xb5, 0x10, 0x6a, 0x29, 0xe7, 0xfc, 0x26, 0xa7, 0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 323 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0xd1, 0xcb, 0x4a, 0xf3, 0x40, + 0x1c, 0x05, 0xf0, 0x4c, 0xdb, 0xaf, 0x97, 0x7f, 0xfb, 0xe1, 0x74, 0xbc, 0x90, 0x85, 0x84, 0x22, + 0x2e, 0x8a, 0x60, 0xb3, 0x70, 0x2f, 0xf4, 0x32, 0xda, 0x60, 0x9b, 0x48, 0x32, 0x82, 0xba, 0x91, + 0x74, 0x1a, 0x6a, 0xa0, 0x66, 0x42, 0x92, 0x2e, 0xf2, 0x16, 0x3e, 0x96, 0xcb, 0x2e, 0x5d, 0x4a, + 0xf3, 0x00, 0xbe, 0x82, 0x34, 0xb5, 0x91, 0xd9, 0xfd, 0xe7, 0xc7, 0x39, 0xcc, 0xe2, 0xc0, 0x09, + 0x17, 0x91, 0xa7, 0xf3, 0x28, 0x0d, 0x13, 0xa1, 0x73, 0xe1, 0x07, 0xbd, 0x30, 0x12, 0x89, 0x20, + 0xcd, 0xad, 0xf7, 0x76, 0x7e, 0xf6, 0x04, 0xcd, 0x3e, 0xe7, 0x62, 0x15, 0x24, 0x23, 0x37, 0x71, + 0x89, 0x0a, 0x35, 0x77, 0x3e, 0x8f, 0xbc, 0x38, 0x56, 0x51, 0x07, 0x75, 0x1b, 0xf6, 0xfe, 0x49, + 0x08, 0x54, 0xdc, 0xe5, 0x42, 0xa8, 0xa5, 0x9c, 0xf3, 0x9b, 0x9c, 0x42, 0x23, 0x5c, 0xcd, 0x96, + 0x3e, 0xbf, 0xf3, 0x52, 0xb5, 0xdc, 0x41, 0xdd, 0x96, 0xfd, 0x07, 0x17, 0xdf, 0x08, 0xea, 0x43, + 0xe1, 0x07, 0x2c, 0x0d, 0x3d, 0x72, 0x04, 0x78, 0x7f, 0xbf, 0x0c, 0x0c, 0x36, 0xb4, 0x0c, 0x13, + 0x2b, 0x92, 0x32, 0xea, 0x30, 0x93, 0x32, 0x8c, 0xc8, 0x31, 0xb4, 0x0b, 0x9d, 0x18, 0x8c, 0xe6, + 0xe1, 0x12, 0x69, 0xc3, 0xff, 0x82, 0x47, 0xd6, 0x2d, 0xc5, 0x65, 0x29, 0x49, 0xd9, 0x98, 0xda, + 0xf4, 0x61, 0x8a, 0x2b, 0x52, 0xd2, 0xb1, 0x4c, 0x1b, 0xff, 0x23, 0x87, 0x70, 0x50, 0xd0, 0xd0, + 0x72, 0xa6, 0x96, 0x83, 0xab, 0x52, 0xfd, 0xc6, 0x98, 0xec, 0x3e, 0xaa, 0x11, 0x0c, 0xad, 0x82, + 0xc7, 0xa6, 0x83, 0xeb, 0x52, 0xdb, 0xb1, 0x26, 0x7d, 0xb3, 0x8f, 0x1b, 0x52, 0xec, 0xd1, 0xbe, + 0xc7, 0x30, 0xb8, 0xfe, 0xd8, 0x68, 0x68, 0xbd, 0xd1, 0xd0, 0xd7, 0x46, 0x43, 0xef, 0x99, 0xa6, + 0xac, 0x33, 0x4d, 0xf9, 0xcc, 0x34, 0xe5, 0xf9, 0x7c, 0xe1, 0x27, 0xaf, 0xab, 0x59, 0x8f, 0x8b, + 0x37, 0x3d, 0x16, 0x41, 0x74, 0xe9, 0x6f, 0x27, 0x89, 0x3c, 0x3d, 0x49, 0x43, 0x2f, 0xfe, 0x1d, + 0x69, 0x56, 0xcd, 0x07, 0xba, 0xfa, 0x09, 0x00, 0x00, 0xff, 0xff, 0x78, 0x29, 0x1a, 0x89, 0xba, + 0x01, 0x00, 0x00, } func (m *AccountData) Marshal() (dAtA []byte, err error) { diff --git a/types/crypto/ssi.pb.go b/types/crypto/ssi.pb.go index 1414c1408..b58a886af 100644 --- a/types/crypto/ssi.pb.go +++ b/types/crypto/ssi.pb.go @@ -384,48 +384,48 @@ func init() { proto.RegisterFile("core/crypto/ssi.proto", fileDescriptor_6e1e1dd var fileDescriptor_6e1e1ddaeb1c143c = []byte{ // 689 bytes of a gzipped FileDescriptorProto 0x1f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x45, 0x16, 0x28, 0x1a, 0x4e, 0xbd, 0x11, 0x19, - 0xa4, 0xc0, 0x84, 0x4d, 0xb1, 0xc5, 0x70, 0x47, 0x49, 0x08, 0x28, 0x72, 0x51, 0x06, 0x52, 0x1d, - 0x72, 0x6e, 0x39, 0xae, 0x92, 0x14, 0x89, 0xd0, 0x5b, 0x3e, 0x84, 0x85, 0xd7, 0xc6, 0x5e, 0xe3, - 0x10, 0xb7, 0x0d, 0xe7, 0xd8, 0xb5, 0x58, 0x97, 0x62, 0x75, 0x43, 0xdd, 0x08, 0x04, 0xe5, 0x21, - 0x29, 0xe6, 0x11, 0x8a, 0xa6, 0x54, 0xf4, 0xbb, 0x22, 0x3d, 0x00, 0x50, 0x1a, 0xe4, 0xd3, 0x8f, - 0x7e, 0x28, 0x82, 0x9b, 0xcb, 0x3f, 0x64, 0x98, 0x3b, 0x10, 0x13, 0x5a, 0xed, 0x33, 0x5c, 0xa5, - 0xb8, 0x83, 0x5d, 0xe6, 0x58, 0x67, 0x68, 0x06, 0xe2, 0x4e, 0x47, 0x74, 0x9c, 0xd4, 0xe3, 0x4e, - 0x30, 0x33, 0x71, 0x19, 0xbe, 0x64, 0x4a, 0x3c, 0x27, 0x8b, 0x99, 0x03, 0x17, 0xa1, 0x70, 0x9f, - 0xb2, 0x08, 0x07, 0x7b, 0xcb, 0x40, 0xca, 0xf1, 0xfd, 0x2e, 0xa6, 0xa1, 0xc0, 0xd0, 0xe3, 0xfb, - 0xe4, 0x96, 0xe5, 0xda, 0xd8, 0xec, 0x58, 0x0c, 0x87, 0x32, 0xa7, 0xa3, 0x60, 0xcd, 0x62, 0x18, - 0x3d, 0x82, 0x3b, 0xf8, 0xd2, 0x73, 0x68, 0xb0, 0x4d, 0x81, 0xa5, 0x04, 0x36, 0x33, 0x08, 0x0b, - 0xf0, 0x18, 0x90, 0xdd, 0x9f, 0xd8, 0xf4, 0xbb, 0xed, 0x53, 0x6c, 0x33, 0x65, 0x22, 0x27, 0xe7, - 0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cd, 0x16, 0xe9, 0xbb, 0xf0, 0xfd, 0x78, + 0xf4, 0xe2, 0x91, 0xa3, 0x47, 0x07, 0x0e, 0x9e, 0x7d, 0x07, 0xce, 0x6e, 0x92, 0xb6, 0xd4, 0x3a, + 0x8e, 0x97, 0xce, 0xf3, 0xe7, 0xf3, 0x3c, 0x7d, 0xbe, 0x4f, 0x76, 0x17, 0xe6, 0x6d, 0x42, 0x71, + 0xd1, 0xa6, 0x3d, 0x8f, 0x91, 0xa2, 0xef, 0x3b, 0x05, 0x8f, 0x12, 0x46, 0xd0, 0x14, 0x0f, 0x17, + 0x82, 0xf0, 0xf2, 0x67, 0x09, 0x92, 0x4d, 0x4a, 0xc8, 0x31, 0x5a, 0x83, 0x04, 0xeb, 0x79, 0x58, + 0x91, 0x72, 0x52, 0x7e, 0x46, 0xcd, 0x14, 0x86, 0xa8, 0x82, 0x20, 0x5a, 0x3d, 0x0f, 0xeb, 0x82, + 0x41, 0x8f, 0xe1, 0x7f, 0x8f, 0x87, 0x4c, 0xaf, 0x4b, 0x3d, 0xe2, 0x63, 0x25, 0x9e, 0x93, 0xf2, + 0x93, 0xfa, 0xb4, 0x08, 0x36, 0x83, 0x18, 0x2a, 0xc2, 0xec, 0x25, 0xa6, 0xce, 0xb1, 0x63, 0x5b, + 0xcc, 0x21, 0xae, 0x79, 0x81, 0xd9, 0x29, 0xe9, 0x28, 0xb2, 0x40, 0xd1, 0x70, 0xea, 0xad, 0xc8, + 0x20, 0x05, 0x26, 0x6c, 0x8a, 0x2d, 0x86, 0x3b, 0x4a, 0x42, 0x40, 0x91, 0x8b, 0x32, 0x90, 0xea, + 0x90, 0x0b, 0xcb, 0x71, 0x95, 0xa4, 0x48, 0x84, 0xde, 0xf2, 0x11, 0x2c, 0xbc, 0x31, 0xf6, 0x1b, + 0x47, 0xb8, 0x6d, 0x38, 0x27, 0xae, 0xc5, 0xba, 0x14, 0xab, 0x9b, 0xea, 0x66, 0x20, 0x28, 0x0f, + 0x49, 0x31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8d, 0x88, 0xbf, + 0x43, 0x73, 0xd5, 0x39, 0x78, 0x38, 0xa0, 0xb9, 0xee, 0x91, 0x7e, 0x89, 0x9d, 0x97, 0x5f, 0x6f, + 0xb2, 0xd2, 0xf5, 0x4d, 0x56, 0xfa, 0x7e, 0x93, 0x95, 0x3e, 0xdd, 0x66, 0x63, 0xd7, 0xb7, 0xd9, + 0xd8, 0xb7, 0xdb, 0x6c, 0xec, 0xfd, 0xca, 0x89, 0xc3, 0x4e, 0xbb, 0xed, 0x82, 0x4d, 0x2e, 0x8a, + 0x3e, 0x71, 0xe9, 0x86, 0x43, 0x8a, 0xe2, 0x2d, 0xe4, 0x97, 0xd0, 0x0f, 0x5f, 0xc4, 0x76, 0x4a, + 0x3c, 0x87, 0xcf, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x87, 0x27, 0x2d, 0x27, 0x05, 0x00, 0x00, } diff --git a/types/crypto/vc.pb.go b/types/crypto/vc.pb.go index 13ec1da39..fbb3b957e 100644 --- a/types/crypto/vc.pb.go +++ b/types/crypto/vc.pb.go @@ -82,18 +82,18 @@ func init() { func init() { proto.RegisterFile("core/crypto/vc.proto", fileDescriptor_57e5056fb47bddc2) } var fileDescriptor_57e5056fb47bddc2 = []byte{ - // 166 bytes of a gzipped FileDescriptorProto + // 167 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x2f, 0x4b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0x89, 0xea, 0x41, 0x44, 0x95, 0x4c, 0xb9, 0xd8, 0x02, 0x4a, 0x93, 0xbc, 0x53, 0x2b, 0x85, 0x04, 0xb8, 0x98, 0xb3, 0x53, 0x2b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x78, 0x82, 0x40, 0x4c, 0x21, 0x49, 0x2e, 0x8e, 0xec, 0xd4, 0xca, 0xf8, 0x92, 0xca, 0x82, 0x54, 0x09, 0x26, 0x05, - 0x46, 0x0d, 0xce, 0x20, 0xf6, 0xec, 0xd4, 0xca, 0x90, 0xca, 0x82, 0x54, 0x27, 0xdb, 0x13, 0x8f, + 0x46, 0x0d, 0xce, 0x20, 0xf6, 0xec, 0xd4, 0xca, 0x90, 0xca, 0x82, 0x54, 0x27, 0xbb, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, - 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4e, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, - 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0xce, 0xcf, 0x2b, 0xca, 0x28, 0xd4, 0x07, 0xbb, 0x02, 0x64, 0x4a, - 0x31, 0xd4, 0x2d, 0x49, 0x6c, 0x60, 0x97, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0xc1, - 0xfb, 0xca, 0xa1, 0x00, 0x00, 0x00, + 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, + 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0xce, 0xcf, 0x2b, 0xd2, 0xcd, 0xcc, 0xd7, 0x07, 0x3b, 0x03, 0x64, + 0x4c, 0x31, 0xd4, 0x31, 0x49, 0x6c, 0x60, 0xa7, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x51, + 0x0a, 0xd1, 0xf5, 0xa2, 0x00, 0x00, 0x00, } func (m *PubKey) Marshal() (dAtA []byte, err error) { diff --git a/types/highway/authentication/v1/service.pb.go b/types/highway/authentication/v1/service.pb.go index 16b96b3ca..d0f317c2f 100644 --- a/types/highway/authentication/v1/service.pb.go +++ b/types/highway/authentication/v1/service.pb.go @@ -1,6 +1,8 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: highway/authentication/v1/service.proto +// Package highway.authentication.v1 provides authentication services. + package authenticationpb import ( @@ -29,6 +31,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// LoginRequest is the request for the Login method. type LoginRequest struct { Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` @@ -89,6 +92,7 @@ func (m *LoginRequest) GetAssertion() string { return "" } +// LoginResponse is the response from the Login method. type LoginResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -165,6 +169,7 @@ func (m *LoginResponse) GetOrigin() string { return "" } +// CurrentUserResponse is the response from the CurrentUser method. type CurrentUserResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -241,6 +246,7 @@ func (m *CurrentUserResponse) GetOrigin() string { return "" } +// ParamsRequest is the request for the Params method. type ParamsRequest struct { Existing bool `protobuf:"varint,1,opt,name=existing,proto3" json:"existing,omitempty"` Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` @@ -301,6 +307,7 @@ func (m *ParamsRequest) GetAlias() string { return "" } +// ParamsResponse is the response from the Params method. type ParamsResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -409,6 +416,7 @@ func (m *ParamsResponse) GetAssertionOptions() string { return "" } +// RegisterRequest is the request for the Register method. type RegisterRequest struct { Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` @@ -477,6 +485,7 @@ func (m *RegisterRequest) GetChallenge() string { return "" } +// RegisterResponse is the response from the Register method. type RegisterResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -561,6 +570,7 @@ func (m *RegisterResponse) GetOrigin() string { return "" } +// RefreshTokenRequest is the request for the RefreshToken method. type RefreshTokenRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` } @@ -605,6 +615,7 @@ func (m *RefreshTokenRequest) GetJwt() string { return "" } +// RefreshTokenResponse is the response from the RefreshToken method. type RefreshTokenResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -665,6 +676,7 @@ func (m *RefreshTokenResponse) GetNewJwt() string { return "" } +// VerifyTokenRequest is the request for the VerifyToken method. type VerifyTokenRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` } @@ -709,6 +721,7 @@ func (m *VerifyTokenRequest) GetJwt() string { return "" } +// VerifyTokenResponse is the response from the VerifyToken method. type VerifyTokenResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -788,60 +801,60 @@ func init() { } var fileDescriptor_a204e94b3257a8d4 = []byte{ - // 836 bytes of a gzipped FileDescriptorProto + // 837 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x8f, 0xdb, 0x44, 0x14, 0x5e, 0x6f, 0x36, 0x4e, 0xf2, 0xb6, 0x85, 0x65, 0xd2, 0x1f, 0xa9, 0x49, 0xdd, 0xc5, 0x82, - 0x66, 0xa1, 0xc2, 0xa3, 0xc2, 0x91, 0x13, 0x20, 0x04, 0x42, 0x48, 0xa0, 0x00, 0x95, 0xe8, 0x25, - 0x9a, 0x38, 0xb3, 0xf6, 0x2c, 0x89, 0xed, 0xce, 0x4c, 0x92, 0x8d, 0xaa, 0x4a, 0x08, 0x81, 0xb8, - 0x70, 0x00, 0xc1, 0x81, 0x3b, 0xfc, 0x31, 0x1c, 0x2b, 0x71, 0xe9, 0x11, 0xed, 0xf2, 0x87, 0x20, - 0x8f, 0x27, 0xce, 0xb8, 0x9b, 0xb8, 0x2b, 0xe5, 0x96, 0x37, 0xef, 0xcb, 0x7b, 0xdf, 0xbc, 0x79, - 0xdf, 0x7b, 0x86, 0x5e, 0xc4, 0xc2, 0x68, 0x4e, 0x16, 0x98, 0x4c, 0x65, 0x44, 0x63, 0xc9, 0x02, - 0x22, 0x59, 0x12, 0xe3, 0xd9, 0x7d, 0x2c, 0x28, 0x9f, 0xb1, 0x80, 0xfa, 0x29, 0x4f, 0x64, 0x82, - 0x6e, 0x69, 0xa0, 0x5f, 0x06, 0xfa, 0xb3, 0xfb, 0x4e, 0x37, 0x4c, 0x92, 0x70, 0x4c, 0x31, 0x49, - 0x19, 0x26, 0x71, 0x9c, 0x48, 0xe5, 0x11, 0xf9, 0x1f, 0x9d, 0x57, 0xb5, 0x57, 0x59, 0xc3, 0xe9, - 0x31, 0xa6, 0x93, 0x54, 0x2e, 0x72, 0xa7, 0xf7, 0x10, 0xae, 0x7c, 0x96, 0x84, 0x2c, 0xee, 0xd3, - 0x47, 0x53, 0x2a, 0x24, 0xba, 0x01, 0x76, 0xc2, 0x59, 0xc8, 0xe2, 0x8e, 0x75, 0x68, 0x1d, 0xb5, - 0xfa, 0xda, 0x42, 0xd7, 0xa0, 0x4e, 0xc6, 0x8c, 0x88, 0xce, 0xae, 0x3a, 0xce, 0x0d, 0xd4, 0x85, -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, 0x6b, 0xa6, 0xe0, 0x39, 0xad, 0x0f, 0xc8, 0xdf, 0x67, 0xae, 0xf5, 0xf4, - 0xcc, 0xb5, 0xfe, 0x3d, 0x73, 0xad, 0x5f, 0xce, 0xdd, 0x9d, 0xa7, 0xe7, 0xee, 0xce, 0xb3, 0x73, - 0x77, 0xe7, 0xe1, 0xc7, 0x21, 0x93, 0xd1, 0x74, 0xe8, 0x07, 0xc9, 0x04, 0x8b, 0x24, 0xe6, 0xd1, - 0x23, 0x1c, 0x24, 0x9c, 0x62, 0xb9, 0x48, 0xa9, 0xc0, 0x1b, 0x3f, 0xab, 0xde, 0x2b, 0x9f, 0xa4, - 0xc3, 0xa1, 0xad, 0xde, 0xfc, 0xdd, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xde, 0xc2, 0x1b, 0x55, - 0x8b, 0x09, 0x00, 0x00, + 0x66, 0xa1, 0xaa, 0x47, 0x85, 0x23, 0x27, 0x40, 0x48, 0x15, 0x42, 0x02, 0x05, 0xa8, 0x44, 0x2f, + 0xd1, 0xc4, 0x99, 0xb5, 0x67, 0x49, 0x6c, 0x33, 0x33, 0x49, 0x36, 0xaa, 0x2a, 0x21, 0x04, 0xe2, + 0xc2, 0x01, 0x04, 0x07, 0xee, 0xf0, 0xc7, 0x70, 0xac, 0xc4, 0xa5, 0x47, 0xb4, 0xcb, 0x1f, 0x82, + 0x3c, 0x9e, 0x38, 0xe3, 0x6e, 0xe2, 0xae, 0x94, 0x5b, 0xde, 0xbc, 0x2f, 0xef, 0x7d, 0xf3, 0xe6, + 0x7d, 0xef, 0x19, 0x7a, 0x11, 0x0b, 0xa3, 0x39, 0x59, 0x60, 0x32, 0x95, 0x11, 0x8d, 0x25, 0x0b, + 0x88, 0x64, 0x49, 0x8c, 0x67, 0x0f, 0xb0, 0xa0, 0x7c, 0xc6, 0x02, 0xea, 0xa7, 0x3c, 0x91, 0x09, + 0xba, 0xa5, 0x81, 0x7e, 0x19, 0xe8, 0xcf, 0x1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 0x4b, 0x3a, 0x7e, 0x45, 0xf2, + 0x35, 0x1b, 0xc5, 0xbb, 0xad, 0xf2, 0xdf, 0x44, 0xd7, 0xcb, 0xf9, 0x83, 0x1c, 0x8a, 0xfe, 0xb0, + 0xe0, 0x8a, 0x29, 0x0e, 0xe4, 0x57, 0x5e, 0xee, 0x82, 0xdc, 0x1c, 0x7c, 0x69, 0x7c, 0x75, 0x41, + 0x4e, 0xe6, 0x12, 0xf3, 0x1c, 0x8f, 0x9f, 0x9c, 0xcc, 0xe5, 0x53, 0xf4, 0xbb, 0x05, 0xfb, 0x86, + 0x54, 0xd0, 0xfd, 0x8a, 0x4c, 0x17, 0xa5, 0x57, 0x59, 0xa8, 0x35, 0x0a, 0xf4, 0xee, 0x2a, 0x5e, + 0x87, 0x9e, 0x7b, 0x91, 0xd7, 0x4c, 0xc1, 0x73, 0x5a, 0x1f, 0x0e, 0xff, 0x3e, 0x73, 0xad, 0x67, + 0x67, 0xae, 0xf5, 0xef, 0x99, 0x6b, 0xfd, 0x72, 0xee, 0xee, 0x3c, 0x3b, 0x77, 0x77, 0x9e, 0x9f, + 0xbb, 0x3b, 0x8f, 0x1f, 0x86, 0x4c, 0x46, 0xd3, 0xa1, 0x1f, 0x24, 0x13, 0x2c, 0x92, 0x98, 0xdf, + 0x67, 0x09, 0x0e, 0x12, 0x4e, 0xb1, 0x5c, 0xa4, 0x54, 0xe0, 0x8d, 0xdf, 0x55, 0xef, 0x97, 0x4f, + 0xd2, 0xe1, 0xd0, 0x56, 0x8f, 0xfe, 0xde, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x19, 0xb9, 0x48, + 0x43, 0x8c, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -856,11 +869,17 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AuthenticationServiceClient interface { + // Params retrieves authentication parameters. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) + // Login authenticates a user. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) + // Register registers a new user. Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) + // CurrentUser retrieves the currently authenticated user. CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CurrentUserResponse, error) + // RefreshToken refreshes a user's authentication token. RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) + // VerifyToken verifies a user's authentication token. VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) } @@ -928,11 +947,17 @@ func (c *authenticationServiceClient) VerifyToken(ctx context.Context, in *Verif // AuthenticationServiceServer is the server API for AuthenticationService service. type AuthenticationServiceServer interface { + // Params retrieves authentication parameters. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) + // Login authenticates a user. Login(context.Context, *LoginRequest) (*LoginResponse, error) + // Register registers a new user. Register(context.Context, *RegisterRequest) (*RegisterResponse, error) + // CurrentUser retrieves the currently authenticated user. CurrentUser(context.Context, *emptypb.Empty) (*CurrentUserResponse, error) + // RefreshToken refreshes a user's authentication token. RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) + // VerifyToken verifies a user's authentication token. VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) } diff --git a/types/highway/database/v1/service.pb.go b/types/highway/database/v1/service.pb.go index 29e7ee3dc..601e30449 100644 --- a/types/highway/database/v1/service.pb.go +++ b/types/highway/database/v1/service.pb.go @@ -134,30 +134,30 @@ func init() { func init() { proto.RegisterFile("highway/database/v1/service.proto", fileDescriptor_f6a3579db4bb4b52) } var fileDescriptor_f6a3579db4bb4b52 = []byte{ - // 354 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4d, 0x4b, 0xf3, 0x40, - 0x10, 0xc7, 0xbb, 0x29, 0x4f, 0xfb, 0x74, 0xd5, 0x56, 0x56, 0x0f, 0x21, 0x4a, 0xa8, 0xf1, 0xd2, - 0xd3, 0xae, 0xad, 0x17, 0x69, 0x6f, 0x52, 0x41, 0x3c, 0x46, 0xbc, 0x78, 0xdb, 0xb4, 0x63, 0x12, - 0x9a, 0x66, 0xd3, 0xec, 0x26, 0x92, 0xab, 0x9f, 0x40, 0xf0, 0x1b, 0x79, 0xf2, 0x58, 0xf0, 0xe2, - 0x51, 0x5a, 0x3f, 0x88, 0x98, 0x17, 0x50, 0x28, 0xe2, 0x6d, 0xfe, 0xf3, 0x9f, 0x97, 0x1f, 0x33, - 0xf8, 0xc8, 0xf3, 0x5d, 0xef, 0x9e, 0x67, 0x6c, 0xca, 0x15, 0x77, 0xb8, 0x04, 0x96, 0xf6, 0x99, - 0x84, 0x38, 0xf5, 0x27, 0x40, 0xa3, 0x58, 0x28, 0x41, 0xf6, 0xca, 0x12, 0x5a, 0x95, 0xd0, 0xb4, - 0x6f, 0x1c, 0xba, 0x42, 0xb8, 0x01, 0x30, 0x1e, 0xf9, 0x8c, 0x87, 0xa1, 0x50, 0x5c, 0xf9, 0x22, - 0x94, 0x45, 0x8b, 0x71, 0x50, 0xba, 0xb9, 0x72, 0x92, 0x3b, 0x06, 0xf3, 0x48, 0x65, 0x85, 0x69, - 0x75, 0xf0, 0xce, 0x25, 0xf0, 0x40, 0x79, 0x36, 0x2c, 0x12, 0x90, 0xca, 0x7a, 0x46, 0xb8, 0x5d, - 0x65, 0x64, 0x24, 0x42, 0x09, 0xa4, 0x8d, 0x35, 0x31, 0xd3, 0x51, 0x17, 0xf5, 0xfe, 0xdb, 0x9a, - 0x98, 0x11, 0x1d, 0x37, 0xe7, 0x20, 0x25, 0x77, 0x41, 0xd7, 0xba, 0xa8, 0xd7, 0xb2, 0x2b, 0x49, - 0xae, 0x70, 0x73, 0x0a, 0x8a, 0xfb, 0x81, 0xd4, 0xeb, 0xdd, 0x7a, 0x6f, 0x6b, 0x70, 0x42, 0x37, - 0xf0, 0xd2, 0x9f, 0xf3, 0xe9, 0xb8, 0x68, 0xb9, 0x08, 0x55, 0x9c, 0xd9, 0xd5, 0x00, 0x63, 0x88, - 0xb7, 0xbf, 0x1b, 0x64, 0x17, 0xd7, 0x67, 0x90, 0xe5, 0x18, 0x2d, 0xfb, 0x2b, 0x24, 0xfb, 0xf8, - 0x5f, 0xca, 0x83, 0xa4, 0xa2, 0x28, 0xc4, 0x50, 0x3b, 0x43, 0x83, 0x04, 0x77, 0xc6, 0xe5, 0xbe, - 0xeb, 0xe2, 0x7c, 0xc4, 0xc1, 0x8d, 0x62, 0x2d, 0xb1, 0x7e, 0x65, 0xca, 0xaf, 0x60, 0x1c, 0xff, - 0x81, 0xdb, 0xea, 0x3c, 0xbc, 0x7e, 0x3c, 0x69, 0x2d, 0xd2, 0x64, 0x5e, 0x6e, 0x9c, 0xdf, 0xbc, - 0xac, 0x4c, 0xb4, 0x5c, 0x99, 0xe8, 0x7d, 0x65, 0xa2, 0xc7, 0xb5, 0x59, 0x5b, 0xae, 0xcd, 0xda, - 0xdb, 0xda, 0xac, 0xdd, 0x8e, 0x5c, 0x5f, 0x79, 0x89, 0x43, 0x27, 0x62, 0xce, 0xa4, 0x08, 0x63, - 0x6f, 0xc1, 0x26, 0x22, 0x06, 0xa6, 0xb2, 0x08, 0x24, 0xdb, 0xf0, 0xf6, 0x51, 0x15, 0x47, 0x8e, - 0xd3, 0xc8, 0x5f, 0x75, 0xfa, 0x19, 0x00, 0x00, 0xff, 0xff, 0x4c, 0xd1, 0x1f, 0xa6, 0x1f, 0x02, - 0x00, 0x00, + // 358 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xcf, 0x4a, 0xeb, 0x40, + 0x14, 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x2e, 0x42, 0x65, 0xd6, 0xbb, 0xf5, 0xde, 0x9f, 0xc1, + 0x3e, 0x5d, 0xc3, 0x4b, 0xbf, 0xce, 0xa7, 0xa3, 0xb2, 0xe5, 0x34, 0xd2, 0x49, 0xee, 0x56, 0x03, + 0xac, 0x21, 0xfe, 0xfb, 0xd9, 0x20, 0xff, 0x71, 0x7d, 0x0a, 0x79, 0x81, 0xd1, 0x72, 0x3f, 0x42, + 0xb2, 0x89, 0x7f, 0x65, 0x3c, 0x4c, 0x2b, 0x8a, 0x52, 0x0c, 0x8d, 0x43, 0x34, 0x48, 0x71, 0x67, + 0xb4, 0xda, 0x77, 0x51, 0x9e, 0x8f, 0x78, 0xb8, 0x51, 0xae, 0x25, 0xce, 0xb7, 0x4c, 0xc5, 0x15, + 0xac, 0xdd, 0x1f, 0x70, 0x3b, 0x9d, 0xbb, 0xe7, 0xb7, 0x07, 0xa3, 0x45, 0x9a, 0x2c, 0x28, 0x8c, + 0x93, 0xcb, 0xa7, 0x85, 0x8d, 0xe6, 0x0b, 0x1b, 0xbd, 0x2e, 0x6c, 0x74, 0xbf, 0xb4, 0x6b, 0xf3, + 0xa5, 0x5d, 0x7b, 0x59, 0xda, 0xb5, 0xab, 0x63, 0x5f, 0xe8, 0x20, 0xf5, 0xe8, 0x58, 0xce, 0x98, + 0x92, 0x51, 0xb2, 0x27, 0x24, 0x1b, 0xcb, 0x04, 0x98, 0xce, 0x63, 0x50, 0x6c, 0xcd, 0xdf, 0x8f, + 0xaa, 0x38, 0xf6, 0xbc, 0x46, 0xf1, 0xab, 0x83, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x83, 0x08, + 0x7e, 0x7b, 0x20, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/types/highway/storage/v1/service.pb.go b/types/highway/storage/v1/service.pb.go index 2cad72734..bfb880752 100644 --- a/types/highway/storage/v1/service.pb.go +++ b/types/highway/storage/v1/service.pb.go @@ -28,7 +28,9 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// GetCIDRequest is the request type for the GetCID method. type GetCIDRequest struct { + // cid is the content identifier of the data to retrieve. Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` } @@ -72,8 +74,11 @@ func (m *GetCIDRequest) GetCid() string { return "" } +// GetCIDResponse is the response type for the GetCID method. type GetCIDResponse struct { - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + // cid is the content identifier of the retrieved data. + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + // data is the retrieved data. Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } @@ -124,8 +129,11 @@ func (m *GetCIDResponse) GetData() string { return "" } +// PutDataRequest is the request type for the PutData method. type PutDataRequest struct { - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + // cid is the content identifier to associate with the data. + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + // data is the data to store. Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } @@ -176,7 +184,9 @@ func (m *PutDataRequest) GetData() string { return "" } +// PutDataResponse is the response type for the PutData method. type PutDataResponse struct { + // cid is the content identifier associated with the stored data. Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` } @@ -230,28 +240,28 @@ func init() { func init() { proto.RegisterFile("highway/storage/v1/service.proto", fileDescriptor_913be91a9864b42e) } var fileDescriptor_913be91a9864b42e = []byte{ - // 321 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x4f, 0x4b, 0xc3, 0x30, - 0x18, 0xc6, 0x97, 0x29, 0x13, 0x03, 0xdb, 0x24, 0x20, 0x8c, 0x21, 0x61, 0xeb, 0x2e, 0x9e, 0x12, - 0xa6, 0x20, 0x88, 0x37, 0x1d, 0x88, 0x37, 0x59, 0x6f, 0xde, 0xd2, 0x34, 0xb6, 0x01, 0x6d, 0xba, - 0x26, 0xad, 0x0c, 0xf1, 0xe2, 0x27, 0x10, 0xfc, 0x52, 0x1e, 0x07, 0x5e, 0x3c, 0x4a, 0xeb, 0x07, - 0x91, 0xfe, 0x51, 0x28, 0xdd, 0x76, 0x7b, 0x29, 0xbf, 0xe7, 0x7d, 0xde, 0xe7, 0x69, 0xe0, 0xc8, - 0x97, 0x9e, 0xff, 0xc4, 0x96, 0x54, 0x1b, 0x15, 0x31, 0x4f, 0xd0, 0x64, 0x4a, 0xb5, 0x88, 0x12, - 0xc9, 0x05, 0x09, 0x23, 0x65, 0x14, 0x42, 0x15, 0x41, 0x2a, 0x82, 0x24, 0xd3, 0xe1, 0x91, 0xa7, - 0x94, 0xf7, 0x20, 0x28, 0x0b, 0x25, 0x65, 0x41, 0xa0, 0x0c, 0x33, 0x52, 0x05, 0xba, 0x54, 0x58, - 0x63, 0xd8, 0xbd, 0x16, 0xe6, 0xea, 0x66, 0x36, 0x17, 0x8b, 0x58, 0x68, 0x83, 0x0e, 0xe0, 0x0e, - 0x97, 0xee, 0x00, 0x8c, 0xc0, 0xf1, 0xfe, 0x3c, 0x1f, 0xad, 0x33, 0xd8, 0xfb, 0x43, 0x74, 0xa8, - 0x02, 0x2d, 0x9a, 0x0c, 0x42, 0x70, 0xd7, 0x65, 0x86, 0x0d, 0xda, 0xc5, 0xa7, 0x62, 0xce, 0x75, - 0xb7, 0xb1, 0x99, 0x31, 0xc3, 0x36, 0xee, 0x5e, 0xab, 0x9b, 0xc0, 0xfe, 0xbf, 0x6e, 0x93, 0xe1, - 0x49, 0x06, 0x60, 0xcf, 0x2e, 0x43, 0xda, 0x65, 0x05, 0xe8, 0x1e, 0x76, 0xca, 0x3b, 0xd1, 0x98, - 0x34, 0x7b, 0x20, 0xb5, 0x98, 0x43, 0x6b, 0x1b, 0x52, 0xba, 0x5a, 0x87, 0xaf, 0x9f, 0x3f, 0xef, - 0xed, 0x3e, 0xea, 0xe6, 0x45, 0x73, 0xe9, 0xd2, 0x67, 0x2e, 0xdd, 0x17, 0x24, 0xe1, 0x5e, 0x75, - 0x1f, 0x5a, 0xbb, 0xa5, 0x1e, 0x7a, 0x38, 0xd9, 0xca, 0xd4, 0xad, 0xac, 0xba, 0xd5, 0xa5, 0xfd, - 0x91, 0x62, 0xb0, 0x4a, 0x31, 0xf8, 0x4e, 0x31, 0x78, 0xcb, 0x70, 0x6b, 0x95, 0xe1, 0xd6, 0x57, - 0x86, 0x5b, 0x77, 0xe7, 0x9e, 0x34, 0x7e, 0xec, 0x10, 0xae, 0x1e, 0xa9, 0x56, 0x41, 0xe4, 0x2f, - 0x28, 0x57, 0x91, 0xa0, 0x66, 0x19, 0x0a, 0x4d, 0x9b, 0x0f, 0xe5, 0xa2, 0x1a, 0x43, 0xc7, 0xe9, - 0x14, 0x7f, 0xfe, 0xf4, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x0d, 0x80, 0xb4, 0x4f, 0x02, 0x00, - 0x00, + // 325 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0xc8, 0x4c, 0xcf, + 0x28, 0x4f, 0xac, 0xd4, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, 0x4c, 0x4f, 0xd5, 0x2f, 0x33, 0xd4, 0x2f, + 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xaa, + 0xd0, 0x83, 0xaa, 0xd0, 0x2b, 0x33, 0x94, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4f, + 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9,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, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xac, 0xd2, 0x33, 0x4b, 0x32, + 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x74, 0x33, 0xf3, 0xf5, 0x93, + 0xf3, 0x8b, 0x52, 0xf5, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0xf5, 0x31, 0x53, 0x8a, 0x35, 0x94, 0x59, + 0x90, 0x94, 0xc4, 0x06, 0x8e, 0x7a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x7a, 0x71, + 0x04, 0x50, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -266,7 +276,9 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type StorageServiceClient interface { + // GetCID retrieves data associated with a given CID. GetCID(ctx context.Context, in *GetCIDRequest, opts ...grpc.CallOption) (*GetCIDResponse, error) + // PutData stores data and associates it with a given CID. PutData(ctx context.Context, in *PutDataRequest, opts ...grpc.CallOption) (*PutDataResponse, error) } @@ -298,7 +310,9 @@ func (c *storageServiceClient) PutData(ctx context.Context, in *PutDataRequest, // StorageServiceServer is the server API for StorageService service. type StorageServiceServer interface { + // GetCID retrieves data associated with a given CID. GetCID(context.Context, *GetCIDRequest) (*GetCIDResponse, error) + // PutData stores data and associates it with a given CID. PutData(context.Context, *PutDataRequest) (*PutDataResponse, error) } diff --git a/types/highway/wallet/v1/service.pb.go b/types/highway/wallet/v1/service.pb.go index d32db2525..d52153c95 100644 --- a/types/highway/wallet/v1/service.pb.go +++ b/types/highway/wallet/v1/service.pb.go @@ -8,7 +8,7 @@ import ( fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - crypto "github.com/sonrhq/core/types/crypto" + crypto "github.com/sonr-io/core/types/crypto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -29,6 +29,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// CreateAccountRequest is the request message for creating an account. type CreateAccountRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` @@ -97,6 +98,7 @@ func (m *CreateAccountRequest) GetNetwork() string { return "" } +// CreateAccountResponse is the response message for creating an account. type CreateAccountResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -173,6 +175,7 @@ func (m *CreateAccountResponse) GetOwner() string { return "" } +// GetAccountRequest is the request message for getting an account. type GetAccountRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -225,6 +228,7 @@ func (m *GetAccountRequest) GetAddress() string { return "" } +// GetAccountResponse is the response message for getting an account. type GetAccountResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -301,6 +305,7 @@ func (m *GetAccountResponse) GetOwner() string { return "" } +// ListAccountsRequest is the request message for listing accounts. type ListAccountsRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` } @@ -345,6 +350,7 @@ func (m *ListAccountsRequest) GetJwt() string { return "" } +// ListAccountsResponse is the response message for listing accounts. type ListAccountsResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -405,6 +411,7 @@ func (m *ListAccountsResponse) GetAccounts() []string { return nil } +// SignMessageRequest is the request message for signing a message. type SignMessageRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -465,6 +472,7 @@ func (m *SignMessageRequest) GetMessage() []byte { return nil } +// SignMessageResponse is the response message for signing a message. type SignMessageResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -525,6 +533,7 @@ func (m *SignMessageResponse) GetSignature() []byte { return nil } +// VerifySignatureRequest is the request message for verifying a signature. type VerifySignatureRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -593,6 +602,7 @@ func (m *VerifySignatureRequest) GetSignature() []byte { return nil } +// VerifySignatureResponse is the response message for verifying a signature. type VerifySignatureResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -653,6 +663,7 @@ func (m *VerifySignatureResponse) GetMessageVerified() bool { return false } +// ExportWalletRequest is the request message for exporting a wallet. type ExportWalletRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -705,6 +716,7 @@ func (m *ExportWalletRequest) GetAddress() string { return "" } +// ExportWalletResponse is the response message for exporting a wallet. type ExportWalletResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -783,54 +795,54 @@ func init() { func init() { proto.RegisterFile("highway/wallet/v1/service.proto", fileDescriptor_6b44f8b21811e31c) } var fileDescriptor_6b44f8b21811e31c = []byte{ - // 743 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x4f, 0xdb, 0x4a, - 0x14, 0xc5, 0x24, 0xf0, 0x92, 0xfb, 0xe0, 0x01, 0x43, 0x00, 0xcb, 0xe2, 0x19, 0xde, 0x08, 0x48, - 0x78, 0x0b, 0x5b, 0x50, 0xa9, 0x5d, 0x74, 0x51, 0x01, 0xaa, 0xba, 0x69, 0x17, 0x0d, 0x15, 0x95, - 0xd8, 0x44, 0x8e, 0x33, 0x71, 0xdc, 0x86, 0x19, 0xe3, 0x99, 0x24, 0x44, 0xaa, 0x84, 0x44, 0xa5, - 0x2e, 0xda, 0x4d, 0xab, 0xfe, 0x8d, 0x4a, 0xfd, 0x0f, 0x5d, 0x75, 0x89, 0xd4, 0x4d, 0x97, 0x15, - 0xf4, 0x87, 0x54, 0x1e, 0xdb, 0x90, 0x0f, 0xa3, 0x44, 0xa4, 0x8b, 0xee, 0xe6, 0xde, 0x7b, 0x7c, - 0xef, 0xb9, 0x71, 0xce, 0xf1, 0xc0, 0x4a, 0xcd, 0x75, 0x6a, 0x2d, 0xab, 0x6d, 0xb6, 0xac, 0x7a, - 0x9d, 0x08, 0xb3, 0xb9, 0x65, 0x72, 0xe2, 0x37, 0x5d, 0x9b, 0x18, 0x9e, 0xcf, 0x04, 0x43, 0x73, - 0x11, 0xc0, 0x08, 0x01, 0x46, 0x73, 0x4b, 0x5b, 0xb4, 0x99, 0x4f, 0x4c, 0xdb, 0x6f, 0x7b, 0x82, - 0x99, 0x36, 0x73, 0x69, 0x08, 0xd5, 0x96, 0x1d, 0xc6, 0x9c, 0x3a, 0x31, 0x2d, 0xcf, 0x35, 0x2d, - 0x4a, 0x99, 0xb0, 0x84, 0xcb, 0x28, 0x0f, 0xab, 0xf8, 0xad, 0x02, 0xb9, 0x3d, 0x9f, 0x58, 0x82, - 0xec, 0xd8, 0x36, 0x6b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e, 0x73, 0xe7, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb4, - 0x5a, 0x84, 0x55, 0x4f, 0x09, 0x00, 0x00, + // 741 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x4f, 0x13, 0x41, + 0x14, 0x66, 0x69, 0xc1, 0xf6, 0x09, 0x02, 0x43, 0x81, 0xcd, 0x06, 0x17, 0x9c, 0x00, 0x2d, 0x26, + 0xee, 0x06, 0x4c, 0x8c, 0x89, 0x07, 0x03, 0xc4, 0x78, 0xd1, 0x4b, 0x31, 0x98, 0x70, 0x69, 0xb6, + 0xdb, 0xe9, 0xb2, 0x5a, 0x76, 0xd6, 0x99, 0x69, 0x4b, 0x13, 0x13, 0x12, 0x4c, 0x3c, 0xe8, 0x45, + 0xe3, 0xbf, 0x61, 0xe2, 0xff, 0xe0, 0xc9, 0x23, 0x89, 0x17, 0x8f, 0x06, 0xfc, 0x43, 0xcc, 0xce, + 0xee, 0x42, 0x7f, 0x2c, 0x69, 0x43, 0x3d, 0x78, 0x9b, 0xf7, 0xde, 0xb7, 0xef, 0x7d, 0xaf, 0xdb, + 0xef, 0xdb, 0x81, 0xa5, 0x03, 0xd7, 0x39, 0x68, 0x5a, 0x2d, 0xb3, 0x69, 0xd5, 0x6a, 0x44, 0x98, + 0x8d, 0x0d, 0x93, 0x13, 0xd6, 0x70, 0x6d, 0x62, 0xf8, 0x8c, 0x0a, 0x8a, 0x66, 0x22, 0x80, 0x11, + 0x02, 0x8c, 0xc6, 0x86, 0x36, 0x6f, 0x53, 0x46, 0x4c, 0x9b, 0xb5, 0x7c, 0x41, 0x4d, 0x9b, 0xba, + 0x5e, 0x08, 0xd5, 0x16, 0x1d, 0x4a, 0x9d, 0x1a, 0x31, 0x2d, 0xdf, 0x35, 0x2d, 0xcf, 0xa3, 0xc2, + 0x12, 0x2e, 0xf5, 0x78, 0x58, 0xc5, 0x1f, 0x14, 0xc8, 0xed, 0x30, 0x62, 0x09, 0xb2, 0x65, 0xdb, + 0xb4, 0xee, 0x89, 0x22, 0x79, 0x53, 0x27, 0x5c, 0xa0, 0x69, 0x48, 0xbd, 0x6a, 0x0a, 0x55, 0x59, + 0x56, 0x0a, 0xd9, 0x62, 0x70, 0x44, 0x08, 0xd2, 0x9e, 0x75, 0x48, 0xd4, 0x51, 0x99, 0x92, 0x67, + 0xb4, 0x09, 0xd9, 0x60, 0x54, 0x49, 0xb4, 0x7c, 0xa2, 0xa6, 0x96, 0x95, 0xc2, 0xad, 0xcd, 0x39, + 0x23, 0x20, 0x62, 0x84, 0x44, 0x8c, 0x1d, 0xea, 0x7a, 0x2f, 0x5a, 0x3e, 0x29, 0x66, 0xec, 0xe8, + 0x84, 0x54, 0xb8, 0xe1, 0x11, 0xd1, 0xa4, 0xec, 0xb5, 0x9a, 0x96, 0xad, 0xe2, 0x10, 0x7f, 0x53, + 0x60, 0xae, 0x8b, 0x0c, 0xf7, 0xa9, 0xc7, 0xe5, 0x33, 0xbc, 0x6e, 0xdb, 0x84, 0x73, 0xc9, 0x28, + 0x53, 0x8c, 0xc3, 0xa0, 0x72, 0x48, 0x38, 0xb7, 0x9c, 0x98, 0x58, 0x1c, 0x06, 0x15, 0xab, 0x52, + 0x61, 0xc1, 0x33, 0xa9, 0xb0, 0x12, 0x85, 0x9d, 0xac, 0xd3, 0x83, 0xb1, 0xce, 0xc1, 0x18, 0x6d, + 0x7a, 0x84, 0xa9, 0x63, 0xb2, 0x57, 0x18, 0xe0, 0xc7, 0x30, 0xf3, 0x94, 0x88, 0xbe, 0x3f, 0x5d, + 0x1b, 0x95, 0xd1, 0x0e, 0x2a, 0xf8, 0xab, 0x02, 0xa8, 0xbd, 0xc3, 0x7f, 0xbe, 0x6f, 0x1e, 0x66, + 0x9f, 0xb9, 0x3c, 0xa6, 0xcb, 0xaf, 0xdc, 0x18, 0x57, 0x21, 0xd7, 0x09, 0x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b, 0x3d, 0x77, 0xa5, 0x47, 0xe1, 0xc9, + 0x2f, 0x97, 0xc7, 0xe5, 0x25, 0xe7, 0xfe, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, 0xcf, 0x53, + 0x79, 0x50, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -845,11 +857,17 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WalletServiceClient interface { + // CreateAccount creates a new account. CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) + // GetAccount retrieves an account by its address. GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) + // ListAccounts lists all accounts. ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) + // SignMessage signs a message with the private key of an account. SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) + // VerifySignature verifies a signature with the public key of an account. VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*VerifySignatureResponse, error) + // ExportWallet exports a wallet. ExportWallet(ctx context.Context, in *ExportWalletRequest, opts ...grpc.CallOption) (*ExportWalletResponse, error) } @@ -917,11 +935,17 @@ func (c *walletServiceClient) ExportWallet(ctx context.Context, in *ExportWallet // WalletServiceServer is the server API for WalletService service. type WalletServiceServer interface { + // CreateAccount creates a new account. CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) + // GetAccount retrieves an account by its address. GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) + // ListAccounts lists all accounts. ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) + // SignMessage signs a message with the private key of an account. SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) + // VerifySignature verifies a signature with the public key of an account. VerifySignature(context.Context, *VerifySignatureRequest) (*VerifySignatureResponse, error) + // ExportWallet exports a wallet. ExportWallet(context.Context, *ExportWalletRequest) (*ExportWalletResponse, error) } diff --git a/x/domain/client/cli/query.go b/x/domain/client/cli/query.go index d877e1003..2b3b9b5e6 100644 --- a/x/domain/client/cli/query.go +++ b/x/domain/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/domain/client/cli/query_params.go b/x/domain/client/cli/query_params.go index c6d0e4d1b..b7a455b52 100644 --- a/x/domain/client/cli/query_params.go +++ b/x/domain/client/cli/query_params.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/domain/client/cli/query_username_records.go b/x/domain/client/cli/query_username_records.go index 8860e3ff1..9e780bb96 100644 --- a/x/domain/client/cli/query_username_records.go +++ b/x/domain/client/cli/query_username_records.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) func CmdListUsernameRecords() *cobra.Command { diff --git a/x/domain/client/cli/tx.go b/x/domain/client/cli/tx.go index abb94d47b..a3c0d9868 100644 --- a/x/domain/client/cli/tx.go +++ b/x/domain/client/cli/tx.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) var ( diff --git a/x/domain/client/cli/tx_username_records.go b/x/domain/client/cli/tx_username_records.go index 510c6cfd5..702191bd4 100644 --- a/x/domain/client/cli/tx_username_records.go +++ b/x/domain/client/cli/tx_username_records.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" "github.com/spf13/cobra" ) diff --git a/x/domain/client/proxy/query.go b/x/domain/client/proxy/query.go index 4d2edd4d9..6e9418236 100644 --- a/x/domain/client/proxy/query.go +++ b/x/domain/client/proxy/query.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - domaintypes "github.com/sonrhq/core/x/domain/types" + domaintypes "github.com/sonr-io/core/x/domain/types" "github.com/spf13/viper" "google.golang.org/grpc" ) diff --git a/x/domain/genesis.go b/x/domain/genesis.go index 908e5c968..0e406e12c 100644 --- a/x/domain/genesis.go +++ b/x/domain/genesis.go @@ -2,8 +2,8 @@ package domain import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" ) // InitGenesis initializes the module's state from a provided genesis state. diff --git a/x/domain/genesis_test.go b/x/domain/genesis_test.go index 915181e1e..569dfd11e 100644 --- a/x/domain/genesis_test.go +++ b/x/domain/genesis_test.go @@ -3,10 +3,10 @@ package domain_test import ( "testing" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/testutil/nullify" - "github.com/sonrhq/core/x/domain" - "github.com/sonrhq/core/x/domain/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/testutil/nullify" + "github.com/sonr-io/core/x/domain" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/x/domain/keeper/keeper.go b/x/domain/keeper/keeper.go index 3fc024c35..c3894578d 100644 --- a/x/domain/keeper/keeper.go +++ b/x/domain/keeper/keeper.go @@ -9,7 +9,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) type ( diff --git a/x/domain/keeper/msg_server.go b/x/domain/keeper/msg_server.go index df7afda7f..78887665b 100644 --- a/x/domain/keeper/msg_server.go +++ b/x/domain/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) type msgServer struct { diff --git a/x/domain/keeper/msg_server_test.go b/x/domain/keeper/msg_server_test.go index fa7b69c83..c321fddbc 100644 --- a/x/domain/keeper/msg_server_test.go +++ b/x/domain/keeper/msg_server_test.go @@ -5,9 +5,9 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/x/domain/keeper/msg_server_username_records.go b/x/domain/keeper/msg_server_username_records.go index d822d502c..29694eb90 100644 --- a/x/domain/keeper/msg_server_username_records.go +++ b/x/domain/keeper/msg_server_username_records.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) func (k msgServer) CreateUsernameRecord(goCtx context.Context, msg *types.MsgCreateUsernameRecords) (*types.MsgCreateUsernameRecordsResponse, error) { diff --git a/x/domain/keeper/msg_server_username_records_test.go b/x/domain/keeper/msg_server_username_records_test.go index 57ea3942d..09b5bff5d 100644 --- a/x/domain/keeper/msg_server_username_records_test.go +++ b/x/domain/keeper/msg_server_username_records_test.go @@ -8,9 +8,9 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" ) // Prevent strconv unused error diff --git a/x/domain/keeper/params.go b/x/domain/keeper/params.go index 859f79efa..01b9ec984 100644 --- a/x/domain/keeper/params.go +++ b/x/domain/keeper/params.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) // GetParams get all parameters as types.Params diff --git a/x/domain/keeper/params_test.go b/x/domain/keeper/params_test.go index bd00b066f..c320ce13c 100644 --- a/x/domain/keeper/params_test.go +++ b/x/domain/keeper/params_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - testkeeper "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/x/domain/types" + testkeeper "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/x/domain/keeper/query.go b/x/domain/keeper/query.go index 21bd28fed..267198289 100644 --- a/x/domain/keeper/query.go +++ b/x/domain/keeper/query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/domain/keeper/query_params.go b/x/domain/keeper/query_params.go index 72ace85a1..f6ff8fdcf 100644 --- a/x/domain/keeper/query_params.go +++ b/x/domain/keeper/query_params.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/domain/keeper/query_params_test.go b/x/domain/keeper/query_params_test.go index c650cb3d6..3ad49e09d 100644 --- a/x/domain/keeper/query_params_test.go +++ b/x/domain/keeper/query_params_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - testkeeper "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/x/domain/types" + testkeeper "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/x/domain/keeper/query_username_records.go b/x/domain/keeper/query_username_records.go index c0419bdc9..26fdf081b 100644 --- a/x/domain/keeper/query_username_records.go +++ b/x/domain/keeper/query_username_records.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/domain/keeper/query_username_records_test.go b/x/domain/keeper/query_username_records_test.go index b3ce17fa3..f88e2b37f 100644 --- a/x/domain/keeper/query_username_records_test.go +++ b/x/domain/keeper/query_username_records_test.go @@ -10,9 +10,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/testutil/nullify" - "github.com/sonrhq/core/x/domain/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/testutil/nullify" + "github.com/sonr-io/core/x/domain/types" ) // Prevent strconv unused error diff --git a/x/domain/keeper/username_records.go b/x/domain/keeper/username_records.go index b8894df4c..4d6e1d2d3 100644 --- a/x/domain/keeper/username_records.go +++ b/x/domain/keeper/username_records.go @@ -3,7 +3,7 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" ) // SetUsernameRecords set a specific UsernameRecord in the store from its index diff --git a/x/domain/keeper/username_records_test.go b/x/domain/keeper/username_records_test.go index 017d2866f..3baac7855 100644 --- a/x/domain/keeper/username_records_test.go +++ b/x/domain/keeper/username_records_test.go @@ -5,10 +5,10 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/testutil/nullify" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/testutil/nullify" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/x/domain/module.go b/x/domain/module.go index dc4a985f6..c1f308bec 100644 --- a/x/domain/module.go +++ b/x/domain/module.go @@ -17,9 +17,9 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/sonrhq/core/x/domain/client/cli" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/client/cli" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" ) var ( diff --git a/x/domain/module_simulation.go b/x/domain/module_simulation.go index 4077b14f6..75e34dc0c 100644 --- a/x/domain/module_simulation.go +++ b/x/domain/module_simulation.go @@ -8,9 +8,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/testutil/sample" - domainsimulation "github.com/sonrhq/core/x/domain/simulation" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/testutil/sample" + domainsimulation "github.com/sonr-io/core/x/domain/simulation" + "github.com/sonr-io/core/x/domain/types" ) // avoid unused import issue diff --git a/x/domain/simulation/username_records.go b/x/domain/simulation/username_records.go index 4e97ded6a..131711524 100644 --- a/x/domain/simulation/username_records.go +++ b/x/domain/simulation/username_records.go @@ -9,8 +9,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/x/domain/keeper" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/keeper" + "github.com/sonr-io/core/x/domain/types" ) // Prevent strconv unused error diff --git a/x/domain/types/genesis.pb.go b/x/domain/types/genesis.pb.go index 725d0a56d..9aaa1353a 100644 --- a/x/domain/types/genesis.pb.go +++ b/x/domain/types/genesis.pb.go @@ -83,7 +83,7 @@ func init() { func init() { proto.RegisterFile("core/domain/genesis.proto", fileDescriptor_f3758676deb05ab8) } var fileDescriptor_f3758676deb05ab8 = []byte{ - // 235 bytes of a gzipped FileDescriptorProto + // 236 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0x49, 0xe9, 0x41, 0xa4, 0xa4, 0x44, 0xd2, 0xf3, @@ -93,12 +93,12 @@ var fileDescriptor_f3758676deb05ab8 = []byte{ 0x25, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x84, 0xf5, 0x90, 0x2c, 0xd6, 0x0b, 0x00, 0x4b, 0x39, 0xb1, 0x9c, 0xb8, 0x27, 0xcf, 0x10, 0x04, 0x55, 0x28, 0x14, 0xcc, 0x25, 0x5c, 0x5a, 0x9c, 0x5a, 0x94, 0x97, 0x98, 0x9b, 0x1a, 0x04, 0x36, 0xbb, 0xd8, 0x27, 0xb3, 0xb8, 0x44, 0x82, 0x49, 0x81, - 0x59, 0x83, 0xdb, 0x48, 0x1a, 0x45, 0x7f, 0x28, 0x8a, 0x3a, 0xa8, 0x39, 0xd8, 0x74, 0x3b, 0xd9, - 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, - 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x6a, 0x7a, 0x66, 0x49, 0x46, - 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x7e, 0x5e, 0x51, 0x46, 0xa1, 0x3e, 0xd8, 0x7b, - 0x15, 0x30, 0x0f, 0x96, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x3d, 0x68, 0x0c, 0x08, 0x00, - 0x00, 0xff, 0xff, 0x2f, 0x28, 0x88, 0x42, 0x54, 0x01, 0x00, 0x00, + 0x59, 0x83, 0xdb, 0x48, 0x1a, 0x45, 0x7f, 0x28, 0x8a, 0x3a, 0xa8, 0x39, 0xd8, 0x74, 0x3b, 0x39, + 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, + 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5a, 0x7a, 0x66, 0x49, 0x46, + 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x7e, 0x5e, 0x91, 0x6e, 0x66, 0xbe, 0x3e, 0xd8, + 0x7f, 0x15, 0x30, 0x1f, 0x96, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x7d, 0x68, 0x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0x20, 0xa1, 0xef, 0x7c, 0x55, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/domain/types/genesis_test.go b/x/domain/types/genesis_test.go index 120b5d368..545434840 100644 --- a/x/domain/types/genesis_test.go +++ b/x/domain/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/sonrhq/core/x/domain/types" + "github.com/sonr-io/core/x/domain/types" "github.com/stretchr/testify/require" ) diff --git a/x/domain/types/keys.go b/x/domain/types/keys.go index 7e56b82d0..2e2f3f22a 100644 --- a/x/domain/types/keys.go +++ b/x/domain/types/keys.go @@ -1,7 +1,7 @@ package types import ( - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" "lukechampine.com/blake3" ) diff --git a/x/domain/types/messages_username_records_test.go b/x/domain/types/messages_username_records_test.go index 742457842..4bd5009d7 100644 --- a/x/domain/types/messages_username_records_test.go +++ b/x/domain/types/messages_username_records_test.go @@ -4,7 +4,7 @@ import ( "testing" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/testutil/sample" + "github.com/sonr-io/core/testutil/sample" "github.com/stretchr/testify/require" ) diff --git a/x/domain/types/params.pb.go b/x/domain/types/params.pb.go index 914ff0afb..68c1ca4f3 100644 --- a/x/domain/types/params.pb.go +++ b/x/domain/types/params.pb.go @@ -66,17 +66,17 @@ func init() { func init() { proto.RegisterFile("core/domain/params.proto", fileDescriptor_212b5bbc8abf73fb) } var fileDescriptor_212b5bbc8abf73fb = []byte{ - // 146 bytes of a gzipped FileDescriptorProto + // 147 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0xc9, 0xe8, 0x41, 0x64, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xe2, 0xfa, 0x20, 0x16, 0x44, 0x89, 0x12, 0x1f, 0x17, 0x5b, 0x00, 0x58, 0x8b, 0x15, - 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0xf6, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, + 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, - 0x10, 0xa5, 0x9a, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9f, - 0x57, 0x94, 0x51, 0xa8, 0x0f, 0xb6, 0xb8, 0x02, 0x66, 0x75, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, - 0x1b, 0xd8, 0x5c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0xa0, 0x18, 0xad, 0x96, 0x00, - 0x00, 0x00, + 0x10, 0xa5, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9f, + 0x57, 0xa4, 0x9b, 0x99, 0xaf, 0x0f, 0xb6, 0xb9, 0x02, 0x66, 0x77, 0x49, 0x65, 0x41, 0x6a, 0x71, + 0x12, 0x1b, 0xd8, 0x60, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x4b, 0xb8, 0x9e, 0x97, + 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/domain/types/query.pb.go b/x/domain/types/query.pb.go index 334b208dd..063c2b0b4 100644 --- a/x/domain/types/query.pb.go +++ b/x/domain/types/query.pb.go @@ -68,6 +68,7 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo // QueryParamsResponse is response type for the Query/Params RPC method. +// It holds all the parameters of this module. type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` @@ -113,6 +114,9 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryGetUsernameRecordsRequest is the request type for the +// Query/UsernameRecord RPC method. It contains the index of the UsernameRecords +// to be queried. type QueryGetUsernameRecordsRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` } @@ -157,6 +161,8 @@ func (m *QueryGetUsernameRecordsRequest) GetIndex() string { return "" } +// QueryGetUsernameRecordsResponse is the response type for the +// Query/UsernameRecord RPC method. It contains the queried UsernameRecords. type QueryGetUsernameRecordsResponse struct { UsernameRecords UsernameRecord `protobuf:"bytes,1,opt,name=usernameRecords,proto3" json:"usernameRecords"` } @@ -201,6 +207,9 @@ func (m *QueryGetUsernameRecordsResponse) GetUsernameRecords() UsernameRecord { return UsernameRecord{} } +// QueryAllUsernameRecordsRequest is the request type for the +// Query/UsernameRecordAll RPC method. It contains the pagination information +// for the query. type QueryAllUsernameRecordsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -245,6 +254,9 @@ func (m *QueryAllUsernameRecordsRequest) GetPagination() *query.PageRequest { return nil } +// QueryAllUsernameRecordsResponse is the response type for the +// Query/UsernameRecordAll RPC method. It contains all queried UsernameRecords +// and the pagination information. type QueryAllUsernameRecordsResponse struct { UsernameRecords []UsernameRecord `protobuf:"bytes,1,rep,name=usernameRecords,proto3" json:"usernameRecords"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -309,38 +321,38 @@ func init() { func init() { proto.RegisterFile("core/domain/query.proto", fileDescriptor_8b7084fe185c90ac) } var fileDescriptor_8b7084fe185c90ac = []byte{ - // 494 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0xb3, 0xad, 0x0d, 0x38, 0x05, 0xc5, 0x49, 0x4a, 0x4b, 0x6a, 0x37, 0x65, 0xa0, 0x2a, - 0x2a, 0x33, 0xa4, 0x82, 0x57, 0x69, 0x0f, 0x56, 0xf0, 0x52, 0x17, 0xbc, 0x78, 0x9b, 0x24, 0xc3, - 0x66, 0x61, 0x77, 0xde, 0x66, 0x66, 0x22, 0x2d, 0xe2, 0xc5, 0xbb, 0x20, 0x0a, 0x7e, 0x15, 0xbf, - 0x42, 0x8f, 0x05, 0x2f, 0x9e, 0x44, 0x12, 0x3f, 0x88, 0x64, 0x66, 0x82, 0x19, 0xb3, 0xab, 0xd2, - 0xdb, 0xee, 0xbc, 0xff, 0xfb, 0xbf, 0xdf, 0x9b, 0xf7, 0x18, 0xb4, 0x3d, 0x00, 0x25, 0xd8, 0x10, - 0x0a, 0x9e, 0x49, 0x36, 0x9e, 0x08, 0x75, 0x4e, 0x4b, 0x05, 0x06, 0xf0, 0xe6, 0x3c, 0x40, 0x5d, - 0xa0, 0xd3, 0x4e, 0x21, 0x05, 0x7b, 0xce, 0xe6, 0x5f, 0x4e, 0xd2, 0xb9, 0x9d, 0x02, 0xa4, 0xb9, - 0x60, 0xbc, 0xcc, 0x18, 0x97, 0x12, 0x0c, 0x37, 0x19, 0x48, 0xed, 0xa3, 0xf7, 0x07, 0xa0, 0x0b, - 0xd0, 0xac, 0xcf, 0xb5, 0x70, 0xce, 0xec, 0x75, 0xaf, 0x2f, 0x0c, 0xef, 0xb1, 0x92, 0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b4, 0x61, 0xc9, 0xf1, 0x08, 0x35, 0xdd, 0xb4, 0x71, 0x37, 0x00, 0x5a, 0x5d, - 0xa5, 0xce, 0x7e, 0xbd, 0xc0, 0x95, 0x20, 0xbb, 0xef, 0xbe, 0xfe, 0xfc, 0xb4, 0xb6, 0x85, 0x5b, - 0x6c, 0x75, 0x7f, 0xf1, 0xc7, 0x08, 0xdd, 0x08, 0xdb, 0xc4, 0x0f, 0x56, 0x1d, 0x6b, 0xb7, 0xab, - 0xf3, 0xf0, 0xff, 0xc4, 0x1e, 0xe5, 0xc0, 0xa2, 0x74, 0xf1, 0x5e, 0x80, 0xb2, 0xb8, 0x50, 0xf6, - 0xc6, 0xee, 0xe6, 0x5b, 0xfc, 0x3e, 0x42, 0xb7, 0x42, 0x8b, 0xa3, 0x3c, 0xaf, 0xe2, 0xaa, 0xdd, - 0xa6, 0x2a, 0xae, 0xfa, 0x7d, 0x20, 0x7b, 0x96, 0x6b, 0x1b, 0x6f, 0x55, 0x72, 0x1d, 0x3f, 0xb9, - 0x98, 0xc6, 0xd1, 0xe5, 0x34, 0x8e, 0x7e, 0x4c, 0xe3, 0xe8, 0xc3, 0x2c, 0x6e, 0x5c, 0xce, 0xe2, - 0xc6, 0xb7, 0x59, 0xdc, 0x78, 0x75, 0x90, 0x66, 0x66, 0x34, 0xe9, 0xd3, 0x01, 0x14, 0x4c, 0x83, - 0x54, 0xa3, 0xb1, 0x73, 0x38, 0x5b, 0x78, 0x98, 0xf3, 0x52, 0xe8, 0x7e, 0xd3, 0x3e, 0x06, 0x8f, - 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x5c, 0xf7, 0x10, 0xc8, 0x04, 0x00, 0x00, + // 495 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0xb3, 0xad, 0x0d, 0x38, 0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0xee, 0xff, 0x9b, 0xd8, 0xa3, 0xdc, 0xb2, 0x28, 0x5d, 0xbc, 0x17, 0xa0, 0x2c, 0x2e, 0x94, + 0xbd, 0xb6, 0xbb, 0xf9, 0x06, 0xbf, 0x8b, 0xd0, 0x8d, 0xd0, 0xe2, 0x28, 0xcf, 0xab, 0xb8, 0x6a, + 0xb7, 0xa9, 0x8a, 0xab, 0x7e, 0x1f, 0xc8, 0x9e, 0xe5, 0xda, 0xc6, 0x5b, 0x95, 0x5c, 0xc7, 0x8f, + 0x2f, 0xa7, 0x71, 0x34, 0x99, 0xc6, 0xd1, 0xf7, 0x69, 0x1c, 0xbd, 0x9f, 0xc5, 0x8d, 0xc9, 0x2c, + 0x6e, 0x7c, 0x9d, 0xc5, 0x8d, 0x97, 0x07, 0x69, 0x66, 0x46, 0xe3, 0x3e, 0x1d, 0x40, 0xc1, 0x34, + 0x48, 0xf5, 0x20, 0x03, 0x67, 0x71, 0xbe, 0x30, 0x31, 0x17, 0xa5, 0xd0, 0xfd, 0xa6, 0x7d, 0x0d, + 0x1e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x8f, 0xa9, 0xd3, 0x42, 0xc9, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -355,11 +367,14 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. + // It returns the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of UsernameRecords items. + // UsernameRecord queries a list of UsernameRecords items by index. + // It returns a list of UsernameRecords items. UsernameRecord(ctx context.Context, in *QueryGetUsernameRecordsRequest, opts ...grpc.CallOption) (*QueryGetUsernameRecordsResponse, error) - // Queries a list of UsernameRecords items. + // UsernameRecordAll queries all UsernameRecords items. + // It returns all UsernameRecords items. UsernameRecordAll(ctx context.Context, in *QueryAllUsernameRecordsRequest, opts ...grpc.CallOption) (*QueryAllUsernameRecordsResponse, error) } @@ -400,11 +415,14 @@ func (c *queryClient) UsernameRecordAll(ctx context.Context, in *QueryAllUsernam // QueryServer is the server API for Query service. type QueryServer interface { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. + // It returns the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of UsernameRecords items. + // UsernameRecord queries a list of UsernameRecords items by index. + // It returns a list of UsernameRecords items. UsernameRecord(context.Context, *QueryGetUsernameRecordsRequest) (*QueryGetUsernameRecordsResponse, error) - // Queries a list of UsernameRecords items. + // UsernameRecordAll queries all UsernameRecords items. + // It returns all UsernameRecords items. UsernameRecordAll(context.Context, *QueryAllUsernameRecordsRequest) (*QueryAllUsernameRecordsResponse, error) } diff --git a/x/domain/types/record.pb.go b/x/domain/types/record.pb.go index 1aaf69dca..364d62e7c 100644 --- a/x/domain/types/record.pb.go +++ b/x/domain/types/record.pb.go @@ -89,19 +89,19 @@ func init() { func init() { proto.RegisterFile("core/domain/record.proto", fileDescriptor_550832b98116f1e7) } var fileDescriptor_550832b98116f1e7 = []byte{ - // 185 bytes of a gzipped FileDescriptorProto + // 186 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0xc9, 0xe8, 0x41, 0x64, 0x94, 0x22, 0xb8, 0xf8, 0x42, 0x8b, 0x53, 0x8b, 0xf2, 0x12, 0x73, 0x53, 0x83, 0xc0, 0x8a, 0x84, 0x44, 0xb8, 0x58, 0x33, 0xf3, 0x52, 0x52, 0x2b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0xc4, 0x94, 0x94, 0xa2, 0xd4, 0xe2, 0x62, 0x09, 0x26, 0xb0, 0x38, 0x8c, 0x2b, 0x24, 0xc6, 0xc5, - 0x96, 0x9b, 0x5a, 0x92, 0x91, 0x9f, 0x22, 0xc1, 0x0c, 0x96, 0x80, 0xf2, 0x9c, 0xec, 0x4f, 0x3c, + 0x96, 0x9b, 0x5a, 0x92, 0x91, 0x9f, 0x22, 0xc1, 0x0c, 0x96, 0x80, 0xf2, 0x9c, 0x1c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, - 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x35, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, - 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x28, 0xa3, 0x50, 0x1f, 0xec, 0xd8, 0x0a, 0x98, - 0x73, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xce, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, - 0xff, 0xf3, 0xff, 0xde, 0x31, 0xca, 0x00, 0x00, 0x00, + 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x2d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, + 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x48, 0x37, 0x33, 0x5f, 0x1f, 0xec, 0xda, 0x0a, + 0x98, 0x7b, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xee, 0x35, 0x06, 0x04, 0x00, 0x00, + 0xff, 0xff, 0x08, 0x69, 0xf9, 0xf3, 0xcb, 0x00, 0x00, 0x00, } func (m *UsernameRecord) Marshal() (dAtA []byte, err error) { diff --git a/x/domain/types/tx.pb.go b/x/domain/types/tx.pb.go index 45ed810c7..65ff2d769 100644 --- a/x/domain/types/tx.pb.go +++ b/x/domain/types/tx.pb.go @@ -27,6 +27,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// MsgCreateUsernameRecords represents a request to create a UsernameRecord. type MsgCreateUsernameRecords struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` @@ -87,6 +88,8 @@ func (m *MsgCreateUsernameRecords) GetMethod() string { return "" } +// MsgCreateUsernameRecordsResponse represents the response from creating a +// UsernameRecord. type MsgCreateUsernameRecordsResponse struct { } @@ -123,6 +126,7 @@ func (m *MsgCreateUsernameRecordsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateUsernameRecordsResponse proto.InternalMessageInfo +// MsgUpdateUsernameRecords represents a request to update a UsernameRecord. type MsgUpdateUsernameRecords struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` @@ -175,6 +179,8 @@ func (m *MsgUpdateUsernameRecords) GetIndex() string { return "" } +// MsgUpdateUsernameRecordsResponse represents the response from updating a +// UsernameRecord. type MsgUpdateUsernameRecordsResponse struct { } @@ -211,6 +217,7 @@ func (m *MsgUpdateUsernameRecordsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateUsernameRecordsResponse proto.InternalMessageInfo +// MsgDeleteUsernameRecords represents a request to delete a UsernameRecord. type MsgDeleteUsernameRecords struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Index string `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` @@ -263,6 +270,8 @@ func (m *MsgDeleteUsernameRecords) GetIndex() string { return "" } +// MsgDeleteUsernameRecordsResponse represents the response from deleting a +// UsernameRecord. type MsgDeleteUsernameRecordsResponse struct { } @@ -312,25 +321,25 @@ func init() { proto.RegisterFile("core/domain/tx.proto", fileDescriptor_d1e2442c var fileDescriptor_d1e2442c81dc82e6 = []byte{ // 302 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xce, 0x2f, 0x4a, - 0xd5, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0xe2, 0x06, 0x89, 0xea, 0x41, 0x44, 0xa5, 0x24, 0x90, 0x95, 0x14, 0xa5, 0x26, 0xe7, 0x17, - 0xa5, 0x40, 0x94, 0x29, 0x25, 0x71, 0x49, 0xf8, 0x16, 0xa7, 0x3b, 0x17, 0xa5, 0x26, 0x96, 0xa4, - 0x86, 0x16, 0xa7, 0x16, 0xe5, 0x25, 0xe6, 0xa6, 0x06, 0x81, 0x15, 0x14, 0x0b, 0x49, 0x70, 0xb1, - 0x27, 0x83, 0x24, 0xf2, 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x60, 0x5c, 0x21, 0x11, - 0x2e, 0xd6, 0xcc, 0xbc, 0x94, 0xd4, 0x0a, 0x09, 0x26, 0xb0, 0x38, 0x84, 0x23, 0x24, 0xc6, 0xc5, - 0x96, 0x9b, 0x5a, 0x92, 0x91, 0x9f, 0x22, 0xc1, 0x0c, 0x16, 0x86, 0xf2, 0x94, 0x94, 0xb8, 0x14, - 0x70, 0xd9, 0x11, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0xaa, 0xe4, 0x05, 0x76, 0x47, 0x68, - 0x41, 0x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, 0xa7, 0x6b, 0x3a, 0xff, 0x53, 0xad, 0xa7, 0xb6, 0x34, 0x93, 0x86, 0x21, 0xcd, 0x28, 0x6b, + 0x48, 0x3b, 0xe8, 0xb4, 0xa5, 0x99, 0x24, 0x0c, 0x69, 0x46, 0x55, 0x43, 0xda, 0x41, 0xa3, 0xf7, + 0x77, 0xef, 0x35, 0xb7, 0x37, 0x35, 0xb7, 0xbf, 0x6a, 0x6e, 0xbf, 0x35, 0xdc, 0xda, 0x34, 0xdc, + 0xfa, 0x6c, 0xb8, 0xf5, 0x7c, 0x95, 0x66, 0x6a, 0xf5, 0x12, 0x79, 0x31, 0xe6, 0xbe, 0xc4, 0x42, + 0xcc, 0x33, 0xf4, 0xf5, 0x01, 0x54, 0x3f, 0x57, 0xf2, 0x5a, 0x82, 0x8c, 0x26, 0xfa, 0x04, 0x6e, + 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x1c, 0x1f, 0x5a, 0x41, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -345,8 +354,11 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { + // CreateUsernameRecord creates a new UsernameRecord. CreateUsernameRecord(ctx context.Context, in *MsgCreateUsernameRecords, opts ...grpc.CallOption) (*MsgCreateUsernameRecordsResponse, error) + // UpdateUsernameRecord updates an existing UsernameRecord. UpdateUsernameRecord(ctx context.Context, in *MsgUpdateUsernameRecords, opts ...grpc.CallOption) (*MsgUpdateUsernameRecordsResponse, error) + // DeleteUsernameRecord deletes an existing UsernameRecord. DeleteUsernameRecord(ctx context.Context, in *MsgDeleteUsernameRecords, opts ...grpc.CallOption) (*MsgDeleteUsernameRecordsResponse, error) } @@ -387,8 +399,11 @@ func (c *msgClient) DeleteUsernameRecord(ctx context.Context, in *MsgDeleteUsern // MsgServer is the server API for Msg service. type MsgServer interface { + // CreateUsernameRecord creates a new UsernameRecord. CreateUsernameRecord(context.Context, *MsgCreateUsernameRecords) (*MsgCreateUsernameRecordsResponse, error) + // UpdateUsernameRecord updates an existing UsernameRecord. UpdateUsernameRecord(context.Context, *MsgUpdateUsernameRecords) (*MsgUpdateUsernameRecordsResponse, error) + // DeleteUsernameRecord deletes an existing UsernameRecord. DeleteUsernameRecord(context.Context, *MsgDeleteUsernameRecords) (*MsgDeleteUsernameRecordsResponse, error) } diff --git a/x/identity/client/cli/query.go b/x/identity/client/cli/query.go index 60b0a49c7..050225a0d 100644 --- a/x/identity/client/cli/query.go +++ b/x/identity/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/identity/client/cli/query_controller_account.go b/x/identity/client/cli/query_controller_account.go index 72898a3c5..d50cae25c 100644 --- a/x/identity/client/cli/query_controller_account.go +++ b/x/identity/client/cli/query_controller_account.go @@ -3,7 +3,7 @@ package cli import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "github.com/spf13/cobra" ) diff --git a/x/identity/client/cli/query_did_document.go b/x/identity/client/cli/query_did_document.go index 38ea69d22..c912a3b75 100644 --- a/x/identity/client/cli/query_did_document.go +++ b/x/identity/client/cli/query_did_document.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" ) func CmdListDIDDocument() *cobra.Command { diff --git a/x/identity/client/cli/query_escrow_account.go b/x/identity/client/cli/query_escrow_account.go index cbab3c6ca..34f78eb9b 100644 --- a/x/identity/client/cli/query_escrow_account.go +++ b/x/identity/client/cli/query_escrow_account.go @@ -3,7 +3,7 @@ package cli import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "github.com/spf13/cobra" ) diff --git a/x/identity/client/cli/query_params.go b/x/identity/client/cli/query_params.go index 3c7b2f4fb..7bd04198c 100644 --- a/x/identity/client/cli/query_params.go +++ b/x/identity/client/cli/query_params.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/identity/client/cli/tx.go b/x/identity/client/cli/tx.go index 339a9060c..81bf913ab 100644 --- a/x/identity/client/cli/tx.go +++ b/x/identity/client/cli/tx.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" ) var ( diff --git a/x/identity/client/cli/tx_controller_account.go b/x/identity/client/cli/tx_controller_account.go index b065ea11c..bdb0e9fb6 100644 --- a/x/identity/client/cli/tx_controller_account.go +++ b/x/identity/client/cli/tx_controller_account.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "github.com/spf13/cobra" ) diff --git a/x/identity/client/cli/tx_escrow_account.go b/x/identity/client/cli/tx_escrow_account.go index 446ecc6c7..ee5da515f 100644 --- a/x/identity/client/cli/tx_escrow_account.go +++ b/x/identity/client/cli/tx_escrow_account.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "github.com/spf13/cobra" ) diff --git a/x/identity/genesis.go b/x/identity/genesis.go index f36213f0e..754d5f0f2 100644 --- a/x/identity/genesis.go +++ b/x/identity/genesis.go @@ -2,8 +2,8 @@ package identity import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) // InitGenesis initializes the module's state from a provided genesis state. diff --git a/x/identity/genesis_test.go b/x/identity/genesis_test.go index da03e697b..dffb810e8 100644 --- a/x/identity/genesis_test.go +++ b/x/identity/genesis_test.go @@ -3,10 +3,10 @@ package identity_test import ( "testing" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/testutil/nullify" - "github.com/sonrhq/core/x/identity" - "github.com/sonrhq/core/x/identity/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/testutil/nullify" + "github.com/sonr-io/core/x/identity" + "github.com/sonr-io/core/x/identity/types" "github.com/stretchr/testify/require" ) diff --git a/x/identity/keeper/genesis.go b/x/identity/keeper/genesis.go index 6888b57dd..4e3bcea73 100644 --- a/x/identity/keeper/genesis.go +++ b/x/identity/keeper/genesis.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/identity/keeper/keeper.go b/x/identity/keeper/keeper.go index 2698129f8..eae66f27d 100644 --- a/x/identity/keeper/keeper.go +++ b/x/identity/keeper/keeper.go @@ -14,7 +14,7 @@ import ( host "github.com/cosmos/ibc-go/v7/modules/core/24-host" "github.com/cosmos/ibc-go/v7/modules/core/exported" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" ) type ( diff --git a/x/identity/keeper/msg_server.go b/x/identity/keeper/msg_server.go index 59203bff8..61f619182 100644 --- a/x/identity/keeper/msg_server.go +++ b/x/identity/keeper/msg_server.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/pkg/crypto" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + "github.com/sonr-io/core/x/identity/types" ) type msgServer struct { diff --git a/x/identity/keeper/params_test.go b/x/identity/keeper/params_test.go index e387a45d4..0dc298435 100644 --- a/x/identity/keeper/params_test.go +++ b/x/identity/keeper/params_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "testing" - testkeeper "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/x/identity/types" + testkeeper "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/x/identity/types" "github.com/stretchr/testify/require" ) diff --git a/x/identity/keeper/query.go b/x/identity/keeper/query.go index af3d65159..152a19b9d 100644 --- a/x/identity/keeper/query.go +++ b/x/identity/keeper/query.go @@ -8,7 +8,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/identity/module.go b/x/identity/module.go index 526f5dd2a..e55f88026 100644 --- a/x/identity/module.go +++ b/x/identity/module.go @@ -18,9 +18,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" - "github.com/sonrhq/core/x/identity/client/cli" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/client/cli" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) var ( diff --git a/x/identity/module_ibc.go b/x/identity/module_ibc.go index 3480b232c..f0132486d 100644 --- a/x/identity/module_ibc.go +++ b/x/identity/module_ibc.go @@ -10,8 +10,8 @@ import ( porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types" host "github.com/cosmos/ibc-go/v7/modules/core/24-host" ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) type IBCModule struct { diff --git a/x/identity/module_simulation.go b/x/identity/module_simulation.go index 6fc63f926..dda5b8deb 100644 --- a/x/identity/module_simulation.go +++ b/x/identity/module_simulation.go @@ -8,9 +8,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/testutil/sample" - identitysimulation "github.com/sonrhq/core/x/identity/simulation" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/testutil/sample" + identitysimulation "github.com/sonr-io/core/x/identity/simulation" + "github.com/sonr-io/core/x/identity/types" ) // avoid unused import issue diff --git a/x/identity/simulation/controller_account.go b/x/identity/simulation/controller_account.go index 7e13e02c2..923349b83 100644 --- a/x/identity/simulation/controller_account.go +++ b/x/identity/simulation/controller_account.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) func SimulateMsgCreateControllerAccount( diff --git a/x/identity/simulation/did_document.go b/x/identity/simulation/did_document.go index c5b9e73ef..c53c6a789 100644 --- a/x/identity/simulation/did_document.go +++ b/x/identity/simulation/did_document.go @@ -7,8 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) // Prevent strconv unused error diff --git a/x/identity/simulation/escrow_account.go b/x/identity/simulation/escrow_account.go index 97e027bcd..94a4d85ce 100644 --- a/x/identity/simulation/escrow_account.go +++ b/x/identity/simulation/escrow_account.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) func SimulateMsgCreateEscrowAccount( diff --git a/x/identity/simulation/register_identity.go b/x/identity/simulation/register_identity.go index 410b2d0b7..5916a6029 100644 --- a/x/identity/simulation/register_identity.go +++ b/x/identity/simulation/register_identity.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/sonrhq/core/x/identity/keeper" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/keeper" + "github.com/sonr-io/core/x/identity/types" ) func SimulateMsgRegisterIdentity( diff --git a/x/identity/types/account.pb.go b/x/identity/types/account.pb.go index e294b2f47..6cb31dd38 100644 --- a/x/identity/types/account.pb.go +++ b/x/identity/types/account.pb.go @@ -174,26 +174,26 @@ func init() { func init() { proto.RegisterFile("core/identity/account.proto", fileDescriptor_19070c8376816cff) } var fileDescriptor_19070c8376816cff = []byte{ - // 290 bytes of a gzipped FileDescriptorProto + // 289 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0x4d, 0x4a, 0xc4, 0x30, - 0x18, 0x9d, 0x74, 0xaa, 0xd2, 0xc0, 0x0c, 0xda, 0x55, 0x40, 0x09, 0x65, 0x16, 0x5a, 0x5c, 0xb4, - 0x0b, 0x4f, 0x30, 0x23, 0xae, 0xdc, 0x15, 0xdc, 0xb8, 0x4b, 0x93, 0x60, 0x83, 0xb1, 0x5f, 0x4d, - 0x52, 0xc6, 0x1e, 0x42, 0xf0, 0x02, 0xde, 0xc7, 0xe5, 0x2c, 0x5d, 0x4a, 0x7b, 0x11, 0x69, 0xc7, - 0x32, 0x32, 0x82, 0xcb, 0xf7, 0xc3, 0xf7, 0xde, 0xc7, 0xc3, 0xa7, 0x1c, 0x8c, 0x4c, 0x95, 0x90, - 0xa5, 0x53, 0xae, 0x49, 0x19, 0xe7, 0x50, 0x97, 0x2e, 0xa9, 0x0c, 0x38, 0x08, 0x67, 0xbd, 0x98, - 0x8c, 0xe2, 0xe2, 0x1d, 0xe1, 0xd9, 0x8d, 0xe5, 0x06, 0xd6, 0xcb, 0xad, 0x2d, 0x9c, 0x63, 0x4f, - 0x09, 0x82, 0x22, 0x14, 0xfb, 0x99, 0xa7, 0x44, 0x48, 0xf0, 0x11, 0x13, 0xc2, 0x48, 0x6b, 0x89, - 0x17, 0xa1, 0x38, 0xc8, 0x46, 0x18, 0x9e, 0xe1, 0xa0, 0xaa, 0x73, 0xad, 0xf8, 0xad, 0x6c, 0xc8, - 0x74, 0xd0, 0x76, 0x44, 0x78, 0x89, 0x8f, 0x35, 0xf0, 0xc7, 0xba, 0xba, 0xb3, 0x62, 0xc5, 0x34, - 0x2b, 0xb9, 0x24, 0xfe, 0x60, 0xfa, 0xc3, 0xf7, 0x19, 0xdc, 0x48, 0xe6, 0xc0, 0x90, 0x83, 0x6d, - 0xc6, 0x0f, 0x5c, 0xbc, 0x22, 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, 0x1e, + 0x8e, 0x4b, 0x5c, 0x7d, 0x07, 0x00, 0x00, 0xff, 0xff, 0xda, 0x45, 0x1c, 0x99, 0xa8, 0x01, 0x00, + 0x00, } func (m *EscrowAccount) Marshal() (dAtA []byte, err error) { diff --git a/x/identity/types/did.pb.go b/x/identity/types/did.pb.go index 16a7b1b47..587992813 100644 --- a/x/identity/types/did.pb.go +++ b/x/identity/types/did.pb.go @@ -315,42 +315,42 @@ func init() { func init() { proto.RegisterFile("core/identity/did.proto", fileDescriptor_04e15460d8451849) } var fileDescriptor_04e15460d8451849 = []byte{ - // 553 bytes of a gzipped FileDescriptorProto + // 555 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcb, 0x8e, 0xd3, 0x30, - 0x14, 0x9d, 0xb4, 0xf3, 0xa0, 0xee, 0xbc, 0xe4, 0xe9, 0x88, 0x2c, 0x50, 0x54, 0x2a, 0xa4, 0x29, - 0x9b, 0x16, 0x95, 0x2f, 0x28, 0xea, 0xa6, 0x0c, 0x23, 0xa4, 0x08, 0xb1, 0x40, 0x48, 0x91, 0xe3, - 0x78, 0x1a, 0x93, 0xd4, 0x0e, 0xb6, 0xd3, 0x4e, 0xfe, 0x82, 0xef, 0x60, 0xc3, 0x8e, 0x6f, 0x60, - 0x39, 0x4b, 0x96, 0xa8, 0xfd, 0x11, 0x64, 0xe7, 0xd1, 0xd0, 0x11, 0x48, 0x65, 0xd5, 0xfa, 0x9e, - 0x73, 0x4f, 0x7c, 0xef, 0x39, 0x32, 0x78, 0x8c, 0xb9, 0x20, 0x43, 0x1a, 0x10, 0xa6, 0xa8, 0xca, - 0x86, 0x01, 0x0d, 0x06, 0x89, 0xe0, 0x8a, 0xc3, 0x13, 0x0d, 0x0c, 0x4a, 0xa0, 0xf7, 0x75, 0x1f, - 0xb4, 0x27, 0xd3, 0xc9, 0x84, 0xe3, 0x74, 0x4e, 0x98, 0x82, 0x36, 0x38, 0xc2, 0x9c, 0x29, 0x72, - 0xa7, 0x6c, 0xab, 0xdb, 0xec, 0xb7, 0xdc, 0xf2, 0x08, 0x4f, 0x41, 0x83, 0x06, 0x76, 0xa3, 0x6b, - 0xf5, 0x5b, 0x6e, 0x83, 0x06, 0xd0, 0x01, 0x40, 0x43, 0x82, 0xc7, 0x31, 0x11, 0x76, 0xd3, 0x90, - 0x6b, 0x15, 0xf8, 0x16, 0x9c, 0xa2, 0x54, 0x85, 0xfa, 0x3b, 0x18, 0x29, 0xca, 0x99, 0x7d, 0xd0, - 0x6d, 0xf6, 0xdb, 0xa3, 0xab, 0xc1, 0x1f, 0x37, 0x18, 0xbc, 0x27, 0x82, 0xde, 0x16, 0x14, 0x97, - 0xc4, 0xe6, 0x57, 0x86, 0x34, 0x71, 0xb7, 0xda, 0xa1, 0x0b, 0xce, 0x91, 0x94, 0x44, 0xe8, 0x83, - 0x37, 0x27, 0x2a, 0xe4, 0x81, 0x7d, 0xb8, 0x9b, 0xe4, 0x59, 0x25, 0x70, 0x63, 0xfa, 0xe1, 0x47, - 0x70, 0x89, 0x51, 0x82, 0x7c, 0x1a, 0x53, 0x95, 0x79, 0x94, 0x2d, 0x78, 0x71, 0xd7, 0xa3, 0xdd, - 0x84, 0x3b, 0x1b, 0x95, 0x69, 0x25, 0xb2, 0xa5, 0x1e, 0x90, 0x98, 0xcc, 0x72, 0xf5, 0x47, 0xff, - 0xad, 0x3e, 0xa9, 0x44, 0xe0, 0x1b, 0x70, 0x12, 0x91, 0xcc, 0x43, 0x33, 0x41, 0x88, 0xf6, 0xce, - 0x6e, 0xed, 0xa6, 0x7a, 0x1c, 0x91, 0x6c, 0x5c, 0x36, 0xc3, 0x1e, 0x38, 0x41, 0xb1, 0xe4, 0x5e, - 0xc4, 0xf8, 0x92, 0x79, 0x48, 0xda, 0xc0, 0x38, 0xda, 0xd6, 0xc5, 0x6b, 0x5d, 0x1b, 0xcb, 0xde, - 0xb7, 0x06,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, 0xce, 0xc1, 0xfd, 0xc6, 0x39, 0xf8, 0xb9, 0x71, 0x0e, 0x3e, + 0xf6, 0x67, 0x54, 0xcd, 0x13, 0x7f, 0x80, 0xf9, 0x62, 0x28, 0x39, 0x13, 0x2f, 0x29, 0x1f, 0x9a, + 0xc7, 0xe6, 0x6e, 0xfb, 0xdc, 0x68, 0x61, 0xe9, 0x1f, 0x9b, 0x17, 0xe7, 0xf5, 0xef, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x5d, 0x0a, 0x61, 0x72, 0x8c, 0x04, 0x00, 0x00, } func (m *DIDDocument) Marshal() (dAtA []byte, err error) { diff --git a/x/identity/types/did_document.go b/x/identity/types/did_document.go index 9cdb9313d..986e4822b 100644 --- a/x/identity/types/did_document.go +++ b/x/identity/types/did_document.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/go-webauthn/webauthn/protocol" - crypto "github.com/sonrhq/core/pkg/crypto" + crypto "github.com/sonr-io/core/pkg/crypto" ) // NewDIDDocument creates a new DIDDocument from an Identification and optional VerificationRelationships diff --git a/x/identity/types/genesis.pb.go b/x/identity/types/genesis.pb.go index ccf954896..0a681776e 100644 --- a/x/identity/types/genesis.pb.go +++ b/x/identity/types/genesis.pb.go @@ -124,28 +124,28 @@ func init() { proto.RegisterFile("core/identity/genesis.proto", fileDescriptor_2 var fileDescriptor_22ee3e6e2aad889c = []byte{ // 355 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcd, 0x4a, 0xc3, 0x40, - 0x14, 0x85, 0x13, 0x5b, 0x53, 0x9c, 0x2a, 0xe2, 0x60, 0x6d, 0x88, 0x12, 0x83, 0x1b, 0xb3, 0x4a, - 0xa0, 0x05, 0xf7, 0xfd, 0x11, 0xa9, 0xb8, 0x28, 0x75, 0x27, 0x82, 0xa4, 0x93, 0x21, 0x1d, 0x68, - 0x73,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5c, 0xe1, 0x93, 0x2d, 0xd0, 0x4d, 0x1f, 0xc6, 0x7f, 0x1b, 0x39, 0xd5, + 0xe1, 0x1f, 0x94, 0x0c, 0xf0, 0x11, 0x4b, 0xa8, 0x80, 0xd7, 0xcd, 0x46, 0xba, 0x6a, 0x74, 0x56, + 0x6a, 0x74, 0xb3, 0x99, 0xcb, 0xdb, 0x6c, 0x0f, 0x13, 0x17, 0x93, 0xc2, 0xcf, 0xac, 0x45, 0x4d, + 0xb5, 0xd8, 0x41, 0x3a, 0x9d, 0xf9, 0xd2, 0x42, 0x8b, 0xa5, 0x85, 0xbe, 0x97, 0x16, 0x7a, 0x5f, + 0x59, 0xda, 0x62, 0x65, 0x69, 0x9f, 0x2b, 0x4b, 0x7b, 0x74, 0x42, 0x2e, 0x5f, 0xa6, 0x23, 0x97, + 0xc2, 0xc4, 0x4b, 0x20, 0x12, 0x97, 0x1c, 0x3c, 0xb5, 0x0c, 0x6f, 0xeb, 0x75, 0x90, 0xb3, 0x98, + 0x25, 0x23, 0x5d, 0x6d, 0x43, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0x00, 0x4d, 0x2a, 0xd3, 0xa3, 0x02, 0x00, 0x00, } diff --git a/x/identity/types/genesis_test.go b/x/identity/types/genesis_test.go index f786828ce..95e6fded9 100644 --- a/x/identity/types/genesis_test.go +++ b/x/identity/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/x/identity/types" "github.com/stretchr/testify/require" ) diff --git a/x/identity/types/identifier.pb.go b/x/identity/types/identifier.pb.go new file mode 100644 index 000000000..28c50b233 --- /dev/null +++ b/x/identity/types/identifier.pb.go @@ -0,0 +1,603 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: core/identity/identifier.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// UserIdentifierType defines the type of the user identifier\ +type UserIdentifierType int32 + +const ( + UserIdentifierType_NONE UserIdentifierType = 0 + UserIdentifierType_EMAIL UserIdentifierType = 1 + UserIdentifierType_PHONE UserIdentifierType = 2 + UserIdentifierType_FIDO UserIdentifierType = 3 + UserIdentifierType_PASSKEY UserIdentifierType = 4 + UserIdentifierType_GPG UserIdentifierType = 5 +) + +var UserIdentifierType_name = map[int32]string{ + 0: "NONE", + 1: "EMAIL", + 2: "PHONE", + 3: "FIDO", + 4: "PASSKEY", + 5: "GPG", +} + +var UserIdentifierType_value = map[string]int32{ + "NONE": 0, + "EMAIL": 1, + "PHONE": 2, + "FIDO": 3, + "PASSKEY": 4, + "GPG": 5, +} + +func (x UserIdentifierType) String() string { + return proto.EnumName(UserIdentifierType_name, int32(x)) +} + +func (UserIdentifierType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_279efc507d29e268, []int{0} +} + +// UserIdentifier defines a user identifier +type UserIdentifier struct { + Type UserIdentifierType `protobuf:"varint,1,opt,name=type,proto3,enum=core.identity.UserIdentifierType" json:"type,omitempty"` + Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (m *UserIdentifier) Reset() { *m = UserIdentifier{} } +func (m *UserIdentifier) String() string { return proto.CompactTextString(m) } +func (*UserIdentifier) ProtoMessage() {} +func (*UserIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_279efc507d29e268, []int{0} +} +func (m *UserIdentifier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserIdentifier.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserIdentifier.Merge(m, src) +} +func (m *UserIdentifier) XXX_Size() int { + return m.Size() +} +func (m *UserIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_UserIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_UserIdentifier proto.InternalMessageInfo + +func (m *UserIdentifier) GetType() UserIdentifierType { + if m != nil { + return m.Type + } + return UserIdentifierType_NONE +} + +func (m *UserIdentifier) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +// WalletIdentifier defines a wallet identifier +type WalletIdentifier struct { + ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *WalletIdentifier) Reset() { *m = WalletIdentifier{} } +func (m *WalletIdentifier) String() string { return proto.CompactTextString(m) } +func (*WalletIdentifier) ProtoMessage() {} +func (*WalletIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_279efc507d29e268, []int{1} +} +func (m *WalletIdentifier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WalletIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WalletIdentifier.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WalletIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_WalletIdentifier.Merge(m, src) +} +func (m *WalletIdentifier) XXX_Size() int { + return m.Size() +} +func (m *WalletIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_WalletIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_WalletIdentifier proto.InternalMessageInfo + +func (m *WalletIdentifier) GetChainId() uint64 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *WalletIdentifier) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func init() { + proto.RegisterEnum("core.identity.UserIdentifierType", UserIdentifierType_name, UserIdentifierType_value) + proto.RegisterType((*UserIdentifier)(nil), "core.identity.UserIdentifier") + proto.RegisterType((*WalletIdentifier)(nil), "core.identity.WalletIdentifier") +} + +func init() { proto.RegisterFile("core/identity/identifier.proto", fileDescriptor_279efc507d29e268) } + +var fileDescriptor_279efc507d29e268 = []byte{ + // 287 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0x4a, + 0xd5, 0xcf, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, 0x2c, 0xa9, 0x84, 0x32, 0xd2, 0x32, 0x53, 0x8b, 0xf4, + 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x78, 0x41, 0xf2, 0x7a, 0x30, 0x79, 0xa5, 0x74, 0x2e, 0xbe, + 0xd0, 0xe2, 0xd4, 0x22, 0x4f, 0xb8, 0x32, 0x21, 0x53, 0x2e, 0x96, 0x92, 0xca, 0x82, 0x54, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0x3e, 0x23, 0x45, 0x3d, 0x14, 0xf5, 0x7a, 0xa8, 0x8a, 0x43, 0x2a, 0x0b, + 0x52, 0x83, 0xc0, 0xca, 0x85, 0xe4, 0xb8, 0xb8, 0x10, 0x76, 0x49, 0x30, 0x29, 0x30, 0x6a, 0x70, + 0x06, 0x21, 0x89, 0x28, 0xb9, 0x73, 0x09, 0x84, 0x27, 0xe6, 0xe4, 0xa4, 0x96, 0x20, 0x59, 0x25, + 0xc9, 0xc5, 0x91, 0x9c, 0x91, 0x98, 0x99, 0x17, 0x9f, 0x99, 0x02, 0xb6, 0x8e, 0x25, 0x88, 0x1d, + 0xcc, 0xf7, 0x4c, 0x11, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x86, 0x9a, + 0x05, 0xe3, 0x6a, 0x85, 0x70, 0x09, 0x61, 0x3a, 0x42, 0x88, 0x83, 0x8b, 0xc5, 0xcf, 0xdf, 0xcf, + 0x55, 0x80, 0x41, 0x88, 0x93, 0x8b, 0xd5, 0xd5, 0xd7, 0xd1, 0xd3, 0x47, 0x80, 0x11, 0xc4, 0x0c, + 0xf0, 0x00, 0x89, 0x32, 0x81, 0xe4, 0xdd, 0x3c, 0x5d, 0xfc, 0x05, 0x98, 0x85, 0xb8, 0xb9, 0xd8, + 0x03, 0x1c, 0x83, 0x83, 0xbd, 0x5d, 0x23, 0x05, 0x58, 0x84, 0xd8, 0xb9, 0x98, 0xdd, 0x03, 0xdc, + 0x05, 0x58, 0x9d, 0x9c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, + 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x23, + 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x48, 0x37, + 0x33, 0x5f, 0x1f, 0x1c, 0xc6, 0x15, 0x88, 0x50, 0x06, 0x85, 0x40, 0x71, 0x12, 0x1b, 0x38, 0x84, + 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x85, 0xb2, 0x39, 0x83, 0x01, 0x00, 0x00, +} + +func (m *UserIdentifier) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserIdentifier) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintIdentifier(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarintIdentifier(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *WalletIdentifier) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WalletIdentifier) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WalletIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintIdentifier(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.ChainId != 0 { + i = encodeVarintIdentifier(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintIdentifier(dAtA []byte, offset int, v uint64) int { + offset -= sovIdentifier(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UserIdentifier) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sovIdentifier(uint64(m.Type)) + } + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovIdentifier(uint64(l)) + } + return n +} + +func (m *WalletIdentifier) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainId != 0 { + n += 1 + sovIdentifier(uint64(m.ChainId)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovIdentifier(uint64(l)) + } + return n +} + +func sovIdentifier(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIdentifier(x uint64) (n int) { + return sovIdentifier(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UserIdentifier) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIdentifier + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserIdentifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIdentifier + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= UserIdentifierType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIdentifier + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIdentifier + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIdentifier + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIdentifier(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIdentifier + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WalletIdentifier) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIdentifier + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WalletIdentifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WalletIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIdentifier + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIdentifier + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIdentifier + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIdentifier + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIdentifier(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIdentifier + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIdentifier(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIdentifier + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIdentifier + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIdentifier + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthIdentifier + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIdentifier + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIdentifier + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIdentifier = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIdentifier = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIdentifier = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/identity/types/messages_controller_account_test.go b/x/identity/types/messages_controller_account_test.go index 6c981b177..cbe025ac7 100644 --- a/x/identity/types/messages_controller_account_test.go +++ b/x/identity/types/messages_controller_account_test.go @@ -4,7 +4,7 @@ import ( "testing" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/testutil/sample" + "github.com/sonr-io/core/testutil/sample" "github.com/stretchr/testify/require" ) diff --git a/x/identity/types/messages_escrow_account_test.go b/x/identity/types/messages_escrow_account_test.go index 3fdfba5ab..235f4dabc 100644 --- a/x/identity/types/messages_escrow_account_test.go +++ b/x/identity/types/messages_escrow_account_test.go @@ -4,7 +4,7 @@ import ( "testing" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/testutil/sample" + "github.com/sonr-io/core/testutil/sample" "github.com/stretchr/testify/require" ) diff --git a/x/identity/types/msg_identity.go b/x/identity/types/msg_identity.go index c49918cc1..712423d6e 100644 --- a/x/identity/types/msg_identity.go +++ b/x/identity/types/msg_identity.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" ) const TypeMsgRegisterIdentity = "register_identity" diff --git a/x/identity/types/packet.pb.go b/x/identity/types/packet.pb.go index 32e6b4d08..a572ab3ab 100644 --- a/x/identity/types/packet.pb.go +++ b/x/identity/types/packet.pb.go @@ -139,18 +139,19 @@ func init() { func init() { proto.RegisterFile("core/identity/packet.proto", fileDescriptor_06082318c59bda84) } var fileDescriptor_06082318c59bda84 = []byte{ - // 176 bytes of a gzipped FileDescriptorProto + // 177 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0x4a, 0xd5, 0xcf, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x05, 0xc9, 0xe9, 0xc1, 0xe4, 0x94, 0xfc, 0xb9, 0x84, 0x3c, 0xa1, 0xec, 0x00, 0xb0, 0x32, 0x97, 0xc4, 0x92, 0x44, 0x21, 0x7d, 0x2e, 0xb6, 0xbc, 0x7c, 0x10, 0x4b, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x54, 0x0f, 0x45, 0x97, 0x9e, 0x1f, 0x58, 0xd2, 0x83, 0x21, 0x08, 0xaa, 0xcc, 0x89, 0x83, 0x8b, 0x0d, 0x62, 0x8b, 0x12, 0x07, 0x17, - 0x1b, 0x44, 0xd6, 0xc9, 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, - 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xd4, - 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x32, - 0x0a, 0xf5, 0xc1, 0x2e, 0xae, 0x40, 0xb8, 0xb9, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, - 0x66, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x97, 0x10, 0x80, 0x2e, 0xd1, 0x00, 0x00, 0x00, + 0x1b, 0x44, 0xd6, 0xc9, 0xe9, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, + 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x34, + 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x74, + 0x33, 0xf3, 0xf5, 0xc1, 0x4e, 0xae, 0x40, 0x38, 0xba, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, + 0xec, 0x68, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xbf, 0xc1, 0x09, 0xd2, 0x00, 0x00, + 0x00, } func (m *IdentityPacketData) Marshal() (dAtA []byte, err error) { diff --git a/x/identity/types/params.pb.go b/x/identity/types/params.pb.go index d85a0dd3f..12949e22e 100644 --- a/x/identity/types/params.pb.go +++ b/x/identity/types/params.pb.go @@ -116,26 +116,26 @@ func init() { proto.RegisterFile("core/identity/params.proto", fileDescriptor_2b var fileDescriptor_2b3a47d8d2dc969e = []byte{ // 334 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0xd1, 0xbf, 0x4b, 0xc3, 0x40, - 0x14, 0xc0, 0xf1, 0x5c, 0x7f, 0x41, 0x0f, 0x14, 0x89, 0xd5, 0xc6, 0x0e, 0x31, 0xb8, 0x98, 0xa9, - 0x01, 0x45, 0x90, 0x3a, 0xb5, 0xba, 0x38, 0x28, 0x92, 0xd1, 0x25, 0x5c, 0xef, 0x1e, 0xed, 0x81, - 0x97, 0x8b, 0x77, 0x17, 0x6d, 0xff, 0x0b, 0x47, 0x47, 0xff, 0x1c, 0xc7, 0x4e, 0x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7c, 0x2e, 0x03, 0xe7, 0x21, 0x1a, 0x0b, 0x33, 0x29, 0x46, 0x7d, 0x86, 0x32, 0xd6, 0x98, 0xa9, + 0x63, 0x81, 0xb1, 0x3d, 0xe3, 0xf4, 0xe7, 0x90, 0x66, 0x96, 0x83, 0x1e, 0xb5, 0xec, 0x8d, 0x4e, + 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x36, 0x74, 0x96, 0xe6, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/identity/types/query.pb.go b/x/identity/types/query.pb.go index ca101efb1..6d5992764 100644 --- a/x/identity/types/query.pb.go +++ b/x/identity/types/query.pb.go @@ -113,6 +113,8 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryGetDIDDocumentRequest is the request type for the Query/DIDDocument RPC +// method. type QueryGetDIDDocumentRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` } @@ -157,6 +159,8 @@ func (m *QueryGetDIDDocumentRequest) GetDid() string { return "" } +// QueryGetDIDDocumentResponse is the response type for the Query/DIDDocument +// RPC method. type QueryGetDIDDocumentResponse struct { DIDDocument DIDDocument `protobuf:"bytes,1,opt,name=dIDDocument,proto3" json:"dIDDocument"` } @@ -201,6 +205,8 @@ func (m *QueryGetDIDDocumentResponse) GetDIDDocument() DIDDocument { return DIDDocument{} } +// QueryAllDIDDocumentRequest is the request type for the Query/DIDDocumentAll +// RPC method. type QueryAllDIDDocumentRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -245,6 +251,8 @@ func (m *QueryAllDIDDocumentRequest) GetPagination() *query.PageRequest { return nil } +// QueryAllDIDDocumentResponse is the response type for the Query/DIDDocumentAll +// RPC method. type QueryAllDIDDocumentResponse struct { DIDDocument []DIDDocument `protobuf:"bytes,1,rep,name=dIDDocument,proto3" json:"dIDDocument"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -297,6 +305,8 @@ func (m *QueryAllDIDDocumentResponse) GetPagination() *query.PageResponse { return nil } +// QueryDidByAlsoKnownAsRequest is the request type for the +// Query/DidByAlsoKnownAs RPC method. type QueryDidByAlsoKnownAsRequest struct { // aka_aliasid is the unique identifier of the DIDDocument - it appears like // ("example.snr") @@ -343,6 +353,8 @@ func (m *QueryDidByAlsoKnownAsRequest) GetAlias() string { return "" } +// QueryDidByAlsoKnownAsResponse is the response type for the +// Query/DidByAlsoKnownAs RPC method. type QueryDidByAlsoKnownAsResponse struct { // A DIDDocument is a JSON-LD object that contains a set of public keys DidDocument DIDDocument `protobuf:"bytes,1,opt,name=didDocument,proto3" json:"didDocument"` @@ -388,6 +400,8 @@ func (m *QueryDidByAlsoKnownAsResponse) GetDidDocument() DIDDocument { return DIDDocument{} } +// QueryAliasAvailableRequest is the request type for the Query/AliasAvailable +// RPC method. type QueryAliasAvailableRequest struct { // alias is the unique identifier of the DIDDocument - it appears like // ("example.snr") @@ -434,6 +448,8 @@ func (m *QueryAliasAvailableRequest) GetAlias() string { return "" } +// QueryAliasAvailableResponse is the response type for the Query/AliasAvailable +// RPC method. type QueryAliasAvailableResponse struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` ExistingDocument *DIDDocument `protobuf:"bytes,2,opt,name=existing_document,json=existingDocument,proto3" json:"existing_document,omitempty"` @@ -486,6 +502,8 @@ func (m *QueryAliasAvailableResponse) GetExistingDocument() *DIDDocument { return nil } +// QueryDidByOwnerRequest is the request type for the Query/DidByOwner RPC +// method. type QueryDidByOwnerRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } @@ -530,6 +548,8 @@ func (m *QueryDidByOwnerRequest) GetOwner() string { return "" } +// QueryDidByOwnerResponse is the response type for the Query/DidByOwner RPC +// method. type QueryDidByOwnerResponse struct { DidDocument DIDDocument `protobuf:"bytes,1,opt,name=didDocument,proto3" json:"didDocument"` } @@ -574,6 +594,8 @@ func (m *QueryDidByOwnerResponse) GetDidDocument() DIDDocument { return DIDDocument{} } +// QueryGetControllerAccountRequest is the request type for the +// Query/ControllerAccount RPC method. type QueryGetControllerAccountRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } @@ -618,8 +640,10 @@ func (m *QueryGetControllerAccountRequest) GetAddress() string { return "" } +// QueryGetControllerAccountResponse is the response type for the +// Query/ControllerAccount RPC method. type QueryGetControllerAccountResponse struct { - ControllerAccount ControllerAccount `protobuf:"bytes,1,opt,name=ControllerAccount,proto3" json:"ControllerAccount"` + ControllerAccount ControllerAccount `protobuf:"bytes,1,opt,name=controllerAccount,proto3" json:"controllerAccount"` } func (m *QueryGetControllerAccountResponse) Reset() { *m = QueryGetControllerAccountResponse{} } @@ -662,6 +686,8 @@ func (m *QueryGetControllerAccountResponse) GetControllerAccount() ControllerAcc return ControllerAccount{} } +// QueryAllControllerAccountRequest is the request type for the +// Query/ControllerAccountAll RPC method. type QueryAllControllerAccountRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -706,8 +732,10 @@ func (m *QueryAllControllerAccountRequest) GetPagination() *query.PageRequest { return nil } +// QueryAllControllerAccountResponse is the response type for the +// Query/ControllerAccountAll RPC method. type QueryAllControllerAccountResponse struct { - ControllerAccount []ControllerAccount `protobuf:"bytes,1,rep,name=ControllerAccount,proto3" json:"ControllerAccount"` + ControllerAccount []ControllerAccount `protobuf:"bytes,1,rep,name=controllerAccount,proto3" json:"controllerAccount"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -758,6 +786,8 @@ func (m *QueryAllControllerAccountResponse) GetPagination() *query.PageResponse return nil } +// QueryGetEscrowAccountRequest is the request type for the Query/EscrowAccount +// RPC method. type QueryGetEscrowAccountRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } @@ -802,8 +832,10 @@ func (m *QueryGetEscrowAccountRequest) GetAddress() string { return "" } +// QueryGetEscrowAccountResponse is the response type for the +// Query/EscrowAccount RPC method. type QueryGetEscrowAccountResponse struct { - EscrowAccount EscrowAccount `protobuf:"bytes,1,opt,name=EscrowAccount,proto3" json:"EscrowAccount"` + EscrowAccount EscrowAccount `protobuf:"bytes,1,opt,name=escrowAccount,proto3" json:"escrowAccount"` } func (m *QueryGetEscrowAccountResponse) Reset() { *m = QueryGetEscrowAccountResponse{} } @@ -846,6 +878,8 @@ func (m *QueryGetEscrowAccountResponse) GetEscrowAccount() EscrowAccount { return EscrowAccount{} } +// QueryAllEscrowAccountRequest is the request type for the +// Query/EscrowAccountAll RPC method. type QueryAllEscrowAccountRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -890,8 +924,10 @@ func (m *QueryAllEscrowAccountRequest) GetPagination() *query.PageRequest { return nil } +// QueryAllEscrowAccountResponse is the response type for the +// Query/EscrowAccountAll RPC method. type QueryAllEscrowAccountResponse struct { - EscrowAccount []EscrowAccount `protobuf:"bytes,1,rep,name=EscrowAccount,proto3" json:"EscrowAccount"` + EscrowAccount []EscrowAccount `protobuf:"bytes,1,rep,name=escrowAccount,proto3" json:"escrowAccount"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -968,70 +1004,70 @@ func init() { func init() { proto.RegisterFile("core/identity/query.proto", fileDescriptor_55ac06fdf68c11fd) } var fileDescriptor_55ac06fdf68c11fd = []byte{ - // 993 bytes of a gzipped FileDescriptorProto + // 994 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x97, 0x4f, 0x6f, 0xdc, 0x44, - 0x14, 0xc0, 0xe3, 0x84, 0x86, 0x76, 0xa2, 0x46, 0xdb, 0x61, 0x9b, 0x04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, 0xce, 0x4e, 0x80, 0xea, 0x92, 0x7d, + 0x87, 0xfa, 0x4c, 0xd9, 0xf6, 0x4a, 0x96, 0xf8, 0x37, 0x43, 0x65, 0x32, 0x19, 0xa6, 0x29, 0x93, + 0xa5, 0x67, 0xce, 0x04, 0x1d, 0x54, 0x58, 0x17, 0x25, 0xeb, 0xb5, 0xa7, 0xb2, 0x66, 0x00, 0x15, + 0xd8, 0x37, 0xa1, 0x23, 0x59, 0xf7, 0xb9, 0xd7, 0x1d, 0x39, 0x41, 0x2c, 0x3e, 0x0e, 0xc5, 0x51, + 0xe8, 0xe4, 0x27, 0x02, 0xb5, 0xe1, 0x1c, 0x0d, 0x38, 0x8d, 0x55, 0xa7, 0xb2, 0x0b, 0xec, 0xc2, + 0xe5, 0x06, 0xab, 0x52, 0x8e, 0xdc, 0x7b, 0x8e, 0x6e, 0x15, 0x46, 0x78, 0x6f, 0xdc, 0x2d, 0x4e, + 0x63, 0xe7, 0x01, 0xe5, 0x01, 0xed, 0x07, 0x6c, 0x3a, 0xd8, 0xf7, 0x45, 0xed, 0xab, 0x46, 0x8a, + 0xab, 0x03, 0x17, 0x68, 0x7e, 0x53, 0x5a, 0x9e, 0xef, 0x15, 0x37, 0xd0, 0x27, 0xb0, 0xce, 0x1e, + 0xf2, 0x38, 0xe1, 0xa1, 0x7f, 0xd7, 0xcb, 0xd9, 0x17, 0x67, 0x62, 0x37, 0x7a, 0xad, 0xdc, 0x74, + 0x9c, 0x80, 0x0d, 0x1b, 0x45, 0x95, 0x3e, 0x3d, 0x0a, 0x59, 0x54, 0x82, 0x17, 0xe9, 0x75, 0x0e, + 0x2f, 0x2f, 0xf0, 0x97, 0xb0, 0x59, 0xd3, 0x9f, 0x63, 0x3d, 0xdf, 0x81, 0xed, 0xfc, 0x01, 0x7b, + 0x57, 0x84, 0x49, 0x24, 0x82, 0x80, 0x45, 0x4e, 0x36, 0x15, 0x72, 0xb0, 0x2d, 0x78, 0x91, 0x7a, + 0x5e, 0xc4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 0x5c, + 0x35, 0xad, 0x07, 0xfc, 0x96, 0x44, 0xd9, 0x45, 0x84, 0xc4, 0x22, 0x8c, 0x6e, 0x71, 0x41, 0xaa, + 0x1f, 0x21, 0xd9, 0xb8, 0xbc, 0xab, 0xbe, 0x45, 0x4a, 0xf5, 0xfb, 0xd9, 0x80, 0x56, 0xc5, 0x65, + 0x5a, 0xbb, 0x9b, 0x0d, 0xa5, 0x98, 0x1d, 0xb4, 0x69, 0xe6, 0xe3, 0x5b, 0x12, 0xf4, 0x1a, 0xba, + 0x3a, 0x13, 0x68, 0xb7, 0xfb, 0xf8, 0xd4, 0x32, 0x9e, 0x9c, 0x5a, 0xc6, 0x3f, 0xa7, 0x96, 0xf1, + 0xc3, 0x99, 0xb5, 0xf0, 0xe4, 0xcc, 0x5a, 0xf8, 0xeb, 0xcc, 0x5a, 0xf8, 0xe2, 0xba, 0xcf, 0x93, + 0x7b, 0xc3, 0xbe, 0xed, 0x8a, 0xc3, 0xaa, 0xab, 0x87, 0x85, 0xb3, 0x64, 0x34, 0x60, 0x71, 0x7f, + 0x59, 0x7e, 0x79, 0xdd, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x25, 0x9a, 0x37, 0x57, 0x0e, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1046,22 +1082,27 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of DIDDocument items. + // DIDDocument queries a list of DIDDocument items. DIDDocument(ctx context.Context, in *QueryGetDIDDocumentRequest, opts ...grpc.CallOption) (*QueryGetDIDDocumentResponse, error) + // DIDDocumentAll queries all DIDDocument items. DIDDocumentAll(ctx context.Context, in *QueryAllDIDDocumentRequest, opts ...grpc.CallOption) (*QueryAllDIDDocumentResponse, error) - // Returns DIDDocument based on an owner + // DidByOwner returns DIDDocument based on an owner. DidByOwner(ctx context.Context, in *QueryDidByOwnerRequest, opts ...grpc.CallOption) (*QueryDidByOwnerResponse, error) - // Returns DIDDocument based on an alias *only Sonr Identities + // DidByAlsoKnownAs returns DIDDocument based on an alias *only Sonr + // Identities. DidByAlsoKnownAs(ctx context.Context, in *QueryDidByAlsoKnownAsRequest, opts ...grpc.CallOption) (*QueryDidByAlsoKnownAsResponse, error) - // Checks if a given alias is available to register *only Sonr Identities + // AliasAvailable checks if a given alias is available to register *only Sonr + // Identities. AliasAvailable(ctx context.Context, in *QueryAliasAvailableRequest, opts ...grpc.CallOption) (*QueryAliasAvailableResponse, error) - // Queries a list of ControllerAccount items. + // ControllerAccount queries a list of ControllerAccount items. ControllerAccount(ctx context.Context, in *QueryGetControllerAccountRequest, opts ...grpc.CallOption) (*QueryGetControllerAccountResponse, error) + // ControllerAccountAll queries all ControllerAccount items. ControllerAccountAll(ctx context.Context, in *QueryAllControllerAccountRequest, opts ...grpc.CallOption) (*QueryAllControllerAccountResponse, error) - // Queries a list of EscrowAccount items. + // EscrowAccount queries a list of EscrowAccount items. EscrowAccount(ctx context.Context, in *QueryGetEscrowAccountRequest, opts ...grpc.CallOption) (*QueryGetEscrowAccountResponse, error) + // EscrowAccountAll queries all EscrowAccount items. EscrowAccountAll(ctx context.Context, in *QueryAllEscrowAccountRequest, opts ...grpc.CallOption) (*QueryAllEscrowAccountResponse, error) } @@ -1165,22 +1206,27 @@ func (c *queryClient) EscrowAccountAll(ctx context.Context, in *QueryAllEscrowAc // QueryServer is the server API for Query service. type QueryServer interface { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of DIDDocument items. + // DIDDocument queries a list of DIDDocument items. DIDDocument(context.Context, *QueryGetDIDDocumentRequest) (*QueryGetDIDDocumentResponse, error) + // DIDDocumentAll queries all DIDDocument items. DIDDocumentAll(context.Context, *QueryAllDIDDocumentRequest) (*QueryAllDIDDocumentResponse, error) - // Returns DIDDocument based on an owner + // DidByOwner returns DIDDocument based on an owner. DidByOwner(context.Context, *QueryDidByOwnerRequest) (*QueryDidByOwnerResponse, error) - // Returns DIDDocument based on an alias *only Sonr Identities + // DidByAlsoKnownAs returns DIDDocument based on an alias *only Sonr + // Identities. DidByAlsoKnownAs(context.Context, *QueryDidByAlsoKnownAsRequest) (*QueryDidByAlsoKnownAsResponse, error) - // Checks if a given alias is available to register *only Sonr Identities + // AliasAvailable checks if a given alias is available to register *only Sonr + // Identities. AliasAvailable(context.Context, *QueryAliasAvailableRequest) (*QueryAliasAvailableResponse, error) - // Queries a list of ControllerAccount items. + // ControllerAccount queries a list of ControllerAccount items. ControllerAccount(context.Context, *QueryGetControllerAccountRequest) (*QueryGetControllerAccountResponse, error) + // ControllerAccountAll queries all ControllerAccount items. ControllerAccountAll(context.Context, *QueryAllControllerAccountRequest) (*QueryAllControllerAccountResponse, error) - // Queries a list of EscrowAccount items. + // EscrowAccount queries a list of EscrowAccount items. EscrowAccount(context.Context, *QueryGetEscrowAccountRequest) (*QueryGetEscrowAccountResponse, error) + // EscrowAccountAll queries all EscrowAccount items. EscrowAccountAll(context.Context, *QueryAllEscrowAccountRequest) (*QueryAllEscrowAccountResponse, error) } diff --git a/x/identity/types/tx.pb.go b/x/identity/types/tx.pb.go index 0696597cb..7de8a2b06 100644 --- a/x/identity/types/tx.pb.go +++ b/x/identity/types/tx.pb.go @@ -27,6 +27,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// MsgRegisterIdentity represents a request to register a new identity. type MsgRegisterIdentity struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` DidDocument *DIDDocument `protobuf:"bytes,2,opt,name=did_document,json=didDocument,proto3" json:"did_document,omitempty"` @@ -87,6 +88,8 @@ func (m *MsgRegisterIdentity) GetWalletId() uint64 { return 0 } +// MsgRegisterIdentityResponse represents the response to a register identity +// request. type MsgRegisterIdentityResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` DidDocument *DIDDocument `protobuf:"bytes,2,opt,name=did_document,json=didDocument,proto3" json:"did_document,omitempty"` @@ -139,6 +142,8 @@ func (m *MsgRegisterIdentityResponse) GetDidDocument() *DIDDocument { return nil } +// MsgCreateControllerAccount represents a request to create a new controller +// account. type MsgCreateControllerAccount struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PublicKey string `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"` @@ -207,6 +212,8 @@ func (m *MsgCreateControllerAccount) GetWallets() []string { return nil } +// MsgCreateControllerAccountResponse represents the response to a create +// controller account request. type MsgCreateControllerAccountResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Account *ControllerAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` @@ -259,6 +266,8 @@ func (m *MsgCreateControllerAccountResponse) GetAccount() *ControllerAccount { return nil } +// MsgUpdateControllerAccount represents a request to update an existing +// controller account. type MsgUpdateControllerAccount struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` @@ -327,6 +336,8 @@ func (m *MsgUpdateControllerAccount) GetWallets() []string { return nil } +// MsgUpdateControllerAccountResponse represents the response to an update +// controller account request. type MsgUpdateControllerAccountResponse struct { Account *ControllerAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` } @@ -371,6 +382,8 @@ func (m *MsgUpdateControllerAccountResponse) GetAccount() *ControllerAccount { return nil } +// MsgDeleteControllerAccount represents a request to delete a controller +// account. type MsgDeleteControllerAccount struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -423,6 +436,8 @@ func (m *MsgDeleteControllerAccount) GetAddress() string { return "" } +// MsgDeleteControllerAccountResponse represents the response to a delete +// controller account request. type MsgDeleteControllerAccountResponse struct { } @@ -459,6 +474,7 @@ func (m *MsgDeleteControllerAccountResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeleteControllerAccountResponse proto.InternalMessageInfo +// MsgCreateEscrowAccount represents a request to create a new escrow account. type MsgCreateEscrowAccount struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -527,6 +543,8 @@ func (m *MsgCreateEscrowAccount) GetLockupUsdBalance() string { return "" } +// MsgCreateEscrowAccountResponse represents the response to a create escrow +// account request. type MsgCreateEscrowAccountResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Account *EscrowAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` @@ -579,6 +597,8 @@ func (m *MsgCreateEscrowAccountResponse) GetAccount() *EscrowAccount { return nil } +// MsgUpdateEscrowAccount represents a request to update an existing escrow +// account. type MsgUpdateEscrowAccount struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` @@ -655,6 +675,8 @@ func (m *MsgUpdateEscrowAccount) GetLockupUsdBalance() string { return "" } +// MsgUpdateEscrowAccountResponse represents the response to an update escrow +// account request. type MsgUpdateEscrowAccountResponse struct { } @@ -691,6 +713,7 @@ func (m *MsgUpdateEscrowAccountResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateEscrowAccountResponse proto.InternalMessageInfo +// MsgDeleteEscrowAccount represents a request to delete an escrow account. type MsgDeleteEscrowAccount struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` @@ -743,6 +766,8 @@ func (m *MsgDeleteEscrowAccount) GetAddress() string { return "" } +// MsgDeleteEscrowAccountResponse represents the response to a delete escrow +// account request. type MsgDeleteEscrowAccountResponse struct { } @@ -799,49 +824,49 @@ func init() { func init() { proto.RegisterFile("core/identity/tx.proto", fileDescriptor_893033e8c7493d64) } var fileDescriptor_893033e8c7493d64 = []byte{ - // 666 bytes of a gzipped FileDescriptorProto + // 665 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0x4f, 0x6b, 0xdb, 0x3e, 0x18, 0xc7, 0xeb, 0x24, 0xfd, 0x63, 0xf5, 0xf7, 0x2b, 0xc5, 0x85, 0xd6, 0xb8, 0xc5, 0x18, 0xb3, - 0x6e, 0x59, 0x61, 0x09, 0xeb, 0x60, 0x87, 0xc1, 0x0e, 0x6d, 0xb3, 0x43, 0xd9, 0x0a, 0xc3, 0xd0, - 0xcb, 0x2e, 0x9d, 0x23, 0x89, 0xc4, 0xd4, 0xb5, 0x3c, 0x4b, 0x5e, 0xda, 0x77, 0x30, 0xd8, 0x65, - 0xa7, 0x5d, 0x76, 0xdf, 0x6b, 0xd9, 0xb1, 0xc7, 0x1d, 0x47, 0xf2, 0x46, 0x86, 0xe5, 0xd8, 0xb3, - 0x1d, 0x29, 0x4e, 0xc9, 0x51, 0xca, 0x37, 0xfa, 0x7e, 0x9f, 0xcf, 0x23, 0x3d, 0x18, 0xec, 0x42, - 0x12, 0xe1, 0xae, 0x87, 0x70, 0xc0, 0x3c, 0x76, 0xd7, 0x65, 0xb7, 0x9d, 0x30, 0x22, 0x8c, 0x68, - 0xff, 0x27, 0xfb, 0x9d, 0x6c, 0xdf, 0xd8, 0x2b, 0xcb, 0x90, 0x87, 0x52, 0x9d, 0xb1, 0x5f, 0xfe, - 0xc1, 0x85, 0x90, 0xc4, 0x01, 0x4b, 0x7f, 0xb4, 0xbf, 0x2a, 0x60, 0xe7, 0x82, 0x0e, 0x1c, 0x3c, - 0xf0, 0x28, 0xc3, 0xd1, 0xf9, 0x54, 0xa5, 0xe9, 0x60, 0x1d, 0x46, 0xd8, 0x65, 0x24, 0xd2, 0x15, - 0x4b, 0x69, 0xab, 0x4e, 0xb6, 0xd4, 0x5e, 0x83, 0xff, 0x90, 0x87, 0xae, 0x10, 0x81, 0xf1, 0x0d, - 0x0e, 0x98, 0xde, 0xb0, 0x94, 0xf6, 0xe6, 0xb1, 0xd1, 0x29, 0xa5, 0xe9, 0xf4, 0xce, 0x7b, 0xbd, - 0xa9, 0xc2, 0xd9, 0x44, 0x1e, 0xca, 0x16, 0xda, 0x3e, 0x50, 0x47, 0xae, 0xef, 0x63, 0x76, 0xe5, - 0x21, 0xbd, 0x69, 0x29, 0xed, 0x96, 0xb3, 0x91, 0x6e, 0x9c, 0x23, 0xfb, 0x33, 0xd8, 0x17, 0x84, - 0x71, 0x30, 0x0d, 0x49, 0x40, 0x71, 0x12, 0x8a, 0xc6, 0x10, 0x62, 0x4a, 0x79, 0xa8, 0x0d, 0x27, - 0x5b, 0x2e, 0x19, 0xca, 0xfe, 0xae, 0x00, 0xe3, 0x82, 0x0e, 0xce, 0x92, 0x12, 0xf1, 0x19, 0x09, - 0x58, 0x44, 0x7c, 0x1f, 0x47, 0x27, 0x29, 0xaa, 0xc4, 0xd7, 0x45, 0x28, 0xca, 0x7c, 0x55, 0x27, - 0x5b, 0x6a, 0x07, 0x40, 0x0d, 0xe3, 0xbe, 0xef, 0xc1, 0xb7, 0xf8, 0x8e, 0x57, 0xa3, 0x3a, 0xff, - 0x36, 0xb4, 0xc7, 0x60, 0xcb, 0x8d, 0xd9, 0x30, 0x71, 0x87, 0x09, 0x3b, 0xaa, 0xb7, 0xac, 0x66, - 0x5b, 0x75, 0x2a, 0xbb, 0xc9, 0xf9, 0x29, 0x02, 0xaa, 0xaf, 0x72, 0x41, 0xb6, 0xb4, 0x43, 0x60, - 0xcb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, 0x77, 0xf7, 0xb6, 0xf6, 0xe7, 0xde, 0xd6, + 0xbe, 0x3d, 0xd8, 0x4b, 0x77, 0x0f, 0xf6, 0xd2, 0xef, 0x07, 0x7b, 0xe9, 0x63, 0x77, 0x44, 0xf8, + 0x65, 0x32, 0xec, 0x41, 0x7a, 0xdd, 0x67, 0x34, 0x8c, 0x0f, 0x09, 0xed, 0x8b, 0x6f, 0xa3, 0x9b, + 0xd2, 0xd7, 0xd5, 0x6d, 0x84, 0xd9, 0x70, 0x45, 0x7c, 0x1c, 0xbd, 0xf8, 0x1b, 0x00, 0x00, 0xff, + 0xff, 0x54, 0xb5, 0x2a, 0xf7, 0x7b, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -856,12 +881,19 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { + // RegisterIdentity registers a new identity. RegisterIdentity(ctx context.Context, in *MsgRegisterIdentity, opts ...grpc.CallOption) (*MsgRegisterIdentityResponse, error) + // CreateControllerAccount creates a new controller account. CreateControllerAccount(ctx context.Context, in *MsgCreateControllerAccount, opts ...grpc.CallOption) (*MsgCreateControllerAccountResponse, error) + // UpdateControllerAccount updates an existing controller account. UpdateControllerAccount(ctx context.Context, in *MsgUpdateControllerAccount, opts ...grpc.CallOption) (*MsgUpdateControllerAccountResponse, error) + // DeleteControllerAccount deletes a controller account. DeleteControllerAccount(ctx context.Context, in *MsgDeleteControllerAccount, opts ...grpc.CallOption) (*MsgDeleteControllerAccountResponse, error) + // CreateEscrowAccount creates a new escrow account. CreateEscrowAccount(ctx context.Context, in *MsgCreateEscrowAccount, opts ...grpc.CallOption) (*MsgCreateEscrowAccountResponse, error) + // UpdateEscrowAccount updates an existing escrow account. UpdateEscrowAccount(ctx context.Context, in *MsgUpdateEscrowAccount, opts ...grpc.CallOption) (*MsgUpdateEscrowAccountResponse, error) + // DeleteEscrowAccount deletes an escrow account. DeleteEscrowAccount(ctx context.Context, in *MsgDeleteEscrowAccount, opts ...grpc.CallOption) (*MsgDeleteEscrowAccountResponse, error) } @@ -938,12 +970,19 @@ func (c *msgClient) DeleteEscrowAccount(ctx context.Context, in *MsgDeleteEscrow // MsgServer is the server API for Msg service. type MsgServer interface { + // RegisterIdentity registers a new identity. RegisterIdentity(context.Context, *MsgRegisterIdentity) (*MsgRegisterIdentityResponse, error) + // CreateControllerAccount creates a new controller account. CreateControllerAccount(context.Context, *MsgCreateControllerAccount) (*MsgCreateControllerAccountResponse, error) + // UpdateControllerAccount updates an existing controller account. UpdateControllerAccount(context.Context, *MsgUpdateControllerAccount) (*MsgUpdateControllerAccountResponse, error) + // DeleteControllerAccount deletes a controller account. DeleteControllerAccount(context.Context, *MsgDeleteControllerAccount) (*MsgDeleteControllerAccountResponse, error) + // CreateEscrowAccount creates a new escrow account. CreateEscrowAccount(context.Context, *MsgCreateEscrowAccount) (*MsgCreateEscrowAccountResponse, error) + // UpdateEscrowAccount updates an existing escrow account. UpdateEscrowAccount(context.Context, *MsgUpdateEscrowAccount) (*MsgUpdateEscrowAccountResponse, error) + // DeleteEscrowAccount deletes an escrow account. DeleteEscrowAccount(context.Context, *MsgDeleteEscrowAccount) (*MsgDeleteEscrowAccountResponse, error) } diff --git a/x/service/client/cli/query.go b/x/service/client/cli/query.go index af5c40f21..3e5dcad9f 100644 --- a/x/service/client/cli/query.go +++ b/x/service/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/service/client/cli/query_params.go b/x/service/client/cli/query_params.go index dea7be65c..fb8f83ec3 100644 --- a/x/service/client/cli/query_params.go +++ b/x/service/client/cli/query_params.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/service/client/cli/tx.go b/x/service/client/cli/tx.go index b69760302..dd360d9bd 100644 --- a/x/service/client/cli/tx.go +++ b/x/service/client/cli/tx.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" ) var ( diff --git a/x/service/client/cli/tx_service_record.go b/x/service/client/cli/tx_service_record.go index 5b53e13ed..c9f96471c 100644 --- a/x/service/client/cli/tx_service_record.go +++ b/x/service/client/cli/tx_service_record.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" "github.com/spf13/cobra" ) diff --git a/x/service/genesis.go b/x/service/genesis.go index 7bf307d96..3f596c3fe 100644 --- a/x/service/genesis.go +++ b/x/service/genesis.go @@ -2,8 +2,8 @@ package service import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/service/keeper" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/keeper" + "github.com/sonr-io/core/x/service/types" ) // InitGenesis initializes the module's state from a provided genesis state. diff --git a/x/service/genesis_test.go b/x/service/genesis_test.go index d638ca987..5b04440a0 100644 --- a/x/service/genesis_test.go +++ b/x/service/genesis_test.go @@ -3,10 +3,10 @@ package service_test import ( "testing" - keepertest "github.com/sonrhq/core/testutil/keeper" - "github.com/sonrhq/core/testutil/nullify" - "github.com/sonrhq/core/x/service" - "github.com/sonrhq/core/x/service/types" + keepertest "github.com/sonr-io/core/testutil/keeper" + "github.com/sonr-io/core/testutil/nullify" + "github.com/sonr-io/core/x/service" + "github.com/sonr-io/core/x/service/types" "github.com/stretchr/testify/require" ) diff --git a/x/service/keeper/keeper.go b/x/service/keeper/keeper.go index c8301bad9..223c756d1 100644 --- a/x/service/keeper/keeper.go +++ b/x/service/keeper/keeper.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" ) type ( diff --git a/x/service/keeper/msg_server.go b/x/service/keeper/msg_server.go index ad4ef19a1..f58dd45cc 100644 --- a/x/service/keeper/msg_server.go +++ b/x/service/keeper/msg_server.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" ) type msgServer struct { diff --git a/x/service/keeper/params.go b/x/service/keeper/params.go index 1e083e442..a4330e76b 100644 --- a/x/service/keeper/params.go +++ b/x/service/keeper/params.go @@ -4,7 +4,7 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" ) // GetParams get all parameters as types.Params diff --git a/x/service/keeper/query.go b/x/service/keeper/query.go index 6aa5ec208..de1f3f6e1 100644 --- a/x/service/keeper/query.go +++ b/x/service/keeper/query.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/service/module.go b/x/service/module.go index 1a08f332a..89e93d1cf 100644 --- a/x/service/module.go +++ b/x/service/module.go @@ -17,9 +17,9 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/sonrhq/core/x/service/client/cli" - "github.com/sonrhq/core/x/service/keeper" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/client/cli" + "github.com/sonr-io/core/x/service/keeper" + "github.com/sonr-io/core/x/service/types" ) var ( diff --git a/x/service/module_simulation.go b/x/service/module_simulation.go index ec7649ea9..25005fac9 100644 --- a/x/service/module_simulation.go +++ b/x/service/module_simulation.go @@ -8,9 +8,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/testutil/sample" - servicesimulation "github.com/sonrhq/core/x/service/simulation" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/testutil/sample" + servicesimulation "github.com/sonr-io/core/x/service/simulation" + "github.com/sonr-io/core/x/service/types" ) // avoid unused import issue diff --git a/x/service/simulation/service_record.go b/x/service/simulation/service_record.go index f16413c90..bfb0b4766 100644 --- a/x/service/simulation/service_record.go +++ b/x/service/simulation/service_record.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/sonrhq/core/x/service/keeper" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/keeper" + "github.com/sonr-io/core/x/service/types" ) func SimulateMsgCreateServiceRecord( diff --git a/x/service/types/credential.go b/x/service/types/credential.go index 5f1253943..856941f19 100644 --- a/x/service/types/credential.go +++ b/x/service/types/credential.go @@ -11,8 +11,8 @@ import ( "github.com/go-webauthn/webauthn/protocol" "github.com/go-webauthn/webauthn/protocol/webauthncose" - "github.com/sonrhq/core/pkg/crypto" - idtypes "github.com/sonrhq/core/x/identity/types" + "github.com/sonr-io/core/pkg/crypto" + idtypes "github.com/sonr-io/core/x/identity/types" "github.com/yoseplee/vrf" ) @@ -30,22 +30,22 @@ func GetCredentialDescriptorsForDIDDocument(didDoc *idtypes.DIDDocument) ([]prot } // Serialize the credential to JSON -func (c *WebauthnCredential) Serialize() ([]byte, error) { +func (c *Credential) Serialize() ([]byte, error) { return json.Marshal(c) } // Deserialize the credential from JSON -func (c *WebauthnCredential) Deserialize(data []byte) error { +func (c *Credential) Deserialize(data []byte) error { return json.Unmarshal(data, c) } -func (c *WebauthnCredential) DID() string { +func (c *Credential) DID() string { did := fmt.Sprintf("did:%s:%s", "webauthn", crypto.Base64Encode(c.Id)) return did } // Encrypt is used to encrypt a message for the credential -func (c *WebauthnCredential) Encrypt(data []byte) ([]byte, error) { +func (c *Credential) Encrypt(data []byte) ([]byte, error) { // Get the public key from the credential keyFace, err := webauthncose.ParsePublicKey(c.PublicKey) if err != nil { @@ -100,7 +100,7 @@ func (c *WebauthnCredential) Encrypt(data []byte) ([]byte, error) { } // Decrypt is used to decrypt a message for the credential -func (c *WebauthnCredential) Decrypt(data []byte) ([]byte, error) { +func (c *Credential) Decrypt(data []byte) ([]byte, error) { // Get the public key from the credential keyFace, err := webauthncose.ParsePublicKey(c.PublicKey) if err != nil { @@ -145,7 +145,7 @@ func (c *WebauthnCredential) Decrypt(data []byte) ([]byte, error) { } // ToVerificationMethod converts the credential to a DID VerificationMethod -func (c *WebauthnCredential) ToVerificationMethod() *idtypes.VerificationMethod { +func (c *Credential) ToVerificationMethod() *idtypes.VerificationMethod { vm := &idtypes.VerificationMethod{ Id: c.DID(), Type: "webauthn/alg-es256", @@ -158,12 +158,12 @@ func (c *WebauthnCredential) ToVerificationMethod() *idtypes.VerificationMethod } // ShortID returns the first 8 characters of the base58 encoded credential id -func (c *WebauthnCredential) ShortID() string { +func (c *Credential) ShortID() string { return crypto.Base58Encode(c.Id)[0:8] } // ToCredentialDescriptor converts a VerificationMethod to a CredentialDescriptor if the VerificationMethod uses the `did:webauthn` method -func (vm *WebauthnCredential) GetDescriptor() protocol.CredentialDescriptor { +func (vm *Credential) GetDescriptor() protocol.CredentialDescriptor { transport := make([]protocol.AuthenticatorTransport, 0) for _, t := range vm.Transport { transport = append(transport, protocol.AuthenticatorTransport(t)) diff --git a/x/service/types/credential.pb.go b/x/service/types/credential.pb.go index 414e4bea3..4c0a79da0 100644 --- a/x/service/types/credential.pb.go +++ b/x/service/types/credential.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: core/service/credential.proto +// source: core/crypto/webauthn/credential.proto package types @@ -22,42 +22,40 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// WebauthnCredential contains all needed information about a WebAuthn -// credential for storage -type WebauthnCredential struct { - // A probabilistically-unique byte sequence identifying a public key +// Credential is a message type that contains all needed information +// about a WebAuthn credential for storage. +type Credential struct { + // id is a probabilistically-unique byte sequence identifying a public key // credential source and its authentication assertions. Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The public key portion of a Relying Party-specific credential key pair, - // generated by an authenticator and returned to a Relying Party at - // registration time (see also public key credential). The private key portion - // of the credential key pair is known as the credential private key. Note - // that in the case of self attestation, the credential key pair is also used - // as the attestation key pair, see self attestation for details. + // public_key is the public key portion of a Relying Party-specific credential + // key pair, generated by an authenticator and returned to a Relying Party at + // registration time. PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - // The attestation format used (if any) by the authenticator when creating the - // credential. + // attestation_type is the attestation format used (if any) by the + // authenticator when creating the credential. AttestationType string `protobuf:"bytes,3,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"` - // The transports used by the authenticator when creating the credential. + // transport is the transports used by the authenticator when creating the + // credential. Transport []string `protobuf:"bytes,4,rep,name=transport,proto3" json:"transport,omitempty"` - // The Authenticator information for a given certificate - Authenticator *WebauthnAuthenticator `protobuf:"bytes,5,opt,name=authenticator,proto3" json:"authenticator,omitempty"` - // The DID Controller of the credential + // Authenticator is the Authenticator information for a given certificate. + Authenticator *Authenticator `protobuf:"bytes,5,opt,name=authenticator,proto3" json:"authenticator,omitempty"` + // controller is the DID Controller of the credential. Controller string `protobuf:"bytes,6,opt,name=controller,proto3" json:"controller,omitempty"` } -func (m *WebauthnCredential) Reset() { *m = WebauthnCredential{} } -func (m *WebauthnCredential) String() string { return proto.CompactTextString(m) } -func (*WebauthnCredential) ProtoMessage() {} -func (*WebauthnCredential) Descriptor() ([]byte, []int) { - return fileDescriptor_3e8ca7c12592694f, []int{0} +func (m *Credential) Reset() { *m = Credential{} } +func (m *Credential) String() string { return proto.CompactTextString(m) } +func (*Credential) ProtoMessage() {} +func (*Credential) Descriptor() ([]byte, []int) { + return fileDescriptor_4c07639536034e04, []int{0} } -func (m *WebauthnCredential) XXX_Unmarshal(b []byte) error { +func (m *Credential) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *WebauthnCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Credential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_WebauthnCredential.Marshal(b, m, deterministic) + return xxx_messageInfo_Credential.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -67,94 +65,89 @@ func (m *WebauthnCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *WebauthnCredential) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebauthnCredential.Merge(m, src) +func (m *Credential) XXX_Merge(src proto.Message) { + xxx_messageInfo_Credential.Merge(m, src) } -func (m *WebauthnCredential) XXX_Size() int { +func (m *Credential) XXX_Size() int { return m.Size() } -func (m *WebauthnCredential) XXX_DiscardUnknown() { - xxx_messageInfo_WebauthnCredential.DiscardUnknown(m) +func (m *Credential) XXX_DiscardUnknown() { + xxx_messageInfo_Credential.DiscardUnknown(m) } -var xxx_messageInfo_WebauthnCredential proto.InternalMessageInfo +var xxx_messageInfo_Credential proto.InternalMessageInfo -func (m *WebauthnCredential) GetId() []byte { +func (m *Credential) GetId() []byte { if m != nil { return m.Id } return nil } -func (m *WebauthnCredential) GetPublicKey() []byte { +func (m *Credential) GetPublicKey() []byte { if m != nil { return m.PublicKey } return nil } -func (m *WebauthnCredential) GetAttestationType() string { +func (m *Credential) GetAttestationType() string { if m != nil { return m.AttestationType } return "" } -func (m *WebauthnCredential) GetTransport() []string { +func (m *Credential) GetTransport() []string { if m != nil { return m.Transport } return nil } -func (m *WebauthnCredential) GetAuthenticator() *WebauthnAuthenticator { +func (m *Credential) GetAuthenticator() *Authenticator { if m != nil { return m.Authenticator } return nil } -func (m *WebauthnCredential) GetController() string { +func (m *Credential) GetController() string { if m != nil { return m.Controller } return "" } -// WebauthnAuthenticator contains certificate information about a WebAuthn -// authenticator -type WebauthnAuthenticator struct { - // The AAGUID of the authenticator. An AAGUID is defined as an array +// Authenticator is a message type that contains certificate information +// about a WebAuthn authenticator. +type Authenticator struct { + // aaguid is the AAGUID of the authenticator. An AAGUID is defined as an array // containing the globally unique identifier of the authenticator model being // sought. Aaguid []byte `protobuf:"bytes,1,opt,name=aaguid,proto3" json:"aaguid,omitempty"` - // SignCount -Upon a new login operation, the Relying Party compares the - // stored signature counter value with the new signCount value returned in the - // assertion’s authenticator data. If this new signCount value is less than or - // equal to the stored value, a cloned authenticator may exist, or the - // authenticator may be malfunctioning. + // sign_count is the SignCount -Upon a new login operation, the Relying Party + // compares the stored signature counter value with the new signCount value + // returned in the assertion’s authenticator data. SignCount uint32 `protobuf:"varint,2,opt,name=sign_count,json=signCount,proto3" json:"sign_count,omitempty"` - // Attachment - This is a signal that the authenticator may be cloned, i.e. at + // attachment is a signal that the authenticator may be cloned, i.e. at // least two copies of the credential private key may exist and are being used - // in parallel. Relying Parties should incorporate this information into their - // risk scoring. Whether the Relying Party updates the stored signature - // counter value in this case, or not, or fails the authentication ceremony or - // not, is Relying Party-specific. + // in parallel. Attachment string `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"` } -func (m *WebauthnAuthenticator) Reset() { *m = WebauthnAuthenticator{} } -func (m *WebauthnAuthenticator) String() string { return proto.CompactTextString(m) } -func (*WebauthnAuthenticator) ProtoMessage() {} -func (*WebauthnAuthenticator) Descriptor() ([]byte, []int) { - return fileDescriptor_3e8ca7c12592694f, []int{1} +func (m *Authenticator) Reset() { *m = Authenticator{} } +func (m *Authenticator) String() string { return proto.CompactTextString(m) } +func (*Authenticator) ProtoMessage() {} +func (*Authenticator) Descriptor() ([]byte, []int) { + return fileDescriptor_4c07639536034e04, []int{1} } -func (m *WebauthnAuthenticator) XXX_Unmarshal(b []byte) error { +func (m *Authenticator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *WebauthnAuthenticator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Authenticator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_WebauthnAuthenticator.Marshal(b, m, deterministic) + return xxx_messageInfo_Authenticator.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -164,33 +157,33 @@ func (m *WebauthnAuthenticator) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *WebauthnAuthenticator) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebauthnAuthenticator.Merge(m, src) +func (m *Authenticator) XXX_Merge(src proto.Message) { + xxx_messageInfo_Authenticator.Merge(m, src) } -func (m *WebauthnAuthenticator) XXX_Size() int { +func (m *Authenticator) XXX_Size() int { return m.Size() } -func (m *WebauthnAuthenticator) XXX_DiscardUnknown() { - xxx_messageInfo_WebauthnAuthenticator.DiscardUnknown(m) +func (m *Authenticator) XXX_DiscardUnknown() { + xxx_messageInfo_Authenticator.DiscardUnknown(m) } -var xxx_messageInfo_WebauthnAuthenticator proto.InternalMessageInfo +var xxx_messageInfo_Authenticator proto.InternalMessageInfo -func (m *WebauthnAuthenticator) GetAaguid() []byte { +func (m *Authenticator) GetAaguid() []byte { if m != nil { return m.Aaguid } return nil } -func (m *WebauthnAuthenticator) GetSignCount() uint32 { +func (m *Authenticator) GetSignCount() uint32 { if m != nil { return m.SignCount } return 0 } -func (m *WebauthnAuthenticator) GetAttachment() string { +func (m *Authenticator) GetAttachment() string { if m != nil { return m.Attachment } @@ -198,38 +191,40 @@ func (m *WebauthnAuthenticator) GetAttachment() string { } func init() { - proto.RegisterType((*WebauthnCredential)(nil), "core.service.WebauthnCredential") - proto.RegisterType((*WebauthnAuthenticator)(nil), "core.service.WebauthnAuthenticator") -} - -func init() { proto.RegisterFile("core/service/credential.proto", fileDescriptor_3e8ca7c12592694f) } - -var fileDescriptor_3e8ca7c12592694f = []byte{ - // 331 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xc1, 0x4a, 0xf3, 0x40, - 0x10, 0xc7, 0xbb, 0xed, 0xf7, 0x15, 0xb2, 0xb6, 0x2a, 0x0b, 0x4a, 0x0e, 0x76, 0x09, 0x15, 0x24, - 0x5e, 0x12, 0xd0, 0x17, 0x50, 0x7b, 0x12, 0x6f, 0x41, 0x10, 0xbc, 0x94, 0xcd, 0x76, 0x68, 0x16, - 0xd3, 0xdd, 0xb8, 0x99, 0x88, 0x79, 0x0b, 0x1f, 0xcb, 0x63, 0x8f, 0x1e, 0xa5, 0x7d, 0x08, 0xaf, - 0xb2, 0xb1, 0xd6, 0x08, 0x1e, 0xf7, 0x37, 0xb3, 0xbb, 0xbf, 0x99, 0x3f, 0x1d, 0x49, 0x63, 0x21, - 0x2e, 0xc1, 0x3e, 0x29, 0x09, 0xb1, 0xb4, 0x30, 0x03, 0x8d, 0x4a, 0xe4, 0x51, 0x61, 0x0d, 0x1a, - 0x36, 0x70, 0xe5, 0x68, 0x53, 0x1e, 0x7f, 0x10, 0xca, 0xee, 0x20, 0x15, 0x15, 0x66, 0x7a, 0xb2, - 0x6d, 0x65, 0xbb, 0xb4, 0xab, 0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x46, 0xdb, 0xec, 0x31, - 0x6e, 0x22, 0x7c, 0xde, 0x86, 0xe8, 0x16, 0x5a, 0xa6, 0xfd, 0x26, 0xc0, 0xf3, 0xcf, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x7f, 0x05, 0xc3, 0x6d, 0xe1, 0x01, 0x00, 0x00, -} - -func (m *WebauthnCredential) Marshal() (dAtA []byte, err error) { + proto.RegisterType((*Credential)(nil), "core.crypto.webauthn.Credential") + proto.RegisterType((*Authenticator)(nil), "core.crypto.webauthn.Authenticator") +} + +func init() { + proto.RegisterFile("core/crypto/webauthn/credential.proto", fileDescriptor_4c07639536034e04) +} + +var fileDescriptor_4c07639536034e04 = []byte{ + // 335 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xc1, 0x4a, 0xeb, 0x40, + 0x14, 0x86, 0x3b, 0xed, 0xbd, 0x85, 0x8c, 0x56, 0x65, 0x10, 0xc9, 0x42, 0x43, 0xa8, 0x88, 0x71, + 0x61, 0x06, 0xf4, 0x09, 0x6a, 0x57, 0xe2, 0x2e, 0xb8, 0x72, 0x53, 0x26, 0xd3, 0xb1, 0x1d, 0x4c, + 0xe7, 0x84, 0xc9, 0x89, 0x9a, 0xb7, 0xf0, 0xb1, 0x5c, 0x76, 0xe9, 0x52, 0xda, 0x07, 0xf0, 0x15, + 0x64, 0xd2, 0x5a, 0x53, 0x70, 0x39, 0x1f, 0xdf, 0x61, 0xfe, 0xff, 0x1c, 0x7a, 0x26, 0xc1, 0x2a, + 0x2e, 0x6d, 0x95, 0x23, 0xf0, 0x17, 0x95, 0x8a, 0x12, 0xa7, 0x86, 0x4b, 0xab, 0xc6, 0xca, 0xa0, + 0x16, 0x59, 0x9c, 0x5b, 0x40, 0x60, 0x87, 0x4e, 0x8b, 0x57, 0x5a, 0xfc, 0xa3, 0xf5, 0xbf, 0x08, + 0xa5, 0xc3, 0x8d, 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12, 0x66, 0xbc, 0x00, 0x63, 0x2f, 0x35, + 0xf0, 0xfa, 0x86, 0xaf, 0xbc, 0x50, 0xf6, 0x59, 0x4b, 0xc5, 0xdd, 0x26, 0x8b, 0xb4, 0x5b, 0x5f, + 0xee, 0xfa, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x7f, 0x9e, 0x5b, 0xe2, 0x01, 0x00, 0x00, +} + +func (m *Credential) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -239,12 +234,12 @@ func (m *WebauthnCredential) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WebauthnCredential) MarshalTo(dAtA []byte) (int, error) { +func (m *Credential) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *WebauthnCredential) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Credential) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -301,7 +296,7 @@ func (m *WebauthnCredential) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *WebauthnAuthenticator) Marshal() (dAtA []byte, err error) { +func (m *Authenticator) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -311,12 +306,12 @@ func (m *WebauthnAuthenticator) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WebauthnAuthenticator) MarshalTo(dAtA []byte) (int, error) { +func (m *Authenticator) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *WebauthnAuthenticator) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Authenticator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -354,7 +349,7 @@ func encodeVarintCredential(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *WebauthnCredential) Size() (n int) { +func (m *Credential) Size() (n int) { if m == nil { return 0 } @@ -389,7 +384,7 @@ func (m *WebauthnCredential) Size() (n int) { return n } -func (m *WebauthnAuthenticator) Size() (n int) { +func (m *Authenticator) Size() (n int) { if m == nil { return 0 } @@ -415,7 +410,7 @@ func sovCredential(x uint64) (n int) { func sozCredential(x uint64) (n int) { return sovCredential(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *WebauthnCredential) Unmarshal(dAtA []byte) error { +func (m *Credential) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -438,10 +433,10 @@ func (m *WebauthnCredential) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WebauthnCredential: wiretype end group for non-group") + return fmt.Errorf("proto: Credential: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WebauthnCredential: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Credential: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -606,7 +601,7 @@ func (m *WebauthnCredential) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Authenticator == nil { - m.Authenticator = &WebauthnAuthenticator{} + m.Authenticator = &Authenticator{} } if err := m.Authenticator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -665,7 +660,7 @@ func (m *WebauthnCredential) Unmarshal(dAtA []byte) error { } return nil } -func (m *WebauthnAuthenticator) Unmarshal(dAtA []byte) error { +func (m *Authenticator) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -688,10 +683,10 @@ func (m *WebauthnAuthenticator) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WebauthnAuthenticator: wiretype end group for non-group") + return fmt.Errorf("proto: Authenticator: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WebauthnAuthenticator: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Authenticator: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/service/types/ecies.go b/x/service/types/ecies.go index 5b83350db..1d1976289 100644 --- a/x/service/types/ecies.go +++ b/x/service/types/ecies.go @@ -104,7 +104,7 @@ func deriveKeys(sharedSecret []byte) ([]byte, []byte) { return encKeyBytes, macKeyBytes } -func derivePrivateKey(credential *WebauthnCredential) (*ecdsa.PrivateKey, error) { +func derivePrivateKey(credential *Credential) (*ecdsa.PrivateKey, error) { // Parse the public key from the credential pubKeyFace, err := webauthncose.ParsePublicKey(credential.PublicKey) if err != nil { diff --git a/x/service/types/expected_keepers.go b/x/service/types/expected_keepers.go index 4d0faab5a..cb16dce83 100644 --- a/x/service/types/expected_keepers.go +++ b/x/service/types/expected_keepers.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/group" - identitytypes "github.com/sonrhq/core/x/identity/types" + identitytypes "github.com/sonr-io/core/x/identity/types" ) type GroupKeeper interface { diff --git a/x/service/types/genesis.pb.go b/x/service/types/genesis.pb.go index 642e66c12..4bf83b3cb 100644 --- a/x/service/types/genesis.pb.go +++ b/x/service/types/genesis.pb.go @@ -91,7 +91,7 @@ func init() { func init() { proto.RegisterFile("core/service/genesis.proto", fileDescriptor_7bd0c748f4da7215) } var fileDescriptor_7bd0c748f4da7215 = []byte{ - // 249 bytes of a gzipped FileDescriptorProto + // 250 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0xc9, 0xe9, 0x41, 0xe5, 0xa4, 0x24, 0x51, @@ -102,12 +102,12 @@ var fileDescriptor_7bd0c748f4da7215 = []byte{ 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0x55, 0x0a, 0xf9, 0x73, 0x09, 0x42, 0xe5, 0x83, 0xc0, 0x36, 0xfa, 0x64, 0x16, 0x97, 0x48, 0x30, 0x29, 0x30, 0x6b, 0x70, 0x1b, 0x49, 0xa3, 0x6a, 0x0f, 0x46, 0x56, 0x06, 0x35, 0x05, 0x53, 0xaf, 0x90, 0x1e, 0x97, 0x10, 0x8a, 0xa0, 0x73, 0x7e, - 0x69, 0x5e, 0x89, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x16, 0x19, 0x27, 0x87, 0x13, 0x8f, + 0x69, 0x5e, 0x89, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x16, 0x19, 0x27, 0xc7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, - 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, - 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0xce, 0xcf, 0x2b, 0xca, 0x28, 0xd4, 0x07, 0x07, 0x51, 0x05, 0x3c, - 0x90, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xc1, 0x61, 0x0c, 0x08, 0x00, 0x00, 0xff, - 0xff, 0x78, 0x2b, 0x13, 0x11, 0x86, 0x01, 0x00, 0x00, + 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, + 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0xce, 0xcf, 0x2b, 0xd2, 0xcd, 0xcc, 0xd7, 0x07, 0x87, 0x51, 0x05, + 0x3c, 0x94, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xe1, 0x61, 0x0c, 0x08, 0x00, 0x00, + 0xff, 0xff, 0xa5, 0x12, 0x4c, 0x51, 0x87, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/service/types/genesis_test.go b/x/service/types/genesis_test.go index f095f9e51..e3d86fea7 100644 --- a/x/service/types/genesis_test.go +++ b/x/service/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/sonrhq/core/x/service/types" + "github.com/sonr-io/core/x/service/types" "github.com/stretchr/testify/require" ) diff --git a/x/service/types/messages_service_record_test.go b/x/service/types/messages_service_record_test.go index fce8fd9a6..61c67015f 100644 --- a/x/service/types/messages_service_record_test.go +++ b/x/service/types/messages_service_record_test.go @@ -4,7 +4,7 @@ import ( "testing" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/sonrhq/core/testutil/sample" + "github.com/sonr-io/core/testutil/sample" "github.com/stretchr/testify/require" ) diff --git a/x/service/types/org.pb.go b/x/service/types/org.pb.go index 1cbef57e9..64cd5d8bc 100644 --- a/x/service/types/org.pb.go +++ b/x/service/types/org.pb.go @@ -113,7 +113,7 @@ func init() { func init() { proto.RegisterFile("core/service/org.proto", fileDescriptor_16e02270ebb624e0) } var fileDescriptor_16e02270ebb624e0 = []byte{ - // 240 bytes of a gzipped FileDescriptorProto + // 241 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0xcf, 0x2f, 0x4a, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x89, 0xeb, 0x41, 0xc5, 0x95, 0xd6, 0x31, 0x72, 0x09, 0x07, 0x43, @@ -124,11 +124,12 @@ var fileDescriptor_16e02270ebb624e0 = []byte{ 0x10, 0x1f, 0x54, 0x38, 0x08, 0x22, 0x2a, 0x24, 0xc4, 0xc5, 0x92, 0x97, 0x98, 0x9b, 0x2a, 0xc1, 0x02, 0xd6, 0x0d, 0x66, 0x0b, 0x29, 0x70, 0x71, 0xa7, 0xa4, 0x16, 0x27, 0x17, 0x65, 0x16, 0x80, 0x6c, 0x94, 0x60, 0x05, 0x4b, 0x21, 0x0b, 0x81, 0x74, 0x95, 0xe4, 0xa4, 0x14, 0x4b, 0xb0, 0x81, - 0xcd, 0x04, 0xb3, 0x9d, 0x1c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, + 0xcd, 0x04, 0xb3, 0x9d, 0x1c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, - 0x2d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x28, - 0xa3, 0x50, 0x1f, 0x1c, 0x04, 0x15, 0xf0, 0x40, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, - 0x87, 0x83, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x8c, 0xf3, 0x7d, 0x21, 0x01, 0x00, 0x00, + 0x3d, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xbf, 0x38, 0x3f, 0xaf, 0x48, + 0x37, 0x33, 0x5f, 0x1f, 0x1c, 0x06, 0x15, 0xf0, 0x50, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, + 0x03, 0x07, 0x84, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x95, 0xf9, 0x72, 0x22, 0x01, 0x00, + 0x00, } func (m *ServiceOrganization) Marshal() (dAtA []byte, err error) { diff --git a/x/service/types/params.go b/x/service/types/params.go index d8d1f6e5f..144e10d3c 100644 --- a/x/service/types/params.go +++ b/x/service/types/params.go @@ -4,7 +4,7 @@ import ( paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/go-webauthn/webauthn/protocol" "github.com/go-webauthn/webauthn/protocol/webauthncose" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" "gopkg.in/yaml.v2" ) diff --git a/x/service/types/params.pb.go b/x/service/types/params.pb.go index ba8d9064c..8700ed67a 100644 --- a/x/service/types/params.pb.go +++ b/x/service/types/params.pb.go @@ -66,17 +66,17 @@ func init() { func init() { proto.RegisterFile("core/service/params.proto", fileDescriptor_7c849a488e547d45) } var fileDescriptor_7c849a488e547d45 = []byte{ - // 147 bytes of a gzipped FileDescriptorProto + // 148 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x49, 0xe9, 0x41, 0xa5, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x12, 0xfa, 0x20, 0x16, 0x44, 0x8d, 0x12, 0x1f, 0x17, 0x5b, 0x00, 0x58, 0x8f, - 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x0e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, + 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x8e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, - 0xc7, 0x10, 0xa5, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, - 0x9f, 0x57, 0x94, 0x51, 0xa8, 0x0f, 0xb6, 0xba, 0x02, 0x6e, 0x79, 0x49, 0x65, 0x41, 0x6a, 0x71, - 0x12, 0x1b, 0xd8, 0x60, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x5b, 0x50, 0xb6, 0x99, - 0x00, 0x00, 0x00, + 0xc7, 0x10, 0xa5, 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, + 0x9f, 0x57, 0xa4, 0x9b, 0x99, 0xaf, 0x0f, 0xb6, 0xbb, 0x02, 0x6e, 0x7b, 0x49, 0x65, 0x41, 0x6a, + 0x71, 0x12, 0x1b, 0xd8, 0x64, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, 0xe2, 0x8a, 0x9a, + 0x9a, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/service/types/query.pb.go b/x/service/types/query.pb.go index 9a4663a0d..05af876f3 100644 --- a/x/service/types/query.pb.go +++ b/x/service/types/query.pb.go @@ -10,7 +10,7 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - _ "github.com/sonrhq/core/x/identity/types" + _ "github.com/sonr-io/core/x/identity/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -114,6 +114,8 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryGetServiceRecordRequest is the request type for the Query/ServiceRecord +// RPC method. type QueryGetServiceRecordRequest struct { Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` } @@ -158,6 +160,8 @@ func (m *QueryGetServiceRecordRequest) GetOrigin() string { return "" } +// QueryGetServiceRecordResponse is the response type for the +// Query/ServiceRecord RPC method. type QueryGetServiceRecordResponse struct { ServiceRecord ServiceRecord `protobuf:"bytes,1,opt,name=ServiceRecord,proto3" json:"ServiceRecord"` } @@ -202,6 +206,8 @@ func (m *QueryGetServiceRecordResponse) GetServiceRecord() ServiceRecord { return ServiceRecord{} } +// QueryAllServiceRecordRequest is the request type for the +// Query/ServiceRecordAll RPC method. type QueryAllServiceRecordRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -246,6 +252,8 @@ func (m *QueryAllServiceRecordRequest) GetPagination() *query.PageRequest { return nil } +// QueryAllServiceRecordResponse is the response type for the +// Query/ServiceRecordAll RPC method. type QueryAllServiceRecordResponse struct { ServiceRecord []ServiceRecord `protobuf:"bytes,1,rep,name=ServiceRecord,proto3" json:"ServiceRecord"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -310,39 +318,39 @@ func init() { func init() { proto.RegisterFile("core/service/query.proto", fileDescriptor_5cf4b2348245f9e3) } var fileDescriptor_5cf4b2348245f9e3 = []byte{ - // 509 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0x9b, 0x0d, 0x2a, 0x61, 0x98, 0x40, 0xa6, 0x94, 0x52, 0xba, 0x30, 0x72, 0x18, 0x68, - 0x48, 0xb6, 0x56, 0x24, 0xce, 0x6c, 0x07, 0x2a, 0x6e, 0x23, 0xdc, 0xb8, 0xb9, 0xa9, 0x49, 0x2d, - 0xd2, 0x38, 0xb5, 0xdd, 0x89, 0x0a, 0x71, 0x99, 0x38, 0x70, 0x44, 0xe2, 0x93, 0xf0, 0x2d, 0x76, - 0x9c, 0xc4, 0x85, 0x13, 0x42, 0x2d, 0x1f, 0x04, 0xc5, 0x7e, 0x40, 0x4d, 0x13, 0x40, 0xbb, 0xb5, - 0xf9, 0xff, 0xdf, 0x7b, 0xbf, 0x97, 0xf7, 0x0f, 0xea, 0x24, 0x52, 0x71, 0xaa, 0xb9, 0x3a, 0x16, - 0x09, 0xa7, 0xd3, 0x19, 0x57, 0x73, 0x52, 0x28, 0x69, 0x24, 0xbe, 0x52, 0x2a, 0x04, 0x94, 0x6e, - 0x2b, 0x95, 0xa9, 0xb4, 0x02, 0x2d, 0x7f, 0x39, 0x4f, 0xb7, 0x97, 0x4a, 0x99, 0x66, 0x9c, 0xb2, - 0x42, 0x50, 0x96, 0xe7, 0xd2, 0x30, 0x23, 0x64, 0xae, 0x41, 0xdd, 0x4b, 0xa4, 0x9e, 0x48, 0x4d, - 0x87, 0x4c, 0x43, 0x6b, 0x7a, 0xbc, 0x3f, 0xe4, 0x86, 0xed, 0xd3, 0x82, 0xa5, 0x22, 0xb7, 0x66, - 0xf0, 0xde, 0xf2, 0x38, 0x0a, 0xa6, 0xd8, 0x44, 0x57, 0x4a, 0x8a, 0x27, 0x52, 0x8d, 0x40, 0xda, - 0xf6, 0xa4, 0x44, 0xf1, 0x11, 0xcf, 0x8d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8f, 0x4f, 0xf7, - 0xee, 0x5f, 0x1c, 0x6e, 0x48, 0xd4, 0x3b, 0xf9, 0xfc, 0xfd, 0xe3, 0x46, 0x1b, 0xb7, 0xa8, 0x4d, - 0xa6, 0x0b, 0xcb, 0xcf, 0xfc, 0xe2, 0xf7, 0xc1, 0x1f, 0x6f, 0x02, 0xef, 0x55, 0xb4, 0xac, 0x89, - 0x54, 0xf7, 0xc1, 0x7f, 0x79, 0x01, 0x24, 0xb4, 0x20, 0x1d, 0xdc, 0xa6, 0xde, 0x17, 0xf4, 0xc6, - 0xc5, 0xf0, 0x2d, 0x3e, 0x09, 0xd0, 0x35, 0xaf, 0xf2, 0x20, 0xcb, 0x2a, 0x69, 0x6a, 0xe2, 0x53, - 0x49, 0x53, 0x97, 0x80, 0xe8, 0x86, 0xa5, 0xb9, 0x8a, 0xb7, 0x3c, 0x9a, 0xc3, 0xc7, 0xa7, 0x8b, - 0x30, 0x38, 0x5b, 0x84, 0xc1, 0xb7, 0x45, 0x18, 0x7c, 0x58, 0x86, 0x8d, 0xb3, 0x65, 0xd8, 0xf8, - 0xb2, 0x0c, 0x1b, 0x2f, 0x76, 0x53, 0x61, 0xc6, 0xb3, 0x21, 0x49, 0xe4, 0x84, 0x6a, 0x99, 0xab, - 0xf1, 0xd4, 0x55, 0xbe, 0xfe, 0xb5, 0x89, 0x99, 0x17, 0x5c, 0x0f, 0x9b, 0xf6, 0x73, 0x7f, 0xf8, - 0x23, 0x00, 0x00, 0xff, 0xff, 0x82, 0x16, 0x5b, 0x17, 0xe6, 0x04, 0x00, 0x00, + // 500 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xb1, 0x6e, 0x13, 0x41, + 0x10, 0x86, 0x7d, 0x09, 0x58, 0x62, 0x21, 0x02, 0x2d, 0xc6, 0x18, 0x63, 0x8e, 0x70, 0x05, 0x41, + 0x41, 0xdc, 0x2a, 0x46, 0xa2, 0x77, 0x0a, 0x2c, 0xba, 0x70, 0x74, 0x74, 0xeb, 0xf3, 0x72, 0x59, + 0x71, 0xbe, 0xb9, 0xec, 0xae, 0x23, 0x2c, 0x44, 0x13, 0x51, 0x50, 0x22, 0xf1, 0x24, 0xbc, 0x45, + 0xca, 0x48, 0x34, 0x54, 0x08, 0xd9, 0x3c, 0x08, 0xf2, 0xee, 0x00, 0x5e, 0x7c, 0x07, 0x88, 0xce, + 0xf6, 0xff, 0xcf, 0xcc, 0x37, 0x9e, 0x7f, 0x49, 0x27, 0x05, 0x25, 0x98, 0x16, 0xea, 0x58, 0xa6, + 0x82, 0x1d, 0x4d, 0x85, 0x9a, 0xc5, 0xa5, 0x02, 0x03, 0xf4, 0xd2, 0x52, 0x89, 0x51, 0xe9, 0xb6, + 0x32, 0xc8, 0xc0, 0x0a, 0x6c, 0xf9, 0xc9, 0x79, 0xba, 0xbd, 0x0c, 0x20, 0xcb, 0x05, 0xe3, 0xa5, + 0x64, 0xbc, 0x28, 0xc0, 0x70, 0x23, 0xa1, 0xd0, 0xa8, 0xee, 0xa6, 0xa0, 0x27, 0xa0, 0xd9, 0x88, + 0x6b, 0x6c, 0xcd, 0x8e, 0xf7, 0x46, 0xc2, 0xf0, 0x3d, 0x56, 0xf2, 0x4c, 0x16, 0xd6, 0x8c, 0xde, + 0x1b, 0x1e, 0x47, 0xc9, 0x15, 0x9f, 0xe8, 0x4a, 0x49, 0x89, 0x14, 0xd4, 0x18, 0xa5, 0xeb, 0x56, + 0x92, 0x63, 0x51, 0x18, 0x69, 0x66, 0x6c, 0x2c, 0x51, 0x88, 0x5a, 0x84, 0x3e, 0x5d, 0x0e, 0x3c, + 0xb0, 0x8d, 0x12, 0x71, 0x34, 0x15, 0xda, 0x44, 0x4f, 0xc8, 0x55, 0xef, 0x57, 0x5d, 0x42, 0xa1, + 0x05, 0xed, 0x93, 0xa6, 0x1b, 0xd8, 0x09, 0xb6, 0x83, 0x7b, 0x17, 0x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0xdb, 0xcc, 0x7b, 0x3d, 0xaf, 0x5d, 0x0c, 0xdf, 0xd0, 0x93, 0x80, 0x5c, 0xf1, 0x2a, 0x07, + 0x79, 0x5e, 0x49, 0x53, 0x13, 0x9f, 0x4a, 0x9a, 0xba, 0x04, 0x44, 0xd7, 0x2c, 0xcd, 0x65, 0xba, + 0xe5, 0xd1, 0xec, 0x0f, 0x4e, 0xe7, 0x61, 0x70, 0x36, 0x0f, 0x83, 0xaf, 0xf3, 0x30, 0x78, 0xbf, + 0x08, 0x1b, 0x67, 0x8b, 0xb0, 0xf1, 0x79, 0x11, 0x36, 0x9e, 0xef, 0x64, 0xd2, 0x1c, 0x4e, 0x47, + 0x71, 0x0a, 0x13, 0xa6, 0xa1, 0x50, 0x0f, 0x24, 0xb8, 0xd2, 0x57, 0x3f, 0x57, 0x31, 0xb3, 0x52, + 0xe8, 0x51, 0xd3, 0xbe, 0xf7, 0x87, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x92, 0x37, 0x06, + 0xc8, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -357,10 +365,11 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of ServiceRecord items. + // ServiceRecord queries a list of ServiceRecord items. ServiceRecord(ctx context.Context, in *QueryGetServiceRecordRequest, opts ...grpc.CallOption) (*QueryGetServiceRecordResponse, error) + // ServiceRecordAll queries all ServiceRecord items. ServiceRecordAll(ctx context.Context, in *QueryAllServiceRecordRequest, opts ...grpc.CallOption) (*QueryAllServiceRecordResponse, error) } @@ -401,10 +410,11 @@ func (c *queryClient) ServiceRecordAll(ctx context.Context, in *QueryAllServiceR // QueryServer is the server API for Query service. type QueryServer interface { - // Parameters queries the parameters of the module. + // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of ServiceRecord items. + // ServiceRecord queries a list of ServiceRecord items. ServiceRecord(context.Context, *QueryGetServiceRecordRequest) (*QueryGetServiceRecordResponse, error) + // ServiceRecordAll queries all ServiceRecord items. ServiceRecordAll(context.Context, *QueryAllServiceRecordRequest) (*QueryAllServiceRecordResponse, error) } diff --git a/x/service/types/record.go b/x/service/types/record.go index 3f10e09ab..ef97531ca 100644 --- a/x/service/types/record.go +++ b/x/service/types/record.go @@ -81,7 +81,7 @@ func (s *ServiceRecord) RelyingPartyEntity() protocol.RelyingPartyEntity { } // VerifyCreationChallenge verifies the challenge and a creation signature and returns an error if it fails to verify -func (vm *ServiceRecord) VerifyCreationChallenge(resp string, chal string) (*WebauthnCredential, error) { +func (vm *ServiceRecord) VerifyCreationChallenge(resp string, chal string) (*Credential, error) { // Get Credential Creation Respons var ccr protocol.CredentialCreationResponse err := json.Unmarshal([]byte(resp), &ccr) @@ -101,7 +101,7 @@ func (vm *ServiceRecord) VerifyCreationChallenge(resp string, chal string) (*Web } // VeriifyAssertionChallenge verifies the challenge and an assertion signature and returns an error if it fails to verify -func (vm *ServiceRecord) VerifyAssertionChallenge(resp string) (*WebauthnCredential, error) { +func (vm *ServiceRecord) VerifyAssertionChallenge(resp string) (*Credential, error) { var ccr protocol.CredentialAssertionResponse err := json.Unmarshal([]byte(resp), &ccr) if err != nil { diff --git a/x/service/types/record.pb.go b/x/service/types/record.pb.go index 94a69a237..e1e77700f 100644 --- a/x/service/types/record.pb.go +++ b/x/service/types/record.pb.go @@ -218,29 +218,29 @@ func init() { func init() { proto.RegisterFile("core/service/record.proto", fileDescriptor_17bfe358aaf56022) } var fileDescriptor_17bfe358aaf56022 = []byte{ - // 339 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c,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 0x2b, 0xdb, 0xfd, 0x01, 0xec, 0x81, 0x93, 0xf2, 0xb4, 0x6c, 0x57, 0x48, 0x7c, 0x04, 0x55, 0x2a, - 0x97, 0x22, 0xf7, 0x9d, 0x10, 0xb5, 0x9b, 0x64, 0x6b, 0xce, 0x12, 0xa8, 0xdf, 0x32, 0xb5, 0xe0, - 0x5a, 0x17, 0x77, 0x71, 0x1d, 0x6a, 0x09, 0x19, 0xf5, 0xba, 0x49, 0xec, 0x59, 0xa5, 0x49, 0xfa, - 0xd7, 0x03, 0x0f, 0xe1, 0x06, 0xfc, 0x4f, 0xc8, 0xe8, 0x8e, 0xf4, 0x87, 0xb1, 0x67, 0xe3, 0x26, - 0xb8, 0x09, 0x19, 0x5d, 0x92, 0xb8, 0x3b, 0x8c, 0x3d, 0xa7, 0xb4, 0x83, 0x9b, 0x61, 0xff, 0xea, - 0xde, 0xab, 0xf4, 0x2e, 0x3e, 0xd7, 0x01, 0x5a, 0xad, 0x03, 0xf4, 0xbd, 0x0e, 0xd0, 0xc7, 0x26, - 0xb0, 0x56, 0x9b, 0xc0, 0xfa, 0xda, 0x04, 0xd6, 0xc3, 0xe9, 0x94, 0xe7, 0xb3, 0xe5, 0xa4, 0x43, - 0xe5, 0x22, 0xd2, 0x52, 0xa8, 0xd9, 0x73, 0x64, 0x86, 0x79, 0xdd, 0x4d, 0x93, 0xbf, 0x65, 0x4c, - 0x4f, 0xfe, 0x99, 0x69, 0xce, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x61, 0x99, 0x10, 0xd5, 0xb7, - 0x01, 0x00, 0x00, + // 337 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0x41, 0x4f, 0xc2, 0x30, + 0x1c, 0xc5, 0xd7, 0x0d, 0xc4, 0xfd, 0x01, 0xb3, 0x54, 0x0f, 0x33, 0x31, 0xcb, 0xc2, 0x45, 0x62, + 0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5c, 0x24, 0x50, 0xbf, 0x67, 0x6a, 0xc1, 0xb5, 0x2e, + 0xee, 0xe2, 0x3a, 0xd4, 0x12, 0x32, 0xea, 0x75, 0x93, 0xd8, 0xb3, 0x4a, 0x93, 0xf4, 0x6f, 0x07, + 0x1e, 0xc2, 0x0d, 0x38, 0x4c, 0xc8, 0xe8, 0x81, 0xf4, 0x87, 0xb1, 0x67, 0xe3, 0x26, 0xb8, 0x09, + 0x19, 0x5d, 0x93, 0xb8, 0x3b, 0x8c, 0x3d, 0xa7, 0xb4, 0x83, 0xbb, 0x61, 0xff, 0xe6, 0xd1, 0xab, + 0xf4, 0xba, 0x5f, 0xeb, 0x00, 0xad, 0xd6, 0x01, 0xfa, 0x59, 0x07, 0xe8, 0x73, 0x13, 0x58, 0xab, + 0x4d, 0x60, 0x7d, 0x6f, 0x02, 0xeb, 0xe9, 0x7c, 0xca, 0xf3, 0xd9, 0x72, 0xd2, 0xa1, 0x72, 0x11, + 0x69, 0x29, 0xd4, 0x25, 0x97, 0x91, 0x59, 0xe6, 0x6d, 0xb7, 0x4d, 0xfe, 0x9e, 0x31, 0x3d, 0x39, + 0x30, 0xdb, 0x5c, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xb9, 0xe3, 0x35, 0xb8, 0x01, 0x00, + 0x00, } func (m *ServiceRecord) Marshal() (dAtA []byte, err error) { diff --git a/x/service/types/tx.pb.go b/x/service/types/tx.pb.go index cabef65b3..bad39a40a 100644 --- a/x/service/types/tx.pb.go +++ b/x/service/types/tx.pb.go @@ -27,6 +27,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// MsgCreateServiceRecord is the request type for the CreateServiceRecord +// method. It takes a creator as a parameter. type MsgCreateServiceRecord struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -71,6 +73,8 @@ func (m *MsgCreateServiceRecord) GetCreator() string { return "" } +// MsgCreateServiceRecordResponse is the response type for the +// CreateServiceRecord method. It returns the id of the created ServiceRecord. type MsgCreateServiceRecordResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } @@ -115,6 +119,8 @@ func (m *MsgCreateServiceRecordResponse) GetId() uint64 { return 0 } +// MsgUpdateServiceRecord is the request type for the UpdateServiceRecord +// method. It takes a creator and an id as parameters. type MsgUpdateServiceRecord struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` @@ -167,6 +173,8 @@ func (m *MsgUpdateServiceRecord) GetId() uint64 { return 0 } +// MsgUpdateServiceRecordResponse is the response type for the +// UpdateServiceRecord method. It doesn't return any specific value. type MsgUpdateServiceRecordResponse struct { } @@ -203,6 +211,8 @@ func (m *MsgUpdateServiceRecordResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateServiceRecordResponse proto.InternalMessageInfo +// MsgDeleteServiceRecord is the request type for the DeleteServiceRecord +// method. It takes a creator and an id as parameters. type MsgDeleteServiceRecord struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` @@ -255,6 +265,8 @@ func (m *MsgDeleteServiceRecord) GetId() uint64 { return 0 } +// MsgDeleteServiceRecordResponse is the response type for the +// DeleteServiceRecord method. It doesn't return any specific value. type MsgDeleteServiceRecordResponse struct { } @@ -303,7 +315,7 @@ func init() { func init() { proto.RegisterFile("core/service/tx.proto", fileDescriptor_376dd44ebb86aa2f) } var fileDescriptor_376dd44ebb86aa2f = []byte{ - // 287 bytes of a gzipped FileDescriptorProto + // 288 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x09, 0xeb, 0x41, 0x85, 0xa5, 0x24, 0x51, 0x14, 0x15, 0xa5, 0x26, 0xe7, @@ -317,11 +329,11 @@ var fileDescriptor_376dd44ebb86aa2f = []byte{ 0x50, 0x26, 0x97, 0x30, 0xb6, 0x60, 0x53, 0xd1, 0x43, 0x0e, 0x7a, 0x3d, 0xec, 0x01, 0x25, 0xa5, 0x43, 0x8c, 0x2a, 0x78, 0x70, 0x66, 0x72, 0x09, 0x63, 0x0b, 0x3b, 0x4c, 0xab, 0xb0, 0xa8, 0xc2, 0x62, 0x15, 0x9e, 0x30, 0x04, 0x59, 0x85, 0x2d, 0x00, 0x31, 0xad, 0xc2, 0xa2, 0x0a, 0x8b, 0x55, - 0x78, 0x02, 0xd2, 0xc9, 0xe1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, + 0x78, 0x02, 0xd2, 0xc9, 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xd4, - 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x32, - 0x0a, 0xf5, 0xc1, 0x29, 0xb8, 0x02, 0x91, 0xd0, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x69, - 0xd8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xad, 0x79, 0xad, 0x87, 0x05, 0x03, 0x00, 0x00, + 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x8b, 0xf3, 0xf3, 0x8a, 0x74, + 0x33, 0xf3, 0xf5, 0xc1, 0x49, 0xb8, 0x02, 0x91, 0xd2, 0x2b, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, + 0x89, 0xd8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xac, 0x8a, 0x63, 0xa7, 0x06, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -336,8 +348,11 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { + // CreateServiceRecord creates a new ServiceRecord. CreateServiceRecord(ctx context.Context, in *MsgCreateServiceRecord, opts ...grpc.CallOption) (*MsgCreateServiceRecordResponse, error) + // UpdateServiceRecord updates an existing ServiceRecord. UpdateServiceRecord(ctx context.Context, in *MsgUpdateServiceRecord, opts ...grpc.CallOption) (*MsgUpdateServiceRecordResponse, error) + // DeleteServiceRecord deletes an existing ServiceRecord. DeleteServiceRecord(ctx context.Context, in *MsgDeleteServiceRecord, opts ...grpc.CallOption) (*MsgDeleteServiceRecordResponse, error) } @@ -378,8 +393,11 @@ func (c *msgClient) DeleteServiceRecord(ctx context.Context, in *MsgDeleteServic // MsgServer is the server API for Msg service. type MsgServer interface { + // CreateServiceRecord creates a new ServiceRecord. CreateServiceRecord(context.Context, *MsgCreateServiceRecord) (*MsgCreateServiceRecordResponse, error) + // UpdateServiceRecord updates an existing ServiceRecord. UpdateServiceRecord(context.Context, *MsgUpdateServiceRecord) (*MsgUpdateServiceRecordResponse, error) + // DeleteServiceRecord deletes an existing ServiceRecord. DeleteServiceRecord(context.Context, *MsgDeleteServiceRecord) (*MsgDeleteServiceRecordResponse, error) } diff --git a/x/service/types/utils.go b/x/service/types/utils.go index 52d08f59a..eefdcfddb 100644 --- a/x/service/types/utils.go +++ b/x/service/types/utils.go @@ -264,21 +264,21 @@ func blake3HashHex(input string) string { return hashString } -// makeCredentialFromCreationData creates a new WebauthnCredential from a ParsedCredentialCreationData and contains all needed information about a WebAuthn credential for storage. +// makeCredentialFromCreationData creates a new Credential from a ParsedCredentialCreationData and contains all needed information about a WebAuthn credential for storage. // This is then used to create a VerificationMethod for the DID Document. -func makeCredentialFromCreationData(c *protocol.ParsedCredentialCreationData) *WebauthnCredential { +func makeCredentialFromCreationData(c *protocol.ParsedCredentialCreationData) *Credential { transport := make([]string, 0) for _, t := range c.Response.Transports { transport = append(transport, string(t)) } - newCredential := &WebauthnCredential{ + newCredential := &Credential{ Id: c.Response.AttestationObject.AuthData.AttData.CredentialID, PublicKey: c.Response.AttestationObject.AuthData.AttData.CredentialPublicKey, AttestationType: c.Response.AttestationObject.Format, Transport: transport, - Authenticator: &WebauthnAuthenticator{ + Authenticator: &Authenticator{ Aaguid: c.Response.AttestationObject.AuthData.AttData.AAGUID, SignCount: c.Response.AttestationObject.AuthData.Counter, Attachment: string(c.AuthenticatorAttachment), @@ -287,13 +287,13 @@ func makeCredentialFromCreationData(c *protocol.ParsedCredentialCreationData) *W return newCredential } -// makeCredentialFromAssertionData creates a new WebauthnCredential from a ParsedCredentialAssertionData and contains all needed information about a WebAuthn credential for storage. +// makeCredentialFromAssertionData creates a new Credential from a ParsedCredentialAssertionData and contains all needed information about a WebAuthn credential for storage. // This is then used to create a VerificationMethod for the DID Document. -func makeCredentialFromAssertionData(c *protocol.ParsedCredentialAssertionData) *WebauthnCredential { - return &WebauthnCredential{ +func makeCredentialFromAssertionData(c *protocol.ParsedCredentialAssertionData) *Credential { + return &Credential{ Id: c.RawID, PublicKey: c.Response.AuthenticatorData.AttData.CredentialPublicKey, - Authenticator: &WebauthnAuthenticator{ + Authenticator: &Authenticator{ Aaguid: c.Response.AuthenticatorData.AttData.AAGUID, SignCount: c.Response.AuthenticatorData.Counter, }, diff --git a/x/service/types/webauthn.go b/x/service/types/webauthn.go index c532f5d3a..d8d51bf87 100644 --- a/x/service/types/webauthn.go +++ b/x/service/types/webauthn.go @@ -7,16 +7,16 @@ import ( "github.com/go-webauthn/webauthn/protocol" "github.com/shengdoushi/base58" - "github.com/sonrhq/core/pkg/crypto" + "github.com/sonr-io/core/pkg/crypto" ) // PublicKeyMultibase returns the public key in multibase format -func (c *WebauthnCredential) PubKey() *crypto.PubKey { +func (c *Credential) PubKey() *crypto.PubKey { return crypto.NewEd25519PubKey(c.PublicKey) } -// CredentialFromDIDString converts a DID string into a WebauthnCredential -func CredentialFromDIDString(did string) (*WebauthnCredential, error) { +// CredentialFromDIDString converts a DID string into a Credential +func CredentialFromDIDString(did string) (*Credential, error) { parts := strings.Split(did, "#") if len(parts) != 2 { return nil, fmt.Errorf("invalid DID string format") @@ -36,7 +36,7 @@ func CredentialFromDIDString(did string) (*WebauthnCredential, error) { if err != nil { return nil, fmt.Errorf("failed to decode public key: %v", err) } - return &WebauthnCredential{PublicKey: pubKeyBytes, Id: credIdBz}, nil + return &Credential{PublicKey: pubKeyBytes, Id: credIdBz}, nil } // PublicKeyCredentialRequestOptions is a struct that contains the options for a PublicKeyCredentialRequest