diff --git a/client/config.json b/client/config.json index 5ffbaf8e6..6452f484d 100644 --- a/client/config.json +++ b/client/config.json @@ -50,6 +50,14 @@ } } }, + { + "url": "./tmp-swagger-gen/cosmos/mint/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "MintParams" + } + } + }, { "url": "./tmp-swagger-gen/cosmos/staking/v1beta1/query.swagger.json", "operationIds": { diff --git a/client/static/openapi.yml b/client/static/openapi.yml index 4d2eafeb3..2c4f5c4d3 100644 --- a/client/static/openapi.yml +++ b/client/static/openapi.yml @@ -8151,6 +8151,152 @@ paths: type: string tags: - Query + /cosmos/mint/v1beta1/annual_provisions: + get: + summary: AnnualProvisions current minting annual provisions value. + operationId: AnnualProvisions + responses: + '200': + description: A successful response. + schema: + type: object + properties: + annual_provisions: + type: string + format: byte + description: >- + annual_provisions is the current minting annual provisions + value. + description: |- + QueryAnnualProvisionsResponse is the response type for the + Query/AnnualProvisions RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + tags: + - Query + /cosmos/mint/v1beta1/inflation: + get: + summary: Inflation returns the current minting inflation value. + operationId: Inflation + responses: + '200': + description: A successful response. + schema: + type: object + properties: + inflation: + type: string + format: byte + description: inflation is the current minting inflation value. + description: >- + QueryInflationResponse is the response type for the + Query/Inflation RPC + + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + tags: + - Query + /cosmos/mint/v1beta1/params: + get: + summary: Params returns the total set of minting parameters. + operationId: MintParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded plugcns + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + tags: + - Query /cosmos/staking/v1beta1/delegations/{delegator_addr}: get: summary: >- @@ -19304,594 +19450,26 @@ paths: "lastName": } - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: denom - in: path - required: true - type: string - tags: - - Query - /nft/classes: - get: - operationId: Classes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - classes: - type: array - items: - type: object - properties: - id: - type: string - name: - type: string - schema: - type: string - symbol: - type: string - owner: - type: string - mint_restricted: - type: boolean - edit_restricted: - type: boolean - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should 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. - - It is less efficient than using key. Only one of offset or key - should - - be 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. - - If 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 - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is 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. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /nft/classes/{class_id}: - get: - operationId: Class - responses: - '200': - description: A successful response. - schema: - type: object - properties: - class: - type: object - properties: - id: - type: string - name: - type: string - schema: - type: string - symbol: - type: string - owner: - type: string - mint_restricted: - type: boolean - edit_restricted: - type: boolean - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: class_id - in: path - required: true - type: string - tags: - - Query - /nft/nfts: - get: - operationId: NFTs - responses: - '200': - description: A successful response. - schema: - type: object - properties: - nfts: - type: array - items: - type: object - properties: - id: - type: string - name: - type: string - uri: - type: string - data: - type: string - owner: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: class_id - in: query - required: false - type: string - - name: owner - in: query - required: false - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should 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. - - It is less efficient than using key. Only one of offset or key - should - - be 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. - - If 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 - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is 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. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /nft/nfts/{class_id}/{nft_id}: - get: - operationId: NFT - responses: - '200': - description: A successful response. - schema: - type: object - properties: - nft: - type: object - properties: - id: - type: string - name: - type: string - uri: - type: string - data: - type: string - owner: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: class_id - in: path - required: true - type: string - - name: nft_id - in: path - required: true - type: string - tags: - - Query - /nft/supply/{class_id}: - get: - operationId: Supply - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amount: - type: string - format: uint64 - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: class_id - in: path - required: true - type: string - tags: - - Query - /nft/{address}/{class_id}: - get: - operationId: Owner - responses: - '200': - description: A successful response. - schema: - type: object - properties: - owner: - type: object - properties: - address: - type: string - collection_ids: - type: array - items: - type: object - properties: - Class_id: - type: string - nft_ids: - type: array - items: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: address - in: path - required: true - type: string - - name: class_id - in: path - required: true - type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should 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. - - It is less efficient than using key. Only one of offset or key - should - - be 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. - - If 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 - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key + If the embedded message type is well-known and has a custom + JSON - is 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. + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + field. Example (for message [google.protobuf.Duration][]): - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: denom + in: path + required: true + type: string tags: - Query /cosmos/liquidity/v1beta1/params: @@ -25675,6 +25253,76 @@ definitions: WeightedVoteOption defines a unit of vote for vote split. Since: cosmos-sdk 0.43 + cosmos.mint.v1beta1.Params: + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded plugcns + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: Params holds parameters for the mint module. + cosmos.mint.v1beta1.QueryAnnualProvisionsResponse: + type: object + properties: + annual_provisions: + type: string + format: byte + description: annual_provisions is the current minting annual provisions value. + description: |- + QueryAnnualProvisionsResponse is the response type for the + Query/AnnualProvisions RPC method. + cosmos.mint.v1beta1.QueryInflationResponse: + type: object + properties: + inflation: + type: string + format: byte + description: inflation is the current minting inflation value. + description: |- + QueryInflationResponse is the response type for the Query/Inflation RPC + method. + cosmos.mint.v1beta1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded plugcns + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: QueryParamsResponse is the response type for the Query/Params RPC method. cosmos.staking.v1beta1.BondStatus: type: string enum: @@ -36787,237 +36435,6 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - plugchain.nft.Class: - type: object - properties: - id: - type: string - name: - type: string - schema: - type: string - symbol: - type: string - owner: - type: string - mint_restricted: - type: boolean - edit_restricted: - type: boolean - plugchain.nft.CollectionID: - type: object - properties: - Class_id: - type: string - nft_ids: - type: array - items: - type: string - plugchain.nft.NFT: - type: object - properties: - id: - type: string - name: - type: string - uri: - type: string - data: - type: string - owner: - type: string - plugchain.nft.Owner: - type: object - properties: - address: - type: string - collection_ids: - type: array - items: - type: object - properties: - Class_id: - type: string - nft_ids: - type: array - items: - type: string - plugchain.nft.QueryClassResponse: - type: object - properties: - class: - type: object - properties: - id: - type: string - name: - type: string - schema: - type: string - symbol: - type: string - owner: - type: string - mint_restricted: - type: boolean - edit_restricted: - type: boolean - plugchain.nft.QueryClassesResponse: - type: object - properties: - classes: - type: array - items: - type: object - properties: - id: - type: string - name: - type: string - schema: - type: string - symbol: - type: string - owner: - type: string - mint_restricted: - type: boolean - edit_restricted: - type: boolean - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - plugchain.nft.QueryNFTResponse: - type: object - properties: - nft: - type: object - properties: - id: - type: string - name: - type: string - uri: - type: string - data: - type: string - owner: - type: string - plugchain.nft.QueryNFTsResponse: - type: object - properties: - nfts: - type: array - items: - type: object - properties: - id: - type: string - name: - type: string - uri: - type: string - data: - type: string - owner: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - plugchain.nft.QueryOwnerResponse: - type: object - properties: - owner: - type: object - properties: - address: - type: string - collection_ids: - type: array - items: - type: object - properties: - Class_id: - type: string - nft_ids: - type: array - items: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - plugchain.nft.QuerySupplyResponse: - type: object - properties: - amount: - type: string - format: uint64 tendermint.liquidity.v1beta1.DepositMsgState: type: object properties: diff --git a/docs/concepts/token.md b/docs/concepts/token.md index 18f1076b0..e87e0f94c 100644 --- a/docs/concepts/token.md +++ b/docs/concepts/token.md @@ -22,9 +22,9 @@ Tokens `pc`, `dhw1`, `kingdm`, `joey`, etc. belong to PRC-10 protocol tokens ## PRC-20 -PRC-20 is a set of standards for issuing assets by deploying smart contracts on the Plug Chain blockchain through `Pvm`. It is compatible with [ERC-20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md) is fully compatible. +PRC-20 is a set of standards for issuing assets by deploying smart contracts on the Plug Chain blockchain through `Pvm`. It is compatible with [ERC-20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md). ## PRC-721 -PRC-721 is a set of standards for issuing non-fungible asset NFTs on the Plug Chain blockchain by deploying smart contracts through `Pvm`. It is consistent with [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) is fully compatible. \ No newline at end of file +PRC-721 is a set of standards for issuing non-fungible asset NFTs on the Plug Chain blockchain by deploying smart contracts through `Pvm`. It is consistent with [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md). \ No newline at end of file diff --git a/docs/get-started/testnet.md b/docs/get-started/testnet.md index 1ffca1b61..06908143a 100644 --- a/docs/get-started/testnet.md +++ b/docs/get-started/testnet.md @@ -50,7 +50,7 @@ plugchaind start -## cosmoswap +## Gxswap ``` Router: diff --git a/docs/pvm/cosmoswap.md b/docs/pvm/cosmoswap.md index e58961a22..1c0314573 100644 --- a/docs/pvm/cosmoswap.md +++ b/docs/pvm/cosmoswap.md @@ -101,7 +101,7 @@ Parameter Description: ## Full code Implemented using golang -### [full code](https://github.com/oracleNetworkProtocol/cosmoswap) +### [full code](https://github.com/oracleNetworkProtocol/gxswap) ```go package main @@ -112,9 +112,9 @@ import ( "math/big" "strings" -"github.com/oracleNetworkProtocol/cosmoswap/contracts/factory" -"github.com/oracleNetworkProtocol/cosmoswap/contracts/router" -"github.com/oracleNetworkProtocol/cosmoswap/contracts/token" +"github.com/oracleNetworkProtocol/gxswap/contracts/factory" +"github.com/oracleNetworkProtocol/gxswap/contracts/router" +"github.com/oracleNetworkProtocol/gxswap/contracts/token" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" diff --git a/docs/zh/concepts/token.md b/docs/zh/concepts/token.md index 397de44c4..20debada6 100644 --- a/docs/zh/concepts/token.md +++ b/docs/zh/concepts/token.md @@ -10,9 +10,9 @@ order: 4 Plug Chain 是一个基于 Cosmos SDK 的链,具有完整的 PVM 支持。由于这种架构,网络中的代币和资产可能来自不同的独立来源:bank模块,token模块,evm模块。 `bank模块,token模块代币 属于PRC-10协议`,`pvm模块属于PRC-20协议`。 -## PLUGCN +## PC -在 Plug Chain 上用于质押、治理和 gas 消耗的面额是PLUGCN. PLUGCN提供以下效用:保护权益证明链、用于治理提案的代币、费用分配以及作为在 PVM 上运行智能合约的气体手段。 +在 Plug Chain 上用于质押、治理和 gas 消耗的面额是PC. PC提供以下效用:保护权益证明链、用于治理提案的代币、费用分配以及作为在 PVM 上运行智能合约的气体手段。 $$ 1 pc = 1 ~ * ~ 10^{6} uplugcn $$ @@ -24,12 +24,12 @@ PRC-10是一种是通过 Plug Chain 公链内置的通证。 PRC-10是 Plug Chai ## PRC-20 -PRC-20是在 Plug Chain 区块链上通过`Pvm`部署智能合约的方式来发行资产的一套标准,它与 [ERC-20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md) 完全兼容。 +PRC-20是在 Plug Chain 区块链上通过`Pvm`部署智能合约的方式来发行资产的一套标准,兼容[ERC-20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md) 。 ## PRC-721 -PRC-721是在 Plug Chain 区块链上通过`Pvm`部署智能合约的方式来发行非同质化资产NFT的一套标准,它与 [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) 完全兼容。 +PRC-721是在 Plug Chain 区块链上通过`Pvm`部署智能合约的方式来发行非同质化资产NFT的一套标准,兼容[ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) 。 diff --git a/docs/zh/get-started/testnet.md b/docs/zh/get-started/testnet.md index a91fa5ccf..cac523d8f 100644 --- a/docs/zh/get-started/testnet.md +++ b/docs/zh/get-started/testnet.md @@ -51,7 +51,7 @@ plugchaind start -## cosmoswap 相关信息 +## Gxswap 相关信息 ``` router路由合约: diff --git a/docs/zh/pvm/cosmoswap.md b/docs/zh/pvm/cosmoswap.md index bc87c313e..20eee4f78 100644 --- a/docs/zh/pvm/cosmoswap.md +++ b/docs/zh/pvm/cosmoswap.md @@ -101,7 +101,7 @@ removeLiquidityPLUG(address token,uint256 liquidity,uint256 amountTokenMin,uint2 ## 完整代码 使用golang实现 -### [完整代码](https://github.com/oracleNetworkProtocol/cosmoswap) +### [完整代码](https://github.com/oracleNetworkProtocol/gxswap) ```go package main @@ -112,9 +112,9 @@ import ( "math/big" "strings" - "github.com/oracleNetworkProtocol/cosmoswap/contracts/factory" - "github.com/oracleNetworkProtocol/cosmoswap/contracts/router" - "github.com/oracleNetworkProtocol/cosmoswap/contracts/token" + "github.com/oracleNetworkProtocol/gxswap/contracts/factory" + "github.com/oracleNetworkProtocol/gxswap/contracts/router" + "github.com/oracleNetworkProtocol/gxswap/contracts/token" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common"