From 5f05795b77fa431617eeed5a721a07c5faa1edf4 Mon Sep 17 00:00:00 2001 From: Barry <122767193+BarryTong65@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:16:34 +0930 Subject: [PATCH] docs: replace docs link (#249) * docs: replace docs link --- client/api_group.go | 2 +- client/api_off_chain_auth.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/api_group.go b/client/api_group.go index 4ab6bb3b..e1c6ca22 100644 --- a/client/api_group.go +++ b/client/api_group.go @@ -59,7 +59,7 @@ type IGroupClient interface { // Create, Associate payment accounts // Grant, Revoke the above permissions // -// # For more details regarding `Group`, please refer to https://docs.bnbchain.org/greenfield-docs/docs/guide/greenfield-blockchain/modules/permission +// # For more details regarding `Group`, please refer to https://github.com/bnb-chain/greenfield/blob/master/docs/modules/permission.md // // - ctx: Context variables for the current API call. // diff --git a/client/api_off_chain_auth.go b/client/api_off_chain_auth.go index 2098b950..5853d6ef 100644 --- a/client/api_off_chain_auth.go +++ b/client/api_off_chain_auth.go @@ -140,7 +140,7 @@ Expiration Time: %s` // RegisterEDDSAPublicKey - Register EdDSA public key of this client for the given sp address and spEndpoint. // // To enable EdDSA authentication, you need to config OffChainAuthOption for the client. -// The overall register process could be referred to https://docs.bnbchain.org/greenfield-docs/docs/guide/storage-provider/modules/authenticator#workflow. +// The overall register process could be referred to https://github.com/bnb-chain/greenfield-storage-provider/blob/master/docs/modules/authenticator.md#workflow. // // The EdDSA registering process is typically used in a website, e.g. https://dcellar.io, // which obtains a user's signature via a wallet and then posts the user's EdDSA public key to a sp. @@ -148,9 +148,9 @@ Expiration Time: %s` // Here we also provide an SDK method to implement this process, because sometimes you might want to test if a given SP provides correct EdDSA authentication or not. // It also helps if you want implement it on a non-browser environment. // -// - spAddress: The sp operator address, to which this API will register client's EdDSA public key. It can be found via https://docs.bnbchain.org/greenfield-docs/docs/greenfield-api/storage-providers . +// - spAddress: The sp operator address, to which this API will register client's EdDSA public key. It can be found via https://greenfield-chain.bnbchain.org/openapi#/Query/StorageProviders . // -// - spEndpoint: The sp endpoint, to which this API will register client's EdDSA public key. It can be found via https://docs.bnbchain.org/greenfield-docs/docs/greenfield-api/storage-providers . +// - spEndpoint: The sp endpoint, to which this API will register client's EdDSA public key. It can be found via https://greenfield-chain.bnbchain.org/openapi#/Query/StorageProviders . // // - ret1: The register result when invoking SP UpdateUserPublicKey API. // @@ -192,7 +192,7 @@ func (c *Client) RegisterEDDSAPublicKey(spAddress string, spEndpoint string) (st // RegisterEDDSAPublicKeyV2 - Register EdDSA public key of this client for the given sp address and spEndpoint. // // To enable EdDSA authentication, you need to config OffChainAuthOptionV2 for the client. -// The overall register process could be referred to https://docs.bnbchain.org/greenfield-docs/docs/guide/storage-provider/modules/authenticator#workflow. +// The overall register process could be referred to https://github.com/bnb-chain/greenfield-storage-provider/blob/master/docs/modules/authenticator.md#workflow. // // The EdDSA registering process is typically used in a website, e.g. https://dcellar.io, // which obtains a user's signature via a wallet and then posts the user's EdDSA public key to a sp. @@ -200,7 +200,7 @@ func (c *Client) RegisterEDDSAPublicKey(spAddress string, spEndpoint string) (st // Here we also provide an SDK method to implement this process, because sometimes you might want to test if a given SP provides correct EdDSA authentication or not. // It also helps if you want implement it on a non-browser environment. // -// - spEndpoint: The sp endpoint, to which this API will register client's EdDSA public key. It can be found via https://docs.bnbchain.org/greenfield-docs/docs/greenfield-api/storage-providers . +// - spEndpoint: The sp endpoint, to which this API will register client's EdDSA public key. It can be found via https://greenfield-chain.bnbchain.org/openapi#/Query/StorageProviders . // // - ret1: The register result when invoking SP UpdateUserPublicKey API. //