Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce Cosmos Scalars #9933

Merged
merged 41 commits into from Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0b6a4df
draft
cyberbono3 Aug 13, 2021
711d581
fix auth.proto
cyberbono3 Aug 13, 2021
6c82789
fix event.proto
cyberbono3 Aug 13, 2021
2a846b9
get rid of TODO
cyberbono3 Aug 13, 2021
e833de0
cleanup
cyberbono3 Aug 13, 2021
22e1baf
add scalar field to FieldOptions
cyberbono3 Aug 16, 2021
9264d4f
update
cyberbono3 Aug 16, 2021
b3dfa7e
fix reflection.proto
cyberbono3 Aug 16, 2021
d9776f4
fix genesis.proto
cyberbono3 Aug 16, 2021
1f3e244
fix vesting.proto
cyberbono3 Aug 16, 2021
73397e5
apply reviewer comments
cyberbono3 Aug 17, 2021
084c2a9
cleanup
cyberbono3 Aug 17, 2021
e4bd120
fix staking.proto
cyberbono3 Aug 17, 2021
1164971
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into cy…
cyberbono3 Aug 17, 2021
ca11a3d
fix bank.proto
cyberbono3 Aug 18, 2021
d4474df
fix abci.proto
cyberbono3 Aug 18, 2021
5f47cd4
fix commit_info.proto
cyberbono3 Aug 18, 2021
0376fe1
fix capability.proto
cyberbono3 Aug 18, 2021
505cdd2
fix tx.proto
cyberbono3 Aug 18, 2021
7232691
fix evidence.proto
cyberbono3 Aug 18, 2021
57dbae5
fix types.proto
cyberbono3 Aug 18, 2021
0730f2a
fix mint.proto
cyberbono3 Aug 18, 2021
3b4130d
update go_package in cosmos.proto
cyberbono3 Aug 19, 2021
0fffd04
remove interface_type from MessageOptions in cosmos.proto
cyberbono3 Aug 19, 2021
1e668e3
restore interface_type in cosmos.proto and include *.pb.go
cyberbono3 Aug 24, 2021
a7e6ffa
proto-gen
cyberbono3 Sep 15, 2021
61ccb2b
resolve merge conflicts
cyberbono3 Sep 15, 2021
d8d1e3f
make proto-gen
cyberbono3 Sep 15, 2021
fa0f0f1
update go.mod and protocgen.sh
cyberbono3 Sep 16, 2021
0532c92
remove interfacetype from protocgen.sh
cyberbono3 Sep 16, 2021
acf2615
scripts/protocgen.sh
cyberbono3 Sep 16, 2021
7a3123d
make test-all works properly
cyberbono3 Sep 16, 2021
c912dab
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into cy…
cyberbono3 Sep 16, 2021
aa30774
Merge branch 'master' into cyberbono3/introduce-cosmos-scalars
cyberbono3 Sep 16, 2021
41f81de
add changelog entry
cyberbono3 Sep 18, 2021
20419bf
merge master into my branch and resolve conflicts
cyberbono3 Sep 18, 2021
aa7e529
Update scripts/protocgen.sh
cyberbono3 Sep 20, 2021
c421312
add comments to cosmos.proto
cyberbono3 Sep 20, 2021
07303ab
Merge branch 'master' into cyberbono3/introduce-cosmos-scalars
atheeshp Sep 21, 2021
d1ed91c
Update CHANGELOG.md
amaury1093 Sep 21, 2021
193c335
Merge branch 'master' into cyberbono3/introduce-cosmos-scalars
amaury1093 Sep 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
143 changes: 73 additions & 70 deletions client/grpc/tmservice/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 20 additions & 18 deletions docs/core/proto-docs.md
Expand Up @@ -3189,7 +3189,7 @@ GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
<a name="cosmos.base.tendermint.v1beta1.GetNodeInfoResponse"></a>

### GetNodeInfoResponse
GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.


| Field | Type | Label | Description |
Expand Down Expand Up @@ -7090,11 +7090,12 @@ Class defines the class of the nft type.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `id` | [string](#string) | | |
| `name` | [string](#string) | | |
| `symbol` | [string](#string) | | |
| `description` | [string](#string) | | |
| `uri` | [string](#string) | | |
| `id` | [string](#string) | | id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 |
| `name` | [string](#string) | | name defines the human-readable name of the NFT classification |
| `symbol` | [string](#string) | | symbol is an abbreviated name for nft classification |
| `description` | [string](#string) | | description is a brief description of nft classification |
| `uri` | [string](#string) | | uri is a URI may point to a JSON file that conforms to the nft classification Metadata JSON Schema. |
| `uri_hash` | [string](#string) | | uri_hash is a hash of the document pointed to uri |



Expand All @@ -7104,15 +7105,16 @@ Class defines the class of the nft type.
<a name="cosmos.nft.v1beta1.NFT"></a>

### NFT
NFT defines the nft.
NFT defines the NFT.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `class_id` | [string](#string) | | |
| `id` | [string](#string) | | |
| `uri` | [string](#string) | | |
| `data` | [google.protobuf.Any](#google.protobuf.Any) | | |
| `class_id` | [string](#string) | | class_id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 |
| `id` | [string](#string) | | id defines the unique identification of NFT |
| `uri` | [string](#string) | | uri defines NFT's metadata storage address outside the chain |
| `uri_hash` | [string](#string) | | uri_hash is a hash of the document pointed to uri |
| `data` | [google.protobuf.Any](#google.protobuf.Any) | | data is the metadata of the NFT |



Expand Down Expand Up @@ -7143,8 +7145,8 @@ Entry Defines all nft owned by a person

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `owner` | [string](#string) | | |
| `nfts` | [NFT](#cosmos.nft.v1beta1.NFT) | repeated | |
| `owner` | [string](#string) | | owner is the owner address of the following nft |
| `nfts` | [NFT](#cosmos.nft.v1beta1.NFT) | repeated | nfts is a group of nfts of the same owner |



Expand Down Expand Up @@ -7415,7 +7417,7 @@ Query defines the gRPC querier service.
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Balance` | [QueryBalanceRequest](#cosmos.nft.v1beta1.QueryBalanceRequest) | [QueryBalanceResponse](#cosmos.nft.v1beta1.QueryBalanceResponse) | Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 | GET|/cosmos/nft/v1beta1/balance/{class_id}/{owner}|
| `Owner` | [QueryOwnerRequest](#cosmos.nft.v1beta1.QueryOwnerRequest) | [QueryOwnerResponse](#cosmos.nft.v1beta1.QueryOwnerResponse) | Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 | GET|/cosmos/nft/v1beta1/owner/{class_id}/{id}|
| `Supply` | [QuerySupplyRequest](#cosmos.nft.v1beta1.QuerySupplyRequest) | [QuerySupplyResponse](#cosmos.nft.v1beta1.QuerySupplyResponse) | Supply queries the number of nft based on the class, same as totalSupply of ERC721 | GET|/cosmos/nft/v1beta1/supply/{class_id}|
| `Supply` | [QuerySupplyRequest](#cosmos.nft.v1beta1.QuerySupplyRequest) | [QuerySupplyResponse](#cosmos.nft.v1beta1.QuerySupplyResponse) | Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. | GET|/cosmos/nft/v1beta1/supply/{class_id}|
| `NFTsOfClass` | [QueryNFTsOfClassRequest](#cosmos.nft.v1beta1.QueryNFTsOfClassRequest) | [QueryNFTsOfClassResponse](#cosmos.nft.v1beta1.QueryNFTsOfClassResponse) | NFTsOfClass queries all NFTs of a given class or optional owner, similar to tokenByIndex in ERC721Enumerable | GET|/cosmos/nft/v1beta1/nfts/{class_id}|
| `NFT` | [QueryNFTRequest](#cosmos.nft.v1beta1.QueryNFTRequest) | [QueryNFTResponse](#cosmos.nft.v1beta1.QueryNFTResponse) | NFT queries an NFT based on its class and id. | GET|/cosmos/nft/v1beta1/nfts/{class_id}/{id}|
| `Class` | [QueryClassRequest](#cosmos.nft.v1beta1.QueryClassRequest) | [QueryClassResponse](#cosmos.nft.v1beta1.QueryClassResponse) | Class queries an NFT class based on its id | GET|/cosmos/nft/v1beta1/classes/{class_id}|
Expand All @@ -7440,10 +7442,10 @@ MsgSend represents a message to send a nft from one account to another account.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `class_id` | [string](#string) | | |
| `id` | [string](#string) | | |
| `sender` | [string](#string) | | |
| `receiver` | [string](#string) | | |
| `class_id` | [string](#string) | | class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 |
| `id` | [string](#string) | | id defines the unique identification of nft |
| `sender` | [string](#string) | | sender is the address of the owner of nft |
| `receiver` | [string](#string) | | receiver is the receiver address of nft |



Expand Down